on 05-06-2014 8:56 AM
Dear Macro Experts
I wrote this macro
IF KF2 in period 4
>
Average of KF2 from period 1 to 3,
Action
POP UP a message individually for each period beginning period 4.
ENDIF
That works
but here is what I experience
I need to click on the information message box a dozen times before I can save the value in KF2 for period 4
I need to click on the information message box a dozen times even though the value is only entered in period 4.
What is wrong and how to fix this ?
e.g. in the above case since I ONLY entered a value in period 4, the message box should vanish on one click of check mark. Why do I need to click 10 times ?
Thanks
BS
Hi BS, there must be some loop in your macro. You check the steps in your macro first, and make sure the step is looped only once. If you're interested in debugging, you can create a .txt file with below text, and drag it onto the popup dialog box, then you'll enter debugger by confirming the information box, where you can see where the loop comes
---------------------------------------
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
----------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow. I pretended to figure out but I can't.
Another learning after a decade that dragging this text file to a dialog box starts debugger. So much hidden knowledge out there. Much un-SAP like thingy. May I ask how did you manage to learn all this? by reading help documentation ? or attending secret "SAP Internal" privileged training classes not available to most ?
My syntax is what I wrote above. I have to click so many remaining number of periods in the future time series even though the condition above is not met for remaining periods. e.g. period 5, 6, 7......but I think I can add the IS_BLANK and ELSE statements too. The semantic check says nothing is wrong with this macro!
Thanks
BS
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.