Number Range Objects Example SAP PI/PO B2B

If you have a requirement to assign an unique sequence number to a target field you can do that using below method in PI 7.3 or higher single stack versions.

This type of unique sequence number requirements are common when you have EDI communications with partners. EDI segments ISA.13 (Interchange Control Number), ST.02 (Transaction Set Control Number) or IEA.02 (Interchange Control Number) are few segments where a unique sequence numbers are required.

B2B Number Range Objects allow us to assign sequence numbers from the Number Range Object to the target fields or segments.

Steps to Configure Number Range Objects in SAP PI/PO.

  • Create the Number Range Object in B2B home.

  • Call the number range in message mapping and map the value to target field.

  • Configure the receiver adapter modules to call the number range.

Lets look at these three steps in detail.

Step 1: Create the Number Range Object (NRO) in B2B Home.

You should be able to access Netweaver B2B home using URL http://<host>:<port>/b2bic

 

Go to Number Range Object (NRO) Maintenance under B2B Home

 

Select NRO Maintenance in B2B home
Select NRO Maintenance in B2B home

 

Create New Number Range Object
Create New Number Range Object

 

Provide the essential parameters such as NRO name, minimum value, maximum value, and number range length.
Set Number Range Object (NRO) properties
Set Number Range Object (NRO) properties

 

Step 2: Call the Number Range Object in Message Mapping and Map the Values to Target Field.

Number range should be mapped to the target field as below. Use a Constant to assign with the value in the format ‘$B2B_UEBNR<Number Range Name>$B2B_END_UEBNR’.

 

Assume our number Range Object (NRO) name is OTC377_BSN02.

 

Constant value should be configured as “$B2B_UEBNROTC377_BSN02$B2B_END_UEBNR”.

 

Mapping Number Range Object to target element
Mapping Number Range Object to target element
Number Range Object Mapping format
Number Range Object Mapping format

 

Step 3: Configure the Receiver Adapter Modules to Execute the Number Range Object.

In the receiver communication channel include the module “TransmissionNumberModule” with module key “NRO”.
Configure Receiver Communication Channel with 'TransmissionNumberModule'
Configure Receiver Communication Channel with ‘TransmissionNumberModule’

 

If you have any question about Number Range Objects, please leave a comment below.
8 Comments

Add a Comment

Your email address will not be published. Required fields are marked *