Skip to Content
1

SAP HANA MRP Live: BADI

Apr 19, 2017 at 08:34 AM

118

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Robert Forster Apr 20, 2017 at 06:53 AM
0

Hi,

update is for db tables. this is an internal table

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 21, 2017 at 01:06 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 02 at 11:16 AM
0

Hey Gary,

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

KR

Share
10 |10000 characters needed characters left characters exceeded