05-18-2009 4:07 PM
Hi,
I am Using HR_INFOTYPE_OPERATION FM to modify records in infotype 00014 for BETRG filed using the operation 'MOD'. But i am getting an error
EPG 145Amount for wage type 1480 is too great (table T511).
05-18-2009 4:38 PM
Hi,
First read the data from PA0014 using function moduule
HR_READ_INFOTYPE
and read active record from the internal table that is returned by the above FM into one structure (work area) and changes the values you want to change and pass it to FM HR_INFOTYPE_OPERATION
If you are creating a new record you should give operation'INS'
for FM HR_INFOTYPE_OPERATION with all the values to structure and pass that structure to FM HR_INFOTYPE_OPERATION
Regards
Krishna
05-18-2009 6:27 PM
Well this looks to be a valid error to me.
What wagetype value you are passing to the Function module.
Goto Sm31 and T511. Find maintainance dialog select V_T511. Enter MOLGA. Now select Wage type 1480. and click on details button. Here you will be able to see the Min and Max value permitted for WT.
Compare it to what you are passing to FM.
Hope this solves.
05-18-2009 6:54 PM
Hi,
Check if in table T511 there's not a limit defined for the Wage Type amount (use view V_T511).
You can even take care to the field BETRG you're passing to the FM:
Hope it helps,
R.