Skip to Content
author's profile photo Former Member
Former Member

macro programming

do you know if there is a way to call a macro dynamically...

I have thought to generate a program but this is not a good solution to mE...

Please let me know if you have any idea

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 17, 2005 at 01:57 PM

    Try update table TRMAC dynamically in your program, and call the macro from there.

    Check this weblog:

    /people/scott.barden/blog/2004/07/22/abap-breakpoints-and-system-macros

    Regards,

    Peter

    PS: If it helped, press the star button at the subject:-)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 08:24 PM

    Macros can't be dynamical, because they are used during compiling. Perhaps you can generate a coding and use GENERATE SUBROUTINE-POOL. And several ABAP-command allows dynamized codings: SELECT, ASSIGN, etc.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 03:43 PM

    Can you help us understand what you are trying to accomplish by calling a Macro dynamically? As already stated, Macros are decoded at activation time, very similar to how INCLUDES are resolved.

    If you can provide an example of what you are trying to accomplish, we should be able to come up with some ideas.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.