Friday, 19 May 2017

HR INFOTYPE Enhancement and do vary and Other ABAP real time programes



http://sapabap-techsupport.blogspot.in/2010/12/handling-user-exits-in-hr-abap.html

http://saphcmabap.blogspot.in/2013/07/user-exits-pbo-and-pai-zxpadu01-and.html

http://www.saptechnical.com/Tutorials/HRABAP/Wageamount/



PM01 - Custom Infotype Creation

Go to SM30 - V_T591A and maintain subtypes for the custom infotype.
If you want the subtype to be mandatory, then select "Subtype mandatory" from V_T582A.
Then go to V_T777D and for that specific infotype fill subtype field as SUBTY and subtype table as T591A.

User Exits - PBO and PAI (ZXPADU01) and (ZXPADU02)

The standard way to implement Process before output (PBO) - Defaulting of fields and Process After Input (PAI) is to write your code into two programs:-

ZXPADU01 - For PBO
ZXPADU02 - For PAI

In SAP FM EXIT_SAPFP50M_002 and EXIT_SAPFP50M_001 it will trigger the includes ZXPADU01 and ZXPADU02

Some code snippets that may be useful is as below. Use this to convert structure into a variable and convert it back at the end of the code

 DATAi0011 TYPE p0011.

   WHEN '0011'.      "ext bank transfers
     CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
       EXPORTING
         prelp innnn
       IMPORTING
         pnnnn i0011.


* Set endda to begda by default
       i0011-endda i0011-begda.

       CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
         EXPORTING
           pnnnn i0011
         IMPORTING
           prelp innnn.

No comments:

Post a Comment