Adobe Form via RFC - spool order

Hello experts.
When I'm calling an Adobe Form via RFC I'm not getting the spool order in the target system. The Form is issued with:
  fp_outputparams-device  = 'PRINTER'.
  fp_outputparams-NODIALOG = 'X'.
  fp_outputparams-DEST = '5175'.
  fp_outputparams-REQNEW = 'X'.
  fp_outputparams-REQIMM = 'X'.
  fp_outputparams-COPIES = '001'.
If I call the Form function within the target system, the spool order is created.
I'm doing something wrong? Or the spool order could not be created via RFC function call?
Thank you a lot!

There are no exceptions regarding the RFC call. I'm starting to believe  that with this approach, I won't get a spool request. Hopefully that isn't a problem for my company.
I'll leave the question unanswered in case anyone comes up with a well-funded answer.
Regards,
Andrés Sarcevic.

Similar Messages

  • Seperate Adobe Form printing for each order

    Hi,
    I have a scenario where i need to print Adobe Form for each order.
    Right now i am handling this from print program(Executable) by looping at the Adobe form FM for each order.
    So it will print seperate Adobe form for each order with corresponding Header & Item Data.
    To get next order i need to hit on right & last arrows etc...
    So right now i am handling it through Print Program.
    Is there any way it can be handled directly at Adobe Form level.
    By passing all orders to Adobe FM at a time (Intsead of looping) and handling Adobe Form printing for each order at Adobe Form level itself!
    Thanks in advance.
    Thanks,
    Kumar.

    simple,
    create one new program  not driver program . Then u have to call that FORM
    1.Get all the data created during the dates.
    split the data into , based on the date ranges.
    2.
    loop at itab1.
    perform open_form
                write_form
                close_form
    endloop.
    loop at itab2.
    endloop.
    1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
    2) Every June 15th and Dec 15th I need to print the form for that Order
    automatically with some other data.
    <b>---> what ? what u split ?</b>
    *--Similarly I need to trigger the form in this way automatically for all Orders.
    <b>---> Config+ABAP</b>
    How can I trigger the Form automaticall for the above requirement
    Regards
    Prabhu

  • Creating ADOBE form with RFC

    Hi All..
    I need to  Create a Adobe Form with the table structure as used in my RFC and Using onSubmit event to store the entered data into SAP. Please Provide me Some Useful links to know the proper process, please guide me the process.
    Thanks,
    Parameshwari

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b33fc-9eb1-2c10-0599-f2ef9fb5c5b6?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b33fc-9eb1-2c10-0599-f2ef9fb5c5b6?QuickLink=index&overridelayout=true
    Regards,
    Mahesh

  • Issue printing labels in Adobe form via Datamax printer

    Hi,
    We have developed an Adobe form which contains a barcode for the label.
    This label gets printed fine when we print it on the printers in the office headquarters.
    However, at the plant location where it is supposed to be printed, the labels are not getting printed.
    The printer at the plant location is Datamax H-4212.
    Any idea what's wrong? Will the Adobe form need to be changed for this?
    Please help.
    Regards,
    Anusha

    Hi,
    Which device type do you use to create the spool and print? Only the device types described in the following note are possible with Adobe forms:
    685571 - Printing PDF-based forms
    I suggest you try with device type PDF1 and SAPPDFPRNT as per SAP note 1444342.
    Regards,
    Aidan

  • Error while opening the ADOBE FORM via mail

    Hi to all,
    I have created a program to attached ADOBE FORM to mail.
    When I execute the program, it sends ADOBE FORM to my mail ID successfully.
    But when I open my mail and try to open attached ADOBE FORM, it gives error
    ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).
    Please can any tell me, what the problem is and what the solution is for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 1, 2011 2:22 PM

    Thanks for reply,
    below is the code.
    data:
      l_fm_name         TYPE rs38l_fnam,
       l_formname   TYPE fpname VALUE 'ZTESTF1' ,
      fp_docparams      TYPE sfpdocparams,
      FP_FORMOUTPUT     TYPE FPFORMOUTPUT,
      fp_outputparams   TYPE sfpoutputparams.
    data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.
    START-OF-SELECTION.
    data: st  TYPE  ZTABFM11.
    data: it type table of sflight.
    data: wa like LINE OF it.
    data: wa_st like LINE OF ST.
      fp_docparams-langu   =      'E'.
      fp_docparams-country =      'US'.
      fp_docparams-fillable =      'X'.
      fp_outputparams-nodialog = 'X'.
      fp_outputparams-preview =   'X'.
      fp_outputparams-device   =  'LP01'.
      fp_outputparams-getpdf  =   'X' .
      fp_outputparams-dest   =    'LP01'.
      fp_outputparams-reqimm  =   'X'.
      fp_outputparams-reqdel  =   'X' .
      fp_outputparams-xfpoutdev = 'LP01'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = l_formname
        IMPORTING
          e_funcname = l_fm_name.
      E_INTERFACE_TYPE           =
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    select * from sflight into TABLE it.
      loop at it into wa.
        wa_st-CARRID = wa-CARRID.
        wa_st-CONNID = wa-CONNID.
        wa_st-FLDATE = wa-FLDATE .
        wa_st-PLANETYPE   = wa-PLANETYPE.
        append wa_st to st.
        endloop.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
              st               = st
        IMPORTING
          /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4
       CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             = result
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = FP_FORMOUTPUT-PDF
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_ATT_CONTENT_HEX  .
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Fill the details.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'flight details' ).
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'flight details'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA:
      lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
      l_send type ADR6-SMTP_ADDR value 'mail id '.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
      lo_sender = cl_sapuser_bcs=>create( sy-uname ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
      lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'Form sucessfuly send to person' type 'I'.
    plesase can any one, provide the soultion.
    i shall be thankful toy you for this.
    regards
    pavneet rana

  • Can I invoke outlook 2010 from an Adobe form via a submit button

    Currently We use Adobe 8.0 and we can invoke Lotus notes on a windows XP machine.
    We are now going to Microsoft Outlook 2010 can we still invoke Outlook via a Submit button on the form. Thanks

    What is "Adobe 8.0"?

  • Change and Update values in a form via RFC

    Dear Friends,
    Here I am facing a scenerio in an application form. We have a Patient ID. On the base of this ID I have to display the details of patient in a form. But again if patient wants to change some details, he can do that in same form and after submitting the form values should be update in R/3.
    I am able to display the values on the base of patient id by Display Rfc, but i dont know how to edit and update those fields.
    kindly help me out.
    thanks & regards
    Nivedita

    Dear Sarb,
    Thanks for your inputs. I did as u suggested. But while deploying my program, Deployement Aborted is showing.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
    if (wdContext.currentPatientIdElement().getPatientId() != null)
    {wdContext.currentZpat_Couns_InputElement().setPa_Id(wdContext.currentPatientIdElement().getPatientId());
    wdContext.currentPatientIdElement().setPatientId("");
    } else {
    wdComponentAPI.getMessageManager().reportSuccess("No Records Found");     }
      wdThis.wdGetEditdisplayController().executeZpat_Couns();
        //@@end
      //@@begin javadoc:onActionEdit(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionEdit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionEdit(ServerEvent)
         Zpa_Counsel1 obj = new Zpa_Counsel1();
         Zedit_Coun_Input xyz = wdContext.currentZedit_Coun_InputElement().modelObject();
         IZedit_Coun_InputNode crnode = wdContext.nodeZedit_Coun_Input();
         IZedit_Coun_InputElement crele;
         obj.setZberuf(wdContext.currentContextElement().getZberuf());
         obj.setZbhist(wdContext.currentContextElement().getZbhist());
         obj.setZbland(wdContext.currentContextElement().getZbland());
         obj.setZbpl(wdContext.currentContextElement().getZbpl());
         obj.setZdall(wdContext.currentContextElement().getZdall());
         obj.setZdiet(wdContext.currentContextElement().getZdiet());
         obj.setZdrink(wdContext.currentContextElement().getZdrink());
         xyz.addZpat_Detail(obj);
         wdThis.wdGetEditdisplayController().executeZedit_couns();
        //@@end
    and my Context of view is like this now
    +Context
    ....+Zedit
    ....+Zdisplay
    ....+PatientId
    .......++patientid
    ..........++zberuf (All editable parameters under root Context)
    Kindly Suggest
    Thanks & Regards
    Nivedita

  • Calling Adobe form via ABAP Web Dynpro

    Hi
    Ive followed the below WIKI and have encountered an issue and finding it rather frustrating to resolve
    http://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro
    Im fairly new to this to pls excuse my ignorance
    The message Im getting when I check for errors in my MAIN view is
    ""A label must refer to element "DISPLAY_NO".""
    The procedure tells me the follow
    a) Create a label and bind its 'Label for' property to the UI element.
    b) Select the label's 'Text' property, bind it to an appropriate context attribute or, alternatively, set the quick info (or accessibility description - if one exists) for the UI element.
    c) Either set the visibility of the label to "visible" or set the element that the label refers to as invisible.
    Im just not sure where to correct this under my DISPLAY_NO element
    Im not sure if thisis the reason why im getting the UNCAUGHT_ EXEPTION - CX_WD_GENERAL runtime error as well
    Telling me my object Z************* does not exist
    Regards
    Justy

    Hi...
    in your view for element DISPLAY_NO, There is no label. So create one label and
    in corresponding label properties bind its 'Label for' property to the display_no ui element.
    And did you activate your component ? if above is the error, you will not able to activate the component. So first check and activate component. if you get any error related to DISPLAY_No, then follow the above procedure.
    if you have any doubts, post the same back
    Regards
    Srinivas

  • Adobe Form attaching it to Standard transaction

    Hi Experts,
    I've developed a Adobe Form & Interface for Purchase Order Now I want to attach it to the purchase order Transaction ME22 for print preview & then for print.How to attain this, & where to  attch my program?
    Thanks in advance.
    Your efforts will be valued.
    Regards
    Hemendra.

    Hi,
    Normally the purchase order printout is associated with NEU output type. You can see this from header->messages tab in Me22. Once you are sure about what output type you are going to use, then you can configure the output type via SPRO transaction. MM->purchasing->Messages->Output Control-> Message types->Define message types for purchase order.
    there you can enter your program name , form routine in "Processing Routines" node . Once you ensure that there are condition records entered for this to happend , then whenever a purchase order is created , the output type is triggered automatically and you end up having a printout available for your use as required.
    Regards,
    Raymond.

  • JavaScript code in Adobe Forms

    Hi Experts,
    I am new to Adobe Forms in SAP.
    My query is based on JavaScript coding part in Adobe Forms.
    Requirement - Sales Order Creation in SAP via Offline Adobe Forms.
    Scenario -
    In Adobe Form, i have a drop down field which is filled with Customer Name.
    Based on the selected Customer Name, fields like Customer Code, Division and Distribution Channel will get filled automatically in Text Fields
    Mentioned values are available in my internal table.
    Please share the logic for fetching the internal table values via JavaScript code of Adobe Forms and assign it to designated fields.
    Thanks in advance.
    Regards
    Sunil S Girija

    Hi Sunil,
    Please refer the below link.
    SAP Adobe Interactive Forms - Javascript - Code Gallery - SCN Wiki
    If you need more help let me know.
    Thanks & Regards,
    Nandakumar

  • How to handle tables data in XML schema based adobe form

    Hi all,
    I am working on the CRM business partner creation by using Interactive adobe form with following steps:
    1) Uploaded the offline Interactive adobe form  to online interactive adobe form via WebDynpro ABAP;
    2) Capture XML data into corresponding BAPI structures;
    3) Save all the changes to database via BAPI.
    The adobe form contains customer information as well as several table views which are bind with the context created in WebDynpro: Node NEW_BP_NODE cardinality 1:1 with single attributes and table type attributes (1:n): COLOUR_COMP, MEN_COMP etc.
    While converting the xml format data to SAP context format, It is fine to use following routine to find the single attribute and map to the BAPI structure to do the database update.
    NODE = DOCUMENT->FIND_FROM_NAME( NAME = 'XYZu2019).
    XYZ = NODE->GET_VALUE( ).
    Question: how to convert the xml table data to SAP context format in WebDynpro ABAP?
    The XML table data looks like below.
    <?xml version="1.0" encoding="UTF-8" ?>
    <NEW_BP_NODE>
    <COLOUR_COMP>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX>000</ZZTFLDRZ2AQX>
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX>000</ZZTFLDTC2DQX>
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    </COLOUR_COMP>
    <MEN_COMP>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    </MEN_COMP>
    Thanks in advance for your help.
    Michelle

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • Adobe form Through Email

    Hello Gurus,
    My requirement is to send the Adobe form via Email as attachment.
    Am using FM "FP_JOB_OPEN", Generated Adobe Form FM and FP_JOB_CLOSE.
    Here, am getting PDF format in "FPFORMOUTPUT-PDF".
    As "FPFORMOUTPUT-PDF"  is in format of xstring, We need to convert it to Binary and for this am using FM "SCMS_XSTRING_TO_BINARY". 
    Code:
    data: li_att_content_hex type standard table of x.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER     = FPFORMOUTPUT-pdf
      TABLES
        BINARY_TAB = li_att_content_hex.
    Later, am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send a mail.
    As a result am getting the mail with attachment as PDF but when I try to open the attachment it gives me an error as "It wasn't correctly decoded".
    Please, Let me know about this issue.
    Thanks in advance.
    Regards,
    Usha

    hi,
    Refer to this link..
    Re: Attachment in ADOBE form

  • Adobe form output different in QA and PRD for Currency field

    Background:
    I am using adobe form to display purchase order details using a output type.
    I am displaying the field NETWR of the purchase order in the form.
    For return orders this value is negative.
    Problem:
    In production system the value is displayed as 0. where as in QA the negative value gets displayed.
    The version of the form is same in both the system.
    Also I have speficied the Currency/quantity fields in the interface.
    I did a bit of debugging and found that in the generated function module of the form there is a difference.
    QA:
    PERFORM %OUTPUT USING 'NETWR' %WORKAREA4-NETWR 'CURR' 'P' 'HEADER-WAERS' HEADER-WAERS ' '.
    PRD:
    PERFORM %OUTPUT USING 'NETWR' %WORKAREA4-NETWR 'CURR' ' ' 'HEADER-WAERS' HEADER-WAERS ' '.
    You can see that the VALUE P (ABAP type for curr) is passed in QA but not in PRD.
    I am not able to understand what causes this code change.
    Has anybody come across this problem?
    Note: I am using copy of MEDRUCK for the interface.

    Thank you for posting your solution like a good community member! I was having the same problem and your post helped. Many Thanks

  • Formatting Long Text gets disturbed during Adobe form Printing

    Hi Guru's,
    I have developed Adobe Form for PM work Orders (IW32) printing using Code u2018SFPu2019. The Order Contains order Long Text or Operation Long Text.
    In my case the user maintains some table like structure in the Long text .e.g. ( Here the tab means the actual space and the text length can vary. So basically he will draw a table cells one below another by adjusting tab's)
    Text 2 Tab Tab   |___|___|
    Te TabTab Tab |___|___|
    I am reading this using READ_TEXT and it gets perfectly read.( I mean the tab positions will be intact. Also it will remain intact by the time ADS will get called)
    When i submit this for generating Adobe Form the formatting of the tab positions gets disturbed and it prints something like
    Text 2 |___|___|
    Te |___|___|
    How to keep the Tab positions intact while printing the Adobe Form? For SAP script printing it comes perfectly but for Adobe form printing it gets disturbed. Any idea how to handle this situation?
    Thanks
    Pradeep

    Tough request!
    You have to calculate the widths of texts so that to determine to which tab position refers each tab character.
    You might print the sapscript to OTF format, and read the OTF to get the exact positions (based on top left border of the page).
    But now comes the second big issue: how to position a text in Adobe form at a dynamic position. That, I don't know. You might ask a question about this 2nd issue in forum

  • Adobe form displaying data of previous selected records

    Dear All,
    I have created a wd component consisting of 2 views.
    In the first view i am displaying an ALV. When i select a record and click on the alv button, the second view
    gets called which contains an Adobe Form showing the data.
    The problem i am facing is that the record which gets displayed in the adobe form is the one previous selected record and not the current record which i select.
    Kindly give your valuable suggestions .
    Regards,
    Niti

    Hi ,
    Adobe form is just an external media in your case , it has nothing to do with your data.
    Check what data is getting passed to adobe form via debuging .
    check if your getting the selected element .
    You can also post your code here if possible.
    Regards
    Kuldeep

Maybe you are looking for