cancel
Showing results for 
Search instead for 
Did you mean: 

Column select in BADI Macros

emani_raghavendra
Participant
0 Kudos

Hello Experts,

We have a requirement to develop a BADI Macro, which gets triggered for only the selected columns in the interactive planning book. We have develeoped the macro and logic and everything but we are unable to capture the selected columns by the user. In the macro we have functions like , Column marked, Marked columns , etc. So we tried using the corresponding FM , /sapapo/ADVF_Marked_Columns, etc but these FM are not returning the selected column dates. Have anyone tried this / implemeted this ? Any suggestions will be very much useful.

Thanks again,

Regards,

Venkat

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187488
Active Contributor
0 Kudos

Hi,

I think you should check whether a column is market outside your BADI macro. e.g., you use COLUM_MARKED() function to check if a column is marked, if yes, put 1 to a KF and if not, put 0 to the KF, then in your BADI macro, you check the value of the KF, and calculate for only those columns where KF =1.

Another option would be create a user function, from macro book's menu -> edit -> edit user function ... e.g. I created a user function Z_ADA_TEST and put it in  below macro:

Of course in this case you have to create the Z- function module by yourself.

Best Regards,
Ada