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: 

Reg : Sales order Inbound Idoc

former_member536879
Active Contributor
0 Kudos

Hi All,

The IDoc type is Inbound.

I am using a IDoc for updating the sales order line item details. when i am triggering the idoc, its creating a new line item apart of updating the existing line item.

The Basic type is ORDERS05.

Message Type is ORDCHG.

Please let me have your valuable points on this.

With Regards,

Sumodh.P

1 ACCEPTED SOLUTION

paul_quinn
Participant
0 Kudos

hi,

Adding and inserting an item is done via the same functionality with SAP

idoc_input_ordchg.

The item in the idoc is linked to the old sales order by the filed

POSEX.

To change an item you must provide the same posex in the idoc

as in the old sales order (vbap-posex).

If an item in the old sales order is found with the same posex

as the item in the idoc, the item will be changed.

If the item is not found in the old sales order because no item

in the old sales order has the same item POSEX in the idoc, the item

will be inserted.

The above rules are valide for both ACTION 001 and 002.

kind regards

Paul Quinn

2 REPLIES 2

Former Member
0 Kudos

Hi,

go to we19 and try to debug the Function module

IDOC_INPUT_ORDERS "For creation

IDOC_INPUT_ORDCHG "For change

Prabhudas

paul_quinn
Participant
0 Kudos

hi,

Adding and inserting an item is done via the same functionality with SAP

idoc_input_ordchg.

The item in the idoc is linked to the old sales order by the filed

POSEX.

To change an item you must provide the same posex in the idoc

as in the old sales order (vbap-posex).

If an item in the old sales order is found with the same posex

as the item in the idoc, the item will be changed.

If the item is not found in the old sales order because no item

in the old sales order has the same item POSEX in the idoc, the item

will be inserted.

The above rules are valide for both ACTION 001 and 002.

kind regards

Paul Quinn