Need to restrict values in F4 help for Batch Characteristic

Hi,
I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
Regards,
Nikhil

Hi nikhil simha,
first of all, find out which search help is called.
[Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
may help you.
If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
Regards
Clemens

Similar Messages

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • Need selection screen values in Search help user exit in same report

    Hi Experts,
    I am using Logical Data Base PNP.
    Created a custom search help to validate the records for IT000 based on the selection screen dates.
    Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
    When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
    This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
    As of now it's picking the employees based on the DATE selection of selection screen,
    Regards,
    Prasad

    Hi,
    Go Ahead as mentioned by Satyesh T - (Option two).
    Reading Select Options from DYNP_VALUES_READ
    reffer the above link for getting more clarity for using  'DYNP_VALUES_READ'
    Regards.
    Arun

  • Sort values in input help for variables

    Hi there,
    Users often get annoyed by the input help in our web-reports. As the data in the InfoProvider grows, the variable values in the input help screens gets over-populated.
    Often old values (eg. 0CALMONTH) are displayed first and users have to scroll trough 8 blocks of values before they get the value they are looking for.
    It is kind of a practical issue, but does any of you know how to <b>sort</b> the values in the input help screen?
    Kind regards,
    Hans de Klein

    Hi Hans,
    I can suggest you one way but i am not sure it will work in your scenario.
    Where ever you have used variables. Lets say 0CALMONTH.
    You must have restricted this with some variable.
    Goto The Property of 0CALMONTH(By right clicking) and check the sort property.Also select you want to sort on Key/Text.
    Hope it helps.
    Regards,
    Parth.

  • Restrict values on the matchcode for 0COMP_CODE

    Hello all,
    I have the following scenario; I have to restrict information access to users by country and company code.
    A user can have access to different countries by means of the assignment of the corresponding roles.
    When a user execute a query, the variable screen for country appears with the different countries the user is able to display, but depending on the country the user select, on the variable entry for COMP_CODE, just the values of the companies for the country selected by the user must appear.
    For this purpose, I am using an exit value to calcule the values for companies once the user has selected the country; but what I want to do is restrict the 0COMP_CODE matchcode with the values calculated on the exit.
    How can I do it? What is the FM I must use on the exit?
    Thanks in advance

    Hi Ste,
    check this:
    Displaying filter values in WEB reporting
    SAP Note Number: [587751|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
    Attributes are missing in F4 Help for characteristic values
    SAP Note Number: [562497|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler] 
    Regards
    Andreas

  • Hi experts,   restricted value through F4 help

    hi all
    in alv grid output there is a input enabled field say xyz, this field is given f4 help by creating ztable, and when f4 is pressed on xyz field, it is fetching all the data related to that field, but the user wants restricted value with respect to company code and land1. 
    how to restrict the value coming in through F4 help ???
    thanking u in advance
    rocky

    Rocky,
    In  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    check the name of the USER_COMMANG.Based on  User command there will be one FORM ......... ENDFORM .
    In that there will be selection statement to internal table by which you are getting F4 help.Put the condition WHERE company code eq and land1 eq.
    Pls. reward if useful.....

  • Search help for batch field(CHARG)

    Hi all,
    In QM01 transaction in the critical information tab I have added a field called 'To Batch' and made the existing batch as 'From batch'. Now I gave the same check table for TO Batch (MCH1) also as like in From batch.
    But now I am getting an error message as 'Entry not found in MCH1' whenever I enter a value in To batch field.
    Do you guys know what is this?
    If possible reply me with a search help that can be used for Batch field..

    several:
    MCH1
    MCH1C
    MCH1F
    MCH1M
    MCH1U
    MCH1V
    MCH2_VBOB_MOB

  • Automatic calculation for batch characteristic

    Conversion factor is a batch characteristic which is to be calculated based on the other batch characteristics values entered by the user at the time of confirmation.
    I have maintained the objectdependency in the batch class (023). The dependency type maintained is "Procedure".  The batch class is assigned to material master. The formula is as follows
    $self.conversionfactor=((($self.actthickness-0.067)*$self.density)
    ($self.paintgsm$self.metalgsm))*$self.width/1000
    The formula is appearing in 2 lines in the dependency editor. There is no syntax error. As well as the dependency status is also "released".
    But at the time of confirmation, if the values of the other characteristics are entered, no calculation for the characteristic conversion factor is done by the system.
    Can anybody please guide on this???
    Regards,
    Manish

    thanks a lot

  • Need to modify values in Inbox Dropdown for Sort By

    HI All,
    I need to modify the valyes in the dropdown box for the Sort By and the Then Sort by fields in the Inbox. I know hte values come from the domain CRM_AUI_SORTEDBY which I dont want to modify. I redefined the method GET_V_SORTEDBY
    but the problem I am running into is that the class that the standard method used was a local class and not the standard class for Dropdown boxes. Has anybody been able to change this sucessfully?
    Regards,
    Tom

    Hello Tom,
    How did you achieve solution to this requirement, adding custom attribute to sort by field?
    Please advice.
    Regards,
    Kapil

  • Restricting values in F4 help pertaining to value in other parameter field

    Hello experts,
    In selection-screen, i have two parameters namely BUKRS and WERKS.
    Now when i enter company code in BUKRS, i want to get list of plants of that company code only, in F4 help. I don't want data of other plants which are not related to company code i enter in BUKRS. How can i do so in my program itself. I don't want to create a search help in SE11. What code should i write in AT SELECTION-SCREEN OUTPUT.??

    hi,
    DATA :      DYNPRO_VALUES TYPE TABLE OF DYNPREAD,"declare like this
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES.
    DATA: t_return3 like ddshretval occurs 0 with header line.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES.
      REFRESH DYNPRO_VALUES.CLEAR FIELD_VALUE.
      FIELD_VALUE-FIELDNAME = 'BUKRS'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME             = SY-CPROG
          DYNUMB             = SY-DYNNR
          TRANSLATE_TO_UPPER = 'X'
        TABLES
          DYNPFIELDS         = DYNPRO_VALUES.
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      SELECT DISTINCT werks FROM Tt001w into table itab where bukrs = FIELD_VALUE-FIELDVALUE.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD    = 'WERKS'
          DYNPPROG    = SY-REPID
          DYNPNR      = SY-DYNNR
          DYNPROFIELD = 'WERKS'
          VALUE_ORG   = 'S'
        TABLES
          VALUE_TAB   = ITAB
          RETURN_TAB  = t_return3."will contain the selected values
    regards,
    syed

  • Object dependency for batch characteristic

    I have 1 class with multiple characteristics and 1 of the characteristics should be entered (mandatory) in case of a certain split valuation type (which is covered in the batch info). This should be done via object dependencies within the charateristic. Anyone knows how to do this?

    Dear Sairam
    As explaind to you in the earlier thread for product or proportion unit. you need not maintain object dependency for the characterestics. You have to maintain product unit which will appera as alternatvie UOM. While making GR the Alternate or product UOM will be seen as per the plan value(conversion factor) maintained in material master. You can change both Basic UOM and Alter UOM as per the actual caonversion recieved. This conversion factors will be saved in the batch classification.
    Regards
    MSR

  • Restricting the Value of Search help in MIRO based on vendor

    Dear all,
    I had a problem in resticting the values of search help for vendor in the Po reference tab.  the Seach help is KRED  .  I had written a search help exit in it but i dont know how to restrict the vaues. I have to restict the Vendors Which starts with 1 series like 10000001,1000002 etc.
    Can any one help me out where to write the code in search help exit like CALLCONTROL-STEP = 'SELONE' or 'SELECT' or 'DISP' and what logic i need to use.
    Thanks & regards
    sreehari p

    Hi Sreehari,
    Write your Select query inside  IF callcontrol-step = 'DISP'.
    Use below code.
    *Types
      TYPES: BEGIN OF l_ty_tab,
             lifnr TYPE lifnr,
             END OF l_ty_tab.
      DATA: l_t_tab TYPE TABLE OF l_ty_tab,
            l_wa_tab TYPE l_ty_tab,
            l_wa_recordtab TYPE seahlpres.
    *Before displaying hitlist
      IF callcontrol-step = 'DISP'.
        REFRESH: record_tab[],l_t_tab[].
    SELECT LIFNR FROM lfa1 INTO TABLE l_t_tab WHERE lifnr LIKE '1%'.
    IF NOT l_t_tab[] IS INITIAL.
    *Pass hitlist to standard table record_tab
        LOOP AT l_t_tab INTO l_wa_tab.
          l_wa_recordtab-string = l_wa_tab.
          APPEND l_wa_recordtab TO record_tab.
          clear l_wa_recordtab.
        ENDLOOP.
      ENDIF.
      ENDIF.
    Thanks,
    Sap Fan

  • F4 help for PO number field with SELECT OPTIONS

    Hi all,
    I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it?
    I have declared it as follows:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    select-options sel_po for ZPO_LOI-zobject_id obligatory .
    SELECTION-SCREEN END OF BLOCK b1.
    ZPO_LOI is a table view with a z data element ZOBJECT_ID to which i have attached a search help which displays the required values for the PO field in the selection screen.But now the problem is i cant see the F4 icon for the field on the sel screen.
    Please help.

    Hi I have a sapmle code for this.
    *&                AT SELECTION SCREEN ON VALUE REQUEST
    *-- F4 help for IDOC numbers
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-low.
      PERFORM value_request_status USING 'S_DOCNUM-LOW'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-high.
      PERFORM value_request_status USING 'S_DOCNUM-HIGH'.
    *&      Form  value_request_status
          text
         -->fp_field  dynpro field that gets the return value
    FORM value_request_status  USING fp_field TYPE dynfnam.
      STATICS tl_values TYPE STANDARD TABLE OF tp_value.
      IF tl_values IS INITIAL.
         SELECT docnum FROM edidc UP TO 500 ROWS INTO TABLE tl_values
              WHERE credat   IN  s_credat
              AND   cretim   IN  s_cretim.
         IF sy-subrc eq 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
              retfield        = 'DOCNUM'
              dynpprog        = syst-repid
              dynpnr          = syst-dynnr
              dynprofield     = fp_field
              value_org       = 'S'
             TABLES
              value_tab       = tl_values
             EXCEPTIONS
              parameter_error = 1
              no_values_found = 2
             OTHERS          = 3.
             IF sy-subrc IS NOT INITIAL.
               MESSAGE i999(zz) WITH 'No values found'(004).
             ENDIF.
          ENDIF.
        ENDIF.
    ENDFORM.                    " value_request_status
    Regards,
    Amit.

  • How to restrict values displayed using a select-options

    Can someone please tell me how to restrict values displayed using a select-options.
    Example- in my table I have 100 entries. However when the user will click on the required field- I want to be display only 25 options based on a given value of another field in the table.
    Thanks,
    Mahesh.

    get the screen value for the selectd field  using the fm
    DYNP_VALUES_READ.
    for that value filter the internal table values and pass the table to f4 help of the field.
    below code will help u
    write the f4 help for the field.
    At Selection Screen on value request                                *
    F4 help for Corporate
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CORP.
    Get Corporates for selected division
      PERFORM GET_CORP.
      PERFORM F4HELP_CORP.
    *&      Form  GET_CORP
    Get the corporates for the selected division
    There are no interface parameters to be passed to this routine
    FORM GET_CORP .
    Table for conglomerate
      DATA:
        LT_CONG      LIKE STANDARD TABLE OF FS_CORP,
    Fields of current screen
        LFS_DYNPREAD TYPE DYNPREAD,
    Table for current Screen fields
        LT_DYNPREAD  LIKE STANDARD TABLE OF LFS_DYNPREAD.
      LFS_DYNPREAD-FIELDNAME = 'P_DIV'.
      APPEND LFS_DYNPREAD TO LT_DYNPREAD.
    Get selection screen value for division
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME               = SY-REPID
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = LT_DYNPREAD
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          INVALID_PARAMETER    = 7
          UNDEFIND_ERROR       = 8
          DOUBLE_CONVERSION    = 9
          STEPL_NOT_FOUND      = 10
          OTHERS               = 11.
      IF SY-SUBRC EQ 0.
        READ TABLE LT_DYNPREAD INTO LFS_DYNPREAD INDEX 1.
        IF SY-SUBRC EQ 0.
          P_DIV = LFS_DYNPREAD-FIELDVALUE.
        ENDIF.                             " IF SY-SUBRC EQ 0
      ENDIF.                               " IF SY-SUBRC EQ 0
      REFRESH T_CORP.
    Get the conglomerate for the selected division
      SELECT KUNNR                         " Conglomerate
        FROM KNVH
        INTO TABLE  LT_CONG
       WHERE HITYP  EQ C_HITYP
         AND VKORG  EQ C_VKORG
         AND VTWEG  EQ C_VTWEG
         AND SPART  EQ P_DIV
         AND DATAB  LE SY-DATUM
         AND DATBI  GE SY-DATUM
         AND HKUNNR EQ SPACE.
      IF SY-SUBRC EQ 0.
        SORT LT_CONG BY KUNNR.
        DELETE ADJACENT DUPLICATES FROM LT_CONG
                        COMPARING KUNNR.
    Get the corporates for the selected conglomerates
        SELECT KUNNR                       " Customer Number
          FROM KNVH
          INTO TABLE  T_CORP
           FOR ALL ENTRIES IN LT_CONG
         WHERE HITYP  EQ C_HITYP
           AND VKORG  EQ C_VKORG
           AND VTWEG  EQ C_VTWEG
           AND SPART  EQ P_DIV
           AND DATAB  LE SY-DATUM
           AND DATBI  GE SY-DATUM
           AND HKUNNR EQ LT_CONG-KUNNR.
        IF SY-SUBRC NE 0.
          CLEAR: SSCRFIELDS.
          MESSAGE I531(0U) WITH TEXT-005.
          STOP.
        ENDIF.                             " IF SY-SUBRC NE 0
      ELSE.
        CLEAR: SSCRFIELDS.
        MESSAGE I531(0U) WITH TEXT-004.
        STOP.
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " GET_CORP
    *&      Form  F4HELP_CORP
    F4 help for corporate
    There are no interface parameters to be passed to this routine
    FORM F4HELP_CORP .
    F4 help for corporate
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'KUNNR'
          DYNPPROG        = 'Z_EXCESS_USAGE'
          DYNPNR          = '1000'
          DYNPROFIELD     = 'P_CORP'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = T_CORP
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC EQ 0.
    Do nothing
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " F4HELP_CORP

  • Search help for Asset Class in LDB ADA

    Hi,
    I have a requirement to restrict values in certain search help.
    It is Z transaction for Z SAP Query which has logical database ADA under itself.
    The field which search help I should restrict is Asset Class.
    As I found in LDB ADA, it is select option SO_ANLKL with type ANLAV-ANLKL. It leads me to search help SH_ANLKA which is defined for domain ANLKL.
    But actually, another search help is called. It looks like SH_ANKA, but I don't know if it is right one.
    I have two problems:
    1. How to identify what search help is called?
    2. How to restrict values in search help or maybe how to attach Z search help in this case (should I attach in query or is there a way to enhance LDB)?
    As I am new both to SAP Query and LDB's I am not sure where to start.
    Tnx in advance,
    Natasa

    Solved.
    For those who face the same problem, here is the solution.
    LDB ADA creates basic search help for select options Asset Class by reading ANKA-ANLKL and ANKT-TXK20.
    Output list can be restricted by adding an enhancement at the end of FM DD_SHLP_GET_HELPVALUES and changing the internal table OUTPUT_VALUES.
    If necessary, it can be conditioned by TCODE and for this purpose parameter can be set in the enhancement of FM DD_SHLP_CALL_FROM_DYNP by reading content of the field HELP_INFOS-TCODE.
    Regards,
    Natasa

Maybe you are looking for