>> DATA: lv_fert TYPE TEXT30 VALUE ‘Finished Products’,
lv_halb TYPE TEXT30 VALUE ‘Semifinished Products’,
lv_other TYPE TEXT30 VALUE ‘Other Material Type’.
SELECT SINGLE MATNR, MTART,
CASE
WHEN mtart = ‘FERT’ THEN @lv_fert
WHEN mtart = ‘HALB’ THEN @lv_halb
ELSE @lv_other
END AS material_type
FROM MARA
INTO @DATA(wa_mara)
WHERE matnr = ‘000001-002’.
WRITE:/ ‘Material Type :’, wa_mara-material_type.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments