Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MC8B Planning Type Macro Create (S076)

Former Member
0 Kudos

Hi,

I am trying to use the macro option in MC8B to create a macro that will take one lines next month's value and use on another line as this month's value. The info structure is S076 and both of the lines are key figures in the table.

I have created/recorded a macro that will move within the same period but haven't had any luck crossing periods. Has anyone used the exit EXIT_SAPMMCP6_002?

Table P1 P2 P3 P4 P5 P6

Sales 10 11 12 13 14 15

Prodn 11 12 13 14 15

Thanks for any help,

Lorrie

2 REPLIES 2

Former Member
0 Kudos

In my custom macro, I am calcuating & populating the the prod values, But when i go in display mode the production values are not saved.

This is the enhancement: MCP20002

anf this is the user-exit: EXIT_SAPMMCP6_002

If anybody has sample code. I really appreciate if you send the code.

Thanks,

Gopi.

0 Kudos

It is some time since this post but since I found a solution:

If you first copy the whole table t_tab into t_tab_old if t_tab_old is initial.

Then when you add entries to t_tab you must also add entries to t_tab_old.

Then I cleared v-e-d-f fields for the new entry in t_tab_old.

Remember to sort tables by z and c fields too.

Then it worked for me.

Regards

Roy Olav Johansen