Skip to Content
0
Former Member
Jul 22, 2009 at 02:14 AM

Modify statement is not working

26 Views

Hi

Modify statement is not working in below code.

Data is moved from i_headertext-bktxt TO i_output_tab-text.

Kindly help me out

SELECT mblnr mjahr bktxt FROM mkpf
  INTO CORRESPONDING FIELDS OF TABLE i_headertext
  FOR ALL ENTRIES IN i_stock
  WHERE mblnr EQ i_stock-mblnr
  and mjahr EQ i_stock-mjahr.

if sy-subrc = 0.
loop at I_stock.
      READ TABLE i_headertext WITH KEY mblnr = i_stock-mblnr
                                       mjahr = i_stock-mjahr.
        MOVE: i_headertext-bktxt TO i_output_tab-text.
        modify table i_output_tab TRANSPORTING text .
endloop.
Endif.

Thanks

Kumar