Skip to Content
2
Former Member
Jul 20, 2007 at 09:49 AM

table.

18 Views

Hi.

please look at this code, its giving runtime error like this 'Error in an ABAP/4 statement when processing an internal table'. how to correct this.

loop at lv_order1.

select single werks from s886 into werks where pkunag = lv_order1-cust.

if sy-subrc <> 0.

  • MESSAGE w008(ykmessage) WITH zporder-cust.

write :/ 'Customer Code', lv_order1-cust,' is not Present'.

skip.

else.

modify lv_order2 from lv_order1.

endif.

select single maktx from makt into maktx where matnr = lv_order1-matnr.

if sy-subrc <> 0.

  • MESSAGE w003(ykmessage) WITH lv_order1-matnr.

write :/ 'Material Code',lv_order1-matnr,' Not Present'.

skip.

else.

modify lv_order2 from lv_order1.

endif.

endloop.