Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Creating a macro for SNP in Planning book

Hi Experts,

I have created a Table, a function module and need to create a macro.

Functionality is like this :-

1. Macro will call the function module passing a value ACT_RESOURCE.

2. Then Function module will check the table for that RESOURCE if it gets then returns some value else returns 0.

Now i want to fetch the value returned by function module in macro and multiply the entire row of a key fig. with that value and display the new calculated value again in the same row.

Please HELP !!!

Any pointer on this topic will be help full.

Thanks & Regards

Satyam

Former Member
Former Member replied

Hi Satyam.

You will need to use a User Exit macro.

tcode : SMOD and exit : APODM005.

Also follow the details on note 418801.

You could then store the returned value in a key figure. Then you could use a standard macro to multiply one key figure with the other into a result key figure or auxiliary row, finally you can copy this result key figure to the original key figure.

hope this helps.

M

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question