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

bapi_basicpay_change problem

Former Member
0 Likes
662

Hi all,

I use bapi_basicpay_change to change infotype 8.

Although begda endda is initial, it gives this return message

'No data stored for 0008 in the selected period'.

but when i go to PA30, i can edit infotype 8 with same begda endda pernr and betrg.

OBJECTID,LOCKINDICATOR,RECORD NUMBER are obligatory parameters.

But i dont know what to assign and assigned '0'.

This may be the problem.

What can i assign for these parameters?

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
558

Hello,

It is returning you a error message because there is no value in BEGDA and ENDDA. You need to pass the BEGDA, ENDDA and PERNR as these are key fields and recognizes which record to modify. Please pass BEGDA and ENDDA same as the record which you want to modify in IT0008 and just modify the BETRG field value which passing.

Hope it helps.

Thanks,

Jayant

Read only

0 Likes
558

Thanks but this is not the solution.

first i create with bapi_basicpay_create.

there s a record for that begda endda and pernr.

In pa0008 lockindicator,recordnumber and objectid columns are blank.

but this bapi doesn't let me assign them ' '.

İ actually ask what to assign for them?.

Read only

0 Likes
558

Sorry I have not worked on the BAPI that you are using. I have always used HR_INFOTYPE_OPERATION for changing/creating any info type record of the employee and have always worked for me.

You can try passing the values that you get from IT0008 to the fields that you have asked for BAPI_BASICPAY_CHANGE. What this field basically means is,

LOCKINDICATOR: Indicator whether the employee has been locked for Payroll processing etc.

RECORDNUMBER: Counter which determined the record maintained for the employee. For e.g if multiple record for same info type is maintained in the same period for the employee then it will be distinguished by this parameter.

Hope it helps!

Thanks,

Jayant