Skip to Content
0
Jun 29, 2020 at 10:43 AM

Interchange and GS/ST control number in B2B inbound EDI scenario

459 Views Last edit Jun 29, 2020 at 10:44 AM 2 rev

Hello Experts,

For assigning an interchange number we can use the B2B addon's NRO object. But, in my scenario I am using the same in GS segment for the control number mapping. In the GS segment that should be assigned without leading Zeros. for this I have added a UDF in the mapping and trying to remove the leading zeros from the NRO number. I realized, NRO assignment takes place at channel/ adapter level using the map- as a result my interchange number assigned by NRO is not removed the leading zeros.

Could you please advise how to resolve this? I am aware of the NRO API, and can use that in the PI mapping - but trying to find an easy solution.

https://blogs.sap.com/2016/09/01/nro-access-from-mapping-esr/

Another Question, what is the best way to assign the GS segment control number and Transaction Set / ST segment control number in case of multiple GS segment and each GS segment having multiple ST segment?

Please see the sample below and advice if that looks correct, it has 2 GS segments, 1st GS has 2 ST/ transaction set and 2nd GS has 1 ST.

ISA*00* *00* *12*3998762298 *08*5163497100 *200610*1239*U*00401*000000672*1*P*<>
GS*PO*3998762298*5163497100*20200610*1239*6720001*X*004010>
ST*850*6720001>
BEG*00*SA*4100032939**20200610>
REF*IA*10015768>
REF*SM*1208>
FOB*PP***01*FOB>
N1*ST*SWW US>
N2*LV Agua Prieta>
N3*102 W 9TH ST>
N4*DOUGLAS*AZ*856072151*US>
N1*OB*Glenn Enriquez>
PO1*00010*12*EA*11.42**CB*40603813*VN*40603813>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00020*12*EA*11.01**CB*9960899*VN*9960899>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 11/2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00030*8*EA*2.11**CB*1058775*VN*1058775>
PID*F**ZZ*Product Desc*1/213 Bolt Thread Stud Mount Leveling>
SCH*8*EA***002*20200620>
CTT*3>
SE*21*6720001>
ST*850*6720002>
BEG*00*SA*4100032939**20200610>
REF*IA*10015768>
REF*SM*1208>
FOB*PP***01*FOB>
N1*ST*SWW US>
N2*LV Agua Prieta>
N3*102 W 9TH ST>
N4*DOUGLAS*AZ*856072151*US>
N1*OB*Glenn Enriquez>
PO1*00010*12*EA*11.42**CB*40603813*VN*40603813>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00020*12*EA*11.01**CB*9960899*VN*9960899>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 11/2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00030*8*EA*2.11**CB*1058775*VN*1058775>
PID*F**ZZ*Product Desc*1/213 Bolt Thread Stud Mount Leveling>
SCH*8*EA***002*20200620>
CTT*3>
SE*21*6720002>
GE*2*6720001>
GS*PO*3998762298*5163497100*20200610*1239*6720002*X*004010>
ST*850*6720003>
BEG*00*SA*4100032939**20200610>
REF*IA*10015768>
REF*SM*1208>
FOB*PP***01*FOB>
N1*ST*SWW US>
N2*LV Agua Prieta>
N3*102 W 9TH ST>
N4*DOUGLAS*AZ*856072151*US>
N1*OB*Glenn Enriquez>
PO1*00010*12*EA*11.42**CB*40603813*VN*40603813>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00020*12*EA*11.01**CB*9960899*VN*9960899>
PID*F**ZZ*Product Desc*Promo WEBSALE01: 11/2" Tube 1/213>
SCH*12*EA***002*20200620>
PO1*00030*8*EA*2.11**CB*1058775*VN*1058775>
PID*F**ZZ*Product Desc*1/213 Bolt Thread Stud Mount Leveling>
SCH*8*EA***002*20200620>
CTT*3>
SE*21*6720003>
GE*1*6720002>
IEA*2*000000672>

Thanks

Sugata