Defaulting the values in BP

HI,
I would like to default the customer pricing procedure in Account sales area data in web ui 2007.
To default currency I would able to do it because it is F4 help, i implemeted Get_currency method.
Customer pricing procedure is picklist(dropdown). I could not default the value in drop down.
please suggest me step by step how to default customer pricing procedure in Account section web ui 2007.
Thanks

Dear Smita,
                Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
So could you help me to identify the event by which one can keep default values in screen.
May be ISDAT or ISSTA event  to default the valuesfor BP.
I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
Waiting for your update.

Similar Messages

  • How do I default the value in an LOV?

    Dear experts,
    What I am trying to achieve is changing the default value in an LOV, based on the value of another field. I have an LOV that lists employee names. There is another field, an account number, which when selected is used to determine the default employee set against this account. This employee I want to use to add into the LOV as a default the value, before the user selects a value in the LOV. The user can still invoke the LOV and search for a different employee, but the functionality I am concered with is setting this default employee.
    I have modified the ProcessForm in the associated controller class. I have obtained the account number and using an SQL query I have obtained the default employer, but I can not seem to set this value in the LOV as a default. Does any one have any ideas?
    For the LOV there are two criteria values in the LOV mapping, the org id and the code combination id, both used in the query to get the default employee.
    Many thanks for your assistance in advance.
    Mark

    Hi,
    IF want use dependent lov ..then refer below link..
    http://oracleanil.blogspot.com/2010/12/dependent-lov-in-oaf.html
    Or
    IF u want set any default value in lov2 when value selecetd in lov1...
    Get the event of the lov1 on PFR..
    if("LOv1ID").equals(pageContext.getParameter(SOURCE_PARAM))
    && ("lovUpdate".equals(pageConext.getParameter(EVENT_PARAM))
    || "lovValidate".equals(pageConext.getParameter(EVENT_PARAM))))
    Here try set default value as given by Gyan...
    Pls check syntax errors...
    Regards
    Meher Irk

  • How to default the value in Parameter ?

    Hi all,
    How am I going to default the paramenter say I have the From Item >= '0' and To Item <= '99999999', I will like system to be defaulted back the value in the parameter everytime when the refresh is being pressed ?
    Currently, I have set the default value in the parameter, it work fine for the very first time, but after I have put the search value in the refresh button, the system still showing the old value which I have keyed in earlier. I want system to be defaulted the value that I keyed in the parameter. How to do that ?
    Rgds
    Lim

    Hi Lim
    Are you using Discoverer Plus?
    If so, there is a preference in pref.txt that controls whether the parameter values are saved with the workbook. It is called SaveLastUsedParamValue. This has two settings as follows:
    0 - Use the default value as set by the report writer
    1 - Save the value the user just entered and use that as the default the next time
    Best wishes
    Michael

  • How to default the values in BP screen with BDT?

    Hi all,
             I am working in BDT enhancement for BP for Grants mangement. Therefore there are some screen fields in BP transaction should directly get saved in GMSPONSOR table.  I mean to say user would give some values in BP screen(One can get it at the runtime by calling the FM BUP_BUPA_BUT000_GET) and the relevant values will autometically goes to GMSPONSOR table if the BP is saved.
    As per my knowlwdge there are many events under BUPT transaction and there also I found the entry of GMSPONSOR table. Can anyone tell me in which event I have to default these screen values and redirect these to GMSPONSOR table?
    Thnaks & Regards
    Dibyendu.

    Dear Smita,
                    Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
    So could you help me to identify the event by which one can keep default values in screen.
    May be ISDAT or ISSTA event  to default the valuesfor BP.
    I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
    Waiting for your update.

  • By using personalization can we default the values as null in oaf

    Hi All,
    Can we change the default values to null....
    Actually i have from and to date fields....when ever page opens the vales are geting defaulting in that fields...
    I need to make this as null....by using personalization is it possible( if yes...need help) or i need to extend the co..
    Regards
    Harry

    Hi Harry,
    If the values are defaulting from the "initial value" property it can be set to null by removing those values from personalization, but I feel it will be defaulting from code if it is so, same can not be achieved by personalization.
    Regards,
    Reetesh Sharma

  • Ship Confirm Tab: How to default the values?

    Hi!
    I am trying to determine if there is a way for me to default the various options on the Ship Confirm screen. ie When I ship confirm a window opens and I can choose if I want to backorder any quantity and what to do with left over quantity? Can I default these values?
    Thanks much

    Yes, you can do this thru the SYSTEM ADMINISTRATOR responsibilities. Query the Ship Confrim concurrent program and use the parameter window to default a values.

  • Urgent: Defaulting the value for a Lov item

    Hello,
    I have a lov item mapped to it's corersponding VO. I need to default it to certain value, but keep on getting the error with prompt to select a valid value, even though there is only one value being returned on searching.
    The settings:
    "Disable Validation" set to false.
    I am executing the VO in processRequest so that it returns only one value, and then setting the Lov item with this value - using settext and setvalue.
    Is there any other way to maually set the value of the item and retain the validation property?
    Thanks!
    Shama

    The DFF fields that are being fetched vary according to the context being passed from the lov, hence making it difficult to maually handle the bean setting. Any idea of any work around?
    Thanks!
    Shama

  • How to default the value of a selectOneChoice when adding a row to a table

    I have a table where one of the fields is a selectOneChoice. When adding a row to the table, the new row to be added displays the selectoneChoice field blank. I would like to have this field default to a specific value within the selectoneChoice when clicking the add button. Any suggestion on the code I need to add in the backing bean? Thanks in advance.

    After some studying I figured out how to do this... code below for anyone interested:
    DCIteratorBinding dcib = (DCIteratorBinding) bindings.get("someIterator");
    RowSetIterator iter = dcib.getRowSetIterator();
    Row newRow = iter.createRow();
    newRow.setAttribute("yourFieldName",fieldDefaultValue);
    iter.insertRowAtRangeIndex(0, newRow);
    iter.closeRowSetIterator();

  • Possible to default the value displayed in a dropdown?

    My form has several drop down list boxes which I prefill in WDA with values - specifically, Project Manager name.
    When I go in to my form, I can select any one and Submit back to the backend. the data is saved appropriately.
    When I go in Change Mode, I select the data from the backend to display in my form, but those names do not populate in my drop down fields.
    I know this is possible, because there are a few other drop down boxes that do come back pre-filled.
    The only difference between the dropdown boxes that do work and those that don't is that the ones that do work have static values defined in the form while the others have values populated dynamically from the web dynpro and passed in to the form.
    any ideas?
    thanks,
    rp.
    Edited by: robert phelan on Jun 9, 2009 3:48 PM

    EDIT.. I fixed this by passing the drop down VALUE to the form instead of the actual TEXT.
    for instance, my manager's id was 12345 but I passed John Doe.
    passing 12345 chose the correct TEXT to display.
    Edited by: robert phelan on Jun 9, 2009 8:37 PM
    Edited by: robert phelan on Jun 9, 2009 8:39 PM

  • How to Change the default Search value for Field Role?

    HI,
    I went through numerous threads on how to default the search value , but does not help for my issue. Hence im posting this new thread. Please provide your suggestions on how to achieve this.
    For the Ship-to party field (in item detail )  on webui when i do a F4 help i get the pop up with various search criteria and  for the field Role the default value is "Ship-to party".  which is visible. we need to change this default value to Prospect which is available in drop down.
    The attribute is STRUCT.ROLE  and view BP_HEAD_SEARCH/SearchHelp . The method GET_DQUERY_VALUEHELPS  from the context node class is called to fill the value help for this attribute, but i dont understand how the ship-to party is filled as default. There is no code in this method to default the value.
    The generic GET_V_S_STRUCT method also does not default the Ship-to party on this field.
    I want to understand how this Ship-to party is filled by default and how can i change this to prospect..
    Many Thanks,
    Shaik

    We had a same requirement of defaulting Sales org and division in search criteria for a specific value.
    this can be doen by redefining "DO_PREPARE_OUTPUT" method in IMPL class for the respective view.
    See the code:
    METHOD do_prepare_output.
    *CALL METHOD SUPER->DO_PREPARE_OUTPUT
    **  EXPORTING
    **    iv_first_time = ABAP_FALSE
      DATA:
        lr_qs TYPE REF TO cl_crm_bol_dquery_service.
    * Get current query object
      lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
      IF iv_first_time = abap_true.
        lr_qs->clear_selection_param_values( ).
        lr_qs->delete_empty_selection_params( ).
    *   if l_sales_orgs is initial.
        CALL METHOD lr_qs->insert_selection_param
          EXPORTING
            iv_index     = '1'
            iv_attr_name = 'SALES_ORG'
            iv_sign      = ' '
            iv_option    = 'EQ'
            iv_low       = 'O 50000514'.
    *   endif.
    *   if l_dist_chan is initial.
        CALL METHOD lr_qs->insert_selection_param
          EXPORTING
            iv_index     = '2'
            iv_attr_name = 'DISTR_CHAN'
            iv_sign      = ' '
            iv_option    = 'EQ'
            iv_low       = '01'.
    * endif.
    Hope this will help..
    THanks & Regards,
    Amit

  • Getting mandatory attribute validation error when the value is defaulted through customization

    Hi
    I am getting Mandatory attribute validation error when we default the value through customization.
    In the UI we have attribute called Last Name which is mandatory at EO level. Customer wanted to default Last name to some value, through page composer it is defaulted to some text and saved.
    When ever we open the page the the same value is defaulted as Last Name and appearing in the UI. But when we submit the page, EO level validation is failing. hence we are getting last name is missing.
    When i debug the code last name attribute value for EO is blank.
    In the UI the attribute last name is associated with bindings  --> #{bindings.lastname.inputvalue}
    The validation is failing if we remove the default binding associated with inputtext box.
    Can some body help what can be reason and is there any solution?
    Thanks,
    Praveen

    version 12.1.2
    I am struggling with same situation, I can't set the default value at business component because, the default value comes from a REST service at run time. In page A,  I have a field F1 that contains value from REST service. Page B has a database bound field F2, whose default value should come from F1 in Page A when a user navigates from Page A to Page B. If I set the value of F2 to be the value of F1, then it displays the value in the UI, but nothing gets submitted to EO and fails at commit.
    To make things difficult, here is my situation: Page A lives in bounded taskflow TF1, and Page B lives in bounded taskflow TF2. So I have created an input parameter P1 in TF 2, which carries over the value of F1 in Page A to Page B. When I am in Page B, I can successfully see the value of the taskflow input parameter P1. So, how do I  programmatically set the value of field F2 with the value of input parameter P1?
    I tried setting the F2.inputValue  in a method call M1 in  taskflow TF2 prior to Page B, but I get null pointer exception as it can't see field F2 yet.
    It seems like a simple thing to do, but I have spent a lot of time trying to make it work without any success.
    I would greatly appreciate any guidance.

  • Pivot table not displaying the values correctly

    Hi,
    I have created a pivot table in which i am using 2 tables. I pulled columns from table A and one column from table B in the measures section to get the grand total. All the rows are comming fine but, its not returning any values for tableB's column(if i pull it into measures).
    If the column stays under rows section, the report is comming out fine.
    I need the total to be displayed in the report.
    Can some body help me with this.
    Thanks

    Hi David,
    i have set the column's aggregation to sum, and it is comming out correctly in the grand total, how ever, i have some of the coulmns which i am taking the %
    col3= (col2/col1)*100
    col1- aggregation set as Sum, col2 and col3 is set as default
    The values for col3 are comming finr in report , where as it is not returning correct value for garnd total row.
    ex: row w--- col1 col2 col3
    row1-----6630 1130 17.04
    row2 6114 994 16.26
    total 23317 3739 56.40(should be 16.2..)
    For col3 it is calculating like this(3739-total of col2/ 6630 -first row of col1 *100)
    Instead of taking total , it is taking the first row.
    I tried different aggregations, but was still unable to get the correct value. Can you please let me know if i am missing anything.
    Can we define custom aggregations.
    Thanks
    Gayatri
    Edited by: user12589255 on Aug 3, 2011 2:55 PM

  • Setting default value for a jcombobox based on the value not the index

    I am trying to set the default value for my combobox to the current year. One way I thought of doing it was to get the index of the value representing the current year and then use setSelectedInex to make it the default. Any ideas?
    The relevent section of code is below.
    GregorianCalendar gregorianCalendar = new GregorianCalendar();
    int year = gregorianCalendar.get(Calendar.YEAR);
    String currentyear = year + "";
    int startyears = 2000;
    int numyears = 25;
    JComboBox endyearcombobox = new JComboBox();
    endyearcombobox.setBorder( BorderFactory.createLineBorder(Color.DARK_GRAY));
    endyearcombobox.setFont(standardfont);
    endyearcombobox.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent event ) {
    endyearcombobox = ( JComboBox )event.getSource();
    endyear = endyearcombobox.getSelectedItem();
    boolean same = endyear.equals(oldItem);
    oldItem = endyear;
    String[] endyearlist = new String[numyears];
    for(int i = startyears; i < startyears+numyears; i++){
    String item = new Integer(i).toString();
    endyearcombobox.addItem(item);
    Thanks
    Ged

    Thanks mate,
    That was what I was looking for. I still had a little more manipulation to do, but sent me on the right track and have got it working now. I don't know why I didn't think of it in the first place.
    Ged

  • How to default the KFF segment values based on other field's value

    Hi,
    I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
    Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
    Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
    I have tried using the below code:
    OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
    oakeyflexbean.setText()
    But this one does not work.
    Can anyone suggest me some option to acheive this requirement.
    Thanks
    Edited by: 880860 on May 21, 2012 2:23 PM

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

Maybe you are looking for

  • Schedule Lines for TATX items

    I know that by default, schedule lines are not active for TATX (text) items in sales documents. I'm also pretty sure that this option is not valid even if you activate it in the IMG. Can anybody tell me: 1) Is my statement above correct ? 2) If so, w

  • HT2736 How can I transfer a gift balance from one apple id to another?

    I have changed iphones and created a new apple ID.  How can I transfer a gift card balance from one apple ID to another.  I tried using Itune Gift but it requires the use of a credit card not a gift card.  Any ideas?

  • Clueless returnee

    I am resuming Java programming after an absence of a couple of years. I started by installing JBuilder 3.0 and SDK 1.3.1 and trying to modify a program I wrote in 1999. It runs fine in the JBuilder IDE. I used the JBuilder deployment tool to create a

  • My Apple Magic Mouse is no longer recognized, and I have good batteries installed correctly in the mouse.

    My Apple Magic Mouse is no longer recognized, and I have good batteries installed correctly in the mouse.

  • Specifying which Objects to pull out of a Vector

    I'm pulling certain objects out of a vector to play with them. My problem is that I only want certain ones. Inside the vector "neighborList when I getMooreNeighbors are objects other than Soldiers (there are Democrats, Monarchs, etc, etc). I only wan