How to default a value on a filed on OAF screen which is a dropdown

Hi,
I have a requirement where I have to make a value default on a fiield on OAF screen which is a dropdown. I have done this defaulting on a LOV field but I am not able to do it on a field which has a dropdown. Can someone please help?
Thanks

1. If my understanding is correct, you need to default a value in MessageChoice.
2. Do you want the drop down to have a default value for all news rows that you create?
3. Why you are not able to do that? Please explain the behavior.
Default values you can specify in VO Attribute, EO Attribute, VO.createRow(), EO.create(), your AM code where you create a new Row.
Depending on the scenario you can use any of these. Please ensure that you are not setting it to null or some incorrect value before coming to that page.
-Prince
[email protected]

Similar Messages

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • I just purchased monthly plan for creative cloud.  I understood the plan included photoshop.  But no idea how to open photoshop app.  just keep looping into screens which instruct me to purchase creative cloud.  hugely frustrating.   on hold forever with

    i just purchased monthly plan for creative cloud.  I understood the plan included photoshop.  But no idea how to open photoshop app.  just keep looping into screens which instruct me to purchase creative cloud.  hugely frustrating.   on hold forever with customer service.

    First check to see your plan is active: Adobe ID
    Try launching Photoshop choosing Trial instead of a purchase.
    Mac             /Applications/Photoshop CC/Photoshop CC.app
    Windows  C:\Program files\Adobe\Adobe Photoshop CC\Photoshop CC.exe
    Then once inside, go to Help > Sign in...  There, use the email address and password for your account and it should activate.
    If that does not work, could you tell me what version of PS you have and what os version you are using?

  • 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

  • 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.

  • How to default a value in a select list

    Hi
    I have an item on the page which is displayed as a select list.
    The select list has an lov that returns 3 values as follows:
    ACAD1M
    ACAD2H
    ACAD3T
    the sql for this lov is as follows:
    select CAL_TYPE d,cal_type r
    from igs_ca_type
    where s_cal_cat='ACADEMIC'
    It needs to return the values in the order as shown above, however if the user does not select anything from the select list, I want it to default to the value in the middle of the list(ACAD2H)
    I tried using default on the item but I could not get this to work.
    Could someone explain how I can get the select list in HTMLDB to default to the value that I want regardless of which position it appears in the select list it always seems to default to the value at the top of the list.

    Hello Kay,
    A default value for a select list must be set to a legitimate returned value from the select list LOV query.
    The default value should be set in the item "Default" section. In the "Default Value" field you should enter your query – in a form of a PL/SQL Function Body – and set the "Default Value Type" field accordingly.
    The following is an example of code I'm using to set the default value of a select list to be the first displayed option (set by the user, and recorded in the dispord column):
    declare
      l_sno  number;
    begin
      select sno
      into l_sno
      from mis_mess_users
      where dispord = (select min(dispord)
                     from mis_mess_users);
      return l_sno;
    end;Using the same principle, you can use any query that will give you the result you need.
    Regards,
    Arie.

  • How to default date values in Selection Screen

    Hi everyone,
    I would like to display the 1st day of the previous month into the I_GSTRP-LOW field and the last day of the current month into the I_GSTRP-HIGH field.
    For example, this in the 5th month of the year (May), therefore, in the selection screen it should appear like this:
    Basic Date: <u>01.04.2006</u>    to   <u>31.05.2006</u>
    How do i do it?
    *& SELECTION-SCREEN                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
      I_AUFNR FOR AFIH-AUFNR,                           "ORDER NUMBER
      I_GSTRP FOR AFKO-GSTRP,                           "BASIC DATE
      I_BUDAT FOR AUFM-BUDAT,                           "POSTING DATE
      I_IWERK FOR AFIH-IWERK DEFAULT '6010' OBLIGATORY, "PLANNING PLANT
      I_ARBPL FOR CRHD-ARBPL,                           "WORK CENTER
      I_ERNAM FOR AUFK-ERNAM,                           "CREATED BY
      I_MATNR FOR RESB-MATNR,                           "MATERIAL
      I_KTEXT FOR AUFK-KTEXT.                           "EQUIPMENT
    SELECTION-SCREEN END OF BLOCK 1.

    Here is the code to populate default values,as per your requirement.
    data : V_date type sy-datum,
           v_month(2) type c,
           v_low_value(8) type c,
           v_high_value(8) type c,
           v_month1(2) type n,
            V_NO_OF_DAYS type T009B-BUTAG,
           v_curr_month type T009B-BUMON,
           v_curr_year  type T009B-BDATJ.
           select-options : i_gstrp for sy-datum.
    initialization.      
    v_date = sy-datum.
    v_month1 = v_date+4(2) - 1.
    write v_month1 to v_month.
    concatenate v_date+0(4)
    v_month
    '01'
    into v_low_value.
    I_GSTRP-LOW = v_low_value.
    v_curr_month = sy-datum+4(2).
    v_curr_year  = sy-datum+0(4).
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
      EXPORTING
        par_month       = v_curr_month
        par_year        = v_curr_year
    IMPORTING
       PAR_DAYS        = V_NO_OF_DAYS
    concatenate sy-datum+0(6)
    V_NO_OF_DAYS
    into v_high_value.
    I_GSTRP-HIGH = v_high_value.
    I_GSTRP-sign = 'I'.
    I_GSTRP-OPTION = 'EQ'.
    APPEND I_GSTRP.
    regards
    srikanth

  • 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();

  • How to DEFAULT CURRENT DATE in the filed of a Z_screen of Z_Module pool prg

    Hi Experts,
    In my module prog.,  input/output field defined, which is for DATE in screen_1000.
    So, this DATE shuld always defalted with CURRENT DATE in screen displplay(not necessorily Grey).
    So, while defining this P_DATE in top include, like,
    P_DATE type sy-datum value sy-datum---> syntax error
    so, tried like,
    constant_sy_datum = sy-datum
    P_DATE type sy-datum value constant_sy_datum---> syntax error
    no use,
    So, in PBO , I hv wrote like, p_DATE = sy-datum.
    but, its not working, so, How to do it, request for piece of code.

    Hi,
    For module pool declare p_date as data in TOP i.e.
    data: p_date TYPE sy-datum
    Then in PBO , we move sy-datum to the g_date i.e.
    *&      Module  init  OUTPUT
    *       text
    *********************** Initialization part.***************************
    MODULE init OUTPUT.
      MOVE sy-datum TO g_date.
    ENDMODULE.                 " init  OUTPUT
    This will solve your problem.
    plz reward if useful.
    thanks,
    dhanashri.

  • 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.

  • How to default field values based on a sql query?

    I have a create form that has employee_id and supervisor_id fields. I am defaulting the employee_id based on the login info (no problem there). Now I want to default the supervisor_id also. Supervisor id is based on a sql query that takes the employee_id as a parameter for the where clause.
    How do I implement this in jDeveloper?

    I figured how to do this. I created a new EO, associated it to my base EO via association. Then put this code in the base EO's create() method:
    // Set supervisor id based on SupervisorEO
    SupervisorEOImpl supEO = getSupervisorEO();
    Number newSupId = supEO.getSupervisorId();
    setSupervisorId(newSupId);
    This seems to be the simplest.

  • How to default a value in the tablecontrol field?

    hi
    i have created a maintenance view for a z table and this table has a currency field. So when i go to SM30 to maintain the z table i want that when the user clicks on NEW ENTRIES button the system should automatically default the currency field to 'GBP'.
    Any idea where to set the default value on a field in the table control or in the maintenance view.
    thanks in advance

    Hi
    Use events in SM30 view
    this thread should be useful
    Code in View?
    regards
    vivek

  • How change default scan values?

    Hi:
    Acrobat 9 defaults to 200 dpi image resolution and 11.7 x 17  page size with the Ricoh IS450 scanner I'm using with the Windows WIA driver.  These defaults have to be overridden each time I start a new scan, rather than Acrobat 9 remembering the values from the last scan.  Trying to use custom presets I get the message that this scanner does not support presets.  OK, but why not Acrobat?   I searched the Acrobat 7 scripting guide which I have on my local system and there are no objects that access the scanner, evidently (that I could find).
    Thanks in advance for your help.
    -- Roy Zider

    According to this thread, you can't do what you want:
    https://discussions.apple.com/message/20154132#20154132
    Apple feedback:
    http://www.apple.com/feedback/

  • DEFAULT a value for a filed from a table used in ABAP query

    I have used a field makt-spras in my infoset query and used it in my selection screen. Whenever I go into the transaction for the query and see the selection screen it always has 'EN' in the language key. Is there a way I can clear that . I dont want the selection screen to have anything wyhen I enter the transaction so that teh user can enter his or her own language and instead remove the work of removing the EN always . I would like to default it to blank space initially . In the query where can I do that as I dont see nay option to default it to space in the query for this field that is directly used form the table .
    Thanks

    Hi There,
    In the transaction SQ02 (for Infoset), click on the button Extras on the top and then in the Tabstrip that appears, you will have Code, click on that. After that from the drop down selection box, select Initialization even and write the code CLEAR makt-spras field.
    This should work.
    S.Dakshna Nagaratnam.
    Edited by: Dakshna Nagaratnam on May 22, 2009 7:25 PM

  • How to display the values from the table in the screen

    Hi,
    I have created a screen where i will enter the values for the field treshold amount and desc and if i press update button  .it will update the new values by overriting the existing values .
    Now i have got requirement i need to create a button show which will display the existing value from the table. always there will be only one entry...in this table
    Please can one give me idea...to do this
    or sample code...thanks in advance
    regards
    paveeeeee

    Define a function code 'SHOW' for your button. In your PAI module, when you check for various sy-ucomms, check for 'SHOW' also.
    Your code will be like this:
    Case sy-ucomm.
      when 'SHOW'.
         perform show_details.
    endcase.
    In the perform, you can fetch the data from the table and put it in global variables. In the PBO, move the data from the global variables to the screen fields so that they get displayed on the screen.
    Hope this helps. Reward points for useful answers.
    Regards
    Nithya

Maybe you are looking for

  • I'VE broked my new iphone 6 with an back up from an iphone 4s on the itunnes and now i have the icloud from that iphone 4s. Please help me

    I bought a new Iphone 6 from store. I've connected my icloud adress and apple id. All was great. But the problem is that i connected the iphone 6 on itunes and there i had a back up from my last iphone 4s , that was bought from a friend. And the Ipho

  • Xml parser v2.0.2.9

    We are in the beginning stages of our Oracle XML Gateway project and have made no customizations to out-of-the-box expected functionality of XML gateway product. Currently using Oracle 11.5.7 and RDBMS 8.1.7.3.0 when running ecxver.sql, results indic

  • Macbook Core 2 Duo screen glitch/flickering??

    My late 2009 macbook has a bad screen glitching issue anytime you move the screen. Sometimes I even have to hold my screen in a certain place for it stop from glitching so i can use my computer. If I took my computer to the apple store for a repair..

  • How can I uses byte[] to represent the length of a message?

    hihi, I want to using 3-bytes to represent the length of a message that send over a socket, I don't know how to using byte to represent the length, should I parse integer to byte? thank you

  • URL Pattern problem

    Hi I deployed an ear which has a web module with contextroot '/test'. It has a jsp whose url-pattern is mapped to /testjsp. From a html form i'm calling this jsp and the action attribute is /test/testjsp. But the error is resource not found /test/ser