Quantcast
Channel: SCN : Unanswered Discussions - ABAP Testing and Troubleshooting
Viewing all articles
Browse latest Browse all 430

How to share a variable across ABAP blocks in the eCATT

$
0
0

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.


Viewing all articles
Browse latest Browse all 430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>