Skip to Content

Macro Explanation

Dear Experts,

Can anyone explain below macro.

DEFINE get_value.

call method of excel 'Cells' = cell


#1 = &1 "v_rcount

#2 = &2. "2

get property of cell 'Value' = &3. " value from the table .

if not &3 is initial and &4 = 'T'. "e_file

&4 = 'F'.



I never used Macros, Please explain in detail.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Mar 21, 2008 at 07:51 PM

    Hello Cris

    Macros are used to "abbreviate" coding. The repetitive part of the coding is defined in the macro. Below is and example of filling the itab of excluded functions for an ALV toolbar:

    DATA: lt_excltab   TYPE ui_functions.
      APPEND cl_gui_alv_grid=>mc_func_loc_info TO lt_excltab.
      APPEND cl_gui_alv_grid=>mc_func_loc_graph TO lt_excltab.
      APPEND cl_gui_alv_grid=>...                          TO lt_excltab.

    Use of macro:

    DEFINE mac_exclude_function.
      APPEND &1 TO lt_excltab.
    mac_exclude_function: cl_gui_alv_grid=>mc_func_loc_info,



    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.