Call BADI  on click of a submit button in ESS

Hi All,
I am trying to call a function module ( i.e through BADI ) in a different browser by clicking on a submit button in Travel & Expenses Iview in ESS ( EP 6.0 ) but i didn't see any new window/ browser opened when i clicked on submit button.
The BADI is activated and its working fine because the same functionality is working good when i tested this through trans. code  PR_WEB_1200. When i clicked on a submit button, a new browser was opened and the form was displayed the way we want in a different browser.
But when i tested the same in ESS, i couldn't see any new browser or window opened. If the BADI was called when i clicked on the submit button atleast a new browser has to open with a blank page.
Please guide me, If anybody knows, how to call a function module in a new browser by clicking on a button in ESS - Portal.
Thanks.
Anil

Hi Jayesh,
  You can use the BADI BBP_CUF_BADI_2 to change the display from customer-defined fields to the SAP standard screen. This BAdI enables you to control whether the fields can be edited, and how they are displayed.
MODIFY_SCREEN method will Show/hide field display and restrict edit options.
For more information on BADI please go to SPRO -> BADI.
OR  View the information on BADI's.
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
Hope above proves helpful to you.
Regards,
Rajeshree.

Similar Messages

  • When click on the submit button i got the below error.

    Hi Gurus,
    i am very new to oaf.
    i am trying to insert data into database tables.
    so i am entering the data and click on the submit button i got the below error in createPG rightside the top
    Error while creating a new entity row for NewManagerCustomTableEO
    Plz help me
    thanks
    latha.

    Hi,
    Please provide the code that u r using..
    Thanks
    Raghav.

  • Calling a method with a html Submit button

    hi guys,
    is it possible to call a method from a JSP file using a HTML submit button. I know i can call another website easily doing it this way, is there a similar way available to call a method once the button is clicked?
    FYI
    The method is in a bean file named jdbc. The methods name is getUsername.
    Nice one.
    <form action = <%jdbc.getUsername()%> <input type="submit" value="Submit">

    Dear friend,
    you mentioned that u need to call a method when submit button is clicked. Is the method dynamically created. If not so, then you can include the method on the submit button html file itself.
    Regards,
    Rengaraj.R

  • Calling BAPI on click of Approve/Reject button

    Hello All,
    I have a GP Application in which the initiator fills out a form which goes for approval to the approver.....now once the Approver clicks on Approve/Reject button i want to call a BAPI to update certain fields in the R/3 ......since those 2 buttons are part of the standard SAP Visual Approval Callable Object ....please let me know if this is possible....
    Any help would be highly appreciated.
    Regards.,
    Anil

    Hello Anil!
    Basically, you have two options:
    1.) You can invoke the BAPI from your VC model when the button is clicked.
    2.) You can invoke the BAPI from the GP.
    First of all, you should consider wrapping the BAPI with a web service.
    For option 1: Import your web service into your VC model and invoke it when the button is clicked.
    For option 2: Create a callable object from you web service. In the VC you must now provide a result state, which indicates whether the approve or the reject button has been clicked. Depending on this result state you can now invoke the callable object in your GP.
    I recomment option 1.
    Best regards
    Alexander

  • Double Click handling with Submit Button

    Does a submitButton on the page automatically handle / block the user's double click action?
    I have an application where a submit button causes processing & commits to occur.
    I want to make sure that when the user "double-click" the button, it doesn't cause problems.
    Thanks

    Hi
    Does a submitButton on the page automatically handle / block the user's double click action?No it doesnot handles so..
    You can write the below code in processRequest method of your controller to disable the button till the moment processing is going on,After processing completes you can again click submit button.
    OAWebBean body = pageContext.getRootWebBean();
    if(body instanceof OABodyBean)
    ((OABodyBean)body).setBlockOnEverySubmit(true);
    }Please refer to this article for more details
    http://mukx.blogspot.com/2009/12/blocking-user-on-submit-action-in-oaf.html
    Moreover,if you want to disable the button after first click then on click of get an event redirect it to same page and make it disabled or use Partial page rendering for this.
    Thanks
    AJ

  • How to Prevent User for Multiple click on form Submit button ??

    Hi,
    Is there any easy solution rather than AJAX or any HARD Solution.
    to prevent user from being submit for only once...
    So database record remain consistent rather than redundant.
    if any JAVASCRIPT SOLUTION IT WOULD BE BETTER ONE.
    WHAT SHOULD I DO ??

    Use the disabled property, set it to true and then submit the form programmatically.
    <html>
    <head>
    <script>
    function validate()
         var textfield = document.getElementById('textfield');
         var submitButton = document.getElementById('submitbutton');
         var mainForm = document.getElementById('mainform');
         if ( textfield.value.length == 0 )
              alert("Validation Failed");
              return false;
         submitButton.disabled = true;
         alert("The button has been disabled, going to submit now");
         mainform.submit();     
    </script>
    </head>
    <body>
    <form id="mainform" action="#" method="GET">
    <input type="text" value="" id="textfield"/>
    <input type="submit" value="Try Me!" id="submitbutton" onclick="return validate();" />
    </form>
    </body>
    </html>A reminder though, this is JavaScript and these are Java forums.

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • Datagird submit button needs to be clicked twice

    Hello
    I have a submit button on an adf Read Only table that needs to be clicked once when the first page of data is shown to go to the next page but twice when the option “next 10” or the drop down list is used.
    The situation is as follows:
    I have one view object which is a read only query based on an Oracle view.
    This query takes one bind variable of type number.
    There are two JSF pages.
    The first page accepts a number via an InputText. When the user clicks the command button on the page the following code is executed so that the inputted value is stored in a managed bean (scope session) property userLang.
    public String gobutton_action() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding expr = fc.getApplication().createValueBinding("#{testbean.userLang}");
    Integer iLangVal = new Integer(Integer.parseInt((String)inputText1.getValue()));
    expr.setValue(fc, iLangVal);
    return "success";
    The second page contains an adf Read Only Table based on the view object. The view object needs a value for its bind variable. In the page definition of this second page there is an ExecuteWithParams binding which is used to set the bind variable of the view query. The binding is as follows : ${sessionScope.testbean.userLang}
    There is also an invokeAction in the executables section. This binds the ExecuteWithParams with a refresh of “if needed” and a refresh condition of “#{adfFacesContext.postback == false}”
    When running the application the first page is displayed. I enter 1 in the inputText and click on the commandbutton. The second page is displayed. The contents of the data gird are correct. (proves that the value is passed correctly to the managed bean and then to the bind variable in the view query. If I select a row and click on submit the next page is correctly displayed.
    If I repeat the test (I stop the OC4J) but this time use the “Next 10” option or the drop down list to change the page of data being displayed I have to click the submit button twice to make the next page display. The first click of the submit button only has for effect to refresh the current page.
    Does anybody know what is happening ?
    Many thanks
    Paul

    Hello
    I've removed the bind variable, the managed bean the invoke actions etc. and I still have the same problem :
    I now have 1 page with a command button on it which calls a second page with a read only table linked to a view object. There is no entity object. The bind variable has been hard coded into the view object. When I click on the submit button in the table the first page should be called.
    I click on the button on the first page and the second page opens.
    I select a row and click submit and the first pages opens - so far so good.
    I restart the application.
    I click on the button on the first page and the second page opens.
    I click on "Next 10" select a row and click submit and the page refreshes itself ! (instaed of calling the first page)
    I click for a second time on the submit button and the first page opens....
    Whats happening here ?
    Many thanks
    Paul

  • Adobe form with Webdynpro - Form is hanging on click of Submit button

    Hello Experts,
    My View has an adobe form that has many dropdowns and input fields. There are some fields which get automatically populated based on entries made by the users. There are several internal tables getting populated in the WDDOINIT method. I have a 'Submit Button' which when clicked should close the browser, retrieve data in the Context and do processing in SAP.
    When I click on the submit button, I get a 'Wait' symbol (the circle symbol) for a very long time and then the Connection time out error comes up.
    I commented the population of some internal tables in the 'Init' method. when I tested by clicking this button, it worked. The browser got closed and processing in SAP was done too.
    I am working with a fairly large data. 2-3 of the internal tables (that I commented) have 2000-3000 records. Is there is restriction on how much data the WDN can handle? I am stuck now because even though all codes are correct, the wdn is not able to handle the data.
    Any suggestions ?
    appreciate all your help! Regards, Liz

    This issue is resolved. This was due to loading a large data set to the form.

  • How to submit data from multiple Input Ports in single SUBMIT button  click

    Hi,
    I am in SPS8.
    What exactly steps I need to perform to submit data from multiple Input Ports.
    I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click.
    I debugged the VC application in SPS8.
    While debugging, I found that when I click the SUBMIT button in the Input Form, Only data in that Input
    form are being passed to the BAPI, But not the Table Form data.
    If I click on the SUBMIT button in another Input Table, Only data from that table is being passed to the BAPI, but not the Input form data.
    Essentially I need to submit both of them in one SUBMIT button.
    Thanks,
    Ramakrishna

    Ramakrishna,
    From the word document that you sent to me the steps you are missing to map the appropriate information into the BAPI is first you are not mapping all data rows into the table input port. To do this double click on the input table view and change your selection mode from single to multiple. Then when you click on your link between the BAPI and your input table you will see a new option appears under data mapping "Mapping Scope" select All Data Rows.
    That's the first part of the problem to get the BAPI to recognize both the inputs coming from the form and the table eliminate the submit button from the form. Drag and drop a link from the output port of the table view to the Input port of the BAPI. Double click on the link between the BAPI and the table view and open the expressions editor for the two fields:
    1/ Automatic Source
    2/ SKIP_ITEMS_WITH_ERROR
    On the hierarchical folder structure on the right expand expand the Data Fields node to find the fields from the form and map them accordingly.
    Now when you hit the submit button on your table it should pass the BAPI all the parameters from both the form and the table.
    Hope this helps,
    Cheers,
    Scott

  • Populating textbox in jsf on clicking submit button

    I am having inputText box, dropdownlist , outputText box and a submit button in my jsp page.
    I am pre populating the dropdown list from my managed bean. Also setting the values using setter methods that is input in inputText box and dropdownlist using managed bean.
    On clicking the submit button and based on selected item from the drop down list, I need to perform populating outputText box with return string from getter method from bean.
    But I am not sure how to handle this. Please find few lines of code below...
    <h:inputText id= "mnNum" value="#{UserBean.mnNum}" size="18" maxlength="17" styleClass="TxtSz12 LH18" tabindex="1" title="Man Number"/>
    <h:selectOneMenu id="lstService" value="#{UserBean.serviceType}" tabindex="3">
       <f:selectItems value="#{UserBean.getServiceItems}"/>
    </h:selectOneMenu>
    <h:commandButton  action="#{UserBean.submit}" id="submitButton" value="Generate"/>
    <h:outputText value="#{UserBean.getRequest}" />
    public class UserBean extends FacesBean {
    public String submit() {...}
    public void setServiceType(String serviceType) {...}
    public String getRequest() {
    if(serviceType.toString()=="SearchService")
    return "abc";
    else if (serviceType.toString()=="basicService")
    return "xyz";
    else
    return null;
    }Please assist how to do it when submit button is clicked. I can redirect to different jsp file on click of the submit button. But I dont want to do that and I need to populate the output textbox in the same page !
    If anything is not clear please let me know. Thanks in advance.
    Edited by: 901007 on Jan 13, 2012 4:11 AM
    Edited by: 901007 on Jan 13, 2012 4:13 AM

    Page is coming up but lstService dropdown box is not displayed at all. But mnNum inputText and submitButton is showing properly.
    Also after pressing submit button, "abc" text must be displayed in outputText box. But its also not displayed. Instead, the below error is shown,
    Error opening /portlets/tools/webservicehelper/webservicehelper.faces.
    The source of this error is:
    java.util.MissingResourceException: Can't find bundle for base name resources.bundles.ValidationMessages, locale en at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) at java.util.ResourceBundle.getBundle(ResourceBundle.java:962) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:102) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:175) at javax.faces.component.UIInput.validateValue(UIInput.java:1001) at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:130) at javax.faces.component.UIInput.validate(UIInput.java:868) at
    Any problems in below code?
    My entire code below for UserBean.java and webservicehelper.jsp.
    package net.verizon.portlet.bean;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIInput;
    import javax.faces.context.FacesContext;
    import java.io.Serializable;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import javax.faces.*;
    import javax.faces.model.*;
    import java.util.*;
    public class UserBean extends FacesBean {
         private static final long serialVersionUID = 1L;
         private String mnNum;
         private String serviceType;
         private String txtVal;
         public String getmnNum() {
              return mnNum;
         public void setmnNum(String mnNum) {
              this.mnNum = mnNum.toUpperCase();
         public String getServiceType() {
              return serviceType;
         public void setServiceType(String serviceType) {
              this.serviceType = serviceType;
         private ArrayList<SelectItem> serviceItems = null;
         public ArrayList<SelectItem> getServiceItems() {
              serviceItems = new ArrayList<SelectItem>();
              serviceItems.add(new SelectItem(null,"select one..."));
              serviceItems.add(new SelectItem("SearchService","SearchService"));
              serviceItems.add(new SelectItem("basicService","basicService"));
              return serviceItems;
         public String submit() {
              try {                    
                         txtVal = "abc";
              catch(Exception e) {
                            logger.error("error in submit method" + e);
              return null;
         public String getRequesttxt() {
                   return txtVal;
    --webservicehelper.jsp
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <%@ taglib uri="http://www.bea.com/servers/portal/tags/netuix/render" prefix="render" %>
    <f:view>
         <h:form id="wnInputForm" onsubmit="return validateLoginForm();">
             <h:messages layout="table" globalOnly="true" style="color: red"/>
             <h:panelGrid columns = "2" width="100%">
                  <h:panelGroup>
                       <h:panelGrid columns="1" cellpadding="6" width="400">
                       <h:panelGroup style="white-space: nowrap;">
                            <h:outputLabel value="Man Number" for="mnNum" escape="false"/>
                       </h:panelGroup>
                  <h:panelGroup>
                       <h:inputText id= "mnNum" value="#{UserBean.mnNum}" size="18" maxlength="17" tabindex="1" title="Man Number"/>
                  </h:panelGroup>
                       </h:panelGrid>
                  </h:panelGroup>
                  <h:panelGroup>
                       <h:panelGrid width="700">
                       <h:panelGroup>
                                      <h:outputText value="#{UserBean.requesttxt}" />
                            </h:panelGroup>
                       </h:panelGrid>
                  </h:panelGroup>     
                  <h:panelGroup>
                       <h:selectOneMenu id="lstService" value="#{UserBean.serviceType}" tabindex="3">
                            <f:selectItems value="#{UserBean.serviceItems}"/>
                       </h:selectOneMenu> <br>
                                <h:commandButton action="#{UserBean.submit}" id="submitButton" value="Generate"/>
                  </h:panelGroup>
             </h:panelGrid>
               </h:form>
    </f:view>Edited by: 901007 on Jan 16, 2012 8:07 AM

  • On submit button clicked , adf form is not closing but going to next task.

    Hi,
    In my application when In a adf form when I am clicking on the Submit button task is moving to next task but that adf form is not automatially closing .I need to close the adf form by closing the window on clicking X button.
    I have tried with closing or commenting the line from task flow.xml...
    <!--<finalizer id="__111">#{invokeActionBean.invokeScript}</finalizer>--> but still it is not working.
    Please suggest me how we can achieve this.
    Any suggestion,ideas are welcome.
    I am using 11.1.1.6.
    Thanks &Regards,
    Ganesh

    ADF related questions should be asked in appropriate sections. There you might have a good chance to get any help.

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

  • Submit Button for PDF Fillable Form

    Hello -
    I am using Acrobat 9 Pro.
    I am developing a fillable employment application for our HR department.  Initially, I thought we could add the option to "submit" the form via email.  However, now I am rethinking this due to a few issues.  The first issue being security of sending it through email.  The other issue is that when you click on the Submit button it brings up various options depending on if you are on a Mac or PC and depending on what email client you are using (desktop or webmail). 
    Is there any way to send a form via email without it bringing up the option to choose desktop email or webmail and going through all of the prompts?  We want to make it user-friendly but also follow best practices.
    Is it a better practice to have the applicant fill out the form, print it and then fax it to HR? I am looking for suggestions and solutions that have worked well for others.
    Many thanks!!

    Since you will likely have no control over your user's email client, there's little you can do to ensure the process goes smoothly. Not only is email generally unsecure, it is also unreliable. Some users might not even have a functioning local email cleint, and instead use a web based email system, in which case they have to manually attach it to an email that they initiate.
    What is more reliable and easily secured is submitting to a web server, which can do the job of storing the form data (or complete forms) or emailing them. This is a bit more complex since the server has to be programmed to process the incoming submission and return a response, but it really is the better approach.
    Faxing or mailing a printed copy is always an option and it can at least cut down on errors due to bad handwriting or inconsistencies (e.g., checking both the Yes and No check box for a question).

Maybe you are looking for

  • HP 3520 e-All-in-One Printer series

    My printer calls for HP 564 ink.  I bought the combo pack of the yellow, cyan, and magenta "regular" sized cartridges.  I bought a "regular" sized black cartridge as well.  When I got home I realized that it already had a black XL cartridge.  Will th

  • Address Book Search Function No Longer Works

    Using OS 10.7.5 on MacBook Pro.   The search funciton in the Address Book stopped working.   I am not a i-Cloud user, just synching with my iPhone.   Search on iPhone works fine, as well as synch, but not search on the Mac.   Any ideas?

  • Do I have to purchase another download of Lightroom if I have it on a computer that no longer works?

    I have no idea what I am doing. I purchased Lightroom for my old computer. It no longer works.  I have lost my information on that. I would like to use Lightroom on my new Mac computer. Do I have to purchase again? How do I get it on my new computer?

  • InsertHTML won't work with XML files

    I am trying to create a command that writes text to an open XML file. The command I've created works fine under some circumstances but not others. It works if I open an XML file and apply the command without editing the file. If I make any edits to t

  • Flash cropping randomly

    Help, all flash videos are cropping randomly. Also, when I go full screen, the video doesn't fill up the entire screen like it used to. I still see black frame on all sides. It only happens on Firefox. I tried uninstalling both flash and firefox then