‎2008 Apr 08 6:14 AM
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = it_per_fast-pernr
IMPORTING
return = l_ret4.
IF l_ret4 IS INITIAL.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = it_per_fast-infty
number = it_per_fast-pernr
subtype = it_per_fast-subty
validityend =
validitybegin = WA_2002-begda
RECORDNUMBER =
record = it_per_fast
operation = 'INS'
nocommit = ' '
IMPORTING
return = rcode4
key = itab4.
ENDIF.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = return.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = it_per_fast-pernr.
Followinf error is coming.
Runtime error TABLE_INVALID_INDEX has occurred
Wht could be the reason.Plz guide
‎2008 Apr 08 6:24 AM
Hi,
Just check if the internal tables that u have used (to assign the values ) are with header line or not.
If they are without header line then you will have to declare a work area for each table and then put a loop at interal table or read the internal table into work area
Then use those work areas instead of internal tables to refer to table.
Hope it helps
Regards,
Gaurav
‎2008 Apr 08 6:24 AM
Hi,
Just check if the internal tables that u have used (to assign the values ) are with header line or not.
If they are without header line then you will have to declare a work area for each table and then put a loop at interal table or read the internal table into work area
Then use those work areas instead of internal tables to refer to table.
Hope it helps
Regards,
Gaurav