How to implement the search help exit to MM01 for Material by product hiera

Hi,
How to implement the search help exit to MM01 T-code for Material by product hierarchy,
but system default it gives the data from MVKE table, my client wants from MARA table,
i created the one Function Module, write this code in that FM.
IF CALLCONTROL-STEP EQ 'DISP'.
REFRESH RECORD_TAB.
SELECT * FROM MARA INTO TABLE RECORD_TAB
WHERE PRDHA = 
ENDIF.
I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
thanks to all.

Hi there..
check my web blog on search help exit...
[Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0]

Similar Messages

  • How to add the custom help exit to search help in SE11

    Hi All,
    I am trying to add the ZF4IF_SHLP_EXIT_EXAMPLE to search help exit in SE11 for search help LART . But system is asking for the access key.
    Is there any way we can achieve this with out using access key?
    Please suggest me.
    Regards
    Subhaskar

    Hi,
         To add a Search help exit goto SE11 -> in Search help option enter 'LART' -> click on display.
    once you have entered in you will have to click on change button. This will give on information message first, then it will ask if you have to maintain in the original language itself(only if you have logged in with any language other than DE). You can select your option in that then you will be able to view the same in EDIT mode. now you can go ahead and add your search help exit.
    Hope it helps.
    Thanks & Regards,
    Praveenkumar T.

  • Adding a new field to the search help exit

    Hi friends,
    adding a new field to the search help exit. How does it work ?
    Thanks in advace
    Ilhan

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • How to disappear the search help in alv

    hi experts:
       some field's search help in alv appear automaticly,such as bukrs. I want to disappear the search help in ALV.how it come true?
    the alv is CL_GUI_ALV_GRID.
    Edited by: huiqing wei on Apr 20, 2009 10:35 AM

    In the Layout give parameter NO_F4 = 'X'.
    DATA:        wa_layo type lvc_s_layo.
    wa_layo-no_f4 = 'X'.
      call method grid_alv->set_table_for_first_display
        exporting
    *    I_BUFFER_ACTIVE               =
    *    I_BYPASSING_BUFFER            =
    *    I_CONSISTENCY_CHECK           =
    *        i_structure_name              = 'T_MARD'
    *    IS_VARIANT                    =
    *    I_SAVE                        =
          i_default                     = 'X'
        is_layout                     = wa_layo   <<<<<<<<<<<<<<<<<<<<<
    *    IS_PRINT                      =
    *    IT_SPECIAL_GROUPS             =
    *    IT_TOOLBAR_EXCLUDING          =
    *    IT_HYPERLINK                  =
    *    IT_ALV_GRAPHICS               =
    *    IT_EXCEPT_QINFO               =
    *    IR_SALV_ADAPTER               =
        changing
          it_outtab                     = i_mard[]
      it_fieldcatalog               = i_fieldcat[]
    *    IT_SORT                       =
    *    IT_FILTER                     =
    exceptions
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      others                        = 4
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • How to restrict the search help given to a field for a specific program ??

    Hi,
    I have one search help which is attached to a field.
    This seach help is using a Z table and showing values perfectly for one program where I attached earlier.
    The same fields and Z table I am using is some other related program where user wants to see the restricted values only.
    I am not getting, how a search help can be restricted.
    I try to take a example of it.
    If in first program the search help values are:
    Material           Level
    Orange              1
    Mango               2
    Grapes              3
    Now in the second program user wants to see only levels not the material. I Have given only two colums for understanding purposes not all .
    Please suggest what are the possible ways we can do it.
    Thanks right now.
    -=Maddu=-

    Hi,
    Use this event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cc.
      PERFORM company_code CHANGING p_cc.
    FORM company_code CHANGING p_cc.
      DATA: dynpfld_mapping LIKE dselc OCCURS 0 WITH HEADER LINE.
      REFRESH gt_bukrs.
      SELECT * FROM t001
      INTO CORRESPONDING FIELDS OF TABLE gt_bukrs.
      LOOP AT gt_bukrs.
    **ST AS ON 08.09.2006
        AUTHORITY-CHECK OBJECT 'ZREP_TMF'
              ID 'BUKRS' FIELD gt_bukrs-bukrs
              ID 'VKORG' FIELD gt_bukrs-bukrs
              ID 'VKBUR' DUMMY
              ID 'SPART' DUMMY
              ID 'VTWEG' DUMMY.
       AUTHORITY-CHECK OBJECT 'ZREM_ORG'
             ID 'VKORG' FIELD gt_bukrs-bukrs
             ID 'VKBUR' DUMMY
             ID 'SPART' DUMMY
             ID 'VTWEG' DUMMY.
    **ST AS ON 08.09.2006
        IF sy-subrc NE 0.
          DELETE gt_bukrs.
        ENDIF.
      ENDLOOP.
      dynpfld_mapping-fldname   = 'BUKRS'.
      dynpfld_mapping-dyfldname = 'BUKRS'.
      APPEND dynpfld_mapping.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = 'ZREM_AGENCY_REPORT'
          dynpnr          = '1000'
          dynprofield     = 'COMPANY'
          value_org       = 'S'
        TABLES
          value_tab       = gt_bukrs
          return_tab      = return_tab
          dynpfld_mapping = dynpfld_mapping.
    ENDFORM.                    " sale_org
    Reward points

  • How to Implement the Search page for Workflow Notifications?

    Hi All,
    I want to implement the new Search page for Workflow Notifications. Search page containing Company, Paygroup, Source, Initiator, Supplier Name, From date & To date fields. These fields(Poplist & Calendar) are getting the values from different tables and these fields are not in WF_NOTIFICATIONS table only Initiator & dates are there. After selecting the values in all fields or one field based upon these values I want to display the all Workflow Notifications ( Those are satisfy the search criteria only not all ) in Advance Worklist Table RN in the Notifications page. Is it possible to create the Search page based upon the above scenario if Yes Let me know how to implement this search page for Workflow. Page was designed but how to get the sortlisted Notifications and how to pass these values to next page?
    Thanks in advance.
    Edited by: user635152 on Nov 13, 2008 10:53 AM

    Hi Guru,
    I crete the Search page having 5 poplists and select the values from dropdown list and click GO button it serch the records and displays that records in ResultsTable in same page.
    My case, Search page is running fine if I select the values and click GO button page is refreshed without errors but I am unable to displays the records in ResultsTable.
    What I am missing?
    My Select Stmt:
    SELECT * FROM      
    (select wn.nid notification_id
    ,ou.name company
              ,I.PAY_GROUP_LOOKUP_CODE paygroup
              ,'AP' source
              ,pf.full_name initiator
              ,pv.vendor_name supplier_name
              ,I.GL_DATE FROM_TO_DATE
    from ap_invoices_all i
    , po_vendors pv
         , hr_operating_units ou
         , per_all_people_f pf     
         , FND_USER FU
    , (SELECT trim(substr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),
    1,instr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),' for'))) inv_no
    ,notification_id nid
    FROM WF_NOTIFICATIONS WN
    WHERE WN.MESSAGE_TYPE = 'APINV'
    AND WN.STATUS NOT IN ('CANCELED','CLOSED')) wn
    where i.vendor_id = pv.vendor_id
    and i.invoice_num = wn.inv_no
    and i.WFAPPROVAL_STATUS = 'REQUIRED'
    and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
    and i.org_id = OU.organization_id
    AND OU.name like nvl(:company_name,name)
    and i.pay_group_lookup_code = nvl(:pay_group,i.pay_group_lookup_code)
    and exists (select ad.invoice_id
    from ap_invoice_distributions_all ad
    where ad.invoice_id = i.invoice_id
    and ad.accounting_date between nvl(:from_date,ad.accounting_date)
                                       and nvl(:to_date,ad.accounting_date))
    and 'AP' = nvl(:source,'AP')
         and i.created_by = fu.user_id
         AND fu.EMPLOYEE_ID = pf.person_id
         AND pf.full_name like nvl(:initiator, pf.full_name)
    UNION ALL
              select po_num.nid notification_id
              ,ou.name company
              ,ps.PAY_GROUP_LOOKUP_CODE paygroup
              ,'PO' source
              ,pf.full_name initiator
              ,pv.vendor_name supplier_name
              ,P.CREATION_DATE FROM_TO_DATE
         from po_headers_all p
         ,po_vendors pv
              ,po_vendor_sites_all ps
              ,hr_operating_units ou
              ,per_all_people_f pf
         ,(select trim(substr(wn.subject,24,instr(wn.subject,' for')-24)) po_no, notification_id nid
              FROM WF_NOTIFICATIONS WN
         WHERE WN.MESSAGE_TYPE = 'POAPPRV'
         AND WN.STATUS NOT IN ('CANCELED','CLOSED')
         and wn.subject like 'Standard Purchase Order%') po_num
         where p.SEGMENT1 = po_num.po_no
         and p.vendor_id = pv.vendor_id
         and p.org_id in(select organization_id
         from hr_operating_units
         where name like nvl(:company_name,name))
         and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
         and p.AUTHORIZATION_STATUS = 'IN PROCESS'
         and p.CANCEL_FLAG = 'N'
         and 'PO' = nvl(:source,'PO')
         and p.agent_id = pf.person_id
         and pf.full_name like nvl(:initiator, pf.full_name)
         and pv.vendor_id = ps.vendor_id
         and ps.org_id = ou.organization_id
         and ou.name like nvl(:company_name,name)
    and ps.PAY_GROUP_LOOKUP_CODE = nvl(:pay_group,ps.PAY_GROUP_LOOKUP_CODE)
         and trunc(p.creation_date) between nvl(:from_date,trunc(p.creation_date)) and nvl(:to_date,trunc(p.creation_date))
    In CO PFR Code:
    if (pageContext.getParameter("Go") != null)
    OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
         String COMPANY = pageContext.getParameter("COMPANY");
    String PAYGROUP = pageContext.getParameter("PAYGROUP");
    String SOURCE = pageContext.getParameter("SOURCE");
    String INITIATOR = pageContext.getParameter("INITIATOR");
    String SUPPLIER_NAME = pageContext.getParameter("SUPPLIER_NAME");
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    Serializable[] parameters = { COMPANY, PAYGROUP, SOURCE, INITIATOR, SUPPLIER_NAME, executeQuery};
    Class[] paramTypes = { String.class, String.class, String.class, String.class, String.class, Boolean.class };
    am.invokeMethod("initSearch", parameters, paramTypes);
    OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("ResultsTable");
    table.queryData(pageContext, false);
    AM invoke Method():
    public void initSearch(String company,
    String paygroup,
    String source,
    String initiator,
    String supplier_name,
    Boolean executeQuery)
    WorklistFindVOImpl vo = getWorklistFindVO1();
    if (vo == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "WorklistFindVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    vo.initQuery(company, paygroup, source, initiator, supplier_name, executeQuery);
    VO Code:
    public void initQuery(String company,
    String paygroup,
    String source,
    String initiator,
    String supplier_name,
    Boolean executeQuery)
    StringBuffer whereClause = new StringBuffer(500);
    Vector parameters = new Vector(5);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null); // Always reset
    if ((company != null))
    String companyname = null;
    try
    companyname = new String(company);
    catch(Exception e) {}
    whereClause.append("COMPANY= :COMPANY");
    whereClause.append(++bindCount);
    parameters.addElement(company);
    clauseCount++;
    if ((paygroup != null) && (!("".equals(paygroup))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("PAYGROUP = :PAYGROUP");
    whereClause.append(++bindCount);
    parameters.addElement(paygroup);
    clauseCount++;
    if ((source != null) && (!("".equals(source))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("SOURCE = :SOURCE");
    whereClause.append(++bindCount);
    parameters.addElement(source);
    clauseCount++;
    if ((initiator != null) && (!("".equals(initiator))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("INITIATOR = :INITIATOR");
    whereClause.append(++bindCount);
    parameters.addElement(initiator);
    clauseCount++;
    if ((supplier_name != null) && (!("".equals(supplier_name))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("SUPPLIER_NAME = :SUPPLIER_NAME");
    whereClause.append(++bindCount);
    parameters.addElement(supplier_name);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    if ((executeQuery != null) && (executeQuery.booleanValue()))
    executeQuery();
    } // end initQuery()
    Please let me know what I did mistake in my code?
    I am unable to find it what I missing and there is no errors but no records displayed in Results Table.
    Please it's urgent.
    Thanks
    Nag.
    Edited by: user635152 on Nov 19, 2008 4:43 PM

  • 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..

  • How to customize the *Search Help ID* in selecion parameters of FBL5N?

    Hi All,
    I'd like to know if is possible to customize the Search Help ID in the selecion parameters of FBL5N
    Thanks for Your Help
    G.

    Yes, you can
    Please go to OB49
    select tab included search help
    here you can assign
    please read img activity documentation for further help.
    Rgds
    Murali. N

  • How to limit the search help in the selection screen?

    Hi All,
    I got a selection option in a selection screen,
    say SELECT-OPTIONS KSCHL FOR VAKE-KSCHL.
    I want to limit the output list of the search help of this field, e.g. 33 entries for a specific application and usage.
    What should I do ?
    Thz.

    Hi,
    U can check with these two
    <b>... NO-EXTENSION</b>
    Effect
    The user can only make an entry on one line. Calling the additional "Multiple Selection" screen is not supported and no pushbutton for this appears on the selection screen.
    Addition 12
    <b>... NO INTERVALS</b>
    Effect
    The selection option is displayed on the selection screen without a 'to' field. The pushbutton for calling the "Multiple Selection" screen appears immediately after the 'from' field.
    This addition thus allows you to generate a simplified display on the selection screen. This is particularly useful if you are not making any range selections for this selection option.
    Notes
    On the "Multiple Selection" screen, you can also enter ranges for selection options with "NO INTERVALS".
    By combining this addition with "NO-EXTENSION", you can restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'.
    By using the addition " NO INTERVALS" with SELECTION-SCREEN BEGIN OF BLOCK, you can activate the simplified display for all selection options in a block.
    The function module SELECT_OPTIONS_RESTRICT allows you to restrict the set of selection options available for a SELECT-OPTION (for example, only single values and patterns, i.e. 'EQ' and 'CP' are allowed). You can also forbid the leading sign 'E' (= 'Exclude from selection'). This means that you can considerably restrict the selections which can be entered on the selection screen.
    Just now tried it out to limit the search help u have to use NO-EXTENSION.
    <b>Try this simple code.
    Tables: mara.
    SELECT-OPTIONS: s_matnr FOR MARA-matnr NO-EXTENSION.</b>
    Hope this helps.
    Kindly reward points and close the thraed if ur problem got solved.
    U havent rewarded any points?
    Message was edited by: Judith Jessie Selvi

  • How to add the search help in Screen programming "F4" help

    i add the input field
    se51 --> layout and now want to add the search help with these field,
    please help me... in this way.

    Looks like u r a novice in Mp programming.
    Please look at some demo programs in SAP which can teach u the basics of Module Pool programming . Use Demo* in se38 and search first in sap and then in some other sites.
    The above thing can be done in Process on value request .
    Br, vijay.

  • How to locate the Search Help?

    Hi,
    According to the following code the search help is “cram”, but when I went to the "crhd" Dictionary using SE11 could not find any search help for field "arbpl" such as “cram”. This means there is another way of finding the search help. 
    SELECT-OPTIONS zw_werks FOR crhd-arbpl MATCHCODE OBJECT cram
    Thanks,
    Kishan

    Hi Surjit,
    The Code works perfectly. I copied this code from another program and confused from where the "cram" search help come from. It's not in the Dictionary of "CRHD" and field "ARBPL".
    Thanks,
    Kishan

  • How to change the search help in the standard table?

    Hello Experts,
    Due to service package installation the search help in standard table (VBAP)  field (KDMAT) was changed from Collective search help (VMCV)  to elementary search help (VMCVA).
    Now I need to change the elementary search help to Collective search help, without taking the Access Key.
    Please suggest me the appropriate solution

    hi
    In SE11, go to the change mode of the collective search help and add the elementary search help, in the INCLUDED SEARCH HELPS tab.for including elementary search help, you just have to enter the name of search help along with its parameter in collective search help
    system autimatically takes selection method and dialog from elementary search help
    regards
    Prashant

  • Search Help customization by user for Material Master--Jurgen

    I found following solution from another message thread, the following is perfect for our solution as long as I can customize for each user (Plant is different).
    Search help for Field MATNR is MAT1.
    - Go to SE11 set radio button to Search help Enter MAT1 next to it.
    - Go to tab "Included Search helps" and click MAT1_A.
    - in that go to Tab "Included search helps" and click "MAT0M". There are many helps, this is basically the tabs shown when you press F4 in the MATNR field.
    - In the definition Tab - Selection method - M_MAT1M is shown, This is the search help database view.
    So first check in which Tab you do want to show the material that is marked for deletion.
    Here i have taken - M_MAT1M, Material Number/Material Description.
    - Click the M_MAT1M and it goes to Database View.
    - Click Change.
    - In the "View flds" Tab, include LVORM in the "View Field" column
    - In the "Selection Conditions" Tab, Enter the following in the columns:
    - Table - MARA
    - Fieldname - LVORM
    - Operator - EQ
    - Comparative Value - ' '
    - and save it.

    We have several plants. However, one Plant materials are highly classified and they don't want any other plant users not even read their material description. So I thought by controlling their drop down (F4) list by Plant and assign custom F4 based on plant would restrict users in other plants.
    I already locked materials by Authorization object, so MM03 is locked..but I have no idea to how to block others reading their Material descriptions
    Thanks

  • How is implemented the search for collab objects?

    Hello everybody!!
    Can someone tell me how are stored the 'cards' (but i'm not sure it's card for collab objects like projects, discussions...)? Because i'm not sure these objects are crawled...
    In fact i would like to disable the search on some specific native collab objects (some projects needs to be hidden completly) but not all. Is it possible??
    Thanks.

    Unfortunately, there is no configuration setting in Collab that you can disable certain types of objects to be indexed, nor can you disable objects from certain projects to be indexed. I am not sure this will help your case, but just FYI: you can disable certain types of documents to be indexed by editing filetypes.xml.

Maybe you are looking for

  • Looking for Yahoo Calendar Widget

    Hi Folks, I can't find a yahoo calendar widget..I found one that does email notification and news, but not calendar. I use Yahoo Calendar, but find that I don't use my yahoo home page as much since I switched to Mac from windows. I can is not worth a

  • Photoshop CS6 content (pictures, etc) will not display (or only partually) on the stage.

    I just purchased and loaded Photoshop CS6.  Pictures (actually this is for all content in any layers) will not display at all or only partually display (see picture below). I uninstalled and reinstalled the program but there is no change.  The other

  • How can i unlock my phon if i forgot my password

    I made a new password for my phone lock, i forgot it and i have disabled it, can someone please tell me if they know how to help...?

  • Error when starting app via browser

    Hi, when I try to start an applikation via IE 5.5 I get the following exception: Beim Starten/Ausf?hren der Anwendung ist ein Fehler aufgetreten. Kategorie: Fehler: ung?ltiges Argument Die angegebene Datei/URL konnte nicht geladen werden. CouldNotLoa

  • Macbook pro shuts down at startup

    My Macbook pro that I bought at christmas shuts down as soon as I turn it on. I hear the startup chime and the grey screen pops up with the apple icon and the wheel loading icon starts spinning then all of a sudden my computer shuts off. Any suggesti