REPORT ztest_read_so_characteristic.

 

DATA: lit_confi TYPE STANDARD TABLE OF conf_out,

lwa_confi TYPE conf_out.

DATA:l_cuobj TYPE vbap-cuobj.

 

SELECT SINGLE cuobj

FROM vbap

INTO l_cuobj

WHERE vbeln = '0640001056'

AND posnr = '000300'.

CALL FUNCTION 'VC_I_GET_CONFIGURATION'

EXPORTING

instance = l_cuobj

language = sy-langu

TABLES

configuration = lit_confi

EXCEPTIONS

instance_not_found = 1

internal_error = 2

no_class_allocation = 3

instance_not_valid = 4

OTHERS = 5.

 

READ TABLE lit_confi INTO lwa_confi WITH KEY atnam = 'WIF_9000_ACLTT_A'.

IF sy-subrc = 0.

WRITE: lwa_confi-atwrt.

ENDIF.