2016 Oct 10 3:37 PM
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
2016 Oct 11 3:49 PM
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
2016 Oct 11 3:42 PM
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.
2016 Oct 11 3:49 PM
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
2016 Oct 19 8:02 AM
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
2020 Nov 05 9:50 PM
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?