Error in searching field value by pressing enter

Hi all,
I am able to get a pop up with the values of the field and select in that pop up to the main screen on pressing enter.
But i get all the values of the column present in the table and not the one which i want to search. Also the main screen gives error message if the cursor is in the field on main page and works properly  if the cursor is not there in the field.
Error is as follows:
<b>BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</b>
Does it have anything to do with <form method = "POST">
as the values from main screen are not passing to the next screen!!
<b>Find.htm:</b> (Main screen)
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<script language="JavaScript" type="text/javascript">
document.onkeydown = function(){
if(window.event && window.event.keyCode == 13)
              popUp=window.open('help.htm','_blank', 'Emp Details','width=100,height=300');
</script>
<htmlb:content design="design2003" >
  <htmlb:page title="Add Employee Details " >
    <htmlb:form action="POST" id = "form1">
      Empid:
      <htmlb:inputField id          = "partner"
                        showHelp    = "true"
                       submitOnEnter = "true"
                        value       = "<%= partner %>" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
<b>Help.htm</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Test" >
    <htmlb:form id="my_window" >
      <%
  data TV_ITERATOR Type Ref To zcl_itr." - Iterator Function
  data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
  create object tv_iterator exporting appl_cons = appl.
  iterator = tv_iterator.
      %>
      <htmlb:tableView id               = "pop"
                       width            = "200"
                       headerVisible    = "true"
                       design           = "alternating"
                       visibleRowCount  = "10"
                       fillUpEmptyRows  = "true"
                       selectionMode    = "SINGLESELECT"
                       selectedRowIndex = "<%= row_index %>"
                       onRowSelection   = "MyEventRowSelection"
                       showNoMatchText  = "true"
                       filter           = "server"
                       sort             = "server"
                       onHeaderClick    = "MyEventHeaderClick"
                       table            = "<%= details %>"
                       iterator         = "<%= iterator %>" >
      </htmlb:tableView>
      <%
  if partner is not initial.
      %>
      <htmlb:inputField id      = "checked"
                        visible = "True"
                        value   = "<%= partner %>" />
            <script for="checked" language="javascript" event="onLoad()">
                   opener.document.form1.partner.value = <%= partner %>;
                   window.self.close();
      </script>
      <%
  endif.
      %>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
<b>Oncreate:</b>
select partner from zcrmm_buag into corresponding fields of table details.
<b>OnInputProcessing:</b>
DATA: IND TYPE I.
  DATA: TV TYPE REF TO CL_HTMLB_TABLEVIEW.
  DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
  EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
  TV ?= CL_HTMLB_MANAGER=>GET_DATA(
  REQUEST = RUNTIME->SERVER->REQUEST
  NAME = 'tableView'
  ID = 'pop' ).
  IF TV IS NOT INITIAL.
    DATA: TV_DATA TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
    TV_DATA = TV->DATA.
    IF TV_DATA->SELECTEDROWINDEX IS NOT INITIAL.
      FIELD-SYMBOLS: <row> LIKE LINE OF details.
    READ TABLE details INDEX tv_data->selectedrowindex ASSIGNING <row>.
if <row> is assigned.
partner = <row>-partner.
endif.
    ENDIF.
  ENDIF.
Any help is welcome.
Regards,
Rohit Khetarpal

<i>actually when the pop up comes,the page on the back(i.e. Find.htm) shows error message as mentioned below..
BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</i>
-->Remove "method="post" in FORM tag. I tested.
<b>To pass the value from Find.htm to Help.htm</b> - see the below code
<script language="JavaScript" type="text/javascript">
document.onkeydown = function(){
if(window.event && window.event.keyCode == 13)
var val;
val = document.getElementById("partner").value;
* Here the VAL will have the value of query value(what user entered as Filter value) from Find.htm
popUp=window.open('help.htm?partner'+val,'_blank', 'Emp Details','width=100,height=300');
</script>
<b>And also make the "Patner" in help.htm as "AUTO parameter.</b>
Hope this will solve your peoblme.
Raja T
Message was edited by:
        Raja Thangamani

Similar Messages

  • Data getting deleted from screen fields when  I Press Enter

    Hi Folks,
    I have a serious Issue need to resolve it urgently. I have created a subscreen in PS Module
    Prog: SAPLXCN1(Subscreen)
    Screen: 0600.
    Enhancement: CNEX0006.
    I have created a screen and populated the data via search helps, when I fill all the custom fields with values and press enter my data is getting deleted please give me quick solutiojn.
    Thanks & Regards,
    Ramcharan.

    Hi RAM,
    Check the Code where you are writning , (PBO or PAI)
    After that check the sy-ucomm for Enter and write your code accordingly,,.
    Thanks & regards,
    Dileep.C

  • How to get input values till pressing enter key

    hi!!!
    i need to enter values thru keyboard using bufer reader etc etc
    but i need to stop entering when i press enter key
    how to do this??

    First off I would take a look at this link because it gives quite a few good examples if you've never used scanner.
    You can find all this on the link.-> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
    in order to use scanner you have to import it.
    import java.util.Scanner;then inside your main method you need to create a scanner wrapped around the keyboard inputstream.
    Scanner userIn = new Scanner(System.in);take a look at the api to decide which method you want. For this I would suggest nextLine().
    also I would specify that you want the numbers separated by spaces or comma's or something so you can use the String.split(" "); method which returns an array of Strings;
    then traverse through the array of strings and convert them to ints
    http://www.rgagnon.com/javadetails/java-0004.html

  • Search Fields value based on the input.

    Hi Experts,
    I was trying to develop a web dynpro with two  input-fields and process the logic based on the input-fields.
    The scenario is,have two Input fields, the value for the first input-field a static search help is assigned and for the second input-field the value are populated on the based of the values selected in the first input-fields.
    so here the values for second input-field depends on the first input-field.
    Please put in your thoughts or suggestion for the scenario.
    Thanks
    Best Regards,
    Lalitkumar.
    Moderator message: wrong forum, please post again in Webdynpro forum.
    Edited by: Thomas Zloch on Jul 9, 2010 1:36 PM

    Please refer the following for achieving the same.
    http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp

  • Af:query prefill search fields on task flow enter

    Hello.
    What is given:
    Bounded task flow A with shared data control scope. Task flow contains one page fragment with two components: <af:query> and <af:table>. Table takes data from read only view object B. <af:query> is bound to search criteria within B. Also there are several bind variables in B which are used in criteria.
    Task flow A is used from other task flow via <af:region>.
    What is needed:
    When entering bounded task flow first time - show user empty search form and empty table.
    When entering bounded task flow next time and user performed no search yet (just left task flow without hitting Search first time) - show user empty search form and empty table.
    When entering bounded task flow next time and user performed some search - fill search form with latest entered values, show data in table that corresponds to search values.
    What is the best/recommended approach for implementation of such functionality?
    While debugging I can see on bounded task flow entry VO B contains latest bind variables from previous execution. But somehow they are not reflected in search form and are not applied when using Query Automatically View Criteria hint.
    I am using JDeveloper 11.1.1.5

    Hello Frank.
    Thread you mentioned contains relevant info.
    Thank you for help and quick response.
    One difference I faced with thread's code is that I could not get view criteria using JUSearchBindingCustomizer.getViewCriteria. This method always returned instance of criteria without criteria rows at all. Thus saveState() was not working.
    Instead, ViewObject.getViewCriteria("criteriaName") worked for me. Returned criteria in this case contained needed current row and filled criteria row attributes.

  • Limit Search field values

    Hello,
    I am trying to limit some of the values in the value list in quotation search page.
    Ex: when you want to search by "Partner Function", there are more than 50 values present. I want to delete some of the values from this list.
    How can I do this?
    Some post in SDN says that this is possible by modifying the method "GET_DQUERY_DEFINITIONS"?
    Thanks in advance

    Praveen,
    Check if there is a GET_V method for this field in the Search Page IMPL class...
    You can delete the entries here.
    Regards,
    Masood Imrani S.

  • When press Enter i want to display the input in Report calling Smartform

    Hello Masters,
    I am new in to abap and i want to know that how can we display data on the same screen when we enter the value and press enter , for example when i enter a employee code in input field and when i press enter before executing my report i want to see the name of the employee for which i have enter in the field before execution. i am developing a Report which is calling a smartform for print.
    tables sscrfields.
    parameters: p_pernr type pa0001-pernr obligatory.
    at selection-screen.
      if sscrfields-ucomm eq space.
        sscrfields-ucomm = 'p_pernr'.
      endif.
    I thought that this code could have worked for me but its no use , can any one please help me with my issue

    here is some code what i have used in my report program , i will still like to remind that its an Logical database program (PNP) for ABAP-HR , right now i tried the code mentioned above but not getting any result.
    TABLES: pernr,sscrfields,pa0001.
    *& Declaring Type-pools
    TYPE-POOLS : slis.
    *& Declaring Infotypes
    INFOTYPES: 0000,          " Action
                         0001.          " Org. Assignment
    *& Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK n1 WITH FRAME TITLE t1.
    PARAMETER : p_despat TYPE zhr_transfer-despt OBLIGATORY,              " Despatch Number
                r_pernr  TYPE pa0001-pernr OBLIGATORY,                                    " Reporting to
                re_pernr TYPE pa0001-pernr OBLIGATORY,                                   " Relieving Authority
                a_pernr  TYPE pa0001-pernr OBLIGATORY MODIF ID one.             " Authorize Person
    SELECTION-SCREEN END OF BLOCK n1.
    INITIALIZATION.
      t1 = 'Transfer Records'.
      LOOP AT SCREEN.
        IF screen-name = 'PNPPERNR-LOW'.                                  " Personnel Number (Mandatory)
          screen-required = 1.
            MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      IF a_pernr IS INITIAL.
        a_pernr = pa0001-ename.
      ENDIF.
    END-OF-SELECTION.

  • Rgarding screen field values passing to program

    Dear all, i have searched in SDN and cud not find the answer, i am working on a MB_MIGO_BADI for which i have to design a screen. now i have designed the screen ,and in the  PAI method i have  written the code. but im unable to get the screen field values that i entered in the screen into this method,(in order to concatenate the screen fields)can any one tell me how to declare variables in the method as well as when we create the screen. please give me in detailed steps.
    Thanks in advance,
    Naren

    Hi,
      If you go to se18 open the BADi and go to menu path GOTO> SAMPLE CODE you can check out a sample implemenation. You can declare Instance level attributes and use those to transfer data.
    Regards,
    Himanshu

  • Dynamic field value capture

    Hello Experts,
    I need  to capture field value which is entered by the user in the dynamic selection screen in a Z report.
    Please suggest best possible solution for this.
    BR,
    Nisha

    Hello Syed,
    Thanks for your reply.
    Just now i found that my transaction is a copy of standard transaction GJ93 with some additional fields.
    But i am not able to find any select-options statement to be declared for plant so does that mean select option is also getting dynamically created.
    Then how i will transfer value to internal table which is for reading current screen values while using FM DYNP_VALUES_READ.
    To be in more detail,the issue is like when user is entering value in plant and executing,output is not getting filtered as per the plant she enters in the dynamic selection screen.
    Is it like my required functionality already exists in the program which i unable to find it.
    Please help.
    BR,
    Nisha

  • ITunes search bar deletes field after pressing enter

    Ever since I upgraded to iTunes 10, about half the time I enter any information into the search field, iTunes will briefly bring up the results for my search, and then as soon as I click on it, my search will vanish and iTunes will revert to the way it is when it launches. This has happened over two separate computers and over two separate versions of iTunes (10 and 11), and every update I figure that maybe they will fix the issue, but every update does nothing to help me. I had assumed this was a major problem since I had two completely separate computers experiencing the same issues, but I finally began to search for a solution, and it appears (if google is to be trusted and I am entering the right search terms) that somehow, against all mathmatical probability, I happen to be in possession of the only two computers that have this problem. Again, I will type something into the search bar, hit enter (or I will just click the main area, the same thing happens either way), it will bring up my search results, I will click the main iTunes area, and iTunes will act as if I highlighted the search area and pressed delete, restoring the main screen to its original condition. For the love of god please help me. I feel as if every time I go to click on the song I want only to find it snatched from my possession I am can feel yet another of the frayed strings of sanity that connect my fragile mind to reality snipped by the shears of Atropos.

    The AVG Safe Search extension can cause problems with the Enter key not working in the location bar.

  • Screen exit Payment document saved when press enter after error message

    Hi All,
       I have created a screen enhancement for payment document WZR1.its in additional data tab under header details.
    Here i should populate a error message when user save the payment document without entering values to custom screen fields.It works fine with Function exit LWZRE017 . It populated the msg and the screen is disabled but after when i press enter button the document is saved and created.
    please let me know how to stop saving the document without entering values in custom fields.
    Thanks,
    Arun kumaran.
    Edited by: Arun Kumaran on Mar 4, 2010 12:09 PM
    Edited by: Arun Kumaran on Mar 4, 2010 3:26 PM
    Edited by: Arun Kumaran on Mar 4, 2010 3:43 PM

    I found the fcode when enter is 'ENT1' it is from standard screen program.
    I populated the same message when UCOMM = 'ENT1' still not working.
    ARUN KUMARAN.
    Edited by: Arun Kumaran on Mar 5, 2010 1:36 PM
    Edited by: Arun Kumaran on Mar 5, 2010 2:11 PM

  • Vague error message when using wildcards in a numeric search field

    Dear forum readers,
    When a user submits a search string containing a wildcard (e.g. 64%) in a numeric search field of a JHeadstart generated search section, the application returns with an error message like "For input string: %2".
    I'd like to show a more user-friendly message e.g. "Wildcard characters are not allowed in search field blablabla".
    Any suggestions on how this can be achieved would be most welcome.
    Regards,
    Ibrahim

    Well, I believe JHeadstart does not really have this functionality.
    One way is use a Query Operator 'startsWith', but then you always query like LIKE '<entered search value>%'
    This is probably not what you want...
    But you could hack it into advancedSearch in YourApplicationModuleImpl
    try {
    if (viewCriterium.getQueryValue() != null) { //This is where exception JHS-00116 is raised...
    value = viewCriterium.getQueryValue().toString();
    } else {
    value = null;
    catch (NumberFormatException ex) {
    //insert check for wildcard
    value = viewCriterium.getValue().toString();
    if (value.indexOf('%')>=0) {          
    sLog.debug("Ja, een wildcard!!!");
    operator = "LIKE";
    } else {//original exceptionhandling code here...
    ...and a bit later, add test for "LIKE":
    if (viewCriterium.isDate() || viewCriterium.isString() || "LIKE".equals(operator)) {
    value = "'" + value + "'";
    very nasty code, and does not raise an exception for searches like '%xxx'
    Good luck,
    HJH
    Edited by: HJHorst on Mar 5, 2009 12:03 AM

  • Module pool screen field should default without pressing enter

    Hi
    I have got a main module pool screen which has a tabstrip with four tabs.
    There are 2 fields in the main screen when we select from F4 for the first field then the field 2 should default in case of a condition.
    This happens only when i press enter. I want the second field to change  as soon as the first field is selected.
    How do I trigger the PAI as soon as the field 1 is selected.
    eg:                           Field 1 :  i/p
                                    Field 2 : display
                                   Field 3 : i/p
    On F4 for field 1  say i select value 'A' then the valu for field 3 should default to value 'B'.  Also field 2 should be displayed based on combination  of field 1 and field 2. But now it does it only on pressing enter.
    How do I solve this problem?Also if i select field 1 value A and dont press enter and go to the subscreen tab then it does not do any thing. It allows to go on the subscreen tab. But actually it should default the field 3 value. It does it only when I press enter.
    Also the F4 is from dictionary that is the screen fields are from dictionary. I have not created any F4 for the fields.
    Please help me solve this problem
    Regards,
    mozila

    Hi
    You can achieve this using List Box only not by Input Field. Since Input field doesn't trigger automatic PAI/PBO
    Go through the below thread
    populate drop down menu based on entry in another field
    or an alternative is--> In PBO use POPUP_GET_VALUES Fm to get the First input field based on that you can enter further values
    unicode error
    Cheerz
    Ram

  • Search help value restriction fields

    Hi experts,
    I have modified the existing search help by  using "SEARCH HELP EXIT".
    Here is the situation:
    As soon as I press F4 button on particular field, it will display search help restrictions window with 4 fields.
    suppose if I enter material number on material number field, it should display only particular material not all materials.
    Normally it was working fine before I written search help exit.
    In search help exit I am selecting values directly from database table with out consider restrictions window parameters.
    How to findout the restrictions window parameter names ( I mean screen field name). So that I can add those fields in my select statement where condfition.
    Pls help me.
    Thanks in advance
    Raghu

    I got the solution. Any how Thanks.

  • After the update, pressing Enter no longer works to go to a URL, nor does it work in the Google Search bar thing.

    Pretty much what the question says. I updated to the latest Firefox, and now this really irritating thing happens.... It happens lots of places too. Some specific things:
    * Clicking on the address bar at all does not bring up the little flashing cursor thing, and generally gives me no indication that I've actually clicked on the URL. Same with that little google search thing in the upper right.
    * Most frustratingly, when I press enter after putting in a URL, it won't even go to the site.
    * After getting annoyed at both of those things, I try to type in something on a website, and though the URL stays the same, it starts dropping down a lot of suggestions from my history.
    * Lastly, when I'm doing my crosswords on Washington Post and I switch to a different tab to type something on there, it doesn't switch my typing thing over - it stays on the crossword, typing things into that rather than into the typing field I clicked on to start typing in.
    So, yeah, this is highly annoying, and I'd love for any help for these issues...
    I did look at the FAQs, and they said something about the AVG SafeSearch thing causing one of my problems, but I don't have that extension, so it's definitely not that!

    The AVG Safe Search extension can cause problems with the Enter key not working in the location bar.

Maybe you are looking for

  • Cost of repairs for ipad 2

    cost of ipad repair

  • What audio format does iTunes convert to and use?

    I got an ipod touch 4 a few months back, and it had to convert many of my songs to a different format. I need to put some songs on a rewritable cd/dvd to work in a cd player. I think it is an MP4 format. We tried it on a rewritable DVD-RW and a CD-R.

  • Missing Information Spaces in "HOME" tab

    Hy, i have anI have under Manage Spaces 6 Explorer Views. All are "GREEN" and indexed successful. One of them is not reachable in the "HOME" screen. Only 5 are visbile. Even a search does not help. The only workaround i have, is to copy the folder in

  • Activity Type ---------------kp26 --------------------Suggest

    Hi all can any one give good suggestion .. my client is asking activity type planning not fixed we have 4 activity type 1) Labour -K.G 2) Labour -Inch 3) Machine Hour- 4) Labour Cost Area But main problem when we plan in KP26 There is plan in labour

  • Edge Animate free version

    Hi I would like to know where I could fnd the free version of Edge Animate. I had it installed but had to reinstall everything on my computer and now I can't seem to find where to download it. I can find the 30 day trial but the other worked just fin