SELECT SINGLE FROM I_ProductPlantBasic
FIELDS product, plant, \_product\_text-language , \_product\_text-productname , isbatchmanagementrequired
WHERE \_product\_text-language = @sy-langu
INTO @DATA(product) .
SELECT FROM I_ProductPlantBasic
FIELDS product, plant, \_product\_text-language , \_product\_text-productname , isbatchmanagementrequired
WHERE \_product\_text-language = @sy-langu
INTO TABLE @DATA(products) UP TO 2 ROWS .
DATA(product_json_payload) = /ui2/cl_json=>serialize( EXPORTING data = product ) .
DATA(products_json_payload) = /ui2/cl_json=>serialize( EXPORTING data = products ) .
cl_demo_output=>write_data( product ) .
cl_demo_output=>write_json( json = product_json_payload ).
cl_demo_output=>write_data( products ) .
cl_demo_output=>write_json( json = products_json_payload ).
cl_demo_output=>display( ) .
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Manager
Contact : serkurumsal@yandex.com
0 Comments