cancel
Showing results for 
Search instead for 
Did you mean: 

Question on BADI Macros

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member187488
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Ada..that was helpful.

Rishi

Answers (0)