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: 

How to cancel MM item & confirmation with Idoc ORDRSP and its function IDOC_INPUT_ORDRSP ?

former_member440285
Discoverer
0 Kudos

Hi,

I'm trying to cancel a PO item and his confirmation (wished result : EKPO-LOEKZ = 'L' and EKPO-ABSKZ = 'X') with Idoc 'ORDRSP' and the function module 'IDOC_INPUT_ORDRSP'.

I tried :

E1EDP01-ACTION = '003' and E1EDP20-ACTION = '003'

Only, but also with using Exit "EXIT_SAPLEINM_005" and updating 'XEKPO-LOEKZ' to 'L' ...
Result : No confirmation canceled, no item deletion ...

I tried also in debug mode to change 'POT-UPDKZ' to 'D' (was 'U') ... still failed.

Has anyone ever managed to delete a purchase order item via this function module ?

Thank you for any help !

6 REPLIES 6

JL23
Active Contributor
0 Kudos

Please see OSS note 66192 - EDI inbound processing ORDRSP; reversing a PO item

0 Kudos

Thank you for your answer Jurgen.

This note is for SAP-APPL 603-617, and our version is SAP_APPL 618. Do you think it will not have any problem ?

JL23
Active Contributor
0 Kudos

This question you have to ask the SAP Support. This note was the last time adjusted before 618 existed.

former_member440285
Discoverer
0 Kudos

Abap code in Note 66192 did not solve my problem, i will try in a specific way.

Thanks for help Jürgen.

former_member574154
Discoverer
0 Kudos

Dear experts,

I have an identical issue here but with 1 significant change: I only need to cancel the confirmation schedule-line(s) (not the whole PO-item-line!) so that the PO-item-line should appear as 'unconfirmed' again.

I tried:

E1EDP20-ACTION = '003' and/or E1EDP20-WMENG = 0

but I failed always.

Has anyone made experience with such an issue?

Any help is welcome!

rahuls5
Explorer
0 Kudos

Hi,

I had a similar requirement and I used the BAPI_PO_CHANGE in the user exit Exit "EXIT_SAPLEINM_005" to achieve this functionality.

Regards,

Rahul.