on 03-09-2011 11:52 AM
Hello,
I have a problem trying to format a print field so that it displays correctly.
The field in question is a display of a percentage (KOMVD-KBETR).
I currently have the following in a Program node:
IF NOT <KO>-KBETR IS INITIAL.
WRITE <KO>-KBETR CURRENCY <KO>-KOEI1 TO GV_KBETR .
ELSE.
CLEAR GV_KBETR.
ENDIF.
GV_KBETR has to be a character field for the WRITE to work. However if I use GV_KBETR in my TEXT node it appears some of the formatting options don't work on character fields. The one in question is (<)
I created a variable GV_KBETR_DISP type KBETR and added GV_KBETR_DISP = GV_KBETR to the program node above. Thisformats fine on the smartform. However using this setup I occasionally get an error when executing the smartform which I diagnosed that the GV_KBETR_DISP = GV_KBETR statement doesn't handle the data correctly if the data has a space in it.
Has anybody got any suggestions I could use to get round this problem?
Regards
Mike.
Hi,
Why can't you use the field - KOMVD-KBETR to display ?
IF you want to map the currency to this currency format, then you can simply add it in the Gloabal defnition -> Currency / Qty fields tab.
If you do not want to display the initial value, then you can use the text formatting option
&symbol(I)& Suppress output of the initial value
Regards,
Selva K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Selva K,
Sorry for the delay in getting back to you and thanks for your reply.
I used the Currency/Quantity option and the KBETR field on the form. It did the trick.
10 points awarded.
Thanks again.
Best Regards
Mike.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.