How to use Payload as input to a PDF document

Hi,
I am reading the payload using function module SXMB_GET_MESSAGE_PAYLOAD and I want to use the Payload to fill my ADOBE form.  I thought that it would be sufficient to pass to the pdf the payload but my PDF does not get populated and no error is returned.
I created my form interface with a XSD file of the same format as the payload. I use this interface in my form and I set a data connection with a WSDL file of the same format as the Payload.
Is there a step that I am missing? Can we pass in parameter the payload or we need to do an extra step?
Here the code I am using to call my PDF
Get XML output data for Message Id
        CALL FUNCTION 'SXMB_GET_MESSAGE_PAYLOAD'
          EXPORTING
            im_msgkey      = l_msgkey
          IMPORTING
            ex_msg_bytes   = l_xstring
          EXCEPTIONS
            not_authorized
            no_message
            internal_error
            no_payload.
Create PDF
        CALL FUNCTION l_funcname
          EXPORTING
            /1bcdwb/docparams  = ls_docparams
            /1bcdwb/docxml     = l_xstring.
Thank you

Hi Steve,
if your Adobe form used an xml based interface, and your xml data are into an xstring variable, then you only need the FP_JOB_OPEN and FP_JOB_CLOSE function modules - please have a look at this example; its working fine:
DATA: gs_outputpara TYPE sfpoutputparams,
        gs_docpara    TYPE sfpdocparams,
        gs_return     TYPE fpformoutput,
        gs_result     TYPE sfpjoboutput,
        gv_form       TYPE fpwbformname VALUE 'Z_TRAVEL_REQUEST',
        gv_function   TYPE rs38l_fnam,
        gv_xml        TYPE xstring,
        gv_data_str   TYPE string.
* create xml data
  CONCATENATE
    `<?xml version="1.0" encoding="utf-8" ?>`
    `<REQUEST>`
    `<CUSTNAME>` gs_request-custname `</CUSTNAME>`
    `<DEPARTMENT>` gs_request-department `</DEPARTMENT>`
    `<KOSTL>` gs_request-kostl `</KOSTL>`
    `<DEPDATE>` gs_request-depdate `</DEPDATE>`
    `<ARRDATE>` gs_request-arrdate `</ARRDATE>`
    `<COUNTRYTO>` gs_request-countryto `</COUNTRYTO>`
    `<CITYTO>` gs_request-cityto `</CITYTO>`
    `<CAUSE>` gs_request-cause `</CAUSE>`
    `<VEHICLE>` gs_request-vehicle `</VEHICLE>`
    `<HOTEL>` gs_request-hotel `</HOTEL>`
    `</REQUEST>`
    INTO gv_data_str.
  CALL TRANSFORMATION id SOURCE XML gv_data_str
                         RESULT XML gv_xml.
* Get the name of the generated function module
  TRY.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name           = gv_form
        IMPORTING
          e_funcname       = gv_function
*         E_INTERFACE_TYPE =
    CATCH cx_root.
      RAISE no_active_form.
  ENDTRY.
* Set parameters
  gs_outputpara-nodialog   = 'X'.
  gs_outputpara-preview    = 'X'.
  gs_outputpara-getpdf     = 'X'.
  gs_outputpara-connection = cl_fp=>get_ads_connection( ).
  gs_docpara-langu         = 'DE'.
  gs_docpara-country       = 'DE'.
  gs_docpara-fillable      = 'X'.
* Open print job
  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = gs_outputpara
    EXCEPTIONS
      cancel          = 1
      usage_error     = 2
      system_error    = 3
      internal_error  = 4
      OTHERS          = 5.
  IF sy-subrc <> 0.
    RAISE job_open_error.
  ENDIF.
* Call the generated function module
  CALL FUNCTION gv_function
    EXPORTING
      /1bcdwb/docparams  = gs_docpara
      /1bcdwb/docxml     = gv_xml
    IMPORTING
      /1bcdwb/formoutput = gs_return
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    RAISE form_process_error.
  ENDIF.
* Close print job
  CALL FUNCTION 'FP_JOB_CLOSE'
    IMPORTING
      e_result       = gs_result
    EXCEPTIONS
      usage_error    = 1
      system_error   = 2
      internal_error = 3
      OTHERS         = 4.
  IF sy-subrc <> 0.
    RAISE job_close_error.
  ENDIF.
Edited by: Jens Haehnel on Sep 1, 2009 4:19 PM

Similar Messages

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • How to put a check mark in a PDF document, if using an iPad 2

    How to put an check mark in a PDF document, if using an iPad 2?

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to insert links in an Acrobat 8 pdf document to open folders

    I am using Acrobat 8 and have made a "menu" page in InDesign which will has links in it to open other pdf documents. I have successfully exported to PDF from InDesign and inserted links to my PDF files which work perfectly. I now need to insert a link to direct the user to a particular folder so they can view the files/folders within that folder.
    The complete set of documents will be burnt onto DVD and the "menu" pdf will open using an autorun file.
    How can I insert a link in the PDF document that will open the folder that I want the reader to be able to view and navigate through themselves.  Any suggestions would be very much appreciated as this is a major job for a client.  I have seen a few ideas on the net but nothing that really answers my particular question.
    Cheers - Claire

    what should have been done, is place all the PDF in Folder including your contents page and Make all your links in Indesign. Then burn the folder to the DVD. That way all the links would be relative to location of the files.
    Try a test that way. As was said Acrobat can't do it.

  • How do i extract pages from within a pdf document?

    how do i extract pages from within a pdf document?

    Hi adobespurs,
    To extract pages from a PDF, you need to use Acrobat. If you don't have Acrobat, you can try it for free for 30 days. Please see www.adobe.com/products/acrobat.html for more information.
    Best,
    Sara

  • How can I open and listen to the PDF documents with audio in my iPad?

    How can I open and listen to the PDF documents with audio in my iPad?

    You need to use a PDF reader that supports multimedia. Adobe Reader 10.3 does not. Adobe has not stated whether it will support multimedia in the future.
    In the meantime, you could buy an application that does like PDF Expert. Read about it here:
    Finding the Best Tablet PDF Reader

  • How can I convert an email  in a PDF document?

    iOS
    How can I convert an email  in a PDF document?

    There is no "system solution" that turns an e-mail into a PDF file. In other words, it's not a functionality of the iOS. And there are some apps around that say they turn some documents into PDF files, but in every app that does that, I've never seen one that does so for the entire e-mail itself, but only for the "text" of the e-mail (which won't include the "to" and "from").
    BUT, you can get part of the e-mail through a screen shot and you can get more of the e-mail by going "portrait" style and not "landscape". Then after getting the screen shot, you can turn that into a PDF file by those apps I was referring to up above,

  • How do I highlight/add comments on a PDF document in IPages on IPad Air?

    How do I highlight/add comments on a PDF document in IPages on IPad Air?

    PDF readers
    GoodReader
    -- With GoodReader on your iPad/iPhone, you can read virtually anything, anywhere: books, movies, maps, pictures.
    -- sync with Dropbox, OneDrive, SugarSync and any WebDAV, AFP, SMB, FTP or SFTP server
    -- The types of annotations that can be created and edited in GoodReader include typewriter text boxes, popup comments ("sticky notes"), text highlights, freehand drawings, lines, arrows, rectangles, ovals, cloudy shapes, text underlines, strikeouts, text insertion marks. 
    http://www.goodiware.com/
    PDF Expert – the PDF handling app for the iPad. "It allows you to markup documents with highlights and handwriting, insert text and stamps, sign and even merge PDFs."
    https://itunes.apple.com/us/app/pdf-expert-5-fill-forms-annotate/id743974925?mt= 8
    iAnnotate – turns your tablet into a world-class productivity tool for reading, marking up, and sharing PDFs, Word documents, PowerPoint files, and images.  Has a secure document edition designed for corporations.
    http://www.branchfire.com/iannotate/

  • How can I remove a page from a PDF document and save it as a new PDF document?

    How can I remove a page from a PDF document and save it as a new PDF document?

    Tools - Pages - Extract and tick the option to delete the extracted page from the original file.

  • How do I copy a page from one pdf  document to another?

    I am a newbe!

    That was easy.Thank you.
         Re: How do I copy a page from one pdf document to another?
    created by George Johnson in Creating, Editing & Exporting PDFs - View the full discussion
    If you open both documents, you can drag a page from the Pages panel (on the left of the window) of one document and drop it into the Pages panel of another.
    You can also extract one or more pages from a document to create a new document, and then insert the pages from this new document into another. In Acrobat 11 you 'd do this by doing:
    Tools > Pages > Extract
    and then:
    Tools > Pages > Insert from File
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6163925#6163925
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6163925#6163925
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6163925#6163925. In the Actions box on the right, click the Stop Email Notifications link .
    Start a new discussion in Creating, Editing & Exporting PDFs at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0 .

  • How to do a word count on a PDF document or an original inDesign doc?

    How to do a word count on a PDF document or an original inDesign doc?

    There are scripts that will do it in InDesign. This is a good one: InDesign-Toolbox/Count Text.jsx at master · jpobojewski/InDesign-Toolbox · GitHub-

  • Can I use Adobe ExportPDF to split a PDF document?

    Can I use Adobe ExportPDF to split a PDF document?

    Hi
    We don't have this functionality but I will forward your request to our product team
    You might want to try Acrobat XI, trial is available at http://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=us
    Thanks
    -sarabjit

  • How to use payload from standard RFC MessageType in a RFC Lookup function

    Hello
    We have a DB sender to call an BAPI. The DB receiver gets the BAPI response.
    It is an easy scenario with one mapping.
    But the RFC Mapping Lookup is very awful. You have to rebuild all open and close tags to get the RFC payload. A lot of concat functions are a must. The error search in such a mapping is not easy and seems like EAI developing 1990 (Hand am Arm).
    Ok, it is better as a BPM, but it is not well for first level support person and release changes and trouble shooting.
    How can I use a XML payload from first mapping in my RFC Mapping lookup (second mapping)? There must be a way with two mappings and an easy RFC lookup.
    Currently (one mapping):
    DB sender format -> ( RFC lookup self-made RFC XML structure) DB receiver format
    My dream (two mappings):
    DB sender format -> RFC SAP XI standard Format ->(RFC lookup by using Payload from first mapping) DB receiver format
    I hope someone can help me with an example.
    Daniel

    Hi Daniel,
    If i understood correctly, urs is a 'Asynch' scenario JDBC to JDBC with a RFC lookup in Mapping.
    If its so, then i think wat u r expecting can be done. In Interface Mapping, u can add more than one message mappings.
    So first do a Mapping for DB sender format - RFC input standard format,
    then another one for RFC sender Format - RFC receiver format, (look up code goes in this mapping).
    Then third one from RFC receiver format to DB receiver format.
    The order n which u add in Interface Mapping is also important. This is a suggestion, i havent tried this, but still i think u can give it a try.
    Regards,
    P.Venkat

  • How to use standard Search Input Help (return 2 data code and desc) ?

    Hi,
    Please advise how to use standard Input Help provided by SAP and return 2 data (code and description) ? because the standard Input Help only return the code only ?
    Thank You and Best Regards
    Fernand

    >
    Saket  Abhyankar wrote:
    > Hi,
    >
    > I think you need to go for 'Search Help Exit' or OVS.
    >
    > Regards,
    >
    > Saket.
    That is not true that this is the only way.  The standard Data Dictory based search help can return more than one value as long as there are multiple exporting values defined in the search help, the search help is attached to a Data Dictionary Structure, and this same data dictionary structure is used as the source of the context node. You can read more about this in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    The Note section under Integration:
    If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
    If the context node is not mapped to the structure, the data element's input help can be used if there is one.

Maybe you are looking for

  • Error reading setup initialization file

    I am trying to download and install J2SE v 1.4.2_04 SDK and J2SE v 1.4.2_04 JRE on a Windows XP platform SP1. The machine is a dual XEON 3.0 G machine with 1G of memory. I downloaded the software and saved it to my desktop. When I double clicked on e

  • How to recognize the text inside a text box

    we have a scenario where we are validating the text inside a text box. Actually, we are inserting a text matching test on a node. The scenario is like this: When we open the screen it contains 6 text boxes. We have to enter the text in the first 3 te

  • Can I use same USB drive for Intel and PPC backup?

    Hi, I have a USB hdd that was used for TV recording but failed on that so I reformatted it as Mac OS extended journaled with 6 partitions (GUID), and using SuperDuper, cloned Lion from a Macbook Air and Tiger from my eMac into different partitions, w

  • Only one instance of my transaction works - CICS ART

    I have been able to deploy a CICS application on Tuxedo ART 11gR3 on RHEL 5. But I can only access the application thorugh 1 Tn3270 window. Until I finish the applictaion, I cant use it from the 2nd terminal window. I am trying to figure out how can

  • Capture Process Error

    Hi, We are working on Oracle 9i bi-directional Stream replication. After set up, and sufficient amount of testing from our side, we are facing fatal error in Capture process in one of the database. Both the db srvr are having similar set up parameter