07-03-2015 5:05 AM
Hi All,
I am passing CURR value to my smart form. i need to print that value inside ( ) . but when it is print in smartform leading and trailing spaces showing.
how i can remove those spaces print in smartform.
Thanks]
pramod
07-03-2015 5:17 AM
Hi,
While passing the value in the (), first you can pass it to a char field of the same length and condense the variable. after that you can pass it.
data: gv_curr(16) type c.
gv_curr = curr.
condense gv_curr.
Hope this helps.
07-03-2015 5:23 AM
Hi Gaurav,
after condense the C variable, is it pass to CURR variable again before print smartform?
Thanks
pramod
07-03-2015 5:36 AM
It is because smartform is reserving the space for the entire length of the field whose type is decimal.
Suggestion of Gaurav is a possible workaround. Further read is here -
http://help.sap.com/erp2005_ehp_04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm
07-03-2015 5:39 AM
HI all,
I have pass CURR value to Char Variable, Condense it, pass it again to CURR variable, print in smartform. now it is showing as below.
how i can remove highlighted spaces.. pls advice.
07-03-2015 5:42 AM
Hi Pramod,
Copy your data of CURR type into one CHAR variable and then use CONDENSE on this CHAR variable. And then print
this CHAR variable with the style defined for printing right aligned data.
Regards,
Hitesh
07-03-2015 5:48 AM
HI Hitesh,
i need to put thousand separators also, for CHAR type how i can put Separators.
Thanks
Pramod
07-03-2015 6:02 AM
07-03-2015 6:07 AM
07-03-2015 6:14 AM
07-03-2015 6:32 AM
07-03-2015 9:41 AM
Hi Pramod,
Copy your data of CURR type into one CHAR variable and then use CONDENSE on this CHAR variable.
Define CURR type field in your smart form for currency display.
Example,
Regards,
Hitesh
07-04-2015 3:30 AM