cancel
Showing results for 
Search instead for 
Did you mean: 

Modify infotype

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

pablo_marn
Active Participant
0 Kudos

I think is better you use BADI for hr infotypes HRPAD00INFTY. You could check conditions and assign values.

Best regards

Former Member
0 Kudos

Thanks a lot.

but can you explain this in details how to do it through BADI .

it could be very helpful for me.

pablo_marn
Active Participant
0 Kudos

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

Former Member
0 Kudos

Thnkq very much

Former Member
0 Kudos

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

sikindar_a
Active Contributor
0 Kudos

for which infotype u want to do

Former Member
0 Kudos

for infotype 0169.

i need to hard code a value for the field