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

TABLES Command and SELECT-OPTION?

Former Member
0 Likes
365

Anybody know how to use a select-option without a tables command?

Thank-You.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
338

Hello,



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.


If useful reward.

Regards,

Vasanth

2 REPLIES 2
Read only

Former Member
0 Likes
338

If i am getting you right then u want to use SELECT-OPTIONS like PARAMETERS?

USE

SELECT-OPTIONS : a for xyz-fieldname NO INTERVALS.

but if u want to specify something else @ xyz-fieldname then decalre it on the top.

using a TYPE CHAR002

and

SELECT-OPTIONS : s_a for a.

hope this will help

Ashwan

Read only

Former Member
0 Likes
339

Hello,



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.


If useful reward.

Regards,

Vasanth