on 10-20-2008 11:26 AM
Hi all,
i have a requirement that i need to get a constant value in a infotype field based on two conditions.
so i tried to enhance the infotype from pm01.but in which module pool include, i need to write the code.
regards,
kalyan
I think is better you use BADI for hr infotypes HRPAD00INFTY. You could check conditions and assign values.
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now, I haven't any example for this BADI, but you could implement User-Exits too. Create and activate it with tx. cmod/smod, Include ZXPADU02:
data: p0061 type p0061.
* Check the infotype
if innnn-infty = '0061'.
* Parse it to a especific structure.
call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
exporting
prelp = innnn
importing
pnnnn = p0061.
* Do validations, changes,...
if p0061-ptpar < 100.
p0061-nisse = 'XXXXXXXXXXXXX'.
endif.
* Export to the general structure again
call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
exporting
prelp = innnn
importing
pnnnn = p0061.
endif.
I hope this example helps you.
Best regards,
Pablo
Hi,
Do not enhance the IT for just value defaulting purpose. Enhancement is done if you want to add new customer specific fields.
Implement user exit for this purpose.
rgds...Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for which infotype u want to do
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
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.