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 for additional payments -p0015

Former Member
0 Likes
1,138

hi experts ,

i am trying to populate data in additonal payment -infotype p0015.

i found tht in the mail screen itself i have to enter the wage type for populating data.

i have 5 wage types.

is there any bapi for uploading the data when i have to enter multiple wage type for a single employee.

regards,

aeroshil

hi experts ,

i am trying to populate data in additonal payment -infotype p0015.

i found tht in the mail screen itself i have to enter the wage type for populating data.

i have 5 wage types.

is there any bapi for uploading the data when i have to enter multiple wage type for a single employee.

regards,

aeroshil

4 REPLIES 4
Read only

Former Member
0 Likes
813

HI,

*----


Data

DATA : P0015 LIKE P0015.

DATA : RETURN LIKE BAPIRETURN1.

DATA : KEY LIKE BAPIPAKEY.

DATA : RETURNE LIKE BAPIRETURN1 .

*----


Values (Change as per Requirement)

P0015-PERNR = '1'.

P0015-BEGDA = '2061101'.

P0015-ENDDA = '2061101'.

P0015-LGART = '3075'.

P0015-PREAS = '01'.

P0015-WAERS = 'INR'.

P0015-BETRG = '2500'.

*----- First Enqu

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

NUMBER = p0015-pernr

IMPORTING

RETURN = RETURNE.

*----


Update

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0015'

NUMBER = P0015-PERNR

SUBTYPE = P0015-SUBTY

OBJECTID = P0015-OBJPS

LOCKINDICATOR = P0015-SPRPS

VALIDITYEND = P0015-ENDDA

VALIDITYBEGIN = P0015-BEGDA

RECORDNUMBER = P0015-SEQNR

RECORD = P0015

OPERATION = 'INS'

TCLAS = 'A'

DIALOG_MODE = '0'

IMPORTING

RETURN = RETURN

KEY = KEY.

IF RETURN IS NOT INITIAL.

WRITE 😕 'Error Occurred'.

ENDIF.

*----


Dequeue

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

NUMBER = P0015-PERNR

.

Regards

Sudheer

Read only

Former Member
0 Likes
813

hi again,

is there any bapi just used for additional payment creation .like bapi_addnpay_create or something

regards,

aeroshil

Read only

0 Likes
813

no there is no standard BAPi for IT0015 creation.

so make use of FM -

'HR_INFOTYPE_OPERATION'

also just to let u know all PA related BAPis are inturn calling this FM only..

so better go for this

amit

Read only

0 Likes
813

Hi Aeroshil,

The function module 'HR_INFOTYPE_OPERATION' is as good as any bapi.

Whe you pass the infotype 0015 to this function module, it would update only the additional payments information only. Try Sudhher's code and come back if you have any issues.

Regards,

Ravi