Simple search- Help

I have designed a page with 3 attributes.When I pass the employee number I should get other two values form database on the page.
I am getting No Current row for VO error.
Following code(defined in AM) is called from controller on press of submit(for searching) button.
public void searchEmp(String userId)
//get a handle to the View Object that we wish to initialize
//OAViewObject voImpl = (OAViewObject)getEmployeeVO1();
EmployeeVOImpl voImpl = (EmployeeVOImpl) findViewObject("EmployeeVO");
voImpl.setWhereClause("empno = :");
voImpl.setWhereClauseParam(0,userId);
voImpl.executeQuery();
Thanks and regards,

Hi,
"No Current row for VO" - This error comes if the select query in your VO doesnt return any rows. ex : if there is no data in the database for the userid that you are supplying, your VO will return 0 records. So there is no current row in VO which is attached to your UI. This is why you are getting the error. so make sure that you provide an existing userid to the bind parameter.
and in your code, it should be findViewObject("EmployeeVO1") not findViewObject("EmployeeVO"). please check

Similar Messages

  • Step by step procedure of creation of Search help is required...

    Hiii,
    Can any one send me the detail step by step procedure for creation of Serach Help... like simple search help , collective search help and complex search help...
    If possible send some exampless for creation of search help.
    vamsii..

    Search help is an object of the ABAP Dictionary with which input helps (F4 helps) can be defined.
    You can create it in the Transaction Code SE11, choosing "Search Help" Radio-Button.
    There are the following types of search helps:
    Elementary search helps implement a search path for determining the possible entries.
    Collective search helps contain several elementary search helps. A collective search help therefore provides several alternative search paths for possible entries.
    Append search helps can be used to enhance collective search helps delivered by SAP with customer-specific search paths without requiring a modification.
    Check step-by-step process for creating elementary search help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
    Also check this thread.
    what is the use of search helps? where can we creat it?
    Regards,
    Maha

  • Search helps..

    I have a requirement to attach a search help to the screen fields in table control. it's region, state& district.the functionality should be as follows.
    These three fields are from different tables.
    1)If i select state after selecting a region only states in that region should come.
    2)If i select any district without selcting region and state ,the region and state should be automatically populated.
    i tried using collective search help but it is not working on the screen fields..
    pl. give me some solutions.

    Hi rahul,
    1. region, state& district
    2. U can easily achieve this functionality,
      if all these 3 fields,
      with all different master combination values,
      are present in 1 single table.
    3. then,
    4. just make 1 simple search help out of it,
      and make all the 3 parameters
      IMPORT
      and EXPORT
    5. then it will work in the way u desire.
    regards,
    ami tm.

  • Material Search Help for VA01 - Material by Plant

    Hi Experts,
    I want to know how to find out the search help for that material in that tcode. Please tell me   in detail how to proceed with this and where to go with the modifications or enhancement.
    I am not familiar with user exits, so please help me.
    Regards,
    Bhaskar.

    Hi,
    you don't need any exit / badi.
    Go in VA02, in material number go in technical information : F1 ; F9
    You will show there is no search-help link to the field. So the search-help is taken from the data element.
    Go in SE11 and show the data element MATNR.
    In the thirth tab you will find the search-help link : S_MAT1.
    Go in SE11 and show the search help S_MAT1 (each time you could double click instead of reopen SE11).
    This is a group search, that means, it contains many search help.
    Copy a simple search help, modify as you would like.
    Add your own search help in the S_MAT1, and don't forget to link fields (parameters).
    You don't need any object key or user-exit.
    You will affect all the screen of SAP using this search-help S_MAT1.
    Regards
    Frédéric

  • Search help 4 vendor & costumer Master

    Hi everyone
    I need to create a search help that content vendor master and costumer master in the same search help, it is possible??. If it is possible, how can i do it??
    Thanks & Regards
       David N

    HI everyone i make a compose search help that includes this simple search help with
    DEBID     
        KUNNR     C     LIFNR
        BUKRS     C     BUKRS
    KREDK     
        LIFNR       C       LIFNR
        BUKRS     C     BUKRS
    thanks

  • Help! Adding Simple Search to Seeded OA Framework Sreen

    I need to add a simple search screen to seeded OA Framework screen for Supplier Products and Services. Please guide me best approach to hit this.
    I am also facing following problems:
    1. I have no idea about attaching bc4j components.
    2. The view object for this screen is selecting from dual but the data is coming from some other tables. I checked the Impl class and there is no initQuery methods defined. Where/how this query must be getting fired.
    3. How/Where do I need to add regions for simple search.
    Thanks!
    Ritesh

    There will be viewAttributes defined on the VO which are transient if the developer is populating them from some PL/SQL procedure. You can add more attributes depending on your reuqirement and make sure you add your logic of populating thesenew attributes. For this you need to find where the developer is populating the VO programmatically and see if you can extend their logic.

  • HELP need simple search page

    Hi. I need to build a search page of the database. I think it's a simple search. The "catalog" is set up in the MYSQL database structure into two tables :authors and books: which are relational via ID numbers. The idea is to enter a search term on the search page and come up with a list of results that look like catalog entries. Each catalog entry consists of book, author, picture, and description. The user needs to be able to enter any term, or partial term and come up with entries. How do I do this?
    I'm in CS3.

    Have a form with form action that goes to script.php on script.php create a recordset and filter entered value against database table field. Then add bindings onto the page to show the results of the filtered recordset. Nest the bindings in a repeat region to display results if there's more than one result available in the search query.

  • About Running Remote Search Helps in SRM via Webdynpro ABAP

    Hi there,
    I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
    I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
    Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
    I haven´t found any information regarding that :S.
    Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
    Thanks in advance!

    Vicente Ángel Lopez Romero wrote:
    > Hi there,
    >
    > I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
    >
    > I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
    >
    > Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
    >
    > I haven´t found any information regarding that :S.
    >
    >
    > Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
    >
    > Thanks in advance!
    Figured it out.
    /SAPSRM/WDC_UI_BACKEND_SH is a 'freely programmed' search help used in SRM.
    1. Add this helpview (HV) component usage to your component controller, and view controller.
    2. Map HV SELECTION context to your view
    3. Modify the context attribute you want backend searchhelp to 'freely programmed', and select the component usage created in step above (note this is done dynamically in SAP code, b/c attribute is defined as dictionary search help in SAP components) -- this took a bit to figure out.
    4. IMPORTANT: Give your context attributes the SAME NAME (COST_CTR in my case) as those in structure /SAPSRM/S_CH_WD_MAP_ACC (how obvious was that)
    5. IMPORTANT: Set your LOGSYS in /SAPSRM/CL_PDO_VALHELP_FACTORY class - love those those factories (tic)
    DATA: lo_helper TYPE REF TO /SAPSRM/IF_PDO_ACCT_ASSGT_HLPR,
    CALL METHOD /SAPSRM/CL_PDO_VALHELP_FACTORY=>GET_ACCT_ASSGT_HELPER
    RECEIVING
    RO_ACC_ASSGT_HELPER = lo_helper.
    CALL METHOD lo_helper->set_searchhelp_control
    EXPORTING
    iv_logsys = ls_logsys-logsys.
    6. Now handle event DATA_SELECTED to get data from SELECTION, and move to your Context field.
    How simple was that? Yikes. I should have just built a custom dictionary search help to RFC over and call the BAPI for Cost Center List.
    - Tim

  • Problem in search help

    Hi Abapaers,
    i have created a serach help  realted to status and descriptiopn .
    i have used it in 2 tables . for one table f4 is working for other not working .
    Please suggest  how can i solve this .
    Regards
    Arun .

    hi,
    please use any of these methods for applying search help, it will definately help u
    you can use function module  F4IF_INT_TABLE_VALUE_REQUEST
    or
    can follow these simple steps for search help:
    go to se11==>
    put some name after ticking search help radiobutton==>
    create==>
    then tick " elementery search help " and press enter ===>
    then put description and table name in selection method ===>
    then put the field on which u want search help in search help parameter==>
    tick IMP EXP ==>
    write 1 in lpos and spos===>
    save and activate===>
    double click on table name ===> 
    select that field and press *search help tab* above===>
    then copy
    i hope it will help u a lot
    thaks and regards
    rahul sharma
    Edited by: RAHUL SHARMA on Sep 30, 2008 12:52 PM
    Edited by: RAHUL SHARMA on Sep 30, 2008 12:53 PM
    Edited by: RAHUL SHARMA on Sep 30, 2008 12:54 PM

  • Stuckup in search help FM!!

    hi experts....
    I have a simple report, where i need to populate search help.
    the below is the coding wat i have used, but fetching a error.
    pls help me out, Thnx alot .
    if u want to see the entire coding too i will send...
    Regards
    Rachel.
    seLECTION-SCREEN  BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: DDNUMBER for ZPAYMENT_DETAILS-CHECF.
    SELECTION-SCREEN END OF BLOCK B1.
    data: pname1(20) type c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR DDNUMBER-LOW.
    pname1 = 'DDNUMBER-LOW'.
    PERFORM F4_HELP_DDNUMBER using pname1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR DDNUMBER-HIGH.
    pname1 = 'DDNUMBER-HIGH'.
    PERFORM F4_HELP_DDNUMBER_high using pname1.
    form F4_HELP_DDNUMBER using pname1.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
         tabname                   = 'ZPAYMENT_DETAILS'
         fieldname                 = 'checf'
       SEARCHHELP                = ' '
       SHLPPARAM                 = ' '
        DYNPPROG                  = sy-repid
        DYNPNR                    = sy-dynnr
        DYNPROFIELD               = pname1
       STEPL                     = 0
       VALUE                     = ' '
       MULTIPLE_CHOICE           = ' '
       DISPLAY                   = ' '
       SUPPRESS_RECORDLIST       = ' '
       CALLBACK_PROGRAM          = ' '
       CALLBACK_FORM             = ' '
       SELECTION_SCREEN          = ' '
    IMPORTING
       USER_RESET                =
    TABLES
       RETURN_TAB                = RET_TAB
    EXCEPTIONS
       FIELD_NOT_FOUND           = 1
       NO_HELP_FOR_FIELD         = 2
       INCONSISTENT_HELP         = 3
       NO_VALUES_FOUND           = 4
       OTHERS                    = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " F4_HELP_DDNUMBER
    *&      Form  F4_HELP_DDNUMBER_HIGH
          text
    -->  p1        text
    <--  p2        text
    form F4_HELP_DDNUMBER_HIGH using pname1 .
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = 'zpayment_details'
        fieldname                 = 'CHECF'
      SEARCHHELP                = ' '
      SHLPPARAM                 = ' '
       DYNPPROG                  = sy-repid
       DYNPNR                    = sy-dynnr
       DYNPROFIELD               = pname1
      STEPL                     = 0
      VALUE                     = ' '
      MULTIPLE_CHOICE           = ' '
      DISPLAY                   = ' '
      SUPPRESS_RECORDLIST       = ' '
      CALLBACK_PROGRAM          = ' '
      CALLBACK_FORM             = ' '
      SELECTION_SCREEN          = ' '
    IMPORTING
      USER_RESET                =
    TABLES
      RETURN_TAB                =
    EXCEPTIONS
      FIELD_NOT_FOUND           = 1
      NO_HELP_FOR_FIELD         = 2
      INCONSISTENT_HELP         = 3
      NO_VALUES_FOUND           = 4
      OTHERS                    = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " F4_HELP_DDNUMBER_HIGH

    Hi,
    After the At selection-screen event, you need to write the select query.
    Try this report
    REPORT  Z_TEST_F4_HELP.
    TABLES: ZEMPLOYEE,MARA.
    DATA: BEGIN OF ITAB OCCURS 0,
           ENO LIKE ZEMPLOYEE-ENO,
           ENAME LIKE ZEMPLOYEE-ENAME,
           EAGE LIKE ZEMPLOYEE-EAGE,
           SALARY LIKE ZEMPLOYEE-SALARY,
           END OF ITAB.
    PARAMETERS: P_ENO LIKE ZEMPLOYEE-ENO,
                P_MATNR LIKE MARA-MATNR.
    TYPES: BEGIN OF ts_mara,
    matnr TYPE matnr,
    ersda TYPE ersda,
    ernam TYPE ernam,
    END OF ts_mara.
    DATA : lt_mara TYPE TABLE OF ts_mara.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR ERSDA ERNAM FROM MARA INTO TABLE LT_MARA UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'MATNR'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'P_MATNR '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = LT_MARA
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3
    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 this helps you.
    Thanks,
    Ruthra

  • Problem in Search Help[F4] - Values Not being Dsplayed

    Hi,
    Search help values are not being displayed.
    F4 help pop up is being displayed with the text on top: ' xxxx number of entries found".
    But no values are visible in that popup where it normaly displayes all values for selection. This is happening with all search helps.
    Example: I tried for Tcode: ME21, for field Vendor.
    =><i>No patch has been applied on Server recently.</i>
    Any clue on that..??
    Any help is appriciated.
    Regards,
    Vijay Raheja

    Hello Vijay,
    This is simple as well.
    Go to help then settings and then F4 help. Under system defaults tab strip you will find Display tab strip. Here go to change mode and choose dialog. The other choice will be for control only ( 2 radio buttons only this time around). However to do so make sure you have the authorization object S_ADMI_FCD with value TCTR.
    Ask yoru authorization adminstrator to make these changes. He would be having these authorizations. Normally all  users dont have this authorization as this is part of security audit considerations.
    Please award points if issue got solved.
    Regards.
    Ruchit.

  • Error in Simple Search

    i have created simple page with simple emp search. i have created query region(construction mode is autocustomizationcriteria, for that i have created query components(simplesearchpanel and simplesearchmapping) and i am searching based on empno.
    when i am running the page, if i click just go button w/o entering anything in empno textbox, it is giving all the details.
    but if i enter any particular empno in the textbox then click go button then it is giving error like,
    No current row for View .
    i have added advanced panel also, it is working fine in advanced search. and if i add LOV to the empno textbox then also it is working fine.
    only in simple search, if i don't add any LOV if i enter any particular empno then it is giving above error.
    i don't know where i am wrong.can anyone help.
    Message was edited by:
    user536125

    Do you have any view object and attribute mapped to the Emp. No. Criteria Message Text Input...?
    Is yes, please remove it.

  • Creating select option with the search help based on other select option

    Hi,
    I have displayed a selection screen with two select options S1 and S2.
    My requirement is that the values in the search help of S2 should get filled based on the values selected in S1.
    Note: User has option to select multiple values in S1.
    Does anybody know how to implement this?
    Thanks,
    Feroz

    >
    Sanjeeva wrote:
    > Hi,
    >
    > With standard f4 you cannot acheive this. You need to write customise with OVS or Simple value selector by reading S1 selected values.
    >
    > Thanks,
    > Sanjeev
    I'm getting fairly tired of seeing this completely incorrect information on this forum.  As stated before and already found out by this poster, you can map input and output values between multiple data dictionary search helps. You do NOT have to resort to using OVS for this option.

  • Personalized Simple Search with new messageLovInput - Search does not work

    I have currently set an Message LOV Input into a Simple Search Panel for IcxPorRcvSrchPG.
    I have got the LOV bringing back the correct values, but when I hit the GO button the Search does not work.
    Can someome please help me on how I am able to get the search working in the Simple Search Panel.
    Details of VO's are as follows:
    xxReceiveItemsDueVO (extended from ReceiveItemsDueVO)
    xxReceiveMyItemsVO (extended from ReceiveMyItemsVO )
    xxReceivePurchaseItemsVO (extended from ReceivePurchaseItemsVO)
    xxReceiveReqItemsVO (extended from ReceiveReqItemsVO)
    Extended Attribute I am looking to search with is xxWono.
    Current search items are working 100% with extended VO's, but when I try and search with new item, I am having no luck. The search is acting as though the new item has not even been created.
    Additional Lov Details are as follows:
    Level: Site
    Item Style: Message Lov Input
    ID: xxWONumSearch
    Data Type: VARCHAR2
    External LOV: /oracle/apps/icx/lov/webui/WorkOrderLovRN
    Prompt: Work Order Number
    Search Allowed: False
    Search Criteria: False
    Lov Map
    ID: xxWipEntityName
    Criteria Item: xxWONumSearch
    LOV Region: WipEntityName
    Programmatic Query: False
    Required: False
    Return Item: xxWONumSearch
    Framework version: 11.5.10.6RUP
    Is there a way of doing this through Personalization?
    With the version of framework I am not able to add a simpleSearchMapping through Personalization.
    Can someone please advise?
    Thanks
    Lee

    When I generate and then view the help, it looks perfect!  I changed the name of the project folder since the information is proprietary.  I have several pictures including the parent folder and the only 3 folders that are generated.  I cannot find the Webhelp output folder.  I think this is what you need to see.

  • Calling a standard search help from MS Office

    One of the companies I work for has integration with Microsoft Office so users can create SAP DMS (document management system for those who aren't familiar with it) entries directly from e.g. Microsoft Word. The integration solution is a custom .Net application.
    In addition to the obvious integration to create the DMS info record and assign the document as an original the integration solution lets the user provide classification data. Some changes are now being planned, and one of them is challenging as a new characteristic (for the classification) will be used to store an organization unit. This is straightforward when the user is in the SAP GUI, as the standard search help can easily be displayed from custom code.
    Being a technology optimist I was hoping that with the new fancy technologies SAP would have provided a way to use .NET integration to display a standard search help from the MS Office integration dialogue - but so far I have not been able to find any information supporting this hope. Luckily I am not the developer working with the integration dialogue, but unless the mentioned possibility exists it looks like we have to resort to passing all organization units to the interface so a hierarchy can be constructed and displayed to the user for selection.
    Another alternative (I think) is to recreate the dialogue as a web dynpro screen, which will give us all the advantages of operating "inside" SAP. However, I am not sure if this is possible either. Can a web dynpro screen be called from an MS Office application (.Net), and can that web dynpro screen return values to the (external) calling application? In my simple view of the world this should be doable, if not otherwise it should at least be possibly by wrapping the screen in a function module that is exposed so the .Net application can call it - either by RFC or as a web service.
    Microsoft Office version is 2003.
    SAP release is ECC 6.0 (Netweaver 7.0).
    I think this is the right forum for my question. My apologies if it isn't (and any guidance towards a more appropriate forum would then be appreciated).

    Not solvable I suppose. There should be a way to close messages without marking them as answered.

Maybe you are looking for

  • Help! I can no longer sync my iphone 4 to my MAC

    I have an iphone 4 and a MAC OX S 10.6.8.. I am able to sync the MAC to the iphone, however, I can no longer sync the iphone to the MAC... so anything like contacts, calendar events, etc. does not transfer to the MAC if is entered on the iphone.. Has

  • Customer Sales Return in Depot

    Hii, There is a scenarion where in materials are sold from a Depot. The process we are following is that we are preparing the sales order, then the delivery document with respect to the sales order. After the delivery document is created we are updat

  • ??? about optical drive, installation discs and display in "new" refurb MB

    Yesterday I received the "new" refurbished MB 2.0 1GB RAM 120GB HD (black) bought for my wife a week ago through the Apple website. (I have a new MBP with a glossy display since January and it has so far been w/o problems.) As soon as I set up the MB

  • External HD and Thunderbolt display

    I have the THunderbolt Display with Macbook air and I plug my external HD into the thudnerbolt display. Before unplugging the macbook from the thunderbolt display I always undock it. This leads to it shutting off as it runs directly from USB power. H

  • Problem deploying an application to SunOne 8.1 instance

    Hi I am trying to deploy one ear file to one of the SunOne instance locally. I am using SunOne8.1. But I am getting the following error: [#|2006-07-24T16:21:17.706+0530|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.tools.deployment|_ThreadID=14;