Application Development 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: 

Getting error while executing simple selection-screen statement.

0 Kudos
309

Getting following error message "Selection sccreen statements can only be used between selection screen begin and end of selection screen"

Folowing code i have written in my include.

PROGRAM zyash_program_alv.

TYPE-POOLS: slis.

DATA : gs_vbak TYPE vbak.

selection-screen begin of block b1.

select-options : s_vbeln for gs_vbak_vbeln.

selection-screen end of block b1.

1 REPLY 1

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
262

That error message doesn't make sense. The problem is not there, but with the reference field the select-option is for.

Instead of gs_vbak_vbeln use gs_vbak-vbeln