10-18-2006 2:56 PM
Where can i find the macros i.e tcode if any and any info regarding macros.
Points will be given to all contributors.
Thanks,
Venkat Chaitanya
10-18-2006 3:03 PM
10-18-2006 3:22 PM
Hi:
Macro contains some part of source code which it will be useful for number of applications.
You can get the list of macros in the table TRMAC.
Whenever you are using the macros ,check whether you have included the relevany logical database in program attributes.
Macros can also be defined as TRMAC macros. The source code of these modules is stored in
the function section of the control table TRMAC. This code 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 macro modules should begin with a special character. The macros
defined in the control table TRMAC can be used by all reports.
Regards,
Sookshma
10-18-2006 3:45 PM
10-19-2006 5:16 AM
Hi venkat,
To add above two,You can see HR Macros in includes DBPNPCOM and DBPCHCOM.
The macros in logical database PNP (i.e for PA data) are located in Include DBPNPCOM.(which also has Include DBPNPMAC)
Macros like RP_LOWDATE_HIGHDATE,rp_read_infotype etc.
The macros in logical database PCH (i.e for Org.Mgmt)are located in Include DBPCHCOM.which has macros like
PH_SEL_ONE_OBJID,RH_SEL_KEYDATE etc.
Hope this Helps,
Regards,
Shrinivas