Sitemap

Amicuk Programming Answers

Convert Smartform to Word

-0001-11-30   Views:0

Advertisement

I have a requiremnt to convert a smartform output generated to Word format. Apart from the font sizes, i have a logo generated in smartform which also needs to be converted in that word. Can anyone know about this or have done this requirement then p

I have a requiremnt to convert a smartform output generated to Word format. Apart from the font sizes, i have a logo generated in smartform which also needs to be converted in that word. Can anyone know about this or have done this requirement then please reply back.
Thanks & Regards,
Pankaj Dwivedi

The replay answer
Advertisement
Hi,
<u>A example for you</u>
CALL FUNCTION fm_name   " '/1BCDWB/SF00000031'
        EXPORTING
           control_parameters         = control_parameters
           output_options             = output_options
           s_header                   = st_header
           IMPORTING
           job_output_info            = output_data
           TABLES
              it_overdue                 = ITAB[]
           EXCEPTIONS
             formatting_error           = 1
             internal_error             = 2
             send_error                 = 3
             user_canceled              = 4
             OTHERS                     = 5
now convert the final document (OTF format) into PDF
format
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'DOC'
      IMPORTING
        bin_filesize          = v_pdf_len
      TABLES
        otf                   = output_data-otfdata
        lines                 = pdf_table
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        err_bad_otf           = 4
        OTHERS                = 5.
Downloading the PDF file to the local Server
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME = L_FILENAME
        FILETYPE = C_BIN_FILETYPE
      TABLES
        DATA_TAB = lt_pdf_nuc_data
      EXCEPTIONS
       FILE_WRITE_ERROR = 1
       NO_BATCH         = 2
       GUI_REFUSE_FILETRANSFER = 3
       INVALID_TYPE = 4
       NO_AUTHORITY = 5
       UNKNOWN_ERROR = 6
       HEADER_NOT_ALLOWED = 7
       SEPARATOR_NOT_ALLOWED = 8
       FILESIZE_NOT_ALLOWED = 9
       HEADER_TOO_LONG = 10
       DP_ERROR_CREATE = 11
       DP_ERROR_SEND = 12
       DP_ERROR_WRITE = 13
       UNKNOWN_DP_ERROR = 14
       ACCESS_DENIED = 15
       DP_OUT_OF_MEMORY = 16
       DISK_FULL = 17
       DP_TIMEOUT = 18
       FILE_NOT_FOUND = 19
       DATAPROVIDER_EXCEPTION = 20
       CONTROL_FLUSH_ERROR = 21
       OTHERS = 22           .
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
Hope this helps you
Regards
Sudheer

Go to See the other 4 answers

Hot
I have got i0s7 on my iphone 5 and find that when I go into a particular genre of music I can no longer "shuffle" songs from different artists within the same genre. Can anyone help?From another thread If you just highlight the name of the genre [More]
Hello, I have had bt now for 6 or so years and up until 2 months ago its been great with no problems. Now when I use the xbox most games show the ping to the host and every min/2 mins I down to 1 red bar then straight back to the max ( 4 green bars) [More]
Evening all, I've had a very bad day. My old mac have given up on me today - loosing files, photographs and music. No iCloud present - long story. So, I still have my iTunes library on my iPad, and I have now installed iTunes on a spare PC. If I was [More]
Hi All, I am configuring SSHR and create a responsibility with menu employee self service and included in the user's responsibility. when I am login via newly create user the responsibility is showing the ESS menu but when I am clicking on the person [More]
howto move the cusor?Sounds like you might like to know where the User Guide is: The User Guide is available at http://support.apple.com/manuals/ or downloadable from iTunes as an iBook.Read other 4 answers [More]
We are moving from Oracle Financials 10.7 (Smart Client) to Oracle Financials 11.3 In Oracle Financials 10.7 we call a PC-Application from within the CUSTOM.PLL Can anyone tell me if this is still possible in 11.3 when the forms are running on a form [More]
I inherited a large number of data files that were collected on an Apple Quadra 950 using LV 2, and I need to convert them to an ASCII format.  We've tried the Read Binary Files.vi that comes with LV, and found out that (in 1993), LV was in Big Endia [More]
I get an error when I download the new itunes update "A networking error has occurred: Cannot open file (-3001). Make sure you can connect to the Internet, then try again." and then it just stops Im having a similair problem when I try to instal [More]
First time trying speech analysis, and yes ... I've looked through Adobe and haven't found anything useful. Sigh. Adobe CC on everything, btw ... Have a clip in P-Pro source monitor, tried the speech analysis tool whatever. MAJOR fail ... 1) though t [More]
I got a serial number from Leica. After registered and downloaded LR from adobe, it said "the serial number is invalid". Anybody knows how this happens? thanks!Did you get a serial number for Lightroom, or a redemption code? Please read Find you [More]