2011 May 24 3:01 PM
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
2011 May 25 10:34 AM
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
2011 May 24 3:19 PM
Hi,
go to we19 and try to debug the Function module
IDOC_INPUT_ORDERS "For creation
IDOC_INPUT_ORDCHG "For change
Prabhudas
2011 May 25 10:34 AM
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