2009 Jul 24 8:26 AM
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
2009 Jul 24 9:19 AM
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.
2009 Jul 24 9:24 AM
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
2009 Aug 04 11:29 AM
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.