Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP for Table Class Interface to read Variable Values

Former Member
0 Likes
695

Hi SDN Community,

Is there any ABAP that can be used to derive the variable value, via the Table Class Interface.

I have not found any documentation which shows an example to read a variable on Fiscal Year Period, ZP_FPER using table class interface.

Can you please advise if this is possible

1 REPLY 1
Read only

Former Member
0 Likes
387

Solution:

CALL METHOD SUPER->INIT

EXPORTING

I_R_PAGE = i_r_page

I_R_DATA_SET = i_r_data_set

I_R_ITEM = i_r_item

I_R_GRID = i_r_grid.

data: txt_symbols_set type RRWS_S_TEXT_SYMBOLS.

break-point.

data:

ld_fiscper type RRXSYMVALUE.

*you should first check that I_R_DATA_SET actually has values.

READ TABLE I_R_DATA_SET->N_SX_VERSION_20A_1-TXT_SYMBOLS WITH KEY

SYM_NAME = 'VARVALUE_ZP_FPER' INTO txt_symbols_set.

ld_fiscper = txt_symbols_set-SYM_VALUE.