Search help problem in ALV output for field TD24A-DISMM

Hi Abap-Experts,
      I have one issue regarding simple ALV report.
      I need to display search-help for field DISMM.  I have used below code in ALV fieldcatalog.
      ts_fieldcat - tabname = 'TD24A'.
      ts_fieldcat - tabname = 'DISMM'.
      I have attached search-help for fields such as MATNR and WERKS too.
      The search-helps are getting displayed for MATNR as well as WERKS.
      But, the search-help is not gettting displayed for field DISMM(RP-TYPE) .
         The output displayed is done using Simple ALV.     
        Could anyone please help me and correct my code or logic i have used.

Hi,
  I have changed code a bit...and used T438A table.
  CLEAR ts_fieldcat.
  ts_fieldcat-col_pos = '5'.
  ts_fieldcat-fieldname = 'DISMM'.
  ts_fieldcat-seltext_l = text-014.
  ts_fieldcat-outputlen =  2.
  ts_fieldcat-reptext_ddic  = ''.
  ts_fieldcat-ref_tabname   = 'T438A'.
  ts_fieldcat-ref_fieldname = 'DISMM'.
ts_fieldcat-ddic_outputlen = '2'.
  ts_fieldcat-input         = 'X'.
  APPEND ts_fieldcat TO gt_fieldcat.
still it is not showing me the F4 help in simplae ALV output..
kindly help me

Similar Messages

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

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

  • Creating a new Search Help on a standard SAP table field?

    Good day, everyone!
    As part of a report I am writing, the customer would like to have Search Help added to the AUFEX field in table AUFK.  They would like this functionality so that when they are changing an order via t-code ko02, they can get a list of valid values to put in field AUFEX.  I would like to tie it to a zTable I've created; in my zTable, I have just 2 fields:  a key value (that will go into AUFEX) and a text description of the key value.  This zTable is used in my report.
    While I've created a Search Help on this table already for table maintenance, I've never added a custom Search Help to an existing standard SAP table field before.  I've done some Googling and other searching to see what I need to know, but I've only been able to find information on Collective Search Helps.  AUFEX doesn't yet have a Search Help field, so I don't think Collective Search Helps is my answer.
    Is this possible?  Can I add a custom Search Help to a standard SAP table field that doesn't have any Search Help linked to it yet?  Is there an existing thread or guide somewhere that can tell me how to do this?
    Thank you!

    Hi
    Yes u can: u can assign the search help to (A) data element livel or (B) field table livel.
    After creating your search help:
    A) Run SE11, insert your data element (AUFEX), press edit and insert the search help in "Search Help" area on DEFINATION tab;
    B) Run SE11, insert your table (AUFK), press edit, place the cursor on your field (AUFEX) and go to GoTo->Search help->for field
    But u should consider it'll mean to change a standard object for both cases: so u need to get the access key from your OSS.
    Max

  • KOST : Search Help Problem

    Hello All,
    we are doing ECC6 Upgrade, due to return to standard, custom elemetary search helps are missing in standard collective search help KOST.
    I have added two custom elementary search helps to standard collective search help KOST.
    now the issue is, selected possible values are displayed and then after choose any value it's not returned to screen field.(this issue is only with custom search help added but other standard search help are working fine)
    i checked all, even import and export are selected correctly in my custom elementary search help.
    Only the difference is search help exit available in ECC6 for KOST but not in 4.7.
    Kindly let me know suggestion on this issue.
    Thanks,
    Munvar Basha.

    Hi Max,
    Thanks for your answer.
    They are executing the search entering selection criteria. In this case they should not tget their personal list.
    I already tried and created my own personal list, and I was able to execute the search properly.
    Br.
    Csaba

  • ALV output for Purchase reports

    Hi Friends,
    How can I have ALV output for my Purchase reports like ME2L, ME2N, ME2M. My scope of Lists do not have ALV output as yet. How do we configure it..?
    Thanks in advance.
    Sarvesh

    which ECC version are you working on? I think versions below 4.7 didnt have ALV (im not sure though)
    Try this  path :
    SPRO->Materials mgmt->purchasing->Reportng->Maintain Purchasing lists->Scope of lists->Define scope of list.
    check if ALV is maintained here.  if not , create ZALV by Copying from ALLES or make your own new one ZALV  , and inside ZALV  , make sure to Tick the  "Use ALV grid Control"  in the last  tab "settings for ALV  grid control"

  • Search help Problem for Sales Org

    Hi All ,
      I have created a new 'Z' table and have a table maintenance for that . I need to attach search help for the field VKORG . I have attached C_VKORG in the table itself . But I'm not able to see any values for sales org .
      I checked with the other standard table . It has the same search help but it was giving values there . I'm not able to find what the problem is .
      Can you guys suggest any thing ?
    Thanks ,
    Shounak M.

    Hello,
    What is your release of CRM?
    For the values of sales org, should you not use the search help :CRM_ORGMAN_SALES_ORG?
    Regards,
    Frédéric

  • How to include F4 help to a alv output field?

    Hi All,
    I have a sel screen with 2 inputs say x1 and x2. Based on my inputs we have a alv(using OOPS)  output where a field say tabname is editable and the values in it are hardcoded.
    I have to get a F4 help in this editable field tabname with those hardcoded values from the program say T1 and T2.
    If we pres F4 of tabname value, we must get only T1 and T2 from the program.
    Please let me know how to do this.
    Thanks in advance.

    Hi Aiswary,
    Check the Following program
    BCALV_EDIT_08     -
    >             Integrate Non-Standard F4 Help
    BCALV_F4              -
    >            Possible entries
    BCALV_GRID_EDIT_DELTA     -
    >     Example Report for F4 Help of the ALV Grid
    BCALV_GRID_F4_HELP_APPLICATION
    BCALV_GRID_F4_HELPM01
    BCALV_TEST_GRID_EDIT     -
    >      F4 Help
    BCALV_TEST_GRID_F4_HELP    -
    >    Example Report for F4 Help of the ALV Grid
    Cheers
    Ram
    Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:20 PM

  • Search Help(F4....) for a FIELD in table

    Hi,
    In SE11 I created a SEARCH HELP.
    And I assigned it to a field in a table.
    GOTO>Search help->for field.Here i assigned that created search help name and COPY.
    **But it is not reflecting in screens.
    Any one suggest me what to do or any thing else i need to take care.
    Thnkas in advance.
    Message was edited by: Deepak333 k
    Message was edited by: Deepak333 k

    Hi deepak,
    This is the Search Help Process(F4) for a Particular Field.
    Go to SE11.
    Select Search Help Radio button : Any name with Z or Y.
    Create.
    Short Description : Any.
    Selection Method : Table Name.
    Dialog Type : Display Values immediately.
    Search Help Parameter : Field Name (for which field ur doing in the table).
    Exp : Tick it.
    Lpos : 1 Just giving the position.
    SAVE CHECK ACTIVATE.
    Next Assign the Search Help to the table or field.
    SE11.
    Your Table Name : Change.
    Search Help Button above the fields.
    Search Help name : Your search help name.
    Copy.
    SAVE CHECK ACTIVATE.
    Now go and check to the field by F4.
    Thats it.
    hope this helps you.
    reward points for helpfull answers and close the thread if your question is solved.
    regards,
    venu.

  • Adding search Help - In the transaction MIGO for the Field WEMPF.

    Hi All,
    In the Transcation MIGO there is a field - Good Recipient ( WEMPF ) -this does not have any F4 help.
    Now i need to create a search help for this field.
    Can any one suggest me how to proceed.
    I am thinking about -- creating a search help - and assigning it to a data elemet(WEMPF) of that field.
    is this a right way. if so please guide me the steps to do.
    Thanks in advance.
    Guru

    hie
    to add a search help to a particular field u need to get the table name where that field is located. secondly go to se11 and enter an appropriate name for your search help, allocate the table where values are going to be taken as well as the search criteria. Afterwards to the table where WEMPF is and on the search help enter your custom search help. save and activate and you shud try MIGO once more and the field WEMPF should have an F4 help.
    regards
    Isaac Prince

  • Search Help in Classical ALV

    Hi All,
    I have a small problem. Can anybody tell me how can i add a search help to a specific column in my classical ALV?
    Regards,
    Prakash Pandey

    Hi Prakash,
    In the Field Catalog there are two fields which are used to get the Search Help of any of the Column in ALV. Those are : REF_FIELDNAME and REF_TABNAME.
    For example,
      ls_fieldcat-fieldname  = 'VBELN'.
      ls_fieldcat-fix_column = 'X'.
      ls_fieldcat-key        = 'X'.
      ls_fieldcat-outputlen  = '10'.
      ls_fieldcat-seltext_m  = 'Sales Document'.
      ls_fieldcat-edit       = 'X'.
      ls_fieldcat-ref_fieldname = 'VBELN'.
      ls_fieldcat-ref_tabname = 'VBAP'.
      append ls_fieldcat to p_fieldcat.
      clear ls_fieldcat.
    The above code will show the F4 for the column VBELN in the ALV.

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

  • Problem in alv output download

    HI All,
    My problem is
    My alv output table contains long text with value as 1000 characters.
    when i am downloading my alv output into excel, it is downloading only 255 characters length.
    is there any ways to download the entire long text into excel.
    Please help me on this...
    Thanks in advance.
    Maruthi Konijeti

    see the following example.
    REPORT z_down_xml LINE-SIZE 132 NO STANDARD PAGE HEADING.
    Databases
    TABLES:
      makt,                                "Mat description
      marc,                                "Material / plant
      t001w,                               "plant name
      bhdgd.                               "Batch heading
    Internal tables
    DATA:
      BEGIN OF gt_marc OCCURS 0,
        werks LIKE marc-werks,
        matnr LIKE marc-matnr,
      END OF gt_marc,
    Table to be downloaded as xml. Each line stores start and end tags
    and the value
      BEGIN OF gt_xml OCCURS 0,
        line(120),
      END OF gt_xml,
      g_maktx(120).
    User-input
    SELECT-OPTIONS:
      s_werks FOR marc-werks,
      s_matnr FOR marc-matnr.
    START-OF-SELECTION.
    Extract all required data
      PERFORM main_processing.
    END-OF-SELECTION.
      SORT gt_marc BY werks matnr.
      LOOP AT gt_marc.
        AT FIRST.                          "First tag must be root
          CLEAR gt_xml.
          gt_xml-line = ''.
        APPEND gt_xml.
        CLEAR gt_xml.
    display data
        FORMAT COLOR 2 ON.
        WRITE :/ gt_marc-matnr, makt-maktx.
        FORMAT COLOR 2 OFF.
      ENDLOOP.
    The last tag must be the root closing tag --*
      gt_xml-line = '</LOCATIONS>'.
      APPEND gt_xml.
      CLEAR gt_xml.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                filename = 'C:PLANT1.XML'
                filetype = 'ASC'
           TABLES
                data_tab = gt_xml.
    TOP-OF-PAGE.
      MOVE sy-title TO bhdgd-line1.
      MOVE sy-repid TO bhdgd-repid.
      MOVE sy-uname TO bhdgd-uname.
      MOVE sy-datum TO bhdgd-datum.
      MOVE '0' TO bhdgd-inifl.
      MOVE '132' TO bhdgd-lines.
      FORMAT INTENSIFIED ON COLOR COL_HEADING.
      PERFORM batch-heading(rsbtchh0).     "report header
    Form READ_PLANT
    FORM read_plant.
    Get plant name
      CLEAR t001w.
      SELECT SINGLE name1
        INTO t001w-name1
        FROM t001w
       WHERE werks EQ gt_marc-werks.
    ENDFORM.                               " READ_PLANT
    Form MAIN_PROCESSING
    FORM main_processing.
    Material and plant basic data
      SELECT werks matnr
        INTO TABLE gt_marc
        FROM marc
       WHERE werks IN s_werks
         AND matnr IN s_matnr.
    ENDFORM.                               " MAIN_PROCESSING
    Form READ_DESCRIPTION
    FORM read_description.
    Material name
      CLEAR g_maktx.
      SELECT SINGLE maktx
        INTO g_maktx
        FROM makt
       WHERE matnr EQ gt_marc-matnr
         AND spras EQ 'E'.
    Replace special character
      DO.
        REPLACE '&' WITH '*ù%;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '*ù%;' WITH '&amp;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '/' WITH '&#47;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
    ENDFORM.                               " READ_DESCRIPTION

  • Display Problem in ALV output

    Hi Experts,
    My fieldcatalog table is populated by using FM "REUSE_ALV_FIELDCATALOG_MERGE". But the fields qfieldname & qtabname is populated for one of the records in the catalog table which  is creating problem in my output.
    qfieldname is populated with previous fieldname in my internal table declared and qtabname with my int.table name. I was trying to sum the field but the value is splitted here.
    when i manually remove qfieldname & qtabname am getting proper output.
    why this two fields are populated? could anyone help...
    sure for points.
    Thanks in Adv,
    Ponraj.s.

    Hi,
    The two properties QFILDNAME & QTABNAME are for 'field with quantity unit' and the 'table name'. These field will get populated for Quantity fields....
    In your case the quantity unit may be different for the records you are suming up...
    if you want to remove these fields value ...
      loop at i_fieldcat into wa_fieldcat.
           if wa_fieldcat-fieldname = field name.
              wa_fieldcat-qfieldname = ' '.
              wa_fieldcat-qtabname   = ' '.
              modify i_fieldcat from wa_fieldcat.
           endif.
      endloop.
    Satya.

  • Saving Search Help - Problem assigning package

    Hi,
    I have developed a ALV report, Where I have used only one 'Z' table. I want to create search help for a particular input field  in the selection screen.
    I tried to create search help in se11.
    After giving all the required information, I am not able to save it under any package at all.
    It gives an information saying, Search help cannot be assigned under this package.
    I have tried it under many packages and also tried to save it as a local object, But no go.
    How can I save and activate this ?
    Please help !
    Thanks in advance
    Edited by: Matt on Sep 5, 2011 6:40 AM

    Hi
    I think you created search help name not starting with Y or Z, but with SAP reserved names. Because of this you are not able to save by assigning a package and TR.
    Please change the same to starting with Y or Z.
    Custom Search Help
    Shiva

Maybe you are looking for

  • Is it possible to run 5.5 on windows 8.1??

    Is it possible to run Photoshop 5.5 on Windows 8.1? I have a CD which I tried to run but when I click on install nothing is happening. I have CS6 trial already running on the laptop, so my question is, is it because I need to uninstall CS6 (although

  • HT201317 how cam i send my Earlier photos by cloud from my camera roll?

    hello, my name is fahime, i have a question from you and 1 hope that you help me. how cam i send my Earlier photos by icloud from my camera roll? 1want to tarasfer my older photoes that are taken when my icloud wasn't available, so haw can i get my o

  • How to inventorise CST with a separate line item during GRN

    Dear All, Please could anybody tell me how to post the CST to a diff GL during the accounting entries in MIGO. I have a tax code where there is ED, Cess,Secess & CST(Which is inventorised). Now the CST is getting added to material cost during GRN. Th

  • Is it ok to bundle Firefox with my software?

    My app runs over a browser but it's not a hosted service, that is, it's installed locally. And it works best with Firefox browser, every user has FF installed... for convenience I'd rather to install FF together with my software, so, the question is,

  • Why does the cursor skip a line every time I start a new contact?

    I just got my first iPhone, and I love many things about it, but I'm pretty frustrated about other things. One frustrating thing is that if I go to save a number as a contact, it brings up the new contact page, and EVERY time I click on the first nam