Namespace
Definition
A string that is prefixed to a BDoc type modeled in the development environment.
Use
At present, all the customers model BDoc types in the Z namespace. However, with the introduction of namespaces in the CRM BDoc Modeler , customers can register for their own namespaces to model BDoc types. This ensures that the name of a BDoc type modeled by a particular customer is unique, as it is prefixed with the namespace allotted to the customer.
Structure
The namespace begins and ends with a delimiter (/) and can be 10 characters long including the delimiters.
Integration
The introduction of namespaces affects the naming convention of BDoc types, segments, and generated objects.
Naming Convention for BDoc Types
At present, the names of the BDoc types that SAP models start with an alphabet other than the alphabet Z. The alphabet Z is prefixed to the names of the BDoc types modeled by customers and implementation partners. However, with the introduction of namespaces, both SAP and customers can model BDoc types with their own namespaces.
Naming Convention for Segments
At present, the names of the segments that SAP creates start with any alphabet other than the alphabet Z. The alphabet Z is prefixed to the names of segments created by customers and implementation partners. However, with the introduction of namespaces, both SAP and customers can create segments with their own namespaces.
Naming Convention for Generated Objects
Structures and services are generated for synchronization and messaging BDoc types. However, for segments of synchronization and messaging BDoc types, structures and table types are generated.
-
Naming convention for the generated structure and Inbound Adapter Service for BDoc type
The name of the structure and Inbound Adapter Service for a BDoc type is generated with a fixed namespace. However, with the introduction of namespaces, the naming convention for the generated structure and Inbound Adapter Service depends on whether the BDoc type is prefixed with a namespace or without a namespace, as explained in the following table:
If:
Then:
The name of a BDoc type is prefixed with a namespace
The name of the generated structure and Inbound Adapter Service is prefixed with the namespace of the BDoc type.

If the name of the BDoc type is /ABC/CAPGEN_OB_WRT, the name of the generated structure and Inbound Adapter Service is prefixed with /ABC/, such as /ABC/CAPGEN_OB_WRT000 and /ABC/CAPGEN_OB_WRT_I01 respectively.
The name of a BDoc type is not prefixed with a namespace
The name of the generated structure and Inbound Adapter Service is not prefixed with any namespace.

If the name of the BDoc type is CAPGEN_OB_WRT, the name of the generated structure and Inbound Adapter Service is not prefixed with any namespace, such as CAPGEN_OB_WRT000 and CAPGEN_OB_WRT_I01 respectively.
The name of the BDoc type is prefixed with the Z namespace (customer system)
The name of the generated structure and Inbound Adapter Service is prefixed with Z.

If the name of the BDoc type is ZCAPGEN_OB_WRT, the name of the generated structure and Inbound Adapter Service is prefixed with Z, such as ZCAPGEN_OB_WRT000 and ZCAPGEN_OB_WRT_I01 respectively.
-
Naming convention for the generated segment structure and table type
The naming convention for the generated segment structure and table type depends on whether the BDoc type is prefixed with a namespace or without a namespace.
BDoc type name prefixed with a namespace If:
Then:
The segment name is prefixed with a namespace
The name of the generated segment structure and table type is prefixed with the segment namespace.

If the segment name is /ABC/CAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with /ABC/, such as /ABC/CAPGEN_OBJECT000 and /ABC/CAPGEN_OBJECT000T respectively.
The segment name is prefixed with the Z namespace (customer system)
The name of the generated segment structure and table type is prefixed with Z in case of a SAP BDoc type.

If the name of a SAP BDoc type is CAPGEN_OBJ_WRT and segment name is ZCAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with Z, such as ZCAPGEN_OBJECT000 and ZCAPGEN_OBJECT000T respectively.
However, in case of a customer BDoc type, the name of the generated segment structure and table type is prefixed with the namespace of the BDoc type.

If the name of a customer BDoc type is /ABC/CAPGEN_OBJ_WRT and segment name is ZCAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with /ABC/, such as /ABC/ZCAPGEN_OBJECT000 and /ABC/ZCAPGEN_OBJECT000T respectively.
The segment name is not prefixed with a namespace
The name of the generated segment structure and table type is prefixed with the namespace of the BDoc type.

If the name of a BDoc type is /ABC/CAPGEN_OBJ_WRT and segment name is CAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with /ABC/, such as /ABC/CAPGEN_OBJECT000 and /ABC/CAPGEN_OBJECT000T respectively.
BDoc type name not prefixed with a namespace If:
Then:
The segment name is prefixed with a namespace
The name of the generated segment structure and table type is prefixed with the segment namespace.

If the segment name is /ABC/CAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with /ABC/, such as /ABC/CAPGEN_OBJECT000 and /ABC/CAPGEN_OBJECT000T respectively.
The segment name is prefixed with the Z namespace (customer system)
The name of the generated segment structure and table type is prefixed with Z (in case of a customer BDoc type) in addition to Z prefixed with the segment name.

If the name of a customer BDoc type is ZCAPGEN_OBJ_WRT and segment name is ZCAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with Z, such as ZZCAPGEN_OBJECT000 and ZZCAPGEN_OBJECT000T respectively.
However, in case of a SAP BDoc type, the name of the generated segment structure and table type is prefixed with Z.

If the name of a SAP BDoc type is CAPGEN_OBJ_WRT and segment name is ZCAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with Z, such as ZCAPGEN_OBJECT000 and ZCAPGEN_OBJECT000T respectively.
The segment name is not prefixed with a namespace
The name of the generated segment structure and table type is prefixed with Z in case of a customer BDoc type.

If the name of a customer BDoc type is ZCAPGEN_OBJ_WRT and segment name is CAPGEN_OBJECT, the name of the generated segment structure and table type is prefixed with Z, such as ZCAPGEN_OBJECT000 and ZCAPGEN_OBJECT000T respectively.
However, in case of a SAP BDoc type, the name of the generated segment structure and table type is not prefixed with any namespace.

If the name of a SAP BDoc type is CAPGEN_OBJ_WRT and segment name is CAPGEN_OBJECT, the name of the generated segment structure and table type is not prefixed with any namespace, such as CAPGEN_OBJECT000 and CAPGEN_OBJECT000T respectively.