Need to focus a particular field in OAF screen

Hi,
I have created a simple search page. Now based on the search criteria entered records will be displayed in tabular format. In Each row there are only two fields updatable. The screen has one ‘SUBMIT’ and one ‘SAVE’ button. Now while clicking on the save button it is not required that user enters values in all updatable fields. But while clicking on the submit button it is necessary that users enters values in all updatable fields. The button functionality is as follows
1.     Clicking on Save button saves data into the underlying table(VO is created on that table).
2.     Clicking on submit updates some other table by calling a PLSQL procedure.
Now my requirement is to put the cursor in that row where there is no value when user clicks on the submit button. If there are multiple rows which have null value in the updatable fields cursor will be placed in the first row where there is NULL value.
I am very new to OAF so i am not sure if there is any setcursor or setfocus method in OAF which i can use in my
processrequest()
Please help me out and thanks in advance……
Thanks
Subhabrata

Hi Gaurav,
Thanks a lot for your quick response.But in my page all the records are being shown in a tabular format and in that table say 51 th row has a null value in its updatable field so when user clicks on submit button
1. i need to search which row has null value in its updatable field.
2. i need to place my cursor in that field.
Another issue i am facing with my search page
I have a date from and date to parameter in that page.Now i have created a LOV regoin based on a VO and in that VO i am retrieving both from date and to date by SQL query.
Now in the main page DATEfrom parameter i have attached the External LOV Regoin and in the LOV mapping i have created two mapping.
1.DateFromMap: LOV Region Item:StartDate
Return Item:Datefrom
Criteria Item:DateFrom
1.DateToMap: LOV Region Item:EndDate
Return Item:DateTo
Criteria Item:DateTo
The DateTo parameter is a messagestyledText type field and search Criteria is set to true.
Now In the LOV regoin when i am selecting any from date value the to date is being populated as per the LOV mapping but when i am clicking on 'GO' button the To Date is automatically being set to NULL.
Please help me to resolve these two issues.
Thanks
Subhabrata Dasgupta
Edited by: user10816003 on Sep 23, 2009 2:47 AM

Similar Messages

  • How to attach search help in a particular field in se80 screen

    Hi All,
    Can any one tell me how to attach a search help in a particular field in a screen.
    Wat search help is used to display material no and description
    Thanks in Advance
    Regards,
    Priya

    Hi Priya,
    In the Screen Layout, Double click on the field on which you wish to attach the search help.
    In the properties window you can specify the search help for that field.
    Search help for Material No. is MAT1.
    You can find it in the Table structure (SE11) , "Entry help/check" tab.
    Regards,
    Himanshu

  • Need to add a new field in Milestone screen

    Hi Gurus
    I have a request to add a new field in milestone screen. Milestone under WBS element and Milestone under network.
    Is there any Exit for the same ? can you tell me the different ways we can add a field in the screen
    - Pithan

    Hi,
    i did create a new milestone usage. There i have the option to put "billing Plan Type", "Date Category" and "Start/Finish". I did not see an option where i can add a custom field. I also checked the node for "Billing Plan Types"  and there also i saw only the standard screens / fields. Did i miss something here?
    Thanks
    Sreekanth

  • Need to add new Text Field on the Screen

    Hi,
    I am using Oracle 9 Designer and generating the web pages using web pl/sql language. After I generate the page, my screen looks like this:
    Employee id: TextField
    Employee Name: TextField
    I want to add a comment"(Please enter characters Only" below the Employee ID like the following:
    Employee id : TextField
    (Please enter characters Only)
    Employee Name: TextField
    Can anybody help me how to add this in the designer form?
    thanks in advance.

    You can do this with an unbound item on a View Form. You cannot do it at all for an Insert Form. There is a work around but takes a little explaining for the Insert Form. You need to create a web page from the insert form html, modify it manually. I do it as a simple procedure so it is consistent with the rest of the application. Then all menus, links, etc. need to reference that page instead of the FormInsert procedure in the generated package.
    There may be other work arounds. Without knowing more about your requirements, I can't say.
    John Caputo
    [email protected]

  • Greying out the particular field of active group

    hi guru's
    we have requirement of greying out a particular field of active screen group
    say for eg:
    LOOP AT SCREEN.
        if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      if rb_md EQ 'X'.
        LOOP AT SCREEN.
          if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
            screen-input = 0.
          ELSEIF screen-group1 EQ 'MAS'.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF rb_td EQ 'X'.
        LOOP AT SCREEN.
          If screen-group1 EQ 'MAS'.
            screen-input = 0.
          Endif.
          MODIFY SCREEN.
        ENDLOOP.
        if rb_pur EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'PUR'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_sal EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'PUR' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'SAL'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_fin EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'PUR'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'FIN'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
      ENDIF.
    in the above code
    say for eg: the active group is 'SAL' in which i want to grey out one field say as parameter p_doc as invisible always
    what i need to do
    with regards
    s.janagar

    hi
    may be this code can help you:
    selection-screen begin of block b1 with frame title text-001.
    parameters : p1  radiobutton group r1 default 'X' user-command ac,
                         p2  radiobutton group r1,
    selection-screen end of block b1 .
    selection-screen begin of block b2 with frame title text-002.
    select-options : p_eg for mara-matnr modif id SAL
    parameters : p_doc  like mara-matnr modif id PUR.
    selection-screen end of block b2.
    at selection-screen output.
      if p1 = 'X'.
        loop at screen.
          if screen-group1    = 'SAL'.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      elseif p2 = 'X'.
        loop at screen.
          if screen-group1    = 'PUR.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      endif.

  • Transaction DP97: Need to add 2 fields on selection screen...

    Hi,
    I am using ECC6.0. I need to add 2 extra fields on selection screen of transaction DP97. Program name is RVPKMASS97. i did not find any screen-exit for this. Please can anybody suggest any other way to add fields on selection screen... I think i can use enhancement points. please help if anybody has previously worked on this. I need to know following things:
    1) how to add 2 fields on selection screen ( 2 fields are : MATNR-Service product and FFPRF-DIP profile)
    2) where to add programming logic for this
    Thanks in advance,
    Minal

    Hi,
    Go to program RVPKMASS97.
    Go inside INCLUDE rvpkmasspar.
    (When you double click on the include a pop up screen will come up and in that select the RVPKMASS97)
    Click on spiral icon there on the tool bar.
    right click on the '
    ENHANCEMENT-POINT RVPKMASSPAR_01 SPOTS ES_RVPKMASSPAR STATIC INCLUDE BOUND .' line and select enhancement-> create. and give some implementation name and text.
    now you can declare ur fields in this implementation.
    After declaring save it and activate it.
    Now go back to ur txn and run. you are able to see the custom fields on the screen.
    Reward me points if it is helpful.
    I think it will help you out.
    Thanks,
    Prasanna

  • Validating field on  selection screen

    wht is the meaning of validation
    how to validate a particular field on selection screen
    suppose parameters:p_vkorg like vbak-vkorg.
    how to validate p_vkorg.
    pz give me coding

    Hello pavan,
    Validation means "checking whether the input which u are gining to the selection secreen is valid or not". means...
    Lets take your example only...
    parameters:p_vkorg like vbak-vkorg.
    in selection screen you will give inout in that parameter....
    users can give any input... lets suppose I'll give input as ABC... which is not in the table VBAK. No need to excute the code once we came to know that the input is not there in the table. So we will do validation like...
    at selection-screen on p_vkorg.
    select * from vbak where vkorg = p+vkorg. " This is the case with Parameter.
    at selection-screen on p_vkorg.
    Select * from vbak where vkorg = p+vkorg. " This is the case with Selct-option.
    if the input that u r giving is present in the table... the above stmt will execute successfully, otherwise not.
    You can make use of System variable SY-SUBRC and you can go ahead with ur coding...
    Reward If Helpful
    Regards
    Sasidhar Reddy Matli.
    Message was edited by:
            Sasidhar Reddy Matli

  • Additional Fields on Selection Screen of VF04

    Hi,
    I need to add a new field to selection screen of VF04. How can i achieve this?
    Regards,
    Jayant
    Edited by: jayant vikram on Oct 6, 2009 9:15 PM
    Moderator message - This is almost a duplicate - post locked
    Edited by: Rob Burbank on Oct 6, 2009 11:49 AM

    Hi,
    I need to add a new field to selection screen of VF04. How can i achieve this?
    Regards,
    Jayant
    Edited by: jayant vikram on Oct 6, 2009 9:15 PM
    Moderator message - This is almost a duplicate - post locked
    Edited by: Rob Burbank on Oct 6, 2009 11:49 AM

  • Field in a screen doubt

    hi all
    what does the value like this ___________,__V in the text field of a particular field in the screen attributes means
    can anyone tell what it does and what is the purpose. i have seen it in the attributes of a particular field in the screen layout
    and its given in the text field
    Thanks
    kajol

    Hi
    Iam confused in here little bit
    i have a dec data type length 10 and decimals 3 . when i input 3 and press enter , it will give ma avlue of
    3.000 and doesnot take any aphabets right.
    if iam rightfor the same field i see  ___________.__V  what s the purpose of this again
    and i also see ___________,__V what is the purpose of this.
    sorry iam cofused in here little bit.
    can you explain
    thanks

  • Reading contents of a field from a screen

    Hi all,
         Is there a way to read the contents of a field in a particular screen. I want to read the data entered into  a particular field on a screen into the BADI and implement the logic based on the contents of the field.
    Thanks.
    Neha.

    Hi,
    You can use following code
    data: it_dynpfields type STANDARD TABLE OF DYNPREAD,
          wa_dynpfields type dynpread.
    wa_dynpfields-fieldname = 'CURR_PHASE'.
    append wa_dynpfields to it_dynpfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                               = SAPLCRM_1O_MANAG_UI
        dynumb                               = "<screen number where field is defined>
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
      tables
        dynpfields                           = it_dynpfields
    EXCEPTIONS
       INVALID_ABAPWORKAREA                 = 1
       INVALID_DYNPROFIELD                  = 2
       INVALID_DYNPRONAME                   = 3
       INVALID_DYNPRONUMMER                 = 4
       INVALID_REQUEST                      = 5
       NO_FIELDDESCRIPTION                  = 6
       INVALID_PARAMETER                    = 7
       UNDEFIND_ERROR                       = 8
       DOUBLE_CONVERSION                    = 9
       STEPL_NOT_FOUND                      = 10
       OTHERS                               = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    hope it helps

  • Need to change the LOV field based on checked box selection in OAF page

    Dear ALL,
    I have a requirement as below:
    I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
    So based on LOV value selection i am defaulting two text field value automatically.
    So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
    SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
    Please suggest me some pointers to achieve this requirement.
    Thanks
    Deb

    hi,
    in PFR use:
    if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                     HashMap hashMap = new HashMap();
                     String checkboxval=pageContext.getParameter("item2");
                  hashMap.put("checkboxval",checkboxval);
                    pageContext.setForwardURLToCurrentPage(hashMap ,
                    true, // retain the AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);
    and in PR use:
    if((pageContext.getParameter("checkboxval'))!=null)
    OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
          lovInputBean.setRequired("false");
    try it
    Regards
    Mahesh

  • PM Reports: Need to find the sum of a particular field in the output.

    Hello Experts,
                          I have an issue. I have developed the report to calculate the power per ton. It is PM module.
    Input is : DATE & Measuring Point.
    Output required is : For a particular date , What is the power consumed per ton.
    Its is calculated by the formula Power consumed per day /  Production.
    I have multiple entries for production ( because different material are used )  per date and a single entery for power (because power is taken as total power consumed per day)
    Hence im getting the output as
    For example:
    date                power            production         power/ton
    01.03.2011      5000                    100                  50.00
    01.03.2011      5000                      50                 100.00
    01.03.2011      5000                      25                 200.00
    01.03.2011      5000                      75                  66.66
    The desired result is
    date                power            production         power/ton
    01.03.2011      5000                    250                  20.00
    I need to sum the production field.
    How can I achieve this ?
    Please help.

    Hello
    Rotate the loop and use event so on change just clear the variable based date condition .
    take 2  temp variable for summation
    clearing the total and moving value on permanent variable means modifying the itab.
    loop at .
    *Clear
    on change <datefield>.
    modify itab from wa  transporting <field name> .
    clear <total field>.
    endon.
    *Total
    t_prd  = t_prd + production..
    t_power = t_power + power .
    endloop.

  • OAF PO Page Entry - User enter value in particular field  - Then want to check it should be unique othewise Message

    OAF PO Page Entry - User enter value in particular field  - Then want to check it should be unique othewise Message must be displayed so that user will select the non unique value in the entry filed. Please let me know will it be possible using personalization? Or I have to customize the controller extend it?

    Hahaha..
    Every tools have its own pros and cons.. There are much more things which you do in OAF (which is a web based solution) which you can't even imagine in Forms
    Cheers
    AJ

  • How to get the focus of particular UI Element

    Hi All,
    How to get the focus of particular UI Element in webdynpro Page,
    I have a page where i am creating a ALV, I want to get that keyboard focus is on that element is there or not?
    Can anyone please give some update?
    Best regards,
    Rohit

    I would suggest try invoking REFRESH of ALV on the ON_CELL_ACTION event.
    Below excerpt is from Thomas
    The Events of inner UI elements are not exposed directly as they normally would be if they were standalone. Generally you can capture them using either the
    ON_DATA_CHECK:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c8/6c80dbedfe42d1a93f8e6df1d7244a/frameset.htm
    This gets trigger for any press of ENTER, so it generally works like the Input Field onEnter.
    You could also consider ON_CELL_ACTION:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/12093591152464e10000000a1553f7/frameset.htm
    It is a higher level Event that encompasses both ON_DATA_CHECK and ON_CLICK.
    if you want to capture & refresh on some hot key combination then refer to this thread
    [https://www.sdn.sap.com/irj/scn/profile?editmode=true&userid=3760417]

  • How to refer to a particular field in Table Control.

    Hi,
            How can we refer to a particular field in a table control like 5th row 6th column. The actual requirement of mine is, i have a column with listbox. For each row i need to have different values for the list box. So i need to refer to that particular field in the column and assign the list values. Please kindly help.
    Regards,
    Vinay.

    hi,
    TABLE CONTROL -
    http://www.geekinterview.com/Interview-Questions/SAP-R-3
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    Eg of table Control:
    http://members.aol.com/_ht_a/skarkada/sap/table_control/
    table_control.htm
    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm
    Regards,
    Laxmi

Maybe you are looking for

  • Why can't i connect to my internet?

    When i go to connect my internet i enter my wifi password, and i know its correct, but it wont let me connect to it. How do i connect to the internet?

  • I need to change my country

    Hi, I've had a trial of creative cloud and am looking to upgrade to a complete account, however when I go to pay it says my country is the UK however I am located in Australia. Please can you help with this?

  • SAP netWeaver 7.0 SR3 安装问题2 请教高手

    安装到第28步,弹出一个错误,如下: err: ERROR 2008-12-25 17:20:02.218 FCO-00011  The step start with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Start|ind|ind|ind|ind|1|0|start was

  • Artwork Missing off Ipod 80gb

    I have an ipod classic 80gb. I downloaded a tune from itunes store and let it sync to my ipod. However, some of my ipod artwork is missing from my ipod but is still showing on the itune account on the computer. Please Help?

  • How do you get 2 different link colors on the same page in DW CS4

    Hi After creating a white link called "white link test" in a blue background, I need to create a blue link called "blue link test" in a white background. How do I accomplish this task In DW CS4? I would greatly appreciate any feedback. Thank you <sty