cancel
Showing results for 
Search instead for 
Did you mean: 

Run default macros for the locked CVC

Former Member
0 Kudos

Hi Experts,

In data view we have a BADI macro, in this BADI macro I need to run all default macros in the data view.

In BADI macro we had code to calculate values and save the results in Ztables, after the calculation and after saving the data in Ztables I need to run default macros.

I have raised an event at the end of BADI code and based on that event I ahve scheduled a background job by using 'SAPAPO/TS_BATCH_RUN' program, but it failed and given an error the CVC is locked.

Can you please suggest me to how I can run the default macros for a locked CVC.

Thanks In advance.

Aditya.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member583013
Active Contributor
0 Kudos

Hi ,

You can call function module /SAPAPO/ADVX_MACRO_CALCULATION .To execute default macro you can set

parameter i_adv_event = 'D'.

Regards,

Sunitha

Former Member
0 Kudos

Hi Sunitha,

With the help of the above function module I have find out another FM '/SAPAPO/MSDP_MACRO_DIRECT_CAL'.

I have used '/SAPAPO/MSDP_MACRO_DIRECT_CAL'after my BADI macro.

Thank you very much.