‎2008 Apr 23 9:02 AM
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.
‎2008 Apr 23 9:05 AM
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
‎2008 Apr 23 9:15 AM
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
‎2008 Apr 23 9:18 AM
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.
‎2008 Apr 23 9:23 AM
INITIALIZATION.
S_FKART-LOW = 'UR VALUE'.
S_FKART-HIGH = ' UR VALUE'.
APPEND S_FKART.
It works definitley
Regards,
ajay