To delete a row from an internal table, use:

int SAP_API ItDelLine(ITAB_H itab, unsigned line);

The corresponding ABAP operation is Delete...

This function is defined in SAPITAB.H.

Return Values:

  • returns 0, if successful
  • returns >0

row does not exist

  • returns <0

other error (no space available for index, etc.)

Function Parameters:

  • itab

handle of an internal table

  • line

rom number of the line to be deleted