‎2007 Jul 05 3:49 PM
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.
‎2007 Jul 05 4:01 PM
data : v_selno(15) type n.
select-options : v_selno for v_selno.
‎2007 Jul 05 4:01 PM
data : v_selno(15) type n.
select-options : v_selno for v_selno.
‎2007 Jul 05 4:03 PM
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.
‎2007 Jul 05 4:27 PM
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