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
Hi can anyone help me! I'm unable to see my mail. Next to the inbox account name it shows i have new mail but i'm not able to see them. When i try i just get the spinning sign for a while and then the sign goes away that tells me i have mail. Also i [More]
Help! I needed to email 70 pdfs. Instead of putting them all into one large pdf, I used the 'suggestion' in the new Macintosh Acrobat Pro 9 that I use a Pdf Portfolio. ( I used three Portfolios, then emailed them using the "email this portfolio" [More]
Hello, I'm working on a project and I need to make a line of best fit for a scatter plot graph as well as make an extrapolation on the graph...any possibility someone could help me with these two questions? Thank you, MikeMike, Numbers 08 have functi [More]
I have a client, a house inspector who gets paid electronically. When his custromer pays an email is sent to the house inspector informing him that payment has been made He would like this email to somehow send the House Inspection report to the cust [More]
It will, however, if I press sleep in the apple menu using the mouse. This has recently started since I upgraded the memory and ran disk doctor. I know the rear button is not broken as it feels fine and powers up the computer when switched off. I hav [More]
I'm setting up a visual perception experiment in which people see objects presented during a powerpoint slideshow. I would like to use my iSight camera to record their faces (their eye movements actually) into iMovie during this task without the iMov [More]
Hi friends,     I have a scenario where there is an event linkage activated for a business object event, when i have checked the details of this type linkage then i found that 1 -  ENABLE EVENT QUEUE check box is not clicked. 2 -  BehaviorUpon Error [More]
hi! Is there an easy way getting the date and time when data was last updated in a cube, and showing this in Web template?Hi, please choose Text Item -> Web Item Parameters -> Data Binding -> General Text Element -> Last Data update Regards Er [More]
I have FlexPMD 1.1 installed at Applications/FlexPMD/ with the following preferences: FlexPMD command line installations:  /Applications/FlexPMD/flex-pmd-command-line-1.1.jar FlexPMD custom ruleset: Java command line:  java -Xmx256m FlexCPD command l [More]
When I try to open a restricted application on my iMac, it says you aren't allowed to open it, but it keeps on bouncing. Can someone tell me why?hynt20 wrote: I am also having similar issues - I have controls in place for both week days and weekends, [More]