Restriction in search help(F4)  accordin to the input

hi
i have populated  profit centre and company using joins in F4(usingF4IF_INT_TABLE_VALUE_REQUEST) now
my requirement  is i  wanna  display the profit centre based upon the company code...
i.e
in f4 it should display the proit centre according to the company code entered in selection screen
how can i do it????
My select screen contain
Company code
fiscal year
date
profit centre
code
at selection-screen on value-request for so_prctr-low.
  select cepct~prctr cepct~ltext cepc~bukrs
                    from cepct join cepc
                    on cepct~prctr = cepc~prctr
                    into corresponding fields of table it_cepct
                    where cepct~spras = 'EN' .
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield               = 'PRCTR'
     value                  = '*'
     value_org              = 'S'
    tables
      value_tab              = it_cepct
     return_tab             = ret_tab
   exceptions
     parameter_error        = 1
     no_values_found        = 2
     others                 = 3
  if sy-subrc <> 0.
  endif.
so when i enter the company code accordingly  the profit centre should be populated...

hi
at selection-screen on value-request for so_prctr-low.
  select cepctprctr cepctltext cepc~bukrs
                    from cepct join cepc
                    on cepctprctr = cepcprctr
                    into corresponding fields of table it_cepct
                    where cepct~spras = 'EN'
                    and cepc~bukrs eq selectio-screen bukrs like s_bukrs..
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield               = 'PRCTR'
     value                  = '*'
     value_org              = 'S'
    tables
      value_tab              = it_cepct
     return_tab             = ret_tab
   exceptions
     parameter_error        = 1
     no_values_found        = 2
     others                 = 3
  if sy-subrc  0.
  endif.

Similar Messages

  • Restriction in Search help of Product Categories

    Hi,
    I am working on SRM_SERVER 5.5 and I want to restrict the Product categories depending on the Organizational attribute of the user. Its search help is COM_CATEGORY_ID in the system and i didn't find any User-Exit or Enhancement to control these values.
    Please let me know if any one of you have the information
    Thanks in Advance
    Warm Regards,
    Vijay

    Hi
    position or organisation  wise you can make inactive the unwanted product category.
    extend attribute > product category> select unwanted  pg --> select inactive. the user can not search the product category.
    br
    muthu

  • Restrict dictionnary Search help displayed values.

    Hi,
    my problem is that I have to display a search help. The search help already exists in the dictionnary and is defined using a Dictionnary Table.
    I need to display the same serach help but I have to filter the results using a range of values for one of the fields and I would like to know how to proceed.
    I know that user-exit exists in some search help, it's not the case here.
    The kind of solutions I'm looking for is :
    -  directly restrict the existing search hellp values
    -  found a way to display a search help from abap using an internal table ( cause it's easy in this case to do fill a internal table doing the sql request myself)
    - if the solutions above can't apply, doing my own search help in the dictionnary but in this case, I don't know to make this search help for values restriction.
    I specify that the screen use the screen painter, it may be important ?
    Thanks for your help
    best Regards,
    Morgan

    Hi,
    Search Hels exits is only for exceptions, so in our case, we won't use the search help exits, it is better create/change the Custome one and attach the same to the fiels, there you can give the Default value for the fileds, so there you can restrict the values
    or else, we have an option like, APPEND SEARCH HELPS, so by using this, we can restrict some field values, this Append Search helps, can be append to Standard Search helps also, so do Append the Standard Search help and add your field and give the Default values to restrict the user
    hope you get the answer
    Regards
    Sudheer

  • Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Hello,
    this topic is still a problem for me, does anybody have an idea.
    Just to show what's my problem:
    Collective Search help KRED does include a SAP append-search help ASH_KRED which holds the elementary search helps KREDC, KREDE, KREDM, KREDW.
    The search helps KREDE, KREDM, KREDW should not be displayed, so I added another Serach-Help-Append ZKRED_CUST at the end of CSH KRED which holds these 3 SH's with the hidden flag.
    That works, the SH's are not shown anymore.
    I also added some other of the Original SAP SH's (e.g. KREDA) with the hidden flag and added changed copies of these (e.g ZKREDA) there to be shown instead.
    All this can be done modification free by appends.
    The folders of the elementary search helps are shown in the order as they are found included in the KRED SH and the append to this SH.
    This means that the not hidden Sh KREDC from ASH_KRED is shown before all the "custimized" ZKREDx -SH's. But we need this SH not very often, so that I want it to displayed al the right-most position of the folders of SH's or at the most down postition of the drop-down-selection of SH's.
    But I have not found any way to do this modification free.
    The only way to archive this is to modify ASH_KRED by setting the Hidden-Flag for KREDC and add this SH at the end of append-SH ZKRED_CUST again.
    But I want avoid this modification.
    So, is there any way to do this without modifing any of the original SAP SH's ?
    Helmut Fischer

  • Search Help Not show/display the data

    Dear All,
                  I have created a search help whith mannual itab of 4 entries. Itab is filled correctly, but when i see in the screen field it show the search help and display no record with the message 4 entries found; but I can't see the data.
    pls. guide me what can be the problem
    Thanks and Regards,
    Sohail

    Hi,
    If you want to Show the Search help for Particular Field in Screen painter , You must give the Code In PROCESS ON VALUE REQUEST(POV).
    ie.
    process on value-request.
      field P9611-REQ_STATUS  module GET_REQ_STATUS.
    and in Program Give the internal table Fieldname in Capital Letter while Passing in Fuctional Module.
    like.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'REQ_STATUS2'    "internal table field
          dynpprog        = sy-dynnr
          dynpnr          = sy-dynnr
          dynprofield     = 'P9611-REQ_STATUS' "screen field name
          value_org       = 'S'
        TABLES
          value_tab       = req_status_tab "internal table
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc  NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    With Regards
    Kesavaperumal

  • Search help unavailable in Read-only input field since EHP4

    Dear Experts!
    I have a problem with a Portal page since the deploy of the EHP4. The page has standard input fields with Search Helps. I needed to have the input field non-modifiable so the user would have to use the search help to get the proper information.
    Prior to the EHP4 installation, I set the input field to Read Only in the WebDynpro explorer, this disabled the editing while permitting the user to use the Search Help.
    Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    Do you know if there is a way to allow the search help on a read only field?
    Thanks so much for your answer,
    Brian Foster.

    >Since the installation, the search help is no longer visible or accessible on a Read Only standard inputfield.
    This was a conscious design decision on SAP's part that disabled or read-only fields should no longer fire value help.  I am aware that this situation was used in the past as you describe.  It is even still used in SE80 for the Web Dynpro ABAP wizards. However usability studies showed that this often confused end users and therefore it is no longer allowed.  The field must be input enabled to fire the attached serach help.

  • 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

  • Search help(f4)  for function module input

    can we create a serch help for  function module input giving process

    Hello basichodary,
    You can encapsulate the function module within a program.  Include the search help in a parameter statement in the calling program and pass the parameter to the function module.  For example, suppose you want to have field i_carrid to have a search help.  Use the following code. 
    report  call_function_module.
    parameters p_carrid type s_carr_id matchcode object demo_f4_de.
    call function 'FUNCTION_MODULE'
       exporting
          i_carrid    = p_carrid
    Kind Regards,
    Rae Ellen Woytowiez

  • Choose an entry in Search help and not in its input field

    Hi to all,
    In my application I have a field with a search help.
    I want that this field only can be modified using a search help and this field can't be modified directly writing in this field.
    Is similar to transaction se63 - Translation - Abap objects - Short texts - OTR - Source language
    I have created an example with the field SCARR-CARRID but this field can be modified with search help and directly, or this field can't be modified.
    In my application I have done the following:
    -> Screen painter (layout):
    Name: SCARR-CARRID
    Input Field: not marked
    Output Field: marked
    Possible entries: marked
    Possible entries keys: 2
    -> Flow logic:
    PROCESS BEFORE OUTPUT.
    MODULE IMPORT_DATA_0001.
    PROCESS AFTER INPUT.
    MODULE EXPORT_DATA_0001.
    PROCESS ON VALUE-REQUEST.
    FIELD SCARR-CARRID MODULE listbox.
    PROCESS ON HELP-REQUEST.
    MODULE listbox INPUT.
    TYPES:
    BEGIN OF VRM_VALUE,
    KEY(40) TYPE C,
    TEXT(80) TYPE C,
    END OF VRM_VALUE,
    VRM_VALUES TYPE VRM_VALUE OCCURS 0,
    VRM_ID TYPE VRM_VALUE-TEXT,
    VRM_IDS TYPE VRM_ID OCCURS 0.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    CHECK list[] IS INITIAL.
    name = 'SCARR-CARRID'.
    SELECT carrid CARRNAME FROM SCARR
    INTO (value-key,value-text).
    APPEND value TO list.
    ENDSELECT.
    SORT list BY text.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = name
    values = list.
    ENDMODULE. " LISTBOX INPUT
    How can i solve this problem?
    Thanks a lot.

    Hi Jey:
    I have tried this:
    MODULE listbox INPUT.
      TYPES: BEGIN OF vrm_value,
               key(40)  TYPE c,
               text(80) TYPE c,
             END OF vrm_value,
      vrm_values TYPE TABLE OF vrm_value,
      vrm_id     TYPE vrm_value-text,
      vrm_ids    TYPE TABLE OF vrm_id.
      DATA: name       TYPE vrm_id,
            list       TYPE TABLE OF vrm_value WITH HEADER LINE,
            poplist    TYPE TABLE OF spopli WITH HEADER LINE,
            popanswer  TYPE c,
            popindex   TYPE i,
            value      TYPE vrm_value,
            lt_dyntab  TYPE TABLE OF dynpread  WITH HEADER LINE,
            dynpprog   TYPE syrepid VALUE 'SAPMZxxxx',           "Enter your dynpro here
            dynpnr     TYPE sydynnr VALUE '0100',          "Enter your screen number here
            dynpfield  TYPE help_info-dynprofld VALUE 'SCARR-CARRID'.
      IF list[] IS INITIAL.
        name = 'SCARR-CARRID'.
        SELECT carrid carrname FROM scarr
        INTO (value-key,value-text).
          APPEND value TO list.
          poplist-varoption = value-text.
          APPEND poplist.
        ENDSELECT.
      ENDIF.
    Use some method to display a list for selection
    Here is a simplified way of doing it but there are
    much more sofisiticated methods.
      CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
           EXPORTING
                textline1          = 'Select an entry'
                titel              = 'Selection'
           IMPORTING
                answer             = popanswer
           TABLES
                t_spopli           = poplist
           EXCEPTIONS
                not_enough_answers = 1
                too_much_answers   = 2
                too_much_marks     = 3
                OTHERS             = 4.
      CHECK sy-subrc = 0.
      CHECK popanswer NE 'A'.
      popindex = popanswer.
      READ TABLE list INDEX popindex.
      IF sy-subrc = 0.
        lt_dyntab-fieldvalue = list-key.
      ENDIF.
    Update the screen field with the selected value
      lt_dyntab-fieldname  = dynpfield.
      APPEND lt_dyntab.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                dyname               = dynpprog
                dynumb               = dynpnr
           TABLES
                dynpfields           = lt_dyntab
           EXCEPTIONS
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                undefind_error       = 7
                OTHERS               = 8.
    ENDMODULE. " LISTBOX INPUT
    I think that there is a error that I have not seen because I put a breakpoint at the beginning of your code and the execution doesn`t stop.
    Now I execute the dynpro and appears my field 'SCARR-CARRID' and I can't choose a value and I can write in input field.
    Can you help me?
    Thanks a lot.

  • How to implement the input help at web for the input ready query?

    Dear all,
    As you konw when we create the input ready query for Planning, we can insert the new record for plan with Analyzer tool. We also can use input help(double clike the space) for input the master data.
    I want to konw when I use Web Appliaction Designer to run the query at the web, How can I use the input help for planning data.
    My customer request me must implement the input help function at web.
    Thanks a lot
    best regards,
    Leon
    Message was edited by: Leon Wang
    Message was edited by: Leon Wang

    Hello,
    It seems Input Help is not possible with WEB.
    Check out the link below -
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/f234619e3c4c5de10000000a155369/frameset.htm<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/f234619e3c4c5de10000000a155369/frameset.htm">Input Help - with Web application designer</a>
    <b>Bex Analyzer -</b> You access input help for a cell by double clicking on it or choosing the F4 button.
    <b>Web Appln Designer</b> - Input help is not available
    Hope it Helps
    Chetan
    @CP..

  • Help on settings for the input and output jacks on the macbook

    Is there any way of playing music out through the input jack on the macbook so you could have two different music play out the input jack and output jack at the same time or just out of either one?

    Is there any way of playing music out through the input jack on the MacBook so you could have two different music play out the input jack and output jack at the same time or just out of either one?
    The input lack is only input. If you have an AirPort Express, you can have iTunes send its audio out there and have another application use the MacBook audio output. You can also get an extra audio output via USB with the iMic
    <http://www.griffintechnology.com/products/imic>
    You can then send audio from one application to the iMic, and another to the MacBook output by hijacking one application with Audio Hijack Pro and using the auxiliary Device Output effect.
    <http://www.rogueamoeba.com/audiohijackpro/>

  • I'm using Vista SP1 and tried to install iTunes 10.5 many times, but failed. I was searching help on web for the whole day but those are useless. I always encounter something related to 'Windows Installer', which I've update.Any help would be appreciated.

    Yea, as topic. Help plzzzzzzzzzzz

    I should have posted this earlier, but anyway. I restored my laptop to factory version after backing up any useful data, and the first thing I the laptop was restored was connect to the internet, download and install the latest version of iTunes. And Bingo! It worked.
    Apple helps you find Original Sin with the Windows.

  • How to do with restriction of search help

    my requirement is that F4 one field, you can get popup dialog and can input some value of field1 field2. i want to get data of condition is field1 OR field2, but the relationship is AND. how to do it?

    hi,
    You can implement self programmed value help using value request at selection screen.
    Sample code for your reference
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.
      CLEAR: DYFIELDS[], DYFIELDS.
    *--- select currency
      CALL FUNCTION 'HELP_VALUES_GET'
           EXPORTING
                fieldname        =  'WAERS'
                tabname          =  'TCURT'
           IMPORTING
                SELECT_VALUE     =   P_WAERS.
    *--- get long text for the selected currency
      SELECT SINGLE LTEXT FROM TCURT
        INTO DYFIELDS-FIELDVALUE
        WHERE SPRAS = SY-LANGU
        AND   WAERS = P_WAERS.
      IF SY-SUBRC <> 0.
        CLEAR DYFIELDS-FIELDVALUE.
      ENDIF.
    *--- update another field
      DYFIELDS-FIELDNAME = 'P_LTEXT'.
      APPEND DYFIELDS.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                DYNAME               = SY-CPROG
                DYNUMB               = SY-DYNNR
           tables
                dynpfields           = DYFIELDS .
    Hope this will solve your issue.
    Thanks &Regards,
    Kimaya

  • How to create an elementary and collective search help in webdynpro

    Hi all,
    my requirement is i have to create an collective search help. and that should be same as other tcode search help functionality.
    and now the ztcode is in r3 system and my webynpro development is going on bw system how to copy that tcode from r3 to bw system. and then for my input field is cost center and for this input field i should create the search help functionalty.kindly help me how to achieve this functionality i am new to this webdynpro so kindly send me the detail steps.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    There's no difference to using a collective search help or a regular search help.
    in the attribute of the context that you want the search helps to appear for - specify that the input help is of type dictionary search help, then specify that the input help is your collective search help.
    Search helps in WDA, if search help is available at dictionary level, no need to create any search help, you get automatically.
    If you want to create search help for any input field, another option is using OVS. we have WDR_OVS component for search helps, you need to reuse this component in your custom component, just change some coding according to your requirements you get search help.
    Go through these documentation and helps...
    http://help.sap.com/saphelp_nw73/helpdata/en/cf/21ee45446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
    OVS search help..
    http://wiki.sdn.sap.com/wiki/display/Snippets/OVSSearchHelpinWebDynproAbap
    freely programmed inputhelp
    http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
    http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP
    Thanks,
    Kris.

  • Problem creating Search help

    Hi,
    I am trying to create a search help for a Z table. I have just given the search help parameters and flagged the input and output parameters for these fields. However when i try to activate the searchhel it throws me an error sayin "Elementary search help without hit list is meaningless". Is this because this is a Z table with Z fields?

    You can attach to data-element and to field in table/view definition (tab fields, select field and click on "search help" to change default attachment) - only useful if you want to get another search help that the default one attached to data-element. (look at [Help from the ABAP Dictionary|http://help.sap.com/saphelp_470/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/frameset.htm])
    If you want that other fields be provided to the search help, define those as input/output parameters of the search help and don't forget to check ddic ref box in the definition of the dynpros.
    Regards,
    Raymond

Maybe you are looking for

  • Logic Express 9 - missing loops

    I've recently installed LE 9.1.8 on a new Mac mini (2.3 GHz core i7, OS X 10.9.3) and can't get Apple loops to work.  The loops are there in Library/Audio/Apple Loops just like they should be, and Garage Band loops appear in GB.  But in LE, nothing. 

  • Using variable in from close of select statement for LOV

    Hi all, I had a select list based on a query with a variable in it for the database schema. Something like this: "select name, id from &SCHEMA..countries order by name". This warked in version 1.4.4..., I don't remember the rest. Now we upgraded to v

  • Strange html page with sign in

    dl'ed oneNote and did the setup Microsoft account option. Email arrived and when I click on the link ,which I've tried many,many times over an extended period of time, I just get a web page that displays the page below. No graphic or really any indic

  • Tab Delimited Text File to be Emailed (External Email ID) from SAP

    Hi, I have a requirement to email a tab delimited text file as an attachment to external email id from SAP. The text file is of line with type string and the length of each line is about 1024 char size. Can you please suggest me a suitable solution t

  • Inssue regrading business place .

    Dear All, There is a problem when we are trying to post the goods issue. System is showing a message saying that the business place is not found for plant . Please provide the solution for the same. Regards, Gautam.