on 04-20-2011 11:43 AM
Hi Experts,
I am trying to print double quotes " in the smart form which is converting to # at the time of printing.
The data is coming from a BADI. So I cannot make use of Include symbols in the form.
Kindly suggest that how can I retain " at the time of printing.
Thanks.
Regards,
Megha
Did you check the value in debugging mode?
If it shows # inside the smartform in debugging mode then include below code before displaying the variable in your smartform.
that is replace # with " it will work out.
If in debugging mode, double code is displayed correctly then check the raw format of your spool, I guess it is mostly because of the font family that does not have double code.. try to assign following fonts to your variable that is "Courier" or "Times New Roman".
Close the thread once your question is answered.
Regards,
saiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the suggestions but still the issue is not resolved.
In debugging mode,it is showing as double quotes itself. As suggested,I have changed the font to courier of the particular text element but still it is showing as '#' in the output. I tried removing those double quotes,as we don't want '#' to be displayed in the output.
For that I have written the below line of code
Replace all OCCURRENCES OF ' " ' in pv_description with ' '.
But still that # is coming in the output.
This data is coming from the database. It is no where hard coded in the smartform.
Kindly advise, how to remove those double quotes.
Thanks.
Regards,
Megha
Hi Megha,
In debugging mode, try removing the double quotes from the variable and again type the double quotes in the variable value and then try seeing the printout. Check whether in this case the doubles quotes is being displayed in the print or not.
The system prints the # value at the places where it cannot identify the character which is passed on for printing. So just have a check witht he basis team regarding the character set used in the Device Type configured for your Output Device.
Thanks & Regards,
Harish
Hi Harish,
Yes when I have removed and retyped the double quotes in debugging mode,it worked. The Print is showing the double quotes correctly. I have tried putting the statement 'Replace all occurences of ' so that the issue can be resolved completely but this statement is not useful for that.
Kindly suggest the way by which we can completely resolve this issue.
Thanks.
Regards,
Megha
Thank you all for the valuable inputs.
This dynamic data had some special characters which looked like double quotes in debugging mode.
But the system was not able to replace them as they were not double quotes.Below statement worked
REPLACE all OCCURRENCES OF ' u201D ' in lv_desc with ' " '.
Special thanks to Harish. Closing the thread.
Regards,
Megha
Is character " has been hardcoded in the data where you are passing it to form?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Megha,
I am not familiar with your application. It is possible that the default outout device of the user is the one that is picked. you can check this via transaction SU01. Otherwise the output device and device type is set in the application customizing.
When your application calls the smartform function module, the parameter USER_SETTINGS should be empty and the parameter OUTPUT_OPTIONS-TDDEST should be filled with a correct output device.
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Megha,
Try printing via windows and device type SWINCF.
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.