Input help problem

Current scenario i have an input textbox attached to an input help. A user needs to find a particular table, but do not know the exact name. The user only knows that the table starts with 'PA'. So, we need to filter all the tables that start with 'PA' for e.g. 'PA0001' and return it to the user for selection.
The problem now is that i cannot retrieve the input string given by the user for e.g. 'PA'.
Does anyone knows how to solve this problem?

This is my codes. The string 'PA' is not hard coded. We need to read what the user input in the textbox. For example it can be PA, PB, PC or any other input.
REPORT  ZMEIHUI_METADATA.
*& Global Declaration
DATA: IO_TABLEA(40) TYPE C,
      IO_TABLEB(40) TYPE C,
      VALUE(40) TYPE C,
      VALUE2(100) TYPE C,
      PROGNAME TYPE SY-REPID,
      DYNNUM TYPE SY-DYNNR.
*& Processing Blocks called by the Runtime environment
START-OF-SELECTION.
  CALL SCREEN 8000.
MODULE STATUS_8000 OUTPUT
MODULE STATUS_8000 OUTPUT.
  SET PF-STATUS 'UI'.
  SET TITLEBAR 'TITLE'.
ENDMODULE.                    "STATUS_8000 OUTPUT
MODULE USER_COMMAND_8000 INPUT
MODULE USER_COMMAND_8000 INPUT.
  CASE SY-UCOMM.
    WHEN 'BACK'.
      LEAVE PROGRAM. "need to change to the previous screen!!!"
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'EXECUTE'.
     " PERFORM VALIDATE_REQUIRED_FIELD.
  ENDCASE.
ENDMODULE.                    "USER_COMMAND_8000 INPUT
MODULE F4_INPUT INPUT
MODULE F4_INPUT INPUT.
  TYPES: BEGIN OF VALUES,
    TABNAME TYPE DD02T-TABNAME,
    DDTEXT TYPE DD02T-DDTEXT,
  END OF VALUES.
  DATA: F4_VALUES TYPE TABLE OF VALUES.
  PROGNAME = SY-REPID.
  DYNNUM = SY-DYNNR.
  VALUE = IO_TABLEA.
  CONCATENATE VALUE '%' INTO VALUE2.
  SELECT DISTINCT TABNAME DDTEXT FROM DD02T
    INTO TABLE F4_VALUES WHERE TABNAME LIKE VALUE2.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD    = 'IO_TABLEA'
      DYNPPROG    = PROGNAME
      DYNPNR      = DYNNUM
      DYNPROFIELD = 'IO_TABLEA'
      VALUE_ORG   = 'S'
    TABLES
      VALUE_TAB   = F4_VALUES.
ENDMODULE.                    "F4_INPUT INPUT

Similar Messages

  • Input ready query input help problem (F4 help)

    Dear All,
    We are using NW2004s with SP9.
    We have created an aggregation level with 0MAT_SALES, 0SALESORG, 0DISTR_CHAN (0SALESORG and 0DISTR_CHAN are compound characteristics of 0MAT_SALES) characteristics (and other char. as well). We have a Filter where we added the above mentioned characteristics and a navigational attribute of 0MAT_SALES (0MAT_SALES_NAV_ATT)
    We set the follwing filter values:
    0SALESORG = AT01
    0DISTR_CHAN = 01
    0MAT_SALES_NAV_ATT = P
    0MAT_SALES = nothing but we set the 'Can be changed at execution' flag in the modeler.
    We have an input ready query on the above mentioned aggregation level. We are using 0MAT_SALES as free characteristic and we set 'Only posted values' on the extended tab.
    Our 1. problem is that when we want to enter new rows into the Query and get input help (F4 on the input ready cell) to select 0MAT_SALES we get all 0MAT_SALES values and <u>not</u> only that ones which has 0SALESORG and 0DISTR_CHAN values set in the filter.
    Our 2. problem is that 0MAT_SALES_NAV_ATT = P is not taken into consideration during query execution and we also get all materials.
    Any help?
    Thanks in Advance,
    Dezso

    Dezso,
    We looked into using Navigational Attributes in SP7 and found that Input Queries were unable to process them. Unless there has been some specific enhancements I do not believe that anything has changed here.
    I recommend raising an OSS and getting clarification from Waldorf. The SAP Help page on input queries in IP also provides some clarification in this respect.
    Hope this helps.

  • Problem with Input help inside an adobe interactive forms

    Hi Experts,
    I'm currently implementing a Webdynpro ABAP application containing a Interactive forms.
    I'm using Adobe Live Cycle Designer 8.0, Acrobat reader 9.2, Internet Explorer 7.0
    My problem is that when I click on the "input help" button inside the adobe form, he automatically refresh all the forms UI element with their initial values. Is-it a refresh event included when we pressed the "Input help" button or an other event? How Can I deactivate that action, event?
    Because since he automatically refresh my form data I loose the context current values.
    Thanks in advance,
    Louis

    P740741 wrote:>
    > Hi Norbert,
    >
    > Thanks for reply, yes I use ZCI and I inserted the Webdynpro script  through Utilities.
    >
    > Best Regards,
    > Louis
    strange, but you could compare the version of the zci scripting
    in your form in the hierarchy tab there are variables and the ContainerFoundation_JS script --> the first line
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - xxxxxxxxxxxxxxxxxxxxxxxxxxx - ContainerFoundation_JS gives you the requested information about the scripting version...have a look at this version...
    norbert
    perhaps this note helps:
    Note 999998 - Analyzing errors with Adobe Integration of Web Dynpro ABAP
    --> for debugging!
    A client debug function is available as of SAP NetWeaver Release 7.00 Support Package 19 (or after you implement Note 1287114) and for all Enhancement Packages. Activate this client debug function using the URL parameter "sap-wd-clientDebug=X" (attach it to the URL using "&"). You can then activate the client trace using the key combination <CTRL><ALT><SHIFT>T (move the focus to a Web Dynpro UI element, for example, to an InputField, do NOT move the focus to Adobe Reader). The system opens a new browser window with the trace output. The trace may contain an error entry ("Network Error", and so on). The URL also activates the Adobe document services (ADS) trace. The trace outputs of the ADS are copied to the generated PDF document as an attachment. Open the file "Error.pdf" of the ADS trace: Form errors (for example, script errors) are listed there.
    Edited by: Norbert Prager on Oct 24, 2009 7:31 PM

  • I defaulted input help field (pick list) but SAP CRM still asking for one

    We are running SAP CRM 7.0.
    Some fields as you know are dialog / pick list fields.
    What I mean by this is they are input help fields where you
    can click a little square (in sap crm 7.0) to the right of the text box
    and it brings up a dialog screen of values that you can select from.
    Here is an example screen shot of what I am talking about:
    http://img834.imageshack.us/img834/5676/imageschak.png
    So what I have done is implemented the GETTER function for this input help field so that by default it has a value.
    The code is like so:
    method GET_CURRENCY.
    CALL METHOD SUPER->GET_CURRENCY
      EXPORTING
        ATTRIBUTE_PATH = attribute_path
       ITERATOR       = iterator
      RECEIVING
        VALUE          = value.
          if value eq ''.
            IF sy-langu EQ 'E'.
              VALUE = 'USD'.
            elseif sy-langu EQ 'D'.
              VALUE = 'EUR'.
            ENDIF.
          endif.
    endmethod.
    Here even is a link to this method that I created: Field Currency of Context Node BTADMINH - How to set default
    The method works great it sets the default of the currency to say USD.  When I click the create button to create an opportunity the field currency is set to USD, this is great because it makes my job easier that I dont have to click the input help button and select a currency, it is already there.
    But once I click the "Save" button for an opportunity I get a small error in the error notification box that tells me I need to select a currency!  But why is this happening a currency already exists?  So If I click the input help (the little button) and reselect the currency value USD then save my opportunity this error goes away.
    The question is why does this happen?  I need it so that the default currency value is recognized by the SAP CRM system.  Why do I have to go back in and re-select the currency if it is already set?  Is there some sort of consistency check or something I need to do to eliminate this problem? 
    Here is a screen shot after creating an opportunity with the default Currency set to USD (this means I did not select USD in the dialog input help it was defaulted by the getter method:
    http://img832.imageshack.us/img832/3011/enteracurrency.png
    Only if I go back into edit mode and actually click the little square to bring up the dialog of values and select USD does this error go away.  Why does this happen ?

    I called SET_CURRENCY right after setting my value and the error is now gone. 
      SET_CURRENCY( EXPORTING ATTRIBUTE_PATH = ATTRIBUTE_PATH
                    iterator = iterator
                    value = value ).
    Got the tip from Pieter who has a good blog on SAP CRM: http://sapcrmweblog.blogspot.com/

  • System is not showing in dropdown list for input help

    hi,
    I am using one data service in iview and i have dragged an input form.I want to add input help in it.
    Now my problem is that: When i am trying to select system for input help it is not showing any system in dropdown list.
    Can anybody help me to solve this.
    Thanks

    Hi ,
    if the System is not Mapped to VC User it will not appear in the Dropdown list.
    So do the Usermapping for that system useing System alias.
    Do you know how to do Usermapping?
    If not get back to me.
    Regards,
    Govindu

  • UI: Popup content (input helps, ...) not shown

    We're running the CRM 2007 web UI. We've got problems with the content of popups. The behaviour is different on several hosts calling the UI internally (intranet) and using the same browser (IE6).
    Here's a description on how we're able to reproduce the problem:
    1. Open CRM UI url
    2. Open any search view that contains a field with input help (e.g. business partner ID)
    3. Call the input help of this field
    --- This is what we already found out in debugging mode:
    4. A server cookie is stored in table SSCOOKIE for the given session ID
    5. In BSP application BSP_WD_BASE, page "popup_buffered_frame.htm", the server cookie is selected. For any reason, on some hosts the session ID that is given and used for the selection of the server-side cookie is not the same as the one used for storing the cookie. Thus, the cookie cannot be read and the popup remains empty.
    Until yet we've found no differences in the configuration of the hosts / browser.
    I searched for SAP notes dealing with such an issue, however, didn't find any hits. We tested with IE6.
    Thanks for any hints & kind regards
    Wolfgang

    I found the solution by calling the URL using "?sap-syscmd=nocookie"

  • Calender and input help Icons is not visible in portal

    Dear Experts,
    There is a webdynpro application in CRM back end system. When the application is launched in CRM UI, It display the screen elements clearly. But when the application is called from portal environment, the calender icon and input help icon (icon in the ui element) is not visible.but it is working properly if clicked on the correct place.
    In Development and Quality environment its working properly.I have searched OSS notes, but found none.
    Your help is highly appreciated. Awaiting for the replies

    hi Raman,
    Even i m having the same problem. Its working in dev and Quality environment but not in production.
    Can u please share thhe OSS notes found.
    Thanks

  • Search Help Problem - Passing parameter between to search helps.

    I created following 2 table for entering data in PO screen using ME21N using Custom Data Tab.
    ZSTATE_TAB - State table  (has elementary search help ZSTATE_SH - Value of SCODE is exported)
    SCode(Key)     Description
    S001           New York
    S002          Virginia
    S003          West Virginia
    ZCITY_TAB - City Table  (has elementary search help     ZCITY_SH - Value of SCODE is imported)
    SCode(Key)     CCode (Key)     Description          Level
    S001          C001          New York City          L001
    S001          C002          Rochester          L002
    S001          C003          Buffalo               L003     
    S002          C004          Richmond          L029     
    S002          C005          Fairfax               L030
    I have created an custom input field LEVEL in t-code ME21N in Customer Data Tab.
    I want to create search help for LEVEL using import parameter STATE & CITY .
    On selection screen of search help two selection parameters STATE and CITY are displayed. 
    Step 1:User press F4 for getting list of state and selects any state using search help ZSTATE_SH (Value of SCODE is exported)
    Step 2:User press F4 to get the list of City using search help ZCITY_SH, based on state selected in Step 1.  (Value of SCODE is imported)
    In Step 2, I want to see only the cities selected in Step 1. But instead all Cities are displayed in hit list.
    I also created a table maintenance program SM30 for ZCITY_TAB, the search help ZCITY_SH is correctly displaying the data in hit list according to the State selected in ZSTATE_SH.
    But it is not displaying the correct list for cites in ME21N.
    Kindly help me in fixing this problem.
    Thanks in advance.

    here is the answer from [sap library - Value Transport for Input Helps - Parametrizing the Import Parameters of the Search Help|http://help.sap.com/saphelp_nw2004s/helpdata/en/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm] :
    If the search help is attached to the table field ( Attaching to Table Fields) or to the check table of the field ( Attaching to Tables), a value transport can take place for all the screen fields that are linked with a parameter of the search help.

  • Selection-screen: Input help for VTWEG

    Hello!
    Can anybody help me with the following problem:
    I have two select-options (VKORG and VTWEG) on my selection screen. Now there should be the possibility to restrict the values shown as input help for VTWEG after having selected a value for VKORG.
    I've already tried to do this by using a matchcode object but for VKORG and VTWEG I was not able to find suitable search helps.
    In my opinion this should be possible without using the "AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...". If not, it would be interesting to getting to know your approaches to this task.
    Thank you in advance!

    you can refer to the following code
    and you can write the code in the same way as per your requirement
    *& Report  ZRKTEST5                                                    *
    REPORT  ZRKTEST5                                .
    DATA: PROGNAME TYPE SY-REPID,
          DYNNUM   TYPE SY-DYNNR,
          DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES.
    DATA: BEGIN OF T_T001L OCCURS 0,
            WERKS TYPE WERKS_D,
            LGORT TYPE LGORT_D,
          END OF T_T001L.
    DATA: V_WERKS TYPE WERKS_D,
          V_LGORT TYPE LGORT_D.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      PARAMETERS: P_PLANT LIKE MSEG-WERKS,
                  P_STOLOC LIKE MSEG-LGORT.
    SELECTION-SCREEN END OF BLOCK B1.
    INITIALIZATION.
      PROGNAME = SY-REPID.
      DYNNUM = SY-DYNNR.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STOLOC.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES. REFRESH DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'P_PLANT'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME             = PROGNAME
                DYNUMB             = DYNNUM
                TRANSLATE_TO_UPPER = 'X'
           TABLES
                DYNPFIELDS         = DYNPRO_VALUES.
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      SELECT WERKS LGORT INTO TABLE T_T001L FROM T001L WHERE WERKS = FIELD_Value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD    = 'P_STOLOC'
                DYNPPROG    = PROGNAME
                DYNPNR      = DYNNUM
                DYNPROFIELD = 'P_STOLOC'
                VALUE_ORG   = 'S'
           TABLES
                VALUE_TAB   = T_T001L.
    START-OF-SELECTION.
      WRITE:/ 'TEST F4 PROGRAM'.
    END-OF-SELECTION.
    <b></b>
    reward points if helpfull
    Regards
    Vikure

  • BEx Input Help Values Restricted

    Dear Gurus,
        In our project, we navigate the attribute "0SALESORG" of "0PLANT" and use it on the report. In Sales Transactions, there is another 0SALESORG in our multiprovider. The problem occurs when I set 0SALESORG and 0PLANT as BEx variable input. When I select one sales org, the input help values of plant are restricted corresponding to the sales org. Below are the steps.
       1) If I input Sales Org = 7081, the possible values of plants are restrcted to "NU01" which is under sales org 7081 only.
        2) If I do not input any Sales Org, all the possible values of plants are displayed (such as LK11, LJ11,etc).
          If I input only Plant = LJ11, LK11, there are transactions with Sales Org 7081 and Plant = LJ11, LK11 in the infocube as below picture.
    What I want is I want to input Sales Org 7081 and then further input plant LJ11, LK11. (However, when I input Sales Org 7081, only the plant NU01 is available on the Search Help screen.)

    In our business scenario, 1 sales org can pick and sell materials from plants of other sales organization. As in the last screen, sales org 7081 can sell material from plants LJ11 (under sales org 6451) and plant LK11 (under sales org 6461).
    However, with the restriction, I can't input the sales org 7081 and then input plant LJ11 or LK11. It just shows plant NU01 (under sales org 7081)
    By the way, the variables I currently used are on 0SALESORG (not Attibute) and 0PLANT already

  • Reguarding input help .

    Hi All,
    In my webdynpro ABAP screen iam have one input field , i attached a search help for that input field, and it is working fine , but the problem was when  i enter any values into that input field manually with out taking the input help it is taking that values,
    Should i validate thatone in a bapi or is there any thing in webdynpro to validate the input in screen level.
    Regards,
    Muneesh Gitta.
    Edited by: Muneesh Gitta on Mar 28, 2008 2:26 PM
    Edited by: Muneesh Gitta on Mar 28, 2008 2:34 PM

    Hello Muneesh,
    the method WDDOBEFOREACTION of your view which contains the input field is the appropriate place for your coding for input validation.
    Regards,
    Rainer

  • Data no getting populated from input help to target field

    Hi ,
    I have made a input help for a field.
    and have used the following code to populte the data into the input help.I am having the data displayed but the data doesnot get populated on selection.
    CASE cs_dropdownlb_data-fieldname.
          WHEN 'ZZSALSPOS'.
            assign cs_dropdownlb_data to <extended_data>.
           lv_display = is_screen_structure-zzdisplay.
           clear ls_fieldcat.
           ls_fieldcat-fieldname = 'ZZSALSPOS'.
           ls_fieldcat-headertitle = 'Broker Id'.
           append ls_fieldcat to et_field_catalog.
           ls_fieldcat-fieldname = 'ZZBROKER'.
           ls_fieldcat-headertitle = 'Broker House Description'.
           append ls_fieldcat to et_field_catalog.
            CALL FUNCTION 'Z_SEARCH_HELP_SALES_ID'
             EXPORTING
               IV_DISPLAYALL        = lv_display
               IV_DIS_CHANNEL        = '11'
               IV_DIVISION           = '00'
             TABLES
               T_COST_CAT_F4        = lt_posid
            fldcat_add 'ZZSALSPOS'.
            fldcat_add 'ZZBROKER'.
            fldcat_add 'ZZREGION'.
            fldcat_add 'ZZDIVISION'.
            fldcat_add 'ZZSUBTEAM'.
            fldcat_add 'ZZTEAM'.
            SORT lt_posid BY zzsalspos zzbroker zzregion zzdivision zzsubteam zzteam.
            CREATE DATA <extended_data>-data TYPE zcrmt_mkt_broker_tab.
            ASSIGN <extended_data>-data->* TO <table>.
            <table> = lt_posid.
    I would sincerely appreciate and rewad if any solution could be suggested ....Thanking in advance...
    Narsingh

    The problem has been resolved

  • Static input help for DATS type

    Hello,
    I'd like to link static input help for screen field of DATS type. If I click on help linked to this screen field I get CONVT_NO_NUMBER error: 'Unable to interpret "=2" as a number.'
    My steps:
    - In Screen Painter I selected desired screen field and selected DATS type and "1 Show at selection" in its details.
    - I defined global variable with same name as desired screen field
    What's the problem?
    Best regards,
    Josef Motl

    Hi,
    do this way.....
    first declare the variable in program as
    1. data: date type sy-datum.
    2. now go to your screen,(click on F6) use get from Program
    now choose date form it , and say ok, now save it and activate it.
    delete the old one..
    now you will be able to get all the things which you want.
    automatical validation also possible, and F4 also possible.
    Regards
    vijay

  • Input Help for TIME type field

    I saw below discussion regarding a dropdown for a "TIME" type field.
    Re: Time Search Help
    It's a resuable component (that Thomas Jung created) and find it very slick.
    I just couldn't make it to work. I'm getting a dump when I pressed the dropdown on the "TIME" field.
    I was wondering, has anyone used this in conjunction with select-options (WDR_SELECT_OPTIONS) ?
    I'm getting a system-dump, "Component usage VALUE_HELP does not exist". I double checked the name that I used on the "USED COMPONENT" tab and it is VALUE_HELP.
    During method ADD_SELECTION_FIELD (for IF_WD_SELECT_OPTIONS) I'm using two parameters I_VALUE_HELP_TYPE = 'APPLDEV' and I_VALUE_HELP_ID = 'VALUE_HELP'.
    Maybe I'm not using the right parameters ?
    Anyway, I would appreciate if anyone could give me directions to correct the problem.Or maybe there is another and better way of having an input help for a "TIME" type field on select-option.
    Thanks.
    Vic

    That is because the TIME is a freely programmed value help and freely programmed value helps are not supported by the Select-Options component.  That limited is listed in the online help:
    Type of input help specified as type IF_WD_VALUE_HELP_HANDLER.
    Note that only ABAP Dictionary-based input help and OVS input help are supported; freely programmable input help is not supported.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/bf07361248003de10000000a11466f/frameset.htm
    The reason for this is that the freely programmed value help is accessed via a component usage.  The Select-Options however are a separate component. They have no declaration to your components, component usages.  Therefore they produce the error that the component usage doesn't exist - which is correct.  It doesn't exist in the Select-Options Component.

  • Input Help Frame too Narrow in WAD

    Hi everyone,
    We have a problem with some of our Web Applications. When we want to select values by using the input help in the variable screen, we can't see the values we have selected at the right side of the selector screen because the frame is very narrow.
    Is there any place where it is configured? or we'll have to wait for foward support packages.
    Thanks in advance.
    Edited by: Carlos Iglesias Fernández on Jul 22, 2008 6:59 PM

    Hi again.
    the problem only appear when the variable is a Selection-Option variable.
    Thank you.

Maybe you are looking for

  • 99 or 100% when it says Premiere Pro has stopped working and needs to close. What's going on?

    I am using the premiere pro trial at the moment and have been trying to render a video for a solid week now. My computer is far more powerful then the recommended specs and yet it still takes 2 hours to attempt to export a 3 minute video (that isn't

  • WAD opening error

    Hi guys, "Run-time error 91: Object variable or with block variable not set" I am getting the above error and the WAD isnt opening, The query underneath has a variable processing type authorization, but no authorization for s_rs_bcs, thanks

  • How to create an after effects plugin using c++?

    I've gotten to the point of downloading the after effects sdk. Although I am still lost and other than here, there are very little places where they give you proper information, if any at all, on how to develop after effects plugins using c++.

  • Two file senders to one bapi

    hi all. sorry i just want to conformthat how many SA,RA,ID,RD do i need in my 2 file to bapi scenario. here there r two senders they r sending the files to one bapi. those files have same fields. so i created one DT,MT,MI,MM,IM. and i need to conform

  • Idoc going into eror

    Hi, I am creating vendors through XI for normal company code 1000 in ides system. I have set a polling interval of 35 seconds, and placed the XML file in the XI path. Now when the file is picked up, the idoc is posted, but goes into error saying that