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

initializating

Former Member
0 Likes
596

SELECT avbeln avkorg afkdat anetwr a~kunag

bposnr bfkimg bvrkme bmatnr bmvgr2 bvkorg_auft b~vtweg_auft

INTO TABLE i_ship

FROM vbrk AS a

INNER JOIN vbrp AS b

ON avbeln = bvbeln

WHERE kunag = wa_cust_ctrl-kunnr

AND fkdat >= v_inv_begin_dt AND fkdat <= v_end_dt

AND vbtyp = c_m

AND ( fkart = c_f2 OR fkart = c_zbf2 OR fkart = c_znf2 OR fkart = c_zxf2 )

in the above query how to set the intiliazation values for fkart because i am using select-options and set the all default values to the select-options.

4 REPLIES 4
Read only

Former Member
0 Likes
565

Hi,

If u want to set default values for select-options, u can use DEFAULT keyword while declaring select-options.

Generally, we initialize values in INITIALIZATION event.

Regards,

Ramya

Read only

Former Member
0 Likes
565

hi

use initialization event

fkart = x

then append fkart(because when you create using select-options then and internal table is created)

I think this should work in your requirement

Read only

Former Member
0 Likes
565

Hi

If u want to set default values for select-options, u can use keyword DEFAULT

SELECT-OPTIONS: s_fkart FOR fkart DEFAULT 'your value'

Reward If Helpfull,

Naresh.

Read only

Former Member
0 Likes
565

INITIALIZATION.

S_FKART-LOW = 'UR VALUE'.

S_FKART-HIGH = ' UR VALUE'.

APPEND S_FKART.

It works definitley

Regards,

ajay