‎2022 Oct 19 11:05 AM
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,
‎2022 Oct 19 11:49 AM
When you check the code, did you specify to check the code in the main program ?
‎2022 Oct 19 12:18 PM
"statement not accessible", it's a problem where you positioned this code, like between 2 forms, etc., so you must show more code around.
‎2022 Oct 19 1:10 PM
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.
‎2022 Oct 19 1:22 PM
Did you display the source of the main program or the include ?
‎2022 Oct 19 2:03 PM
REFRESH is the first "operational" statement in the lines you show. The problem must be with an operational statement before CONSTANTS.
‎2022 Oct 20 8:27 AM
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?