Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

selection screen problem

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

Tags:
replied

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.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question