cancel
Showing results for 
Search instead for 
Did you mean: 

Error in ME21N 'Data from Business Add-In ME_PROCESS_PO_CUST not adopted'

sparshjk
Discoverer
0 Kudos
132

Hi Experts,

I am using BADI ME_PROCESS_PO_CUST with method PROCESS_ITEM to update UMSON & KNTTP fields and method PROCESS_ACCOUNT to update SAKTO & KOSTL fields during PO creation. 

The system throws an error 'Data from Business Add-In ME_PROCESS_PO_CUST not adopted' in ME21N because of this badi implementation.

I also noticed that the error only occurs if PROCESS_ACCOUNT method is implemented and if I remove this method implementation then I dont get the error.

I already checked SAP notes and community blogs related to this topic but I dont see a solution.

It would be great if someone could post solution to this.

Below is the code snippet for both snippets.

sparshjk_0-1739346122802.png     

sparshjk_0-1739350988194.png

 

Regards,

Sparsh

 

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Usually these messages come from an infinite loop. I suppose the item change triggers an account update, which triggers an item update, until the program safely stops the loop and reverse the change, so the message.

Make sure your code does not use the set_data method when no value is actually changed (should be in the not posted process_account method as process_item already partially check this)

 

" but exact check should look like
ls_item-knttp NE 'K' or ls_item-umson EQ abap_false