Skip to Content
0
Former Member
Aug 21, 2007 at 02:14 PM

using a loop end loop

14 Views

I have the following code and it doens't like my loop statement. it says it can be converted to line of t_ord_data

DATA: BEGIN OF TY_ORD_TYPE_DATA,

SALES_ORDER LIKE /BIC/AZOS_O5900-DOC_NUMBER,

SALES_ITEM LIKE /BIC/AZOS_O5900-S_ORD_ITEM,

SCHED_LINE LIKE /BIC/AZOS_O5900-SCHED_LINE,

SALE_DOC_TYPE LIKE /BIC/AZOS_O5900-DOC_TYPE,

REF_DOC LIKE /BIC/AZOS_O5900-REFER_DOC,

REF_ITEM LIKE /BIC/AZOS_O5900-REFER_ITM,

REQ_DATE LIKE /BIC/AZOS_O5900-REQ_DATE,

ZRELSDQTY LIKE /BIC/AZOS_O5900-/BIC/ZRELSDQTY,

ZSHIPQTY LIKE /BIC/AZOS_O5900-/BIC/ZSHIPQTY,

ZAVAILQTY LIKE /BIC/AZOS_O5900-/BIC/ZAVAILQTY,

ZTLTVALUE LIKE /BIC/AZOS_O5900-/BIC/ZTLTVALUE,

ZSHIPNOS LIKE /BIC/AZOS_O5900-/BIC/ZSHIPNOS,

END OF TY_ORD_TYPE_DATA.

DATA: T_ORD_DATA LIKE STANDARD TABLE OF TY_ORD_TYPE_DATA,

LS_DATA like line of T_ORD_DATA.

DATA: T_ZTAM_DATA LIKE STANDARD TABLE OF TY_ORD_TYPE_DATA,

LS_ZTAM_DATA like line of T_ZTAM_DATA .

LOOP AT T_ORD_DATA INTO T_ZTAM_DATA.

DELETE T_ORD_DATA WHERE DOC_TYPE NE 'ZLZM'.

END LOOP.