cancel
Showing results for 
Search instead for 
Did you mean: 

Can we update BBP_PDIGP-MIN_ORDER_QUAN from Doc_Change?

channu_s
Participant
0 Kudos
76

Hello All,

Scenario :  From the OCI interface catalogue a custom field "Z_MIN_ORDR_QTY" will be passed, which we need to map to "BBP_PDIGP-MIN_ORDER_QUAN".

  Can we do this by adding a SC customer field and mapping same to BBP_PDIGP-MIN_ORDER_QUAN in  Doc_Change badi?



Kindly provide your inputs.


thanks .

Channa.

Accepted Solutions (0)

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

Hi Channa ,

Please note yes you can update this but the purpose of making a change in DOC_CHANGE is not very clear .. if you update something in DOC_CHANGE it will be updated every time .. so this value will remain constant always .. You can also use BBP_DOC_SAVE badi here ..

I did something similar so below is the sample code ..

SELECT SINGLe * FROM BBP_PDIGP INTO LS_BBP_PDIGP WHERE GUID = LS_PO_ITEM-SRC_GUID.

   IF  ( Your condition  ).

LS_BBP_PDIGP.-MIN_ORDER_QUAN  = NEW VALUE

    MODIFY BBP_PDIGP FROM LS_BBP_PDIGP.

ENDIF.

If you only have to do this once during creation update in DOC_CHANGE with the mode as well .. probably EQ C

Regards

Vinita