Amicuk Programming Answers

Convert Smartform to Word

-0001-11-30   Views:0


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
<u>A example for you</u>
CALL FUNCTION fm_name   " '/1BCDWB/SF00000031'
           control_parameters         = control_parameters
           output_options             = output_options
           s_header                   = st_header
           job_output_info            = output_data
              it_overdue                 = ITAB[]
             formatting_error           = 1
             internal_error             = 2
             send_error                 = 3
             user_canceled              = 4
             OTHERS                     = 5
now convert the final document (OTF format) into PDF
        format                = 'DOC'
        bin_filesize          = v_pdf_len
        otf                   = output_data-otfdata
        lines                 = pdf_table
        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
        DATA_TAB = lt_pdf_nuc_data
       NO_BATCH         = 2
       INVALID_TYPE = 4
       NO_AUTHORITY = 5
       UNKNOWN_ERROR = 6
       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
       OTHERS = 22           .
    IF SY-SUBRC <> 0.
Hope this helps you

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]

Hi! create or replace procedure ...... begin if not exists (select email from emails where email=f) then end if; end; how to check in the if statement either mail exists in table or not?I would maybe just do it like this: create table emails as     ( [More]
I am getting a error when i try to create a PO. Says "Error in Net Price Calculation item 00010(Please correct)" I have defined conditon records with the price for the material  and have also created info record.However the price in the info rec [More]
Hi Friends, I'm unable to decide whether to use  user exits or badis. What does SAP recommend. Example, if i want to add new tab in item details of i have to use badi or user exit and during PO creation if i want the to check a z tablUser Exi [More]
The album artwork isn't showing up in the album view where all the different albums are shown but when you drill into the specific album then it is shown.  This seems to be a recent problem as it wasn't happening in the past.Nope, that doesn't work.  [More]
Whenever I move my laptop a little (like when I'm using it on my lap and shift my position) a message appears saying that the HDD was affected.  Is this normal or dangerous?  It gives me the option to not have this message appear again.  What should [More]
I have uploaded images into a content area with intent to reuse them within the same content area in different folders. However, I have been unsuccessful. How do I reuse an already uploaded image? Ex: I want to display a logo in each folder without h [More]
Hi people, I want to become OCP however I am not sure wether to invest in books baout 9i or stick to the books I have for 8i. For the OCP 4 modules need to be taken with SQL being the first one. Could you please let me know if there is any difference [More]
Hi all, first post here. I'm trying to configure my Xbox One so that I have an open nat type as opposed to the moderate one I have now but have abosuletly no idea on how to go about this. I've followed a few guides, but not made any progress. In term [More]
I have found issues very much like this, but not exactly (Twain issues, preferences…); and most have gone unresolved. I open the organizer and somewhere between 5 and 15 seconds, the application errors and the following is in the event log: Log Name: [More]
Any way to o back and reinstall the older version?Follow the instructions of tt2 in and note to run as adminRead other 4 answers [More]