Standalone interactive Form-- initiate the GP process.

Dear Experts,
I am trying to initiate a GP process from a standalone offline interactive form on the click of a submit button.I have a few doubts:
1.It is documented that the standlone forms maintain a user session.How can i access the user information from the session?For e.g if i want to know the user ID of the person who submitted the form , how can i do that?I want to map the user submitting the form to the initiator of the process using some background object.
2. Also there's a requirement that default roles be assigned to all the processors of the actions.Can we override this somehow?
I'll appreciate any help.
Thanks,
Karambir Singh

Hi karambir,
Go thru the link below for info on using Java APIs for form Handling
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/34be0d89f01bcce10000000a1553f7/frameset.htm
Go thru the link below for accessing context paramter
(you can retrieve the template’s form context structure as an instance of the com.sap.caf.eu.gp.exception.api.IGPStructureInfo interface, which represents the context parameters of a GP development object.)
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/34be0d89f01bcce10000000a1553f7/frameset.htm
GP API Documentation for accessing more user information thru UMFactory Class
http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0774413aff5458e10000000a1550b0/content.htm
Point 2:
You can select the option "Override Default Roles at runtime" in the Role or Built-in Roles  Tab (I dont remember where that option is ), that should help you deal with your second point.
Regards,
Anish

Similar Messages

  • Could not initiate the BPEL process :the input xml is not well formed err

    Hi
    I am calling a bpel process from the bpel console. It is a syncronous process and just fetches values from the database. I see that when ever i call this for some inputs i get the following error , in the response.
    Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (1, 6168) Invalid char in text. Please correct the input xml.
    When i see the log i have the following message
    fault.collaxa.cube.ws> <AdapterFramework::Outbound> Returning outbound XMLRecord for OutputParameters
    Exception: Error parsing envelope: (1, 6168) Invalid char in text.
    e.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    e.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    e.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:935)
    ate__ws._jspService(_ngDoInitiate__ws.java:455)
    erver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    .runtimev2.JspPageTable.service(JspPageTable.java:453)
    .runtimev2.JspServlet.internalService(JspServlet.java:591)
    .runtimev2.JspServlet.service(JspServlet.java:515)
    let.http.HttpServlet.service(HttpServlet.java:856)
    nd.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    urity.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    ity.AccessController.doPrivileged(Native Method)
    rity.auth.Subject.doAsPrivileged(Subject.java:517)
    I understand that the error is coming with parsing the output from the database values. Further i see the process is completed successfully when i see the flow and log and the out is present in the output response. Has any body faced this issue. What is that character that it is nto able to parse as the error says.
    Thanks
    -Pradip

    hi
    I have tried it using both xml and the initiate tab. I get the same error every time i do it for a particular value. i further think that this is occuring for the out put response that is got from the data base as the log says. ( given in the initial post). I can surely paster the input xml for you
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/InputXXESIOEHEADERSIFACE">
    <ns1:XxesiOeHeadersIfaceCollection>
    <ns1:XxesiOeHeadersIface>
    <ns1:orderSource></ns1:orderSource>
    <ns1:originalsystemreference></ns1:originalsystemreference>
    <ns1:customerNumber></ns1:customerNumber>
    <ns1:Country></ns1:Country>
    </ns1:XxesiOeHeadersIface>
    </ns1:XxesiOeHeadersIfaceCollection>
    </soap:Body>
    </soap:Envelope>

  • "Could not initiate the BPEL process because the input xml is not well form

    hi all,
    i am new to BPEL and tring to create a BPEL WebServices. now i got struck up with one issue like below
    "Could not initiate the BPEL process because the input xml is not well formed, the reason is : Error parsing envelope Please correct the input xml."
    But according to BPEL compiler there are no errors in the design and deployment as well. when i tries to initiate the deployed WS i am facing the above issue.
    can anybody help me to fix this issue. Thanks in advance.
    Regards,
    Kalyan

    hi' Kalyan,
    The issue seems to be due to XSD file which you are importing while making the new BPEL process,
    the XSD file is very sensitive even a simple upper case will create error, XSD file are many times used when you want
    to pass some entries to be updated in the database.
    use this XSD file:"discountflow.xsd"
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://www.autoloan.com/ns/autoloan"
    xmlns:tns="http://www.autoloan.com/ns/autoloan"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <!--<element name="Demo" type="tns:DemoType"/>-->
    <element name="Order" type="tns:OrderType"/>
    <complexType name="OrderType">
    <sequence>
    <element name="orderid" type="int"/>
    <element name="tenantid" type="int"/>
    <element name="orderstatusid" type="int"/>
    </sequence>
    </complexType>
    </schema>
    <complexType name="Discount">
    <sequence>
    <element name="approval" type="boolean"/>
    <element name="discount" type="int"/>
    <element name="quantity" type="int"/>
    </sequence>
    </complexType>
    </schema>
    -Yatan

  • Could not initiate the BPEL process because the input xml is not well forme

    Your test request generated the following exception/fault:
    Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (2, 152) Invalid char in text. Please correct the input xml.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
    <ns1:RO_Update2ProcessRequest>
    <ns1:UserName>operations</ns1:UserName>
    <ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
    <ns1:API_VER>1.0</ns1:API_VER>
    <ns1:P_commit>T</ns1:P_commit>
    <ns1:init_msg>T</ns1:init_msg>
    <ns1:Org_ID>207</ns1:Org_ID>
    <ns1:R_Number>10782</ns1:R_Number>
    <ns1:R_Status>1008</ns1:R_Status>
    <ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
    </ns1:RO_Update2ProcessRequest>
    </soap:Body>
    </soap:Envelope>

    Try
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <ns1:RO_Update2ProcessRequest xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
    <ns1:UserName>operations</ns1:UserName>
    <ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
    <ns1:API_VER>1.0</ns1:API_VER>
    <ns1:P_commit>T</ns1:P_commit>
    <ns1:init_msg>T</ns1:init_msg>
    <ns1:Org_ID>207</ns1:Org_ID>
    <ns1:R_Number>10782</ns1:R_Number>
    <ns1:R_Status>1008</ns1:R_Status>
    <ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
    </ns1:RO_Update2ProcessRequest>
    </soap:Body>
    </soap:Envelope>

  • Interactive Forms - "Overdue or Erroneous Processes"

    Hi,
    I created an interactive form which starts a process upon submission. It is starting a process (I am receiving a success message from on the PDF form) but the process is falling into "Overdue or Erroneous Processes" category. I checked the logs to see if any exception is being thrown but found none. Why the process is falling into erroneous processes category? How can I find more information about this?
    Thanks
    Ram

    Hi,
    I assume that you have not set any due date which points to the past so the most likely explanation would be that the process transitions into an "error" state because a background step fails.
    Of course, this is only possible if the first step is in fact executed by a background callable object.
    To check this, you can also examine the process instance using the NetWeaver Administrator (NWA). To do so, enter http://<server>:<port>/nwa. The monitoring tool for GP can be found in "System Administration" -> "Monitoring" -> "Guided Procedures".
    To select your process instance, choose a the tab "Process Instances". There you can filter for erroneous instances and it will be most easy to specify the user under which you have posted the form as the initator. You should then be able to examine your process instance and to see at which step exactly the process is hanging.
    Kind regards,
    Frank Schertel

  • HT4527 I am trying to transfer music files from one PC to another using homeshare and although I can view the music as a shared folder I cannot initiate the "import" process.  I have iTunes 11.0.1.12 on both computers so the help screenshots do not help a

    I am trying to transfer music files from one PC to another using homeshare and although I can view the music as a shared folder I cannot initiate the "import" process.  I have iTunes 11.0.1.12 on both computers so the help screenshots do not help as such

    Then stop trying to use HomeShare and use one of the other options listed in the document from which your question was posted.

  • Adda more pages to an Interactive Form and the binary context

    Hi to all,
    my scenario is: I have a java webdynpro with a view with an interactive form of 2 pages. I inserted a button on the pdf which duplicates the second page (using java script). Then there is the "submit to SAP" button which transfers the content of the binary context (I bound it to the pdfSource attribute of the interactive form) to an R/3 system. The fact is that when then I read the "binary" file from R/3, I find only the 2 pages and not the pages I added with my button.
    How can I do? It's important for me the possibility of having more second pages.
    Sorry for my english,
    Thanks in advance
    Enrico

    Hi Enrico,
    If I understand correctly, you are calling the addInstance() on click of the button that you placed in your form and when you add more pages using this button and save the fikle and open it again, the newly added instances are not displayed in the form. Am I right?
    If this is the scenario, the you need to store the value of the forms created using this button and call the same addInstance() method in the initialize event of your form. I.e place the same code that is there in click event of the button inside the Initialize event of the form with the number that we have saved in some hidden field.
    Hope this resolves your issue.
    Cheers,
    Arafat

  • Passing value from Adobe Interactive form, to the Webdynpro Application

    Hi,
    I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.
    However, i need help with the following:
    1. Online scenario:
    User has filled details in an interactive form & clicks on the submit button.
    The Data from the form is NOT getting passed back to the WebDynpro application.
    2. Offline Scenario:
    User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.
    How do i read the data that the user has entered in that pdf file?
    Any help with regard to these two queries, will be appreciated.
    Thanks,
    Hanoz

    1) Online Scenario
    check if the context mapping between UI elements and Context is properly done
    check if the cardinality of the Context is alright.
    2) Offline Scenario
    you will have two views.
    one upload view
    and one interactive form view
    in the upload view use the File Upload UI element.
    in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.
    Add the following line of code to the
    method wdDoInit.
    wdContext.getNodeInfo().getAttribute
    ("pdfObject").getModifiableSimpleTyp
    e();
    Add the following line of code right
    before
    wdThis.wdFirePlugOutToDisplay()
    in the method onActionShowForm().
    wdThis.wdGetTravelRequestCompControl
    ler().wdGetContext().currentContextE
    lement().setPdfObject(wdContext.curr
    entContextElement().getPdfObject());
    in the interactive form view, change the property of the interactive form.... MODE to usePdf.
    regards,
    -Ag.

  • Standalone Interactive Forms without ABAP Dynpro and Drop down boxes

    Friends,
    I need to create Adobe interactive form with drop down boxes. I have 2 questions:
    1) do i need to use abap dynpro to display the form or can i display the form using print program
    2) for using drop down box, should i use the one from standard library or Web Dynpro ActiveX or Web Dynpro Native library
    Points will be rewarded for helpful answers.
    Thanks.

    Hi,
    Its not necessary to have ABAP web Dynpro to create and display adobe forms. You can display it in programs in ABAP. Go to following link to know more:
    [https://www.sdn.sap.com/irj/sdn/adobe#section39]
    There is a sample application for Adobe form in ABAP and lot more.
    You can use web dynpro Native dropdown list.
    Hope it will help you.
    Regards,
    Vaibhav Tiwari.

  • Read values from Adobe Interactive Form inside the webdynpro

    Hello,
    I have problems to read the values of the fields inside de adobe. I read an article on saptechincal that told:
    You can see the Adobe form that we have designed, enter the data as shown below and press the submit button. (As I said earlier an activex control will be installed on to the client machine, you can see the activex control in the internet explore go to the menu: ToolsàInternet optionsàgo to the programs tab àPress button Manage add-ons.
    You can see an activex control named u2018SAP ACFu2019, if you donu2019t have this control you will not see this page: Note you need to have adobe acrobat reader 7.1 installed, I have used version 9, the activex control was not working properly so down graded my adobe reader to 7.1)
    This is true ???  I have the Acrobat reader 9.3 and i saw that also have the SAP ACF installed.
    The value of the property displaytype  on adobe interactive form on webdynpro is activeX or native.
    Thank you in advance.

    Hi,
    <p>
    Thank you for the answer.
    <P>
    I change the value of the attribute but again i can read anything from the adobe form. So let me explain what i'm doing.
    <P>
    Objective: I have to create one webdynpro with an adobe interactive form for create new clients on r/3 system.
    <P>
    1. I create de the view with 2 elements an interactive form and one submit button.
    <P>
    2. Create the context of the view with the following tree:
    <P>
    > context (node)
    <p>
       > ADOBE_DATA (node)
    <p>
          > Clients (from KNA1 table) (node)
    <p>
             > KUNNR
    <p>
             > LAND1
    <p>
             > NAME1
    <p>
             > ORTO1
    <p>
             > TELF1
    <p>
      >PDF_SOURCE
    <p>
    3. Complementing the properties of the interactive form:
      datasource = clients node of the context
      displaytype = native
      pdf_source = pdf_source attribute of the context
      templatesource = name of the form
    <p>
    4. Create the form, and add the data source to the interface of the form
    <p>
    5. On the form bulider i add and subform on the hierarchy tab and the all the fields of the interface to the form and
    automatically the value of the fields are binding.
    <p>
    6.Add a submit button from web dynpro native and add the event click to the button. Then i change the value of the layout type and save e activate the form and the interface
    <p>
    7. The next step is create an action for the button submit for the event  "onSubmit". So i create the function and start coding this code:
    <p>
    DATA: adobe_node    TYPE REF TO if_wd_context_node,
    <p>
            client_node   TYPE REF TO if_wd_context_node,
    <p>
            client_element TYPE REF TO if_wd_context_element,
    <p>
            client        TYPE if_create_client=>element_clients.
    <p>
    *Get reference to the adobe_data node from the context
    <p>
    adobe_node = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    <p>
    *Get reference to the clients node from the context
    <p>
    client_node = adobe_node->get_child_node( name = wd_this->wdctx_clients ).
    <p>
    *Get element node
    <p>
    client_element = client_node->get_element( ).
    <p>
    *Get the values from the form
    <p>
    client_element->get_static_attributes(
    <p>
        IMPORTING
    <p>
          static_attributes = client ).
    <p>
    8. Then for finalize i add the view to the window and crate a web dynpro application and put one break point on the submit function event.
    <p>
    9. Activate and test the application and when the program try to add a reference to the element node always returning a null reference and the application dumped.
    <p>
    So please help with this situation i can't understand what is the mistake.
    <p>
    PS: Now i have installed the acrobat reader 7.0.8
    <p>
    Edited by: miglsilva on Sep 4, 2010 5:50 PM
    Edited by: miglsilva on Sep 4, 2010 6:01 PM

  • Using Adobe Interactive Form - Attach The Static PDF.

    Dear Experts,
    Is it possible to attach the static pdf  along with dynamic pdf, which is been created at run time in using NW 7.0 adobe interactive form(Interactive Form UI Element)., If yes then kindly let me know how can be done ..
    Any help will greatly appreciated.
    Thanks
    AB

    Solved my self, converted PDF into image and used that pdf as a static image in Adobe Interactive Form.

  • Saving a interactive form into the application

    hi gurus,
    I have developed an application which contains interactive form design by getting values from the back end r/3 system.
    The PDF is being populated by getting the data from the back end.Now my problem is that I need to open this PDF in an external window.
    Earlier I have embed this interactive form in a view and the view contains the PDF, now the PDF should be opened in a external window and does be in the view.
    So I thought of saving the file into the src/mimes/components and then call the PDF on file download.
    Can you help me in this issue.
    Thanks and regards,
    kris

    hi,
    Canyo check the following link
    SAP Interactive Forms by Adobe

  • Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)

    Hi All,
    I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
    Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
    I have button in the adobe form.
    Button Name = u201CSAVEu201D
    Button type    = SAP Submit button (Native type u2013 I am Using ZCI).
    While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form. 
    Here I am facing a problem.
    I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
    Example:
    The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
    1)     I have selected second value in the Drop down (ROW1)
    2)     I have selected fourth value in the Drop down (ROW2)
    3)     I have selected fifth value in the Drop down (ROW3)
    4)     I have selected seventh value in the Drop down (ROW4)
    5)     I have selected third value in the Drop down (ROW5)
    I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
    How to resolve this problem.
    Regards,
    Boopathi M

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • Adding Images in the Interactive Form

    Dear All,
        How to add a image in the standard SAP Deliver interactive forms for the PCR.
    Can i able to change the logo which is available in the system to the custom logo.
    So that will it get reflected in the all the standard screen using the logo.
    Thanks
    Yogesh

    Hi Yogeshwaran,
    After u create a UI element for the Image. set the URL for the UI element value in ur coding for the Value Attribute which is bound to the Image UI element.
    After setting the URL, save the URL in the back-end table so that next time the form is loaded the Custom logo is displayed
    Hope this helps u
    Regards,
    Poojith MV

  • Saving the interactive adobe for as readonly or non-interactive form

    Hi,
         I want to save the interactive form in the final submission as non ineractive or readonly.Though i could able to save the form as pdf but the form is editable.Can any one suggest solutions for this.
    Thanks in advance.
    Dev

    hi,
    that should be easy.
    make a Context attribute <xxx> of type "boolean"
    GOTO
    interactive form->properties ->enabled
    there instead of choosing "true" or "false", you can bind it to a context attribute.(click on ...)
    By default make the context "true" so that it is enabled.
    at some particular event when you want it to be disabled. set the  bound context to "false".
    this should help.
    regards,
    -ag.

Maybe you are looking for

  • Error in Seeburger Message Monitoring

    Hi , I m using Seeburger as Sender R/3 System.and the receiver is Xi.as an idoc file. I m getting error in seeburger message monitoring with status as "Could not send ansynchrone MDN to partner - url not set!". can anybody tell me whats the reason be

  • Leopard graphic update

    I downloaded and installed the recommended Leopard graphic update, and now certain type on websites appears blurry. I've had this problem before, but fixed it by changing the font smoothing style and text sharpening, however, now no matter what chang

  • How to publish project to get url?

    how to publish project to get url?

  • Song Metadata Not displayed on MW600 bluetooth headset, any way of fixing this?

    I have a ipod touch 4g on 4.3.3 and i have a sony ericsson MW600 hifi bluetooth headset, I know that the ipod touch 4g has AVRCP profile but when i pair the two together, the song playing is not displayed on the headset, why is that? if i pair it wit

  • Partial Lost of Mail

    I have discovered that ALL my mail from two months previously is no longer available today. I have rebuild the mailboxes (2 accounts) all the associated drafts, inbox, sent etc... but nothing comes back. I have also made a copy of my MAIL folder (in