cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA MRP Live: BADI

GaryK
Explorer

Hi Experts,

I've asked this question here already without reply which might be the wrong place. Posting the question again and I would be grateful for any help.

S4HANA Release: 1610 SP Stack: 01 ( 02/2017) FP

I'm trying to implement the AMDP BADI : PPH_MRP_RUN_BADI. I've created an implementing class and I am trying to implement method IF_PPH_MRP_RUN_BADI~MDPS_ADJUST for the BADI.

I am implementing the method logic in Eclipse. The requirement is to change values in CT_MDPS; specifically for Material XXXX change DELZ to YY. I cannot update CT_MDPS. The below does not work.

update ct_mdps set delkz ='YY'where matnr ='XXXX';

I know we can update normal tables in this way but not method parameters. I am new to this type of development in S4HANA and I would appreciate any guidance you can give to help me realise my requirement.

Thanks in advance

Gary

Accepted Solutions (0)

Answers (4)

Answers (4)

andy_tu
Explorer
0 Kudos

ct_mdps = select 。。。。,case when matnr ='XXXX' then 'YY' else delkz end as delkz,

from :ct_mdps.

TimothySanty
Participant
0 Kudos

Hey Gary,

I'm facing the exact same requirement. Were you able to solve this? Can you please share how?

KR

GaryK
Explorer
0 Kudos

Hi Robert,

Thanks for taking the time to reply. You are correct. Update will not work. The problem I have is how to change the values in ct_mdps using this BADI.

Thanks

Gary

RAF
Active Contributor
0 Kudos

Hi,

update is for db tables. this is an internal table