Application Development and Automation 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: 
Read only

Upload HR master data - Infotype 0005 error!

Former Member
0 Likes
746

Hi all,

I want to upload HR master data with FM HR_MAINTAIN_MASTERDATA. I pass the right values and several infotypes are processed correctly.

the only infotype which is giving me problems is infotype 0005.

Every field in this infotype is filled except P0005-UANSP (leave entitlement value).

I tried passing the fieldname as Q0005-UAN01 with value and also P0005-UAN01 with value, but neither work!

It is a table type on the screen that's why we have to use 01 at the end of fieldname. the other data on the line of the table is filled correctly.

Does anyone have any idea on how to solve this?

Thanks in advance.

Marcel

Hi all,

I want to upload HR master data with FM HR_MAINTAIN_MASTERDATA. I pass the right values and several infotypes are processed correctly.

the only infotype which is giving me problems is infotype 0005.

Every field in this infotype is filled except P0005-UANSP (leave entitlement value).

I tried passing the fieldname as Q0005-UAN01 with value and also P0005-UAN01 with value, but neither work!

It is a table type on the screen that's why we have to use 01 at the end of fieldname. the other data on the line of the table is filled correctly.

Does anyone have any idea on how to solve this?

Thanks in advance.

Marcel

3 REPLIES 3
Read only

Former Member
0 Likes
663

Hi,

Take the char field of length 13 and pass the UAN01 value to char field using WRITE..TO..

and use char field to move the value into Q0005-UAN01.

Read only

0 Likes
663

Hi, this will work if i make my own batch input programm, but as i am using a standard SAP fm HR_MAINTAIN_MASTERDATA to do everything for me, i am not able to do what you describe.

I think this FM does not put P0005-UAN01 into structure Q0005-UAN01 which is used on the screen.

I already debugged the whole FM, but can't find the error..

Please help

Read only

0 Likes
663

I found during debugging that formroutine CLEAR_P0005 is called in programm MP000500 which clears the fields ending on 01, 02, 03, 04, 05 and 06.

I don't want this clear to be done, so the only option i have is making a modification i guess to avoid this routine to be called in my specific situation.

Problem solved.