2007 Oct 01 8:06 PM
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.
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.
2007 Oct 01 9:17 PM
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
XPADRegards
Uwe
2007 Oct 01 9:40 PM
Hello Uwe,
Thank you very much. Some how I by-passed the FM documentation and looking for Solution. Thanks once again.
Regards,
Ravi.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |