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

Regarding SELECT-OPTIONS

Former Member
0 Likes
527

Hi,

How to create SELECT-OPTIONS without declaring TABLES stmt.

Regards,

Lakshmi

4 REPLIES 4
Read only

Former Member
0 Likes
500

Check the code below.

DATA: lv_kunnr TYPE kunnr,
          lv_vkorg TYPE vkorg,
          lv_land1 TYPE land1_gp.

SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME TITLE text-012.
SELECT-OPTIONS : so_kunnr FOR lv_kunnr OBLIGATORY,       "Customer Number
                 so_vkorg FOR lv_vkorg OBLIGATORY,           "Sales Organisation
                 so_land1 FOR lv_land1.                      "Country
SELECTION-SCREEN END OF BLOCK blk.

Regards

Read only

Former Member
0 Likes
500

i think its not possible .

regards,

vijay

Read only

Former Member
0 Likes
500

hi,

U can try like this

<b>data : v_kunnr like kna-kunnr.

select-options : s_kunnr for v_kunnr.</b>

thanks

Read only

Former Member
0 Likes
500

Hi,

You can create like this.

select-options: s_kunnr for <structure/int.Table field>

If you declare Table you have declare it using TABLES statement:

To avoid that you can declare it, without refering to a Table field , reference to a <b>already defined structure or internal table field</b>.It will accept.

Regards,

Anji