Application Development and Automation 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: 
Read only

SAP MACRO Question

Former Member
0 Likes
530

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
512

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.

3 REPLIES 3
Read only

Former Member
0 Likes
513

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.

Read only

0 Likes
512

Hi Avinash,

I had a feeling that was the case, but I figured I would at least ask first. Thanks for your help.

John

Read only

0 Likes
512

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