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

Reg - Select Options

Former Member
0 Likes
441

Hi,

I have to convert parameter declaration to Select-Option for following case.\

In Parameter - P_SelNo Type N.

In Select-option : I have to declare but how to do that .

Here N is Numeric text.

Is there any table fields by which u can refer that in selectoption.

Plz help me,

Thanks & regards,

A.Thuyavan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
415
data : v_selno(15) type n.

select-options : v_selno for v_selno.
3 REPLIES 3
Read only

Former Member
0 Likes
416
data : v_selno(15) type n.

select-options : v_selno for v_selno.
Read only

Former Member
0 Likes
415

You can do a where used to find a data element with a type n or create and reference a variable locally in your program as follows:

DATA: g_selno TYPE n.

SELECTION-SCREEN: BEGIN OF BLOCK b1.

SELECT-OPTIONS: s_selno FOR g_selno,

SELECTION-SCREEN: END OF BLOCK b1.

Read only

Former Member
0 Likes
415

Hi,

Please check this code :

SELECT-OPTIONS : so_v_no FOR lfa1-lifnr,

so_c_cod FOR bseg-bukrs,

so_p_typ FOR ekko-bsart,

so_qt_op FOR eket-wemng.

this can help you, here bseg, ekko, eket are tables and bukrs, bsart, wemng are fields exists in the table.

Reward points, if helpful,

Sandeep Kaushik