cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to format print field on Smart Form

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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.