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: 

Service PO from Delivery Order

Former Member
0 Kudos

Hi,

I have the following scenario.

On creation of a Delivery Order, I would like to trigger automatic creation of a Service PO. I am looking for ways to do it.

Could some one guide me on how to proceed. I am looking for the right exit where I can put my code (for creation of Service PO through BDC).

Thanks & Regards,

Shobhit

4 REPLIES 4

Former Member
0 Kudos

Hi Shobit,

You can you FM BAPI_PO_CREATE1 for creating Service orders.

But, let us know how you are creating Delivery Order.

If you are creating through VA01 (Order Type : TAM), then you can code at USEREXIT_SAVE_DOCUMENT_PREPARE in Include MV45AF0B_BELEG_SICHERN.

Regards,

Raj

Message was edited by: Rajasekhar Dinavahi

0 Kudos

Hi Raj,

I am creating the Delivey by going to VL01N. Could you tell me the exit in this case.

Also is it possible to bring a pop-up box in the user exit for taking the user confirmation for creation of the service PO.

Thanks for your help.

Regards,

Shobhit

0 Kudos

Hi Swarup,

The user exit for your requirement would be the one mentioned above only.

If you want to give a popup for confirmation, use the Function module POPUP_TO_CONFIRM.

Regards,

Ravi

0 Kudos

Thanks Ravi,

Could someone also give me a sample code of how to write the submit statement in the USer Exit in order to process the PO creation in the background.

Also I would like to have two entry fields in the popup (material and destination) which shall act as inputs to the PO. Could someone tell me how to do that.

If someone has the code for the BAPI_PO_CREATE1 called from the Delivery creation exit, then please do let me know.

Thanks & Regards,

Shobhit