Skip to Content
avatar image
Former Member

SAP HANA MRP Live: BADI

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 20, 2017 at 06:53 AM

    Hi,

    update is for db tables. this is an internal table

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2017 at 01:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 02 at 11:16 AM

    Hey Gary,

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

    KR

    Add comment
    10|10000 characters needed characters exceeded