2007 Mar 29 2:23 PM
hi experts,
i have one problem with one field.
depending on first field ,second field should display some value.
ex:
if p_v_wagetext = ' '.
move space to it_display-bet03.
endif.
it is not working for me......
ex: IF v_wage = ' '.
CLEAR it_display-bet01.
ENDIF.
in the above two cases it is coming as 0.00(because it is cost /amount field).
instead of 0.00 i have to get space there.....or blank i need to get......
2007 Mar 29 2:25 PM
The initial value for numeric fields is by default 0.00 (For two decimal fields).
You need to move the value to a chracter type varaible in order to have spaces instead of zeros.
Regards,
Ravi
2007 Mar 29 2:25 PM
The initial value for numeric fields is by default 0.00 (For two decimal fields).
You need to move the value to a chracter type varaible in order to have spaces instead of zeros.
Regards,
Ravi
2007 Mar 29 2:26 PM
You can't assing a blank space to a currency field....Default value is 0.00 Maybe you should use a TYPE C variable instead....
Greetings,
Blag.
2007 Mar 29 2:27 PM
in my eyes not possible like you do it now.
the initial value of a numeric datatype is always 0, or 0.00.
Anyway i´d advise you to pull that value through a char variable.
data: lv_swap type char10.
if p_v_wagetext = ''
lv_swap = ''
endif.
2007 Mar 29 2:30 PM
if that value of yours in beeing printed on a Sap-Script form i´d had another idea for you.
normally it´s in your form like this: &it_display-bet01&
just change it to &it_display-bet01(I)&.
the (I) makes your script processor NOT to print the field if its value is initial.
2007 Mar 29 2:52 PM