2008 Apr 24 7:01 PM
Hi all ABAPers,
I am trying to develope a BAPI using HR ABAP Macro. (Eg RP-EXP-C1-TX ,RP-EXP-C3-TY)
obviously, ABAP Macro is pretty new to me....
I have a feeling HR ABAP macro requires me to "Include" some file beforeI can use it.
Can anyone please let me know what include file I should put it on.
Any help appreciated!!!!
2008 Apr 26 7:33 PM
Hi,
before you can use it ABAP macro requires you to define it
in the program ( or one of its includes) or in table TRMAC.
In the macro definition you can use tables, files etc.
e. g. for macro
AA-BB-DD-XX
you should code in the program ( or one of its includes):
DEFINE AA-BB-DD-XX.
LOOP AT ITAB.
.....................
MOVE-CORRESPONDING ITAB TO ITAB2.
ITAB2-FIELD1 = 8.
APPEND ITAB2. " or write or upload etc.
ENDLOOP.
END-OF-DEFINITION.
Hi all ABAPers,
I am trying to develope a BAPI using HR ABAP Macro. (Eg RP-EXP-C1-TX ,RP-EXP-C3-TY)
obviously, ABAP Macro is pretty new to me....
I have a feeling HR ABAP macro requires me to "Include" some file beforeI can use it.
Can anyone please let me know what include file I should put it on.
Any help appreciated!!!!
2008 Apr 26 7:08 AM
Hi,
You need to specify the Logical database on report creation screen,
and use the GET event.
Regarding includes,
for all reports I worked with, include is nowhere needed.
-
Achyut
2008 Apr 26 7:33 PM
Hi,
before you can use it ABAP macro requires you to define it
in the program ( or one of its includes) or in table TRMAC.
In the macro definition you can use tables, files etc.
e. g. for macro
AA-BB-DD-XX
you should code in the program ( or one of its includes):
DEFINE AA-BB-DD-XX.
LOOP AT ITAB.
.....................
MOVE-CORRESPONDING ITAB TO ITAB2.
ITAB2-FIELD1 = 8.
APPEND ITAB2. " or write or upload etc.
ENDLOOP.
END-OF-DEFINITION.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |