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

Convert smartform output in to PDF using CONVERT_OTF function  how to do it

Category:DefaultRelease time:2015-10-11Views:130

Hi Anil , and  Hi All          I am trying to display smartforms output in java webdynpro          for that i have got the following code in sdn.            can anybody please clarify these doubts in the  below code            1) What are the mandato[More]

Problem in converting smartforms output in pdf

Category:DefaultRelease time:2015-10-11Views:130

Hi all.. I am trying to convert smartform's output in PDF file.. I am able to convert smartforms's output in PDF but after that i can't see Print Preview.. Code is following... REPORT ZMM_R402_FORM_TEST11. TABLES : VBRK,J_1IEXCHDR. SELECTION-SCREEN :[More]

Problem while converting smartform out to PDF.

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have an issue while converting smartform output to PDF. After converting samrtform out to PDF, apostrophe(') is appearing as # in the pdf file. For example the word Indian's is getting printed as Indian#s. I'm using Helvetica font for printing[More]

Alignment problem in converting smartform printpreview into PDF

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I am getting some alignment problem in converting smartform printpreview into PDF format, i.e the format of PDF is different from printpreviw of smartform. kindly suggest something so that alignment is not changed while converting to PDF. Reg[More]

Convert SMARTFORM report to PDF and send as an email attachment

Category:DefaultRelease time:2015-10-11Views:130

Hi I am using the CONVERT_OTF function module to convert a SMARTFORM report in the "spool" to a PDF file. When I use the DOWNLOAD function module, the resulting file can be opened in acrobat. I would like to email the report in PDF format as an[More]

Converting Smartforms to PDF and displaying Smartforms on print preview

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to convert smartforms to pdf? How to attach this pdf to email? How to attach this pdf to the email and at the same time can print preview the smartforms? Thanks.Hi Navi, Code Snippet for Simple Mail *& Report  ZZ_TEST                         [More]

Convert smartform as PDF from ABAP Webdynpro

Category:DefaultRelease time:2015-10-11Views:130

Hi, I want to convert smartform as pdf from ABAP webdynpro. Flow: SmartForm-->Generating Function Module -->Getting Output Data --> Converting OTF to PDF --> Open/Save PDF file in ABAP webdynpro. What are the sequence of function modules to be[More]

Convert SmartForm into PDF(PDF should be password protected)

Category:DefaultRelease time:2015-10-11Views:130

Hi Friends,               This is my requirement. Need to convert SmartForm into PDF and this PDF should be send as an email with attachment and PDF should be password protected. Can anyone plz help me???Dear Jena,                This is my code.   [More]

A Problem When Converting SmartForm (OTF) to MS Word

Category:DefaultRelease time:-0001-11-30Views:130

Hi, i'm converting smartform to ms word file but design is spoiled. CALL FUNCTION 'CONVERT_OTF'     EXPORTING       format                = 'ASCII'       max_linewidth = 132     IMPORTING       bin_filesize          = gv_fsize *      bin_file        [More]

Convert smartform to pdf from ABAP webdynpro

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I want to convert smartform to pdf from ABAP webdynpro and I want to display pdf in ABAP wedynpro view or portal iview. what are the steps needs to be followed? what are the classes and interfaces needs to be used?Hi, Please check this it might b[More]

To convert smartform spool to pdf

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I need to convert smartfom spool to pdf.. When i executed the smartform it is generating a spool number and tsp01-rqdoctype =  'SMART'. To convert Spool to PDF Iam using the following function module 'CONVERT_ABAPSPOOLJOB_2_PDF' It is convert[More]

Hot
Hello, I recently, decided to upgrade from 19.0b to the current (26.0) version, as "Tab Utilities" now supports 26, but am finding one of the visual changes counter productive. My two workstations have multiple monitors. One has 2 monitors (2560 [More]
steps i've taken and results: 1) attempted Da Gopha's "stepwise clean uninstallation of iTunes." Result: could not uninstall Quicktime 7 at all. from the Add/Remove Programs, clicked Change/Remove, UninstallShield comes up, processing bar scroll [More]
          WLS 60 SP1 (#101616)           Cannot get <exception-type> to work. WLS shows standard “Internal error           500” page instead of a custom error page. The custom error page is shown           if <error-code> is used instead of &l [More]
Nano 4th generation--iTunes always opened when iPod was connected to computer; now it doesn't and going to Devices and scrolling down Summary to "open when ipod is connected" is greyed out and will not allow me to check it.  Even going to the iT [More]
I have a problem fetching attribute nodes in an Xpath expression. SOAP Request: <Create ID=5/> <Name>Per</Name> I want to fetch the value of ID and put it into another variable with an XPath expression in a XSLT transformation. If you lo [More]
Hi guys, I am sure this question has been asked countless times but I still would love some input. I want to get a speaker set for my iPhone 4 and iPod Touch and this would be my primary music system. My budget is around 400-500USD and since I am in [More]
Hi , Please let me know is there any BAPI/FM to update base line date and discount at header lelvel in accounting document (FB02 transaction code ) . basically to update vendor open invoices documents thanks NaveenOk i finally figures out how to get [More]
Where can I find EHP3 for ECC 6.0 ? I went to the marketplace and just found EHP2 and guides for installing EHP3 but not the add-on itself. Please advice. Thanks!Hi, EhPs sould be downloaded (incl the latest Support Packages) via the Maintenance Opti [More]
I got the following error while taking a backup. ERROR:   System Error, /opt/ignite/bin/make_medialif failed creating boot LIF  ERROR:   Failed to generate LIF on tape. ERROR:   System Error, /opt/ignite/bin/make_medialif failed creating boot LIF ERR [More]
Older versions of Twitter for blackberry automatically refreshed the timeline on startup of the application. However, the newest version doesn't seem to do that anymore. Is there any way to enable this? If not, is there any way to revert back to an o [More]