Differentiate between button events in WD ABAP Interactive form ?

Hi ,
   I have a senario in which I have  2 buttons in a Webdynpro ABAP Interactive form.
Button1 is to fectch some values from the back and set in the context so that it is populated in the form.
Button2 is submit button which calls a BAPI in the backed..
I need to differentiate between the events of these 2 buttons in my Webdynpro ABAP onSubmit event..
Is there any way to differentitate which button I have clicked in the form.. ????
Thanks
Siva

Hi Sivaraj,
you can try defining an action on OnCheck action. I think it should work.
If it doesnt work then, define an attribute in the context, and place it on the form, make this field invisible. Then on click on button set some values in this attribute. Read the attribute value in the ABAP. And perform the action according to that.
Hope this helps,
Amit

Similar Messages

  • Drop down list button in the WDP Abap interactive form

    Hi Gurus,
    I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code. Its very urgent...please help me. Please note that it is in WDP Abap interactive forms. We are using NW2004S, ECC6.0.

    hi david,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    with regards,
    -Amol Gupta

  • WD ABAP Interactive form to xml to xstring

    Hi All,
    I have created one WD ABAP interactive form with a submit button. After user enter the values in the form, once submits, it should trigger a workflow and I should send the whole PDF form as an attachment to a workitem.
    For triggering  work flow is not a problem. But this pdf should be generated again at workitem attachment.
    For converting to PDF and attachming the pdf to workitem I already have a business object.But now the problem is I have to generate the XML file from the context values and send this as xstring to my program, so that by using this value, it will re genarate the pdf with this updated values.
    So, i need a way to generate xml out of user filled interactive form
    and pass it as xstring.
    Appreciate your help.
    Regards,
    Ravi

    Hi ravi,
    These are the function modules  which converts table to String and the String to Xstring.
             SOTR_SERV_TABLE_TO_STRING  "Table to String
             SCMS_STRING_TO_XSTRING "String to Xstring
    For triggering work flow is not a problem. But this pdf should be generated again at workitem attachment.
    For converting to PDF and attachming the pdf to workitem I already have a business object
    Can you tell me how you are attaching document to Workflow and how you are triggering workflow on click of Submit button and what is the businees object to send the attachements to workitems.

  • ABAP-Interactive forms : Read-Only buttons upon runtime

    Hello,
    I'm fairly new at this and probably for a good reason I can't find any information pertaining to this issue.
    Using the embeded Adobe Lifecycle Designer within SAP using transaction SFP, I go to the layout tab and create a button.  On this button a make a simple script that changes the caption.
    On the PDF preview I can see that this works, though when I run the program using SE38 the button seems to be read-only and the cursor does not change nor is there any event that is triggered upon clicking.
    From what I read this is a dynamic form since there are other tables created dynamically and filled with data upon runtime.  I don't believe WebDynpro is involved considering I'm running it from the backend and the ABAP functions forward the parameters directly to this program.
    Would anybody be able to tell me why the buttons are read-only at runtime and not in 'PDF Preview'?
    Thanks a bunch,
    Scott

    Hi Sanda,
    I set DYNAMIC to 'X' and when the form is generated the buttons are still deactivated.
    Although, when I also set the FILLABLE parameter to 'N' a warning message appears telling the user that the form cannot be saved and then the buttons are clickable (and button event scripts are working).
    A problem here is that the form needs to be saved, is there a nice way to disable this error and allow the user to save the PDF?
    I also noticed another issue; Upon form load some tables are populated, depending on what certain data is, some images are changed via JavaScript.  With these current parameters this script seems to not be working.  The data has not changed and if I turn off the dynamic/fillable parameters, the script works again, any ideas?
    Thanks!  I'm almost there!
    Scott Renaud

  • Submit Button doesn't response in Interactive Form

    Hi Guys,
        I'm trying to implement a simple interactive form which is embeded in a abap webdynpro program.
        I've set the interactive form properties as following:
        displayType: native
        enabled: X
        onSubmit: CLICK
        and there has been a action "CLICK" with event handler and corresponding method implemented.
        For the interactive form i have drag and drop a submit button for webdynproAciveX group, and doens't change anything for this button. I check the "*click" of this button and it is run at Client.
        When I run this webdynpro program, the button is there, if i move my mouse onto this button, the mouse will change to hand shape. But if i click this button, it doesn't look like it has been really pushed down and up, I also tried the external debug of the OnClick method, I cannot get into the debug either.
        Do you have any idea what might be the problem?
    Thanks in advance,
    Mao

    Hi,
    When you are in the transaction SFP , then in the SAP tool bar you'll find the "Utilities" Menu bar, there you will be able to find the "Insert WebDynpro Script", when you click on this you'll in the Form in Heirarchy Pallete under the Variables you can see a script Object named "ContainerFoundation_JS" is being inserted. And Other Important thing is in the Properties tab of the SFP Transaction there select the Layout type as "ZCI Layout".
    And when you insert the Submit button from the Library Pallete under "WebDynpro Native", then you'll find the below code in the Script Editor
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070410093956.383622.376748 - SubmitToSAP.xfo
           ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    // END OF DO NOT MODIFY
    Regards
    Pradeep Goli

  • ABAP Interactive Form Information/Advice Needed

    Hello all.  I have some questions for all of the Interactive Form experts out there.
    We have a business requirement where we need to do some data collection around Material Master data offline and load the data back into SAP.  We are considering using the interactive form solution however there are a couple of general questions that we have.  We are currently running Netweaver 2004 WAS 6.40.  We have a J2EE Engine up and running with ADS however we are not currently set up to support JAVA Development so our preference is to accomplish this in ABAP.  Here are my questions:
    1.  It is my understanding that you must put "scripts" in the Adobe Form to load the data back into SAP.  This functionality is not provided in ABAP.  How difficult is it to do this within the form?  What is the best approach for the ABAP Functionality needed to load this data back into SAP, BAPI, Web Service, other?
    2.  Since we do not currently have Web Dynpro available, is it possible to make the form available via some type of web page such as a BSP?
    3.  Could anyone who has done an ABAP implementation of interactive forms provide some general feedback as to what there experiences are with this?
    4.  Is it worth the effort to consider a JAVA Web Dynpro solution?  We currently do not have any development infrastructure or deep JAVA knowledge in house but if the pros of this approach far outweigh the cons it is something that we might consider.
    Any help would be greatly appreciated and points will be rewarded.
    Best regards,
    Chris Hanshew

    Hello Chris,
    it is actually possible to generate interactive PDF forms using ABAP (with transaction SFP) in Web AS 6.40. You need to set the flag (F)illable to "X" and then the PDF forms generated with SFP will be interactive.
    However to get the data back from the form into the SAP system you will need to do some custom ABAP coding. You will need to decide if you want to get the data back via HTTP, Web Services or E-Mail (all three are supported by PDF forms). Lets assume you just use plain HTTP... In this case put a "HTTP Submit Button" on the form (you can find the Button in the standard Designer library). You configure the HTTP Button with the URL you want to submit the XML data to.
    On the Server side you will need to write the ABAP code which can handle the incoming HTTP message, parse the XML and post it to the right BAPI or RFC.
    Please keep in mind that you need a license from SAP if you want to use custom interactive PDF forms in production  (they are not part of the free functionality in NetWeaver).
    Cheers,
    Matthias Zeller
    Sr. Product Manager
    Adobe Systems

  • F4 Help WD ABAP interactive form

    Hi,
    Im designing an online interactive form in WD ABAP. I got the context from a BAPI and mapped to view context. Now how to map F4 field from data view to UIelemnt?
    Im dragging value help dropdown list from webdynpro activex palette to the form and selecting that field from dataview and dropping on the value help dropdown which i placed before. Doing like this the field is changing to text filed.
    Is this the right of way doing for getting f4 helps in to interactive form? Should my filed in dataview should have anyother properties to be a f4 help?
    Can some one help me on this?
    Regards,
    J.Smitha

    Hi,
    You can refer to this help. What it says is very clear.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/42/fb2fe500553ee4e10000000a1553f7/frameset.htm]

  • Value serch help issue in webdtnpro ABAP interactive form

    Hi Experts,
    Iam facing an issue with value search help filed in Adobe interactive form using webdynpro native .
    if i click on button search help is working but after selecting value in popup is not populating in respective field .
    Please guide me on this.
    Thanks,
    Pavan

    Hi Pawan,
    Where you able to resolve the issue, if yes can you please share with me the details.
    Regards,
    Pranay

  • Events Definition in Adobe Interactive Form

    Hi,
    I have a requirement to define a Button and handle the appropiate action in my BADI.
    I found out the appropiate BADI's method(SCENARIO_PROCESS_USER_COMMAND).I can include my coding here based on the USER COMMAND value.
    Now, I would like the define the Function code Value(User Command Value) for my button in my Adobe Interactive Form.
    Can anyone let us know how this can be done?
    Regards,
    Raja Sekhar

    Hello Peterson,
    Well, would be great if you had opened a new thread instead of continuing my closed thread.
    Anyways, If you want a dropdown from backend in ISR/PCR Adobe Forms, you require to implement QISR1 BADI - SCENARIO_SET_ADDITIONAL_VALUES method where we require to populate LS_ADDITIONAL_DATA Internal table as shown below.
    Get the list of Employee Groups for Dropdown
      SELECT * FROM T501T INTO CORRESPONDING FIELDS OF TABLE EG_TAB
                          WHERE SPRSL = 'EN'.
      CLEAR INDEX.
      LOOP AT EG_TAB INTO WA_EG_TAB.
        ADD 1 TO INDEX.
        CLEAR LS_ADDITIONAL_DATA.
        LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.
        LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_KEY'.
        LS_ADDITIONAL_DATA-FIELDVALUE = WA_EG_TAB-PERSG.
        APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.
        CLEAR LS_ADDITIONAL_DATA.
        LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.
        LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_LABEL'.
        CONCATENATE WA_EG_TAB-PTEXT '(' WA_EG_TAB-PERSG ')'
          INTO LS_ADDITIONAL_DATA-FIELDVALUE.
        APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.
      ENDLOOP.
    I hope this code will help you.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Webdynpro for ABAP - Interactive Form property 'Enabled'

    Hi All,
    I have developed a webdynpro and created a Interactiveform in main view. In Property if i check Enabled the form is not displaying in the output. If I uncheck it 'The form is not interactive (means user input not allowed)'. How can i make the form interactive and display in the output. Hope you guys understood my issue. Please lemme know if you need any further information.
    Also Please guide me how can I pass values from attributes of different nodes to 'pdfsource' attribute.
    Thanks in advance.
    GG
    Edited by: GGS on Apr 25, 2010 3:39 PM

    Hi Phani,
    Thanks for the info.
    I am able to see if it is not interactive.
    Displaytype is native only.
    Let me explain you the issue in detail:
    Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
    For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
    Now I have to pass data from difft  node attributes to that 'NODE'.
    Thanks in advance,
    GG

  • Submit Form button doesn't work in interactive form opened in Reader created in InDesign6

    One of the features I was really looking forward to  in CS6 was creating fillable forms with ONE application. I created a form following the step by step instructions in classroom in  a book for CS6.  When I opened the exported form in Reader X, I get a "This operation is not permitted" error. I opened the completed "end" document in the lesson to make sure  I didn't commit an error, and I got the same message when exporting. I have looked for places in menus to modify security restrictions and I can't find any. I installed the updates and that didn't solve the issue.
    I saw one solution posted which is to open the document in Acrobat, then do a "save as" option.   Is there anything we can do that doesn't involve buying additional software? If this is not the case, then Adobe seriously needs to change its training and advertising about this functionality.

    While I'm at it, here's a quote from Adobe's website, describing the Forms functions in InDesign CS6:
    Using InDesign you can create simple forms within InDesign, without needing to touch up the PDF document in Acrobat after publishing. You can add simple form elements within the document pages. Common field types such as text fields, radio buttons, check boxes, or signatures are supported. You can also add actions to submit the form by email or to print it.
    No...no, I can't.

  • WD ABAP Interactive forms

    Hi,
    I want to use IA form in WD abap, I set the templatesource PDF form, and the context node create auto, but there are only the nodes create from PDF form, the attributes under the nodes do not create.
    So I should create the attributes by myself or what should I do?
    after that what steps should I do? I go through the help docs, but too brief.
    can anyone help me?
    thanks and best regards
    Gang

    Hi Gang,
      I am wondering how only the nodes are getting created and not the attributes.
    In the templateSource property,once you  enter the name of the selected form, based on the interface of the selected form, a context node with attributes is
    automatically created for the UI element InteractiveForm. The dataSource property of the UI element is automatically bound to this context node.
    Can you recheck whether you are using the correct form and whether the interface of that form has the nodes and attributes.
    For further information,
    kindly go thru the demo here.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3">Adobeforms</a>
    Regards,
    Sharadha

  • ABAP interactive forms

    I have created form. In output i am getting all the pages with LOGO.
    I want to display logo only in main page rest of the pages with out logo.

    HI,
         I think u designed the LOGO  in the master page.Remov e from master page and put in body page.
       i think this will resolve u r problem.
    Thanks,
    Madhukar.

  • Add Button in ABAP Adobe form/ add onSubmit CLICK event????

    Hi All,
    I designed using ABAP webdynpro.
    I added WebDynpro ActiveX or WebDynpro Native submit button.
    Then I added CLICK under onSUBMIT events of view.
    And added code under ONACTIONCLICK.
    But it is not working. I check old post's saying to use  " Utilities->Insert WebDynpro Script" in layout,
    but in my case " Utilities->Insert WebDynpro Script" in layout is coming as inactive so can not able to
    add that.
    Can any one guide me how can i use Buttons on my Adobe ABAP interactive form?
    Thanks

    method ONACTIONCLICK .
      wd_this->fire_o1_plg(
    endmethod.

  • WD(ABAP) - Oncheck Event by Interactive Form

    Accessing Adobe Lifecycle Designer through Web Dynpro workplace will provide you with a set of fields in a special library called "Web Dynpro", in which I find some interesting element. Most of them are mentioned in the following place:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/frameset.htm</a>
    As I understood, the script within field triggers a Web Dynpro event allowing developer to realize the value check, search help functions in PDF. For example: the "Check Field" button delivers the code:
    app.eval("event.target.SAPCheckFields();");
    In Netweaver developer Studio, an Oncheck event is linked with Interactive Form, you find it under the event property. However I cannot find the same event in Web Dynpro ABAP. Does it mean Web Dynpro ABAP doesn't support the oncheck event of interactive form?
    I have tried to drag and drop a Check Field button on the form. When I click it at runtime, IE returns error message. Looking into ST22, The exception is CX_WDR_ADAPTER_UNKNOWN_EVENT' was raised.
    Does somebody have clue? I appreciated your help on this.

    It's ugly, but it's true:
    At this point in time, Web Dynpro for ABAP has only one Interactive-Forms-specific standard event (compared to the 2 in Java), which is the Submit event. I am hoping that both Web Dynpro worlds will be on the same level in terms of features in the next release.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

Maybe you are looking for

  • Random shutdowns X99S SLI Plus, ms-7885

    Hello, I'm trying to narrow down some random shutdowns. These seemed to be completely random and could happen with the computer idling. The computer just shutdowns and reboots. Nothing in the log, no BSOD. I have tried to trigger the problem by runni

  • Force browser's Java version in a multi-version environment?

    Most of our machines run only JRE 1.4.2_08, but there is a sizable part of the population that have both 1.4.2_08 and 1.5 installed for compatibility reasons. Is there any way to configure the browser, the plugin, or the content of the web pages them

  • Limit change access to all useres exept the one that created the document

    Hi, I wonder if it's possible to limit the change access only to the user that has created the document when it's in a specific status. This is what the customer wants: When a document is set to status K the document should be locked and no other use

  • How do you delete the submit form

    How does one get rid of the submit button when creating a form in Acrobat?  When I create the form, I then click Distribute form and in that process the submit button is attached to the form.  I don't want that button on the form. Mahalo, Ms Moore

  • Download Hung

    I have a specific song on a specific album that refuses to download. It is hung up. I have tried support and their suggestions are the things that I would try.. The song is about 3.1mb and gets stuck at 1.0mb. I have download about 10 songs since the