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: 

HR user exit....PBAS0001 not triggering

Former Member
0 Kudos

Hi Experts,

I am trying to default values for General Benefit Infotype by using transaction PA30, also using the user exit for this is PBAS0001 PA: Pers.Admin./Recruitment: Default values and checks. I have done everything from my side like activation of project, assignment of user exit , its activation and break point ( hard code and dynamic). But It is not triggering while display mode.

I want to know when will the transaction trigger this exit ( only display or create or change). Please share your experience if you come across.

Regards,

Ravi.

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Ravi

The fm documentation says:

"The function exit EXIT_SAPFP50M_001 allows you to enter Defaultvalues in

the single screen when you are <b>creating </b>or <b>copying </b>infotypes."

Thus, in display mode you should never pass the exit.

Following is the entire documentation:

 FU EXIT_SAPFP50M_001

 ____________________________________________________

 Short Text

     Customer Default Values for Personnel Administration and Recruitment

 Functionality

     The function exit EXIT_SAPFP50M_001 allows you to enter Defaultvalues in
     the single screen when you are creating or copying infotypes.

     The following are available for determining these default values:

     o   TCLAS    the transaction class (A= employees, B= applicants)

     o   INNNN    the infotype created

     o   IPSYST   workfields for dialog control and selected fields for
         organizational assignment (IT 0001) that are valid on the start date
         of the current record (INNNN-BEGDA).

     o   I001P    Table T001P (Personnel Subareas) determined with the
         current organizational assignment (IPSYST-WERKS, IPSYST-BTRTL),

     o   I503     Table T503 (Employee Subgroups) determined with the current
         organizational assignment (IPSYST-PERSG, IPSYST-PERSK).

     o   IPREF    Assignment values for HR objects

     Read the field documentation for structure PSYST.

     Based on this data, the additional data can be returned to parameter
     INNNN.

     Error messages or exceptions are not provided for in this function exit.

     Note the following:

     o   The function exit is executed when you Create or Copy a record.

     o   As long as the enhancement is active, the function exit is called up
         for every infotype, as the following steps are necessary:

         -   declaration of structure with desired infotype structure (I0008
             LIKE P0008)

         -   infotype query in CASE statement

         -   temporary storage of transfer parameter INNNN in infotype
             structure

         -   an example of the coding for this function exit is stored in
             include LXPADF01.

     o   You can use function module HR_READ_INFOTYPE to read further
         infotype data.

 Parameters

     TCLAS
     INNNN
     IPSYST
     I001P
     I503
     INNNN
     IPREF

 Exceptions

 Function Group

     XPAD

Regards

Uwe

0 Kudos

Hello Uwe,

Thank you very much. Some how I by-passed the FM documentation and looking for Solution. Thanks once again.

Regards,

Ravi.