Tuesday, September 13, 2011

Cost Center and HR master exits and BADIs


FOR COST CENTER master

1. Determine the receiving Partner Profile to receive.
2. Put COSMAS as message type on the receiving partner (only specified partner will have the  extended sgment)
3. include YCOSMA01 as the extended idoc for COSMAS mess type basic idoc COSMAS01
4. add additional code in badi :
   implementation name: ZCOOM_CI_CSKS_IDOC
   definition name: COOM_CI_CSKS_IDOC
   interface name: IF_EX_COOM_CI_CSKS_IDOC
   implementing class: ZCL_IM_COOM_CI_CSKS_IDOC

       CODE: upload data to segment as long as cost center date is valid.

FM: MASTERIDOC_CREATE_SMD_COSMAS <--- exits can be found here



FOR HR master

1. Determine the receiving Partner Profile to receive.
2. Put HRMD_A as message type on the receiving partner (only specified partner will have the extended sgment)
3. include YHRM_AEX1 as the extended idoc for HRMD_A mess type basic idoc *****
4. add additional code in badi :
   implementation name: ZCOOM_CI_CSKS_IDOC
   definition name: COOM_CI_CSKS_IDOC
   interface name: IF_EX_COOM_CI_CSKS_IDOC
   implementing class: ZCL_IM_COOM_CI_CSKS_IDOC


FM: MASTERIDOC_CREATE_SMD_HRMD - use BADI HRALE00OUTBOUND_IDOC or EXIT_SAPLRHAL_001 EXIT_SAPLRHAL_003
in smod -> RHALE001

in this case use: here put the values:EXIT_SAPLRHAL_001 here modify segments: EXIT_SAPLRHA0_001.

take note also of :EXIT_SAPLRHA0_004

RH_MASTER_IDOC_DISTRIBUTE_HRMD -> this is where the main loop happens including badi

PROGRAM for first hr run: RHALESMD (in se38)

NOTE: idoc filtering is done only in BD64 and it includes only direct comparison of values. Programming is done in BADIs

No comments:

Post a Comment