Skip to Content
0
Former Member
Feb 21, 2009 at 02:08 PM

ABAP Help

12 Views

hi

when i run the below code in debug mode .. it executed smothly but we i directly execute it . it shows run time error . kindly help me

REPORT Z_ITAB.

DATA var TYPE spfli.

DATA: BEGIN OF Show,

carrid(5) TYPE c,

connid TYPE i,

END OF Show.

DATA etab LIKE STANDARD TABLE OF Show WITH NON-UNIQUE KEY carrid.

SELECT * FROM spfli INTO CORRESPONDING FIELDS OF var

WHERE carrid EQ 'AA'.

Show-carrid = var-carrid.

Show-connid = var-connid.

APPEND Show TO etab.

LOOP AT etab INTO Show.

WRITE: / Show-carrid , Show-connid.

ENDLOOP.

ENDSELECT.