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

HR ABAP Macro include files?

Former Member
0 Likes
482

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!!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

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!!!!

2 REPLIES 2
Read only

Former Member
0 Likes
436

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

Read only

Former Member
0 Likes
437

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.