Skip to Content
avatar image
Former Member

Question on BADI Macros

Hi All

Facing an issue when using DP BADI macros – The planning book contains 3 key figures. The BADI macro calculates KF3 = KF1 – KF2 (it’s a little more complicated than that..but will do for this discussion). When the BADI macro is manually executed in Interactive Planning (SDP94), it correctly populates KF3 and displays it. But when I try to save the data, the row populated by BADI macro (KF3) disappears.

Strange thing is that if I instead manually enter values in KF3 and save it, its fine.

Does this look like its a problem with the BADI macro coding or is it a SAP bug ? Could not find anything on SDN or OSS. Any help would be appreciated.

Thanks

Rishi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 22, 2013 at 08:11 AM

    Hello,

    The problem should be that, you did not fill table C_T_TAB_OLD correctly - maybe you only fill table C_T_TAB in your customizing coding. Please refer to note 418801 for detailed information of implmenting a BADI macro.

    The point is:
    "
    If you want to change a value for the table, save the earlier  C_T_TAB entry in the table with the same structure, that is,  C_T_TAB_OLD. If you enter a new value into the C_T_TAB table, you  must insert a null value into the C_T_TAB_OLD table for the  corresponding rows and column number.
    "

    Hopefully this helps 😊

    Best Regards,

    Ada

    Add comment
    10|10000 characters needed characters exceeded