Skip to Content
-2
Dec 23, 2020 at 01:49 PM

Problem with select statement

53 Views Last edit Dec 23, 2020 at 03:02 PM 2 rev

DATA : lv_matnr TYPE matnr,
lv_extwg TYPE extwg.


DATA: BEGIN OF TKOMP OCCURS 10.
INCLUDE STRUCTURE KOMP.
DATA: END OF TKOMP.
"DATA: tkomp TYPE komp.

SELECT SINGLE matnr extwg FROM mara INTO (lv_matnr,lv_extwg)
WHERE matnr = lv_matnr.
IF sy-subrc EQ 0.
tkomp-extwg = lv_extwg.
ENDIF.
WRITE :/ lv_extwg.

My problem is while execute this statement the output is empty. May i know why?

Please guide me to get a value for lv_extwg... by using mara and komp table.