‎2008 Aug 28 3:28 PM
Hi All,
I have a program that will require a number of IF statements performing some basic comparisons, i.e. IF this LT that AND these GT those. Based on certain criteria, the if statement comparison values (this, that, these, those) and comparison operators (LT, AND, GT) will change. I thought a MACRO would work well, but I do not think that the comparison operators are recongnized. Is there a way to create an SAP MACRO that could handle this?
Thanks in advance for your help.
John
‎2008 Aug 28 3:32 PM
You cant fill in the conditions for a IF statement dynamically. MACRO is just a way of modularizing the source code and wont serve this purpose.
‎2008 Aug 28 3:32 PM
You cant fill in the conditions for a IF statement dynamically. MACRO is just a way of modularizing the source code and wont serve this purpose.
‎2008 Aug 28 3:36 PM
Hi Avinash,
I had a feeling that was the case, but I figured I would at least ask first. Thanks for your help.
John
‎2008 Aug 28 3:38 PM
hi John,
check the following command in SAPHelp: GENERATE SUBROUTINE POOL ...
with this you can dynamically create subroutines during program run, can be useful to you.
hope this helps
ec