on 06-15-2011 8:48 AM
Hello Experts,
In transaction PA40 Create Personal data there is a screen field named Nickname which is Mandatory.
I want to autopopulate this nickname field when i enter first name last name, the first name field should enter the nickname.
Is there any user-exit for such a requirement.
Thanks in advance,
Thanks & Regards,
Nikhil K.
Hi Nikihil,
You can use the User Exit that you identified but the function exit to use is EXIT_SAPFP50M_001. This is one you should use to default values in infotypes and the EXIT_SAPFP50M_002 is used to do checks and not manipulate the valuse. This is one of the right ways to do it and I have implemented it before and it works fine. You may want to call the following methods to get current Infotype values from the screen and the proposed values to be updated with.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp =
IMPORTING
pnnnn = .
and
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn =
IMPORTING
prelp = .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I am writing the code in the exit EXIT_SAPFP50M_002, the requirement is like when i write the first name last name in pa30 the nickname should get auto populated after pressing the save button but nickname being mandatory, my code will not trigger since I need to add a check when i am imputting the first name and last name
Is there any other way to full-fill this requirement.
Thanks,
Nikhil,
You need to use badi HRPAD00INFTY. There are 3 methods in there so you need to be careful where you insert your code as otherwise you may update more than once. Also you need ot include a check on transaction code as this is also run for PA30 and PA20.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use either of 2 that is user-exit of BAdI as both are called for the PA maintenance purpose.
With user exit the problem is you will not have infotype as importing parameter whereas in BAdI 'HRPAD00INFTY' you have infotype as importing paramter. In case of BAdI you can use AFTER_INPUT method for this.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.