Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Populating the Serial Number in SO automatically via Inbound IDOC

Former Member
0 Kudos
1,914

Hi All,

My requirement is to populate the serial number automatically via Inbound Idoc.

Outbound Idoc is trigerred from PO in R3 to PI middleware, which in turn will create a SO in R3 system.

I am sending the serial number information via outbound Idoc of PO and this in turn mapped to SERIAL_NUMBER field in PI side. But its not updating the serial number in SO.

Please Note: I am referring to the serial number EXTRAS->TECHNICAL OBJECTS->SERIAL NUMBER.

Kindly help me with right solution. Thanks.

Regards,

Pavithran

1 ACCEPTED SOLUTION

Former Member
0 Kudos
643

Not that I want to rain on your parade, but I thought it was possible to configure SAP to send out an ORDERS IDoc and have this this turned into an inbound ORDERS IDoc. This would remove the need for PI.

This works similar to intercompany billing.

With regards to the serial number not being populate. This is because the same ORDERS05 IDoc type is used to for outbound PO and inbound SO. Therefore the IDoc structure has to cater for both . So, just because the fields are there on the IDoc , does not mean it will post into the SO where you expect it. The best way to see if this is the case, is to search the inbound function module IDOC_INPUT_ORDERS to see what it does with the segment/field you have put the serial number into.

Thanks


Martin

4 REPLIES 4

Former Member
0 Kudos
643

I believe there is Serial number segment at SO BAPI, I suggest to request your PI team to map Serial number segment to SO from Outbound idocs. you can discuss with your ABAPer as well.

Former Member
0 Kudos
644

Not that I want to rain on your parade, but I thought it was possible to configure SAP to send out an ORDERS IDoc and have this this turned into an inbound ORDERS IDoc. This would remove the need for PI.

This works similar to intercompany billing.

With regards to the serial number not being populate. This is because the same ORDERS05 IDoc type is used to for outbound PO and inbound SO. Therefore the IDoc structure has to cater for both . So, just because the fields are there on the IDoc , does not mean it will post into the SO where you expect it. The best way to see if this is the case, is to search the inbound function module IDOC_INPUT_ORDERS to see what it does with the segment/field you have put the serial number into.

Thanks


Martin

643

Hi Martin,

Thanks for your response.

Refereing to your last statement - I had analysed the FM "IDOC_INPUT_ORDERS" by debugging and found that a suitable logic is requred to update serial numbers automatically. I have used two FM "SERNR_ADD_TO_AU" and "SERIAL_LISTE_POST_AU" in one of the user exit to achive this functionality.

Regrads,

Pavithran

0 Kudos
643

Pavithran - Can you please share demo code how you did with two FM SERNR_ADD_TO_AU" and "SERIAL_LISTE_POST_AU & which user-exit used?