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

error

Former Member
0 Likes
411

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
376

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

1 REPLY 1
Read only

Former Member
0 Likes
377

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