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

Help to use macro

Former Member
0 Likes
572

hi,

i have macro like below how can i use it?

DEFINE DEc_RANGE.

  DATA: L_DATE LIKE SY-DATUM.
  CALL FUNCTION 'BKK_ADD_MONTH_TO_DATE'
    EXPORTING
      MONTHS  = '-3'
      OLDDATE = SY-DATUM
    IMPORTING
      NEWDATE = L_DATE.
  G_MONTHS-SIGN = 'I'.
  G_MONTHS-OPTION = 'EQ'.
  G_MONTHS-LOW = L_DATE(6).
  G_MONTHS-HIGH = SY-DATUM(6).
  APPEND G_MONTHS.

END-OF-DEFINITION.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
545

just call as :

ranges : G_MONTHS for sy-datum.

DEc_RANGE .

and your G_MONTHS will be filled .

3 REPLIES 3
Read only

Former Member
0 Likes
546

just call as :

ranges : G_MONTHS for sy-datum.

DEc_RANGE .

and your G_MONTHS will be filled .

Read only

Former Member
0 Likes
545

Hi,

i will explain.

DEc_RANGE is the macro name

Just to reduce reusability of code macro is used

you have to define your code in

define <macroname>.

***code here


end-of-definition.

call your macro by just calling the macro name.

<macroname>.

Regards,

V.Balaji

Reward if usefull

Read only

Former Member
0 Likes
545