EXIT_SAPMMCP6_002
Hi,
I' m working on exit EXIT_SAPMMCP6_002 for trx. MC94 for executing user macro.
When I run trx. MC94 and modify the table control doing the calculates that perform the exit and then press button SAVE and then run trx. again with the same planning type and document it doesn´t save anything...
Anyone knows why happens?
The table T_TAB contains the values i want to save...no rows or columns where added, so they are the same before and after exectuting the exit...
Thanks,
Marie
Hi,
Yes its been tirggered..the problem is that after executing the macro and modifying the screen i press button save and it doesn´t save the modifications.
But if i modify it manually (not executing the exit) and press save, it save the values ok.
Similar Messages
-
MC94 - How to use the User exit EXIT_SAPMMCP6_002 to develop custom macros
Were implementing macros with the user exit EXIT_SAPMMCP6_002, but we see that the parameter table T_TAB doesnt contain all lines and columns viewed in the grid of transaction MC94 (Change Plan Consistent Planning).
Nevertheless, files and columns that are contained, arent shown in the order that they are visualized in the screen (MC94 - program SAPLMCPA screen 707).
Does somebody know how to update the grid visualized in that screen?
Thanks in advance for any help!Hi,
Have you any luck with this yet. I am actually looking to do something similar but on the planning level.
To get the detailed level, you can try the following:
get the lines for this macro
CLEAR I_LINES. REFRESH I_LINES.
LOOP AT T_LINES WHERE KRIT1 = I_STRAT-AKT_PLOBJ
AND FLGIS IS INITIAL
AND STRUL = 'X'.
I_LINES = T_LINES.
APPEND I_LINES.
ENDLOOP.
get columns for this macro
LOOP AT T_COLS.
LOOP AT I_LINES.
READ TABLE T_TAB WITH KEY Z = I_LINES-LINE
C = T_COLS-COLUMN
BINARY SEARCH.
IF SY-SUBRC EQ 0.
I_COLS = T_COLS.
APPEND I_COLS.
ENDIF.
ENDLOOP.
ENDLOOP.
SORT I_COLS.
DELETE ADJACENT DUPLICATES FROM I_COLS.
this should pull the values that are visually seen on the screen.
What i need is the values for ALL levels? I cant seem to figure this out.
Anyways, lemme know if the above was helpful. -
EXIT_SAPMMCP6_002 S997 not updated.
HI,
I' m working on exit EXIT_SAPMMCP6_002 for trx. MC94 for executing user macro.
When I run trx. MC94 and modify the table control doing the calculates that perform the exit and then press button SAVE and then run trx. again with the same planning type and document it doesn´t save anything...
Anyone knows why happens?
The table T_TAB contains the values i want to save...no rows or columns where added, so they are the same before and after exectuting the exit......Hi Jyothi,
Now i am facing the same issue. Please let me know how you resolved it.
Thanks.
Regards,
Chaitanya. -
MC8B Planning Type Macro Create (S076)
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,
LorrieIt 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 -
Hi,
I'm using the user exit EXIT_SAPMMCP6_002 in MC94 to copy original forecast data into consumed quantities.
The user gives me data in Weeks and months and subsequently allows me to copy data too in weeks and months.
However I want data to be copied as per technical periods and not in weeks and months as its giving inconsistent results when planning types are run one after another, for example when I run planning type having months in display and when i run the macro the data seems to be fine in display but when we run another planning type having all weeks the same data copied previously is split up separately in corresponding weeks of the months earlier copied, and is incorrect though overall sum is correct.
To resolve this I need a way to copy data into appropriate periods instead of months and weeks which the exit currently allows.
Regards,
KartikHi,
Yes its been tirggered..the problem is that after executing the macro and modifying the screen i press button save and it doesn´t save the modifications.
But if i modify it manually (not executing the exit) and press save, it save the values ok.
Maybe you are looking for
-
My ipod touch 3 generation willnot change orientation for any apps except movie apps. I purchased this One from a friend and my previous Ipod touch changed with no problem. The orientation lock is not on either...., has anyone had a similar experienc
-
How to find user who loaded the procs in DB
Hi guys how to find user who loaded procs in database ..and the date... is there anyway.. i tried to look at all_objects..but it didnot workout.. thanks
-
Creation of Purchase requisition with reference to Contract documents
Dear All I am not able to create the Purchase requisition with reference to Contract documents, in outline agreement field if I enter the contract document number which is already existing it is not copying the details, again I have to enter all the
-
On 3rd replacement! help with ongoing issues
I am desperate! I got my first 3gs in May and by July I took it to a Genius Bar becuase of battery issues. They replaced it immediately. That phone worked fine at first then it started to freeze. It would turn off randomly and I wouldn't be able to g
-
HI, Is there any transaction code where I can get the Statistics of Messages exchanged in XI on daily basis, for a month or more. We have more than 50,000 messages being exchanged daily. Its hard to find the statistics in SXMB_MONI...So look