Application Development 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: 

macros in abap hr

Former Member
0 Kudos
128

Hi Experts,

can any 1 tell me what is the meaning of the below macros:

RP_PROVIDE_FROM_LAST P0000 SPACE PN-BEGDA PN-ENDDA.

RP_PROVIDE_FROM_LAST P0006 '1' PN-BEGDA PN-ENDDA. "M01

RP_PROVIDE_FROM_LAST P0105 '9999' PN-BEGDA PN-ENDDA.

RP_PROVIDE_FROM_LAST P0002 SPACE PN-BEGDA PN-ENDDA.

RP_PROVIDE_FROM_LAST P0007 SPACE PN-BEGDA PN-ENDDA.

3 REPLIES 3

Former Member

Former Member
0 Kudos
46

Former Member
0 Kudos
46

Hi,

If you want to reuse the same set of statements more than once in a program, you can include them in a macro. For example, this can be useful for long calculations or complex WRITE statements. You can only use a macro within the program in which it is defined, and it can only be called in lines of the program following its definition.

Yes, you can get the same results without using them, but will have to explicitly put the code each time you want to perform the operation it does.

Using Macros is a Programming Utility to avoid repetitive coding in a Program.

The Macros used in HR reports tied to PNP are stored in the table TRMAC. Go into SE16 and display the Table contents.

Just refer this link for more details :

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4140b590-0201-0010-4b8a-f9367cd9...

just avoid to use this Macros utmost.

Thanks,

Sakthi C