Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help in the FM

hi folks,

I have this piece of code and trying to delimit the records on the infotype 0050. The code is executing fine and I am getting no errors when I run the code but the record is not getting delimited.

Can anyone tell me what am I missing here?

SELECT SINGLE * INTO CORRESPONDING FIELDS OF WA_0050 FROM PA0050 WHERE PERNR = REC-PERNR.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

number = WA_0050-PERNR

IMPORTING

RETURN = return.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0050'

number = wa_0050-pernr

  • subtype = subty

validityend = ztermin (delimit date -YYYYMMDD)

validitybegin = wa_0050-begda

  • recordnumber = seqnr

record = wa_0050

operation = 'LIS9'

tclas = 'A'

dialog_mode = '0'

IMPORTING

return = return

key = key

EXCEPTIONS

OTHERS = 0.

IF NOT return IS INITIAL.

CLEAR key.

EXIT.

ENDIF.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

number = WA_0050-PERNR

IMPORTING

return = return.

Any insight into this is greatly appreciated.

Thanks

Vinu

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question