Skip to Content
0
Dec 26, 2007 at 11:04 AM

BAPI

19 Views

hi guru's ,

i m using BAPI 'BAPI_ABSENCE_CREATE' for updating absence data and BAPI 'BAPI_TRANSACTION_COMMIT' for message, but problem is that i m getting msg personel no is saved but not reflected in table and also not displaying absence data in PA61 , can anybody tell me what should i do ?

i m sending code also ...

CALL FUNCTION 'BAPI_ABSENCE_CREATE' DESTINATION 'NONE'

EXPORTING

EMPLOYEENUMBER = WA_TEMP-PERNR

VALIDITYBEGIN = WA_TEMP-begda

VALIDITYEND = WA_TEMP-ENDDA

START = WA_TEMP-BEGUZ

END = WA_TEMP-ENDUZ

ABSENCETYPE = WA_TEMP-AWART

  • ABSENCEHOURS =

  • NOCOMMIT =

IMPORTING

RETURN = wa_RETURN

  • EMPLOYEENUMBER = W_PERNR

  • SUBTYPE =

  • OBJECTID =

  • LOCKINDICATOR =

  • VALIDITYBEGIN =

  • VALIDITYEND =

  • RECORDNUMBER =

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'NONE'

EXPORTING

WAIT = 'X'

IMPORTING

RETURN = wa_RETURN

.

IF SY-SUBRC = 0.

WRITE: / 'PERSONAL NO.' , WA_TEMP-PERNR , 'SAVED' .

ENDIF.

LOOP AT IT_RETURN INTO WA_RETURN.

WRITE: / WA_RETURN-MESSAGE.

ENDLOOP.

thanks in advance.

its urgent.