Skip to Content
avatar image
Former Member

Double quotes printing as # in smartform

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Apr 21, 2011 at 12:16 PM

    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

      Add comment
      10|10000 characters needed characters exceeded

      • Former Member Former Member

        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

    • avatar image
      Former Member
      Apr 20, 2011 at 10:56 AM

      Hi Megha,

      Try printing via windows and device type SWINCF.

      Regards,

      Aidan

      Add comment
      10|10000 characters needed characters exceeded

      • Former Member

        Hi Aidan,

        Thanks for the reply. But I am not sure ,how can I change the device type as printing of the form is triggered through the portal.

        There is lot of dynamic data and this double quote data will not be printed in the print preview unless we trigger it through the portal.

        Regards,

        Megha

    • avatar image
      Former Member
      Apr 20, 2011 at 01:02 PM

      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

      Add comment
      10|10000 characters needed characters exceeded

    • avatar image
      Former Member
      Apr 21, 2011 at 10:34 AM

      Is character " has been hardcoded in the data where you are passing it to form?

      Add comment
      10|10000 characters needed characters exceeded