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: 

Inbound IDOC - ORDCHG - Sales Order

Former Member
0 Kudos

Hi,

I have to change both header and item of the sales order using IDOC message type - ORDCHG.

I'm passing Sales Order# to the E1EDK01-BELNR and E1EDK01-ACTION = '002' for orders header.

when i test using WE19, It's creating a new document instead of changing the existing sales order.

Am i doing something wrong here? any inputs from you guys?

Thanks,

Arun

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

>I'm passing Sales Order# to the E1EDK01-BELNR and E1EDK01-ACTION = '002' for orders header.

you are doing wrong.

the correct approach is

you need to pass the order number to e1edk02-belnr and e1edk02-qulf = '002'.

4 REPLIES 4

Former Member
0 Kudos

What is the process code you are using in the partner profile? What is the FM assigned to that process code?

For change it should be calling IDOC_INPUT_ORDCHG, while it seems it is callingIDOC_INPUT_ORDERS, check that and you will be fine

0 Kudos

process code - ORDC and FM assigned to it is IDOC_INPUT_ORDCHG.

former_member188685
Active Contributor
0 Kudos

>I'm passing Sales Order# to the E1EDK01-BELNR and E1EDK01-ACTION = '002' for orders header.

you are doing wrong.

the correct approach is

you need to pass the order number to e1edk02-belnr and e1edk02-qulf = '002'.

0 Kudos

GREAT!! This works!!! Thanks!!