10-12-2008 9:37 AM
hi experts
i have this selection screen code:
SELECTION-SCREEN BEGIN OF BLOCK params WITH FRAME TITLE text-t01.
PARAMETERS:
p_carr LIKE zv60-carrier DEFAULT space ,
p_cd_tr LIKE zv60-cd_truck DEFAULT space .
SELECT-OPTIONS:
r_dt_tr FOR zv60-dt_tran.
SELECTION-SCREEN END OF BLOCK params.
when i am not entering values in the first two parameters it assigns 0 to them altough the default option is space. what should i do, i want that if those values are empty they will remain empty.
thanks
amit
10-12-2008 10:28 AM
hi,
check the data tpye of the selection screen fields ZV60-carrier & ZV60-cd_truck.if its integer type ,then if u don't enter any value in these parameters then by defualt it will get initialize to 0.
if u don't want 0 in these fields then change the data type of these field to character type then if u don't enter any value then by defaut it will be space.
10-12-2008 9:42 AM
hey,
check the type of zv60-carrier and zv60-cd_truck .If these are numeric or integer type this may occur.
Regards,
Midhun Abraham
10-12-2008 9:43 AM
what is the type of zv60-carrier , zv60-cd_truck . are they defined as type integer or numeric type..? if so you can't avoid that. if they are character variables then you can get the space.
10-12-2008 10:28 AM
hi,
check the data tpye of the selection screen fields ZV60-carrier & ZV60-cd_truck.if its integer type ,then if u don't enter any value in these parameters then by defualt it will get initialize to 0.
if u don't want 0 in these fields then change the data type of these field to character type then if u don't enter any value then by defaut it will be space.