2007 Feb 02 7:28 AM
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 again,
is there any bapi just used for additional payment creation .like bapi_addnpay_create or something
regards,
aeroshil
2007 Feb 02 7:32 AM
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
2007 Feb 02 8:26 AM
hi again,
is there any bapi just used for additional payment creation .like bapi_addnpay_create or something
regards,
aeroshil
2007 Feb 02 8:30 AM
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
2007 Feb 02 8:30 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |