Skip to Content

Inbound Idoc ORDCHG for Rejecting sales order Line

Apr 11 at 05:02 PM


avatar image

I am trying to reject/cancel a sales order line with an Idoc ORDCHG passing Action Code '003'(Cancel a line) in E1EDP01 item segment and ABGRU value and the IDoc passed but it is not updating the sales order line with the reason code . Then I tried passing 002 in Action (Change a line) then it added a new line with reason code but did not do any changes to the original line I am trying to update. Can anyone has any idea what else I can do to achieve this result?

action-002.png (30.0 kB)
action-003.png (28.4 kB)
addednewline.png (23.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
3 days ago

I haven't dealt with this specific scenario on practice but your option with 002 (Change) looks OK and I'd expect it to work. It's really odd that it adds a new line. I'd just make sure to have the correct line number and also try to remove any other data (WERKS and MATNR here) from the segment. You could use debugger to see what's happening with the data.

Make sure to check for SAP Notes (maybe ANST transaction can help if you run IDoc in foreground?). If all else fails, I'd contact SAP Support.

10 |10000 characters needed characters left characters exceeded
Phil Cooley 2 days ago

Hi Hema

It will create a new item IF it cannot recognise the line item you are trying to change - basically the POITEM. Check the PO item field (POSEX not VBAP-POSNR) to see if you can use this in the idoc. I tried several variations of this idoc and did not manage to get it working. A clue is to reference the PO number (BSTNK) but I could not pinpoint the exact idoc segment where I could reference this but at least provides you with more info to go on. I am close so will try again over the coming days to see if I can sort it out.

Where there is a will there is a way! Should not be this difficult though!

Stay Tuned!


Phil Cooley

10 |10000 characters needed characters left characters exceeded