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

Include is not accessible

walkerist79
Participant
0 Likes
1,723

Hi,

I tried checking the code for any errors and encountered this but when I activate the code, this error does not occur.

Line 71:

And it is declared somewhere else:

DATA: lt_zvsd001 TYPE STANDARD TABLE OF zvsd001,
lx_zvsd001 TYPE zvsd001,

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
1,674

When you check the code, did you specify to check the code in the main program ?

Read only

Sandra_Rossi
Active Contributor
1,674

"statement not accessible", it's a problem where you positioned this code, like between 2 forms, etc., so you must show more code around.

Read only

walkerist79
Participant
0 Likes
1,674

sandra.rossi


CONSTANTS: lc_prod TYPE rvari_vnam VALUE 'ZVSDNI0001_001_',
lc_num1 TYPE tvarv_numb VALUE '0001',
lc_va01 TYPE char4 VALUE 'VA01',
lc_va02 TYPE char4 VALUE 'VA02',
lc_ship TYPE char6 VALUE 'shipto',
lc_sold TYPE char6 VALUE 'soldto',
DATA: lt_zvsd001 TYPE STANDARD TABLE OF zvsd001,
lx_zvsd001 TYPE zvsd001,
l_soldto TYPE kuagv-kunnr,
l_shipto TYPE kuwev-kunnr,
lt_tvarvc TYPE STANDARD TABLE OF tvarv,
lr_salesarea TYPE RANGE OF tvarv-low,
l_salesarea TYPE tvarv-low.
REFRESH: lt_zvsd001,
lt_tvarvc.
CLEAR: lx_zvsd001,
lr_salesarea,
l_salesarea.
Read only

FredericGirod
Active Contributor
0 Likes
1,674

Did you display the source of the main program or the include ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,674

REFRESH is the first "operational" statement in the lines you show. The problem must be with an operational statement before CONSTANTS.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,674

What code appears before CONSTANTS? Could you show the main include of the program, the list of all INCLUDE, and the code before the INCLUDE containing CONSTANTS?