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: 

Exit/BADI after the orders05 idoc is posted successfully

former_member206760
Active Contributor
0 Kudos
1,133

Hi,

I have an inbound Orders05 idoc with extension scenario.I do not want to use the standard IDOC_INPUT_ORDERS FM as I need to do some coding.

I am going to use a Z function module inside which I will call the BAPI to create the sales order.

I have the following requirement -

1. I need to write some code only after ORDERS05 Idoc is posted successfully..  Can anybody let me know which exit/badi can be used for this?.

Will the enhancement EXIT_SAPLVEDA_003 suffice?

2. I need to modify the status record text ( saying idoc created sales order XYZ ) in the idoc if it is posted OK ( with status 53 )...

    should i do this in my Z-FM or in the exit which is called after the sales order is created?


1 REPLY 1

Former Member
0 Kudos
234

Hi

In the IDoc FM IDOC_INPUT_ORDERS, you can use EXIT_SAPLVEDA_004 or EXIT_SAPLVEDA_005 where you find table parameter for status records after calling the subroutine for VA01 tcode.

In  EXIT_SAPLVEDA_003 there is no parameter which can update status records or control record, so no possibility.

In higher versions ECC6.0..., you can impliment implicit enhancement option at the end of the FM for updating control and status records.

br...

Dwaraka