Create a New B2B Schema
You can create a new B2B schema based on a standard document type and customize it to match your requirements. You can also select to use a schema created in a different project.
- To create a schema in a project:
- In the navigation pane, click Projects.
- Click the project in which to create the schema.
- Click B2B
. - In the Schemas section, click Add.
- To create a schema in a standalone environment:
- In the navigation pane, click B2B, then Schemas.
- On the Schemas page, click Create.
- Enter the following details.
Element Description Name Enter a name. Identifier This field is automatically populated with the name. You can manually change this value. Description Enter an optional description of the customization details for this schema. Use a shared schema Click to use a shared schema. Selecting this option enables a Shared schema list to be displayed for you to select the shared schema to use. Shared schemas only available in a different project are displayed. Schemas created in a standalone environment (that is, outside a project) are not available for selection.
After creation, an Override label appears below the schema name in the Schemas section to indicate that the schema is shared.
To understand how shared schemas work, see What's Supported in Projects for B2B.
Available to other projects Select to make this schema available for use in other projects.
After creation, a Shared label appears below the schema name in the Schemas section to indicate that it is available for use in other projects.
Document standard Select the document standard. The document standard identifies the business protocol to follow when exchanging business documents between partners. - EDIFACT
- X12
- X12HIPAA
- OAG
- Custom
- RosettaNet (version 2.0)
- FixedLength
- Delimited
- If you selected EDIFACT, X12, or
X12HIPAA, enter the following details:
Element Description Document version Select the document version from the drop-down list. You cannot manually define a document version. Document type Select the document type from the drop-down list. You cannot manually define a document type. - If you selected OAG, Custom, or
RosettaNet, enter the following details:
Element Description Schema location Click Browse to select the schema to use. If you select RosettaNet, note that RosettaNet PIPs are not preseeded in B2B for Oracle Integration. You can download the RosettaNet schema to use from this site. Expand the Specification list to find the schema you want to download and use in B2B for Oracle Integration.
Prepare the schema for upload into B2B for Oracle Integration:- Download the schema from RosettaNet and place it in a new folder.
- Unzip the downloaded schema.
- Navigate to the
XMLdirectory inside the unzipped folder. - Find and delete all non-XSD files
in this
directory.
$ find . -type f | grep -v xsd | xargs rmNote: If you are using a UI-based explorer, some hidden files/folders may exist that also need to be removed. In which case, the above command must be modified. For example, the
__MACOX__folder on macOS or theThumbs.dbfile on Windows. - Create a new
zipfile from current XML directory onwards.zip -r pip4b2-v11-01-00-notifyofshipmentreceipt.zip ./ - Upload this new
zipfile to define a new schema.
After you upload a RosettaNet schema to use, the name of the PIP is displayed in the Root element field (for example, Pip3A4PurchaseOrderRequest.)
Document version - For Custom or RosettaNet, manually enter a new value or select an existing value from the drop-down list.
- For OAG, select an existing value from the drop-down list. You cannot manually define a document version.
Document type - For Custom or RosettaNet, manually enter a new value or select an existing value from the drop-down list.
- For OAG, select an existing value from the drop-down list. You cannot manually define a document type.
- If you selected FixedLength, enter the following
details:
Element Description Scan for character Enter an integer between 1and32to identify the number of characters to scan to identify the segments in the payload. For example, enter3to identify the schema segments from the first three characters in each row. See Positional Flat or Fixed Length Payloads Support.Drag and Drop Drag a sample payload file with a fixed-length content. UTF-8 is the supported character encoding. After creating the schema, you can add child elements, as necessary. See Add Child Elements to a Fixed-Length Schema.
Character Encoding Select the character encoding to use. Document version Manually enter a new value or select an existing value from the drop-down list. Document type Manually enter a new value or select an existing value from the drop-down list. - If you selected Delimited, enter the following
details:
Element Description Drag and Drop Drag and drop the delimited payload file. Character encoding Select the character encoding to use. Segment delimiter Select the delimiter used to separate segments in the payload. See Delimited Payload Support. Segment name delimiter Select the delimiter used to separate segment names in the payload. Element delimiter Select the delimiter used to separate elements in the payload. Composite element delimiter Select the delimiter used to separate composite elements in the payload. Document version Manually enter a new value or select an existing value from the drop-down list. Document type Manually enter a new value or select an existing value from the drop-down list. - Click Create.
- Customize the schema to match your business requirements.
For example customizations, see Customize or Edit a B2B Schema.
After completing the customization, you can select the custom schema while creating a new B2B document as described in Create a Custom B2B Document Definition.