Skip to Content
avatar image
Former Member

Converting XSTRING into PDF

I have a function module called ZL_CONVERT_OTF (its a custom built one) It has an output importing parameter of type XSTRING, in which the data, comes up from the smartform that's in question, into a variable of type xstring.

Any idea on how to print this XSTRING into a pdf document?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 09, 2006 at 10:08 AM

    Hi,

    i am storing the Binary string in application server.

      open dataset l_in_file for output in binary mode.
      if sy-subrc <> 0.
        raise file_open_output_error.
      endif.
      transfer l_binarystring to l_in_file.
      close dataset l_in_file.

    or else you can download the Binary data to PC using download with .pdf extension. filetype as BIN.

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

    • hI,

      I AM WORKING on 4.7 version.

      FUNCTION CONVERT_TABLE_TO_STRING.
      *"----------------------------------------------------------------------
      *"*"Local interface:
      *"  IMPORTING
      *"     VALUE(I_TABLINE_LENGTH) TYPE  I
      *"  EXPORTING
      *"     REFERENCE(E_STRING) TYPE  STRING
      *"  TABLES
      *"      IT_TABLE TYPE  TABLE
      *"----------------------------------------------------------------------
      
        data: l_length type i,
              l_space  type flag.
      
        loop at it_table.
      
          if l_space = 'X'.
            concatenate e_string it_table into e_string separated by ' '.
            clear l_space.
          else.
            concatenate e_string it_table into e_string.
          endif.
      
          l_length = i_tabline_length - 1.
          if it_table+l_length = ' '.
            l_space = 'X'.
          endif.
        endloop.
      
      ENDFUNCTION.

      what abt you///

      regards

      vijay