‎2008 Mar 25 2:36 PM
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
‎2008 Mar 25 2:41 PM
just call as :
ranges : G_MONTHS for sy-datum.
DEc_RANGE .
and your G_MONTHS will be filled .
‎2008 Mar 25 2:41 PM
just call as :
ranges : G_MONTHS for sy-datum.
DEc_RANGE .
and your G_MONTHS will be filled .
‎2008 Mar 25 2:42 PM
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
‎2008 Mar 25 2:43 PM
Hi,
Please refer link below:
http://help.sap.com/saphelp_47x200/helpdata/en/a5/631f0f43a211d189410000e829fbbd/frameset.htm
Thanks,
Sriram Ponna.