Hello,
I have following eCATT script:
ABAP. DATA: lt_tab1 TYPE STANDARD TABLE OF tab512. CALL METHOD class1=>method1 EXPORTING i_infoprov = V_OBJ_NAME IMPORTING e_t_data = lt_tab1. ENDABAP. SAPGUI ( SAPGUI_1 ). ABAP. DATA lv_cnt TYPE int4. DESCRIBE TABLE lt_tab1 LINES lv_cnt. WRITE:/ 'Table 1: ', lv_cnt , ' rows'. ENDABAP.
The problem is that variable lt_tab1 (that is defined in 1st ABAP block) is not accessible within 2nd ABAP block. The error is as follows:
Field "LT_TAB1" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
Is there any way to share the variable across ABAP blocks in eCATT script?
Thanks in advance.