2008 Jun 27 6:29 AM
Hi all,
Anyone have some idea on HR Macros. What statements
are used for it.
suggest.
Thanks
Sanket sethi
Hi all,
Anyone have some idea on HR Macros. What statements
are used for it.
suggest.
Thanks
Sanket sethi
2008 Jun 27 6:31 AM
HI,
Like subroutines and function modules, macro modules can be used to modularize programs. Macro modules are frequently used in HR.
These macros are defined in program SAPDBPNP (include DBPNPMAC) with the keyword DEFINE. They can be used in any program that uses the logical database PNP.
If you want to use these macros in reports that do not use the logical database PNP, you must include program DBPNPMAC with the keyword INCLUDE.
You can also define your own macros. In accordance with the naming convention, the first two letters stand for the application.
Some macros are also stored in the Macros in ABAP Programs table (TRMAC)
Example of Macros are
RP_PROVIDE_FROM_LAST which is available in the include DBPNPMAC
RP-PROVIDE-FROM-FRST which is available in table TRMAC
Regards,
VIjay
2008 Jun 27 6:34 AM
Hi Sanket,
Macro Modules
Definition
An module that can be called within an ABAP program.
Use
Like subprograms and function modules, macro modules are a means of presenting programs in modular form. Macro modules (macros) are used often in the Human Resources application component (HR).
Defining and Calling Modules
Two options are provided:
u2022 Macros can be defined in reports or includes using the ABAP command DEFINE. A macro can be used within a report or within an include. If a macro is used in a report, and the macro is defined in an include with the DEFINE command, the include must be integrated.
Macros have the following advantages:
If a macro is changed, each report using this macro is automatically regenerated when it is executed.
u2022 Macros can also be defined as RMAC macros. The source code of these modules is stored in the function section of the control table TRMAC (Macros in ABAP Programs). The coding is grouped under a specific name in the table key.
According to conventions, the first two letters of the name must stand for the application. The rest of the name is freely definable.
Customer-specific RMAC modules should begin with a special character.
The macros defined in the control table TRMAC can be used by all reports.
When you change a RMAC macro in the table TRMAC, the reports that use this macro are not regenerated automatically. You must regenerate them manually.
Some of thr Macros are...
RP-APP-DEL-RECTK ---> DEL MATCHCODE FOR RECURRING TASK
RP-APP-GET-RECTK ---> GET MATCHCODE FOR RECURRING TASK
RP-CHECK-PASSWORD ---> PASSWORD CHECK
RP-APP-VALID-STATUS ---> VALID STATUS of applicant
RP-SEL-APP-INIT ---> APPLICANT IN PROCESSINGBest regards,
raam
2008 Jun 27 6:38 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |