Hello Gurus !!!
I would like to SORT my list with the field
WA_ITAB-VVVPR (PRICE).
WHEN i USE
Sort wa_itab-vvvpr the error syntax error shows <b>'WA_ITAB is not an Internal table'</b>
well its the Work area...
and when I mention Sort itab by VPRSV <b>it shows itab has no header line..</b> I am working with 4.7c and We must use work area not header line while defining ITAB:
PLS HELP...
DATA: i_mbew TYPE TABLE OF mbew,
wa_mbew TYPE mbew.
SELECT * FROM mbew INTO TABLE i_mbew where
BWKEY Between '4010''4020' and '4030' .
LOOP AT itab INTO wa_itab.
READ TABLE i_mbew INTO wa_mbew WITH KEY
matnr = wa_itab-artnr.
IF wa_mbew-vprsv = 'V'.
wa_itab-vvvpr = wa_mbew-verpr.
ELSE.
wa_itab-vvvpr = wa_mbew-stprs.
ENDIF.
MODIFY itab FROM wa_itab.
WRITE:/4 wa_itab-artnr,
15 wa_itab-vvvpr,
41 wa_mbew-vprsv,
53 wa_mbew-bwkey,
71 wa_mbew-peinh.
ENDLOOP.
Message was edited by: Preetham