Saving XDP form in PDF format at the end of the process

Hi,
I want to save my XDP form to a file system as PDF documents at the end of the workflow. There is a service writeDocument to writing PDF files, which accepts 2 parameters as input
pathname -- type : string
document -- type : document
In my workflow , I have an Xfaform variable which holds my form data.
But, as service requires the parameter as document I could not pass this variable to service. I tried to define a process variable of type document
and assign my xfaform variable to it, then pass this variable to the service. A pdf file is generated but not valid (1 k).
My question is how should I pass the variable to this service?
Thanks in advance
Regards
Cihan

The xfaForm variable usually contains a pointer to an XDP file. The XDP needs to be rendered by a service to create a PDF. You can then save the resulted PDF into a "document" variable and use that variable with the WriteDocument service.
I guess what I want to make clear is that there are extra step you need to take to get from XDP to PDF before you write it to the file system.
Jasmin

Similar Messages

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI.
    can anyone tell me how it can be done with related example
    regards
    pranay

    hi,
    smart form to pdf--
    All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
    DATA: p_output_options TYPE ssfcompop,
    p_control_parameters TYPE ssfctrlop.
    p_control_parameters-no_dialog = 'X'.
    p_control_parameters-getotf = 'X'.
    CALL FUNCTION v_func_name "call your smartform
    EXPORTING
    output_options = p_output_options
    control_parameters = p_control_parameters
    IMPORTING
    job_output_info = s_job_output_info.
    call function 'CONVERT_OTF_2_PDF'
    tables
    otf = s_job_output_info-otfdata
    lines = t_pdf
    and if u need more u can check below links also
    Check the below links..
    Re: Smartforms to PDF
    Re: smartform (otf) as pdf and sending as email-attachment
    VISIT THIS LINK
    Re: Smartforms to PDF
    PLZ REWARD POINTS IF IT HELPS YOU
    rgds
    anver

  • 1099 Form in pdf format

    All,
    We have a requirement to have 1099 form in pdf format to send the form via email to the vendors as well as we should be able to print to mail to the vendors.  I believe this will be part of form design and send an email as attachment would be a batch job to kick off. Would this be correct?
    Regards,
    Sri

    Hi,
    You would maybe need one program.  Process would be; standard form output spool is saved by user; then a periodic program execution can be scheduled which picks up these specific spools converts to PDF and mails them to the vendor. This program can also be triggered immediatly after execution of the earlier output or it could even be user initiated.
    Cheers

  • Designing of tech spec for check form in pdf format

    Hi ,
    i need to design the Technical Specification of Check Form(USA) in PDF format.
    i am new into the ADOBE Forms.
    can any one help me regarding this...
    if any one help me early it would be very much helpful for me.
    Regards,
    Bannur
    Moderator message : Not directly related to ABAP forums. Post the question if proper forum. Thread locked.
    Edited by: Vinod Kumar on Jun 7, 2011 4:39 PM

    Saurabh,
    Have you found a way to produce the W2s without using tcode PU19.  I am looking at doing W2s in ESS for our company and am interested in anything you have done on this.
    Thanks,
    Robert

  • Print form  in pdf format

    hi,
    i want to print the form i created in sapscript. how to do that? need to save the form into pdf format and then print it.
    please advise.
    thanks.

    Hi
    This is my routine used to generate a pdf file from print, u need only to get the OTF data from CLOSE_FORM fm:
    CALL FUNCTION 'CLOSE_FORM'
             TABLES
                  OTFDATA                  = T_OTF
             EXCEPTIONS
                  UNOPENED                 = 1
                  BAD_PAGEFORMAT_FOR_PRINT = 2
                  SEND_ERROR               = 3
                  SPOOL_ERROR              = 4
                  OTHERS                   = 5.
        IF SY-SUBRC <> 0.
          MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
        ELSE.
          PERFORM DOWNLOAD_PDF.
        ENDIF.
    FORM DOWNLOAD_PDF.
      DATA: BIN_FILESIZE TYPE I.
      DATA: T_FILE_PDF     TYPE STANDARD TABLE OF TLINE,
            DOCTAB_ARCHIVE TYPE STANDARD TABLE OF  DOCS.
      DATA: FILE_TABLE     TYPE FILETABLE WITH HEADER LINE.
      DATA: RC          TYPE I,
            USER_ACTION TYPE I.
      DATA: TITLE    TYPE STRING,
            FILENAME TYPE STRING.
      CHECK P_PDF = 'X'.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
           IMPORTING
                BIN_FILESIZE           = BIN_FILESIZE
           TABLES
                OTF                    = T_OTF
                DOCTAB_ARCHIVE         = DOCTAB_ARCHIVE
                LINES                  = T_FILE_PDF
           EXCEPTIONS
                ERR_CONV_NOT_POSSIBLE  = 1
                ERR_OTF_MC_NOENDMARKER = 2
                OTHERS                 = 3.
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
        EXIT.
      ENDIF.
      TITLE = 'Creare File'(T02).
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
         EXPORTING
           WINDOW_TITLE            = TITLE
           DEFAULT_EXTENSION       = '*.pdf'
        CHANGING
          FILE_TABLE              = FILE_TABLE[]
          RC                      = RC
          USER_ACTION             = USER_ACTION
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          OTHERS                  = 4
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        IF USER_ACTION = 9. EXIT. ENDIF.
        IF RC = 1.
          READ TABLE FILE_TABLE INDEX 1.
        ENDIF.
      ENDIF.
      MOVE FILE_TABLE-FILENAME TO FILENAME.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
           BIN_FILESIZE            = BIN_FILESIZE
           FILENAME                = FILENAME
           FILETYPE                = 'BIN'
        CHANGING
          DATA_TAB                = T_FILE_PDF
        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 I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        MESSAGE S208(00) WITH 'File creato con successo'(S01).
      ENDIF.
      CHECK P_OPEN = 'X'.
      CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
                URL                    = FILE_TABLE-FILENAME
           EXCEPTIONS
                FRONTEND_NOT_SUPPORTED = 1
                FRONTEND_ERROR         = 2
                PROG_NOT_FOUND         = 3
                NO_BATCH               = 4
                UNSPECIFIED_ERROR      = 5
                OTHERS                 = 6.
      IF SY-SUBRC <> 0.
        MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
      ENDIF.
    ENDFORM.                    " DOWNLOAD_PDF
    Max

  • User being able to download filled out form in pdf format

    Hello,
    I'm testing the formscentral application and was wondering if the users are able to obtain a copy of the filled out form in pdf format versus just plain text in the email?
    Thanks

    No, respondents can only get the email with text responses. There is no way for them to get a PDF copy of what they filled out.

  • How to show Smart form in PDF format

    Hi Experts,
    I  have a requirement in which I have to show a smart form in
    PDF Format coming from the RFC .
    Please give your helpful suggestion.
    Thanks and Regards
    Upendra Agrawal

    Hi ,
    Just look this pdf
    see this link
    http://www.****************/Tutorials/Smartforms/SFinEPasPDF/Page1.htm
    Thanks
    Edited by: Anup Bharti on Nov 7, 2008 7:00 AM

  • Display W2 form in PDF format in ESS

    I am trying to develop a WebDynpro ABAP application to display W2 Form in the Portal 7.0 ESS. I have designed a view with an Adobe Form element to hold the W2 form, and looking for any ideas about getting W2 form in PDF format from the ECC 6.0 system by providing parameters like EE number, Tax Company, and year.
    I know that the tcode PU19 can be used for getting W2 in PDF format, but it involves too many steps to generate and view the W2 in PDF format. I am not sure what kind of coding (e.g. classes, methods, logic to retrieve W2) will I need to do in the Web Dynpro application to retrieve W2 in PDF format from the ECC system.
    I will appreciate and reward any useful answers or pointers.
    Thanks,
    Saurabh

    Saurabh,
    Have you found a way to produce the W2s without using tcode PU19.  I am looking at doing W2s in ESS for our company and am interested in anything you have done on this.
    Thanks,
    Robert

  • Is it possible to generate oracle forms in pdf format

    I have to generate a form in pdf format. Is it possible.
    If yes, how to achieve this.
    Thank you very much.
    Navya.

    One round about way to get a pdf screen shot is tick 'print to file' and use a printer which is set up with a postcript driver. This gives a postscript file which can be converted to pdf using 'ghostscript and gsview' (available free from gnu via various sites).

  • How to print form into pdf format using smart forms in abap

    please let me know how to print form into pdf format using smart forms in abap.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

    Hi ,
    refer this link
    <removed by moderator>
    Regards,
    Dhina..
    Moderator message: please do not reply to questions that violate forum rules.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

  • When saving an image in PS CS 6, and going back to Lightroom 5. The original image and the edited image are at the end of the line up.

    I'm using a Mac, Lightroom 5 and Photoshop CS 6. I've started having an issue with the line up in Lightroom 5 after saving an image from PS CS 6. For some reason when I save the edited image form CS 6 it's taking the edited image and the original image and putting it at the end of the line up in Lightroom. If I take the edited image and move it to the right of the original it will put both of them back in the line up where they should be. How do I fix this. I've been looking in the menu for some kind of setting  with no luck.

    Change the sort order. View->Sort

  • Present final report at the end of the form.

    We are working on a performance evaluation form.
    There´s a part of it where we specify performance factors, the qualification is from 1 to 5. If the qualification is between 1 & 2.9, it needs a developement plan.
    I would need two things, first if the value entered is between 1 % 2.9, the background color to turn red. But at the end of the form get "a report" with all the performance factors that are between that qualification rate, so the evaluator makes a plan for it.
    I´m using LiveCycle Designer ES 8.2
    Hope to explain enough,
    Thanks in advance!

    Vik,
    You are on the right track with the sub-report.
    1. Create your letter in a separate report.
    2. Add the Letter Report to your original report as a sub report in the group footer.
    3. Set the report links on the "Group By" field.
    This will give you a letter record for each report record with the same grouping as the main report.
    Hope this helps,
    Jason

  • Urgent: loading a pdf file  to presentation server at the end of the day

    hi
    I got a requirement like smartform will be converted into pdf file and it will loaded into application server, at the End of the day all the pdf files which are generated on that day will be loaded to in file at presentation server ,
    so please help me out regarding
    Thanks in advance
    regards
    krishna

    Hi Chris,
    this problems are in fact new to me, but I'm just starting on a new workplace where they have these issues since forever.
    I'm hoping that new point of view may find a solution to it ;-)
    I'll try to watch the traffic - it could be related to the particular network we have. Will ask and post some more info tomorrow.
    Thank you!
    /best
    /j

  • When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and  sit next to the original? Mine is going to the end of the folder. Thanks Karen

    When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and sit next to the original image? Mine is going back to the end of the folder. Thanks Karen

    Hi Karen
    You may the sort set to Custom. Click the dropdown menu on the toolbar (to the right of the word sort) and change to capture time.
    If you can’t see the toolbar above the filmstrip press the T key. Press T again to hide.

  • I'm trying to burn an iMovie in iDVD and at the end of the whole burn process it says "Multiplexer Error" "there was an error during formatting".  How do I fix it so that it'll burn?

    I'm trying to burn an iMovie in iDVD and at the end of the whole burn process it says "Multiplexer Error" "there was an error during formatting".  How do I fix it so that it'll burn?

    Hi
    Multiplexing error is a very complex problem due to many things (long long list following) - one common but not obvious reason is that material on the iDVD menu goes outside the TV-Safe area (or just touching it).
    So first - turn on TV-Safe area and move any object well inside of this.
    Wide screen stretched - usually (as I think) it is due to making a 4x3 movie in a 16x9 wide-screen project OR the other way around. This forces one to on flat-screen TV (or other) set the presenting view right - My has 4x3, wide-screen, zoom and auto-wide-screen and I have to switch this by my remote for some DVD I've made "wrong" way.
    Now my long long list on Multiplex Error
    LONG LONG LONG LIST
    Multiplexing Error
    PART One.
    Use of strange video/audio material e.g. .avi, .wmv, .mp3 etc.
    I only use.
    Video - StreamingDV (miniDV tape via FireWire) and
    Audio - .aiff (as on audio-CDs) (else converted to this .aiff 48KHz)
    Photo - .jpg (.bmp known problematic)
    Chapters !
    A.    Using strange letters in video project name e.g. +,/; etc. keep to a-z and 0-9 strange letters in project name e.g. +
    as described by Donnyboy69.  Does the title of your project have any symbols or decimal points in it. If so, that is why you are getting the error. I had a project that had a + sign which caused the same problem. I renamed it without the symbol and low and behold, it worked.
    B.    Location of Chapters
    • Can’t be at start or end of movie (Skip first/start one - iDVD sets this by it self. At the End - no need)
    • Not in a transition (or within 2-3 seconds from it)
    Important when from iMovie HD6 or previous - Now also observed when using FCE 4
    PART Two.
    from Robert Modero.
    "Multiplexing Error. Problem during initialization of tracks"
    Simply remember to add subtitles to your Quicktime files and menu buttons.
    Once I did that, I was back in business.
    from Boise Jim
    Do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    I always makes a DiskImage first and test this so that it runs OK
    I use only - Verbatim DVDs
    I use only - DVD-R
    I burn at an as slow speed possibly e.g. x1
    This gives good DVDs
    PART Three.
    Multiplex Error
    Chuck, Chicago 2/7/2009.
    Back again. Here is what I have found to work. I also have and use a LaCie DVD-R/RW DL external drive and a LaCie external hard drive as well. Since yesterday I have tried a few ways to burn a themed iDVD project having four 56 minute movies on it, amounting to 226 minutes onto a DVD DL disc, capacity 240 minutes. Apple tech support really didn't know what to do but gave me a very good tip. I had two options left. Apple tech support's tip was to try disc image. One of the replies on a thread with this subject said not to, but my experience today is good. Put your project onto "Burn to disc image," under "iDVD, file." Yesterday encoding took me 23 1/2 hours. Overnight for iDVD disc image, encoding took 21 1/2 hours (again) while I slept. This morning I tried to copy/burn disc image to a DVD with Roxio Toast 7, and it stopped near the end of the burn with some kind of "error" message. So then I tried Utilities> Disc Utility> Burn icon, and followed it through. Be sure to click the DVD DL drive in the window "Burn disc in.". I had one other problem though. At the end of a 46 minute copy, it started to verify, and at the end of verify it rejected the burn. So I tried again, and when "verify" appeared, I clicked on "Skip." The disc finished burning and is doing fine and well. A long and tortuous process, but at last something works. I made several additional copies using Disc Utility. Best wishes. Chuck, Chicago.
    2. Disconnect any other external devices not absolutely needed.
    e.g. external USB/USB2 hard disks, other FW hard disks etc.
    3 Chapter marks in transitions - minimum 2 sec from
    FROM Bev.
    (Not a 'guy' but I will answer!)
    First, I do not think that mixing wide-screen and standard makes a difference in iDVD.
    Second, you should use a better brand of DVD disk. Also, many of us have experienced fewer problems on playback with DVD-R disks. Recommended brands here are Verbatim, Maxell and Taiyo Yuden. Memorex and TDK are not consistent and may not give you a correct burn. They apparently have fewer layers in the composition of the disk. I have always used Verbatim DVD-R disks and have not had any burn problems.
    Also, choose a slower burn speed, 4x or less.
    Third, to determine if the iDVD project will burn properly, create a disk image file (from within iDVD, go File->Save as Disk Image) and test it. Mount the disk image and then open DVD Player (in Applications) and view your project. If it plays correctly, you can then burn the actual DVD disk from the disk image file using Disk Utility.
    From. Boise, Idaho
    I did everything I've seen suggested, but a friend (who used to be an Apple Genius) suggested that I do a safe reboot (by holding down the shift key until you see the spinning gear on gray background, then release, then restart when your start-up screen appears).
    It worked, and I got a clean burn from iDVD.
    Hopefully this can help other people.
    by dheb0422
    Well, I finally got it, and it was odd enough to post here incase anyone looks this topic up again. Many things were tried, including burning the unedited film, the edited film without titles and chapter markers, abbreviating the chapter markers in case length was the issue (remember the old iMovie used to truncate them when moving to iDVD?). In the process, I noticed that one, and only one, chapter marker was on the same line as the title marker. All the others were on the line above. The only way I seemed able to change that was to clip a few seconds of film. After that last clip, the offending marker took a place on the line above, as were all the others. That run published, compiled completely and burned. That's one for the books.
    One user more writes
    To add my experience with Multiplex Errors using iDVD (7.0.4), I recently created two iDVD projects
    Video from both passed from FCE 4.01 with chapters
    One project worked fine in creating disk image file
    The other gave Multiplex Errors
    I tried suggestions to remove special characters and no chapter marks at beginning, but nothing worked
    Note that I've used iDVD for dozens of projects and this is first time I've run into Multiplex Errors
    Anyway, for problem project, I tried an experiment where I removed all chapters in FCE and passed to new iDVD project
    This time multiplex errors gone
    So had something to do with chapters
    So now I tried numerous experiments to remove individual chapters and try again creating disk image with new iDVD project
    After numerous tries, I was able to narrow problem down to 1 "Bad" chapter mark
    That is, when I left the "bad" chapter in my FCE project and passed to iDVD, iDVD gave multiplex error
    When I removed "bad" chapter mark (and others in), no multiplex error
    As a final experiment, I moved "bad" chapter mark about 5-10 sec's beyond original point and passed to iDVD, the multiplex errors now magically went away and I was able to finally create my disk image.
    I have no idea why this worked, but thought I'd mention here in case someone else runs into similar problem.
    Rich839
    In addition to Bengt's fine advice, burning errors can occur if you have located any of your menu buttons wholly or partly outside of the safe TV viewing area. Go to your main project menu, then click on View/Show TV Safe Area, to check. Drag into the safe viewing area any buttons that are outside the safe viewing area.
    Russ One - suggest this
    Multiplex Error-There was an error during muxing preparation
    One thing that worked for me was to export the video w/o chapter markers as a self contained movie (thereby not loosing the edits & etc). Then make a new FCE project and import that movie into a new sequence and add the chapter markers. I've used "-", "&" and "," with no problem in the chapter names. Removing the markers or exporting without them did solve the problem but renaming them with just numbers 1,2,3....5, did not solve the problem and since this problem seems to happen with with iMovie as well, it would suggest the problem is in the video or audio and in combination with the chapter markers iDVD just can't handle it. The only other possibility is that both iMovie and FCE share the same or similar chapter marker code that some how is corrupting the markers.
    Summary - What to try
    1. Chapters
    • Only A to Z and 0 to 9 in chapter title
    • No Chapter mark at very beginning of movie
    • No Chapter mark in or within 2 seconds from any transition in movie
    2. TV-safe area for buttons (no one outside this)
    3. Safe re-boot
    4. No other external devices connected - that are not needed
    SDMacuser adds to this
    • On #4 ... No ext. devices. Some think this applies mainly to ext. FW. Not the case. Also applies to ext. USB2 as well (not to mention flash drives too).
    Do not leave 3rd party devices / camera / camcorder plugged in unless it is being used with iDvd's One Step process. Certain web cams can trigger this also (especially ones with added features like LED light/s that draw additional power from the FW or USB bus).
    5. Minimum of 25Gb free space on Start-up hard disk
    6. Make a DiskImage first - reduces where problem originates
    7. Trash iDVD pref. file
    8. Make a new iDVD project
    9. Movies in project with same aspect ratio e.g. 4x3 or 16x9
    10. No other programs/applications running during iDVD process. e.g. Internet, screen & energy savers
    Yours Bengt W

Maybe you are looking for