cancel
Showing results for 
Search instead for 
Did you mean: 

BADI BD_MMPUR_FINAL_CHECK_PO for PURCHASE ORDER ITEMS

i015192
Advisor
Advisor
0 Kudos

Dear community users,  I work in the SAP Procurement Support team and after dealing with this query, would like to share the information with the wider community.  Question: 

You try to create an implementation in BADI BD_MMPUR_FINAL_CHECK_PO however it's not possible use fields of structure  PURCHASEORDERITEMS although it is available as Parameter.

Accepted Solutions (1)

Accepted Solutions (1)

i015192
Advisor
Advisor
0 Kudos

The table Purchaseorderitem doesn't have a header line and can't be selected directly.

You need to define first a header structure table to read the items data.

see my proposal below :

Custom Logic:

BD_MMPUR_FINAL_CHECK_PO

sample code for PO items:

DATA LS_PURCHASEORDERITEMS like line of PURCHASEORDERITEMS

LOOP AT PURCHASEORDERITEMS INTO LS_PURCHASEORDERITEMS.

If LS_PURCHASEORDERITEMS-MATERIAL eq "xxx".

ENDIF.

ENDLOOP.

I hope it will be useful,

br

maria

Answers (0)