Search help prob

hi ,
i have a search help.. with a selection method - a database view. and a search help exit is assigned to the view...
the code id as follows..
TYPES: BEGIN OF lt_final,
             dist_id TYPE <type>,,
             dist_name TYPE <type>,
             admin2_id TYPE <type>,,
             name_lvl2 TYPE <type>,,
             country TYPE <type>,,
             END OF lt_final.
  DATA:    li_rec_tab TYPE STANDARD TABLE OF lt_final,
          lwa_rectab TYPE lt_final,
          li_dist_point TYPE STANDARD TABLE OF <table>,
          lwa_dist_point TYPE < type>,
          lwa_final TYPE seahlpres,
          lv_name TYPE <type>,.
  CONSTANTS: lv_place TYPE i VALUE 3.
if not record_tab[] is  initial.
LOOP at record_tab into lwa_rectab.
    CALL FUNCTION <function module>
      EXPORTING
        DIST_ID        = lwa_rectab-dist_id
     IMPORTING
       COUNTRY        =  lwa_rectab-country
EXCEPTIONS
  DP_EXIST       = 1
  OTHER          = 2
  OTHERS         = 3
    IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    APPEND lwa_rectab to li_rec_tab.
    clear lwa_rectab.
  ENDLOOP.
  IF callcontrol-step = 'RETURN'.
    READ TABLE record_tab INDEX 1 INTO lwa_final.
   SHIFT lwa_final-string BY lv_place PLACES left.
    MODIFY record_tab INDEX 1 FROM lwa_final TRANSPORTING string.
   endif.
  ELSE.
    CLEAR record_tab[].
    LOOP AT li_rec_tab INTO lwa_rectab..................................LINE A
      MOVE lwa_rectab To lwa_final-string.
      SHIFT lwa_final-string BY lv_place PLACES right.
      APPEND lwa_final TO record_tab.
    ENDLOOP.
  endif.
Till LINE A the code is working fine but as i move lwa_rectab to lwa_final-string ... the last field (country) of lwa_rectab does not get copied to lwa_final-string and it displays the 4 fields instead of 5..
pls help
Regards,
Anurupa.

Use Function Module F4UT_RESULTS_MAP to map results retreived to record_tab

Similar Messages

  • Prob in collective search help.

    Hi ,
    I am facing problem in collective saerch help creation.
    i assigned two elementry search helps which are of for fields name and id.
    i assigned this collective search help to these fields(neme and id).
    but when i am checking for both fields its displaying only one field values either id or name.
    why its happening like this,
    Thanks & Regards,
    raji.

    Hi
    Please check with the following link
    [Collective search help|http://help.sap.com/saphelp_nw70/helpdata/EN/cf/21ee86446011d189700000e8322d00/content.htm]
    Hope this helps you
    Regards,
    Rajani

  • Hi,   search help     --   restricted value

    hi
    there is already a search help for a field in one of the transaction codes in fico. i think this search help is attached in code by writing match code syntax.
    but my prob is that this search help for the particular field shows 10 char and out of this 10 char i need to show only 5 char from 3 to 7 when the user press f4.
    eg. 1234567890 i need to show 34567 only without changing the se38 code.
    when user press f4 he gets lots of records and all records should show 5 char only, now it is showing 10 char.
    is it possible, if yes, then how???
    pl can anybody help me.
    thanx
    rocky

    Hi rocky,
    You can do like this.
    Use the below logic with your table, you will get as desired,
    DATA: BEGIN OF gt_matnr OCCURS 0,
          matnr TYPE mara-matnr,
          END OF gt_matnr,
          BEGIN OF gt_list OCCURS 0,
          field1(5) TYPE c,
          END OF gt_list.
    PARAMETERS: p_matnr TYPE mara-matnr.
    INITIALIZATION.
      SELECT matnr
        FROM mara
        INTO TABLE gt_matnr.
      LOOP AT gt_matnr.
      gt_list-field1 = gt_matnr(5).
      APPEND gt_list.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
      CALL FUNCTION 'POPUP_WITH_TABLE'
           EXPORTING
                endpos_col   = 30
                endpos_row   = 20
                startpos_col = 10
                startpos_row = 10
                titletext    = 'Select MATNR'
           IMPORTING
                choice       = p_matnr
           TABLES
                valuetab     = gt_list
           EXCEPTIONS
                break_off    = 1
                OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • F4 search help is not getting displayed in WAD

    Hi all,
    For a certain InfoObject we want to add an attribute in the F4-search help. The additional attribute does appear when executing the query in the Bex Analyzer but not on the Web. Can anyone tell me how to achieve this in WAD?
    Thanks in Advance

    Hi all,
    For a certain InfoObject we want to add an attribute in the F4-search help. The additional attribute does appear when executing the query in the Bex Analyzer but not on the Web. Can anyone tell me how to achieve this in WAD?
    Thanks in Advance

  • Issue in custom search help for Suggest Value

    Hi,
    I have a requirement to have the suggest values pick up the records form any par of the string. Basically, using pattern. I have written the code in search help exit and it work in some cases and doesnt work for others.Eg. The result shows up for 123 but doesnt show for 1234, even though 1234 exists and it had showed up when i keyed in 123.
    My select quest works fine and i can see the values in record tab but on the screen. What could be going wrong.
    Thanks in advance for your help.
    Pris.
    PS: the code:
    IF callcontrol-step = 'SELECT'.
        DATA:lwa_selopt TYPE  ddshselopt,
             lit_selopt_id TYPE RANGE OF yselxyz-builder_id,
             lwa_selopt_id LIKE LINE OF lit_selopt_id ,
             lit_selopt_desc TYPE RANGE OF yselxyz-builder_name,
             lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
             lwa_header TYPE yselabc,
             lit_header TYPE STANDARD TABLE OF yselabc,
             lv_sel_val TYPE ddshselopt-low.
        READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'BUILDER_ID'."'DKEY'.
        IF sy-subrc EQ 0.
          lwa_selopt-option = 'CP'.
          CONCATENATE '*' lwa_selopt-low INTO lwa_selopt-low.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_id.
          APPEND  lwa_selopt_id TO lit_selopt_id.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
          APPEND  lwa_selopt_desc TO lit_selopt_desc.
          CLEAR:lit_header[],record_tab[].
          SELECT builder_id builder_name FROM yselxyz INTO TABLE lit_header
            WHERE ( builder_id IN lit_selopt_id )
           OR ( builder_name IN lit_selopt_desc ).
          SORT lit_header BY builder_id.
          DELETE ADJACENT DUPLICATES FROM lit_header COMPARING builder_id.
          CALL FUNCTION 'F4UT_RESULTS_MAP'
            EXPORTING
              source_structure  = 'YSELABC'
            TABLES
              shlp_tab          = shlp_tab
              record_tab        = record_tab
              source_tab        = lit_header
            CHANGING
              shlp              = shlp
              callcontrol       = callcontrol
            EXCEPTIONS
              illegal_structure = 1
              OTHERS            = 2.
          callcontrol-step = 'DISP'.
          EXIT.
        ENDIF.
      ENDIF.

    Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
    callcontrol-maxexceed = 'X'.
    Thanks,
    Pris.

  • How to populate data in MPP through F4 search help(the field should get filtered as per key)

    Dear Experts.
    I am new to ABAP and hence trying jmy hands on various ways of peforming a task.
    I have a requirement. I want to maintain a database tables through MPP :  ZLT_Auftrag (Refer Screen Shot 1: Doubt MPP1) and ZLT_Kunde (Refer Screen Shot2: Doubt MPP2)
    The fields of ZLT_Kunde are: K1, K2, K3
    The fields of ZLT_Auftrag are: A1, A2, A3, A4, P1 P2 and P3 are related as per the key field "A3"   (Here A3 = K2)
    I want the User to be able to Maintain this table through the Screen that I had created using MPP. (Plz refer the attached Screen Shot3:Doubt MPP3  of the SCREEN in MPP)
    When I populate the Kunde name(K1) in the SCREEN (Can be done by F4 Search help), then on hitting the pushbutton "Get Kunde" the  kunde Code (K2) appears . Now from here it can be deleted or even a new Kunde name and code can be saved dirctly to the database table : ZLT_Kunde. (Refer Screen Shoot4: Doubt MPP4)
    For Example for Kunde (K1)= BASF, Kunde Code (K2) = BSF, the Auftrag should be all those values from ZLT_Auftrag (where A3 = BSF)
    When I try to populate the Auftrag value on the SCREEN then on hitting F4 (already created for table ZLT_Auftrag in se11) then I get all the values of Auftrag (A1) from the table ZLT_Auftrag. (Ply refer Screen Shot 5: Doubt MPP5)
    MY REQUIREMENT: Here I want that either through F4 help or through drop down ONLY those values of Auftrag-A1 should appear on the SCREEN which satisfies the condition: A3 = K2
    I am unbale to get how to do that.
    I need your valuable suggstions.
    Regards
    Chandan

    And the  code of the MPP is:
    *& Module Pool       SAPMZDEMO_MPOOL_03
    PROGRAM  SAPMZDEMO_MPOOL_03.
    TABLES:  ZLT_MITA, ZLT_Kunde, ZLT_Auftrag, Zlt_Stdsatz.
    DATA: flg_lock  TYPE c,
    *      indx  TYPE i,
    *      indxk TYPE i,
    *      indxa TYPE i,
    *      TCNT TYPE sy-tabix,
          lv_msgv1  TYPE  sy-msgv1.
    *DATA: it_mita    TYPE TABLE OF ZLT_mita,
    *      it_kunde   TYPE TABLE OF ZLT_KUNDE,
    *      it_auftrag TYPE TABLE OF ZLT_AUFTRAG.
    *&      Module  STATUS_9000  OUTPUT
    *       text
    module STATUS_9000 output.
      SET PF-STATUS 'ZSTATUS01'.
    *  SET TITLEBAR 'xxx'.
      If flg_lock is Not initial.
        LOOP at Screen.
      If screen-group1 = 'G1'.
      Screen-input = 0.
      MODIFY SCREEN.
           Endif.
        ENDLOOP.
          MESSAGE s000(8i) WITH 'Mitarbeiter already locked by user' lv_msgv1.
      ENDIF.
    endmodule.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    *       text
    module USER_COMMAND_9000 input.
    *To Populate Data into Mitarbeiter through Pushbuttons
      CASE sy-ucomm.
        When 'OK_GET'.
          Clear : flg_lock.
            IF ZLT_MITA-M1 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_MITA
                Where M1 = ZLT_MITA-M1.
    *To create a Lock Object so that when two or more employees are accessing the same data
    * at the same time then for the new user the data gets locked and only can been seen in
    *display mode
            IF sy-subrc = 0.
            CALL FUNCTION 'ENQUEUE_EZLT_MITALOCK'
             EXPORTING
               MODE_ZLT_MITA        = 'E'
               MANDT                = SY-MANDT
               M1                   = ZLT_MITA-M1
    *           X_M1                 = ' '
    *           _SCOPE               = '2'
    *           _WAIT                = ' '
    *           _COLLECT             = ' '
             EXCEPTIONS
               FOREIGN_LOCK         = 1
               SYSTEM_FAILURE       = 2
               OTHERS               = 3
            IF sy-subrc <> 0.
              flg_lock = 'X'.
              lv_msgv1 = sy-msgv1.
            ENDIF.
            ENDIF.
            ELSE.
                MESSAGE S000(8i) With 'Enter Mitarbeiter Name'.
            ENDIF.
        When 'OK_SAVE'.
           Modify ZLT_MITA.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETE'.
            IF ZLT_MITA-M1 is NOT INITIAL.
                DELETE
                FROM  ZLT_MITA
                Where M1 = ZLT_MITA-M1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *     When 'OK_FIRST'.
    *           indx = 1.
    *     When 'OK_NEXT'.
    *           indx = indx + 1.
    *     When 'OK_PREV'.
    *           indx = indx - 1.
    *     When 'OK_LAST'.
    *           Describe Table it_mita lines indx.
    *To Populate Data into Kunde through Pushbuttons
        When 'OK_GETK'.
            IF ZLT_Kunde-K1 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Kunde
                Where K1 = ZLT_KUNDE-K1.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEK'.
           Modify ZLT_Kunde.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEK'.
            IF ZLT_KUNDE-K1 is NOT INITIAL.
                DELETE
                FROM  ZLT_KUNDE
                Where K1 = ZLT_KUNDE-K1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *To Populate Data into Auftrag Through Pushbuttons
        When 'OK_GETA'.
            IF ZLT_KUnde-K2 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Auftrag
                Where A3 = ZLT_Kunde-K2.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEA'.
           Modify ZLT_Auftrag.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEA'.
            IF ZLT_Auftrag-A1 is NOT INITIAL.
                DELETE
                FROM  ZLT_Auftrag
                Where A1 = ZLT_Auftrag-A1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
    *To Populate Data into Position Thorugh Pushbuttons
        When 'OK_GETP'.
            IF ZLT_Auftrag-A2 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Auftrag
                Where A3 = ZLT_Kunde-K2.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
        When 'OK_SAVEP'.
           Modify ZLT_Auftrag.
           IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
        When 'OK_DELETEP'.
            IF ZLT_Auftrag-A1 is NOT INITIAL.
                DELETE
                FROM  ZLT_Auftrag
                Where A1 = ZLT_Auftrag-A1.
              IF sy-subrc = 0.
                MESSAGE S000(8i) With 'Data deleted'.
              ENDIF.
            ENDIF.
        When 'OK_EXIT'.
           Leave Program.
        When 'OK_CLEAR'.
          Clear : ZLT_MITA, ZLT_KUNDE, ZLT_AUFTRAG.
    *              it_mita, it_kunde, it_auftrag,
          CALL FUNCTION 'DEQUEUE_EZLT_MITALOCK'
           EXPORTING
             MODE_ZLT_MITA       = 'E'
             MANDT               = SY-MANDT
             M1                  =  ZLT_MITA-M1
    *         X_M1                = ' '
    *         _SCOPE              = '3'
    *         _SYNCHRON           = ' '
    *         _COLLECT            = ' '
    ENDCASE.
    endmodule.                 " USER_COMMAND_9000  INPUT
    *&      Module  user_cmd_9000  INPUT
    *       text
    module user_cmd_9000 input.
      If sy-ucomm = 'OK_CANCEL'.
      LEAVE PROGRAM.
      ENDIF.
      IF sy-ucomm = 'OK_EXIT'.
          LEAVE PROGRAM.
      ENDIF.
    endmodule.                 " user_cmd_9000  INPUT

  • F4_FILENAME in search help in screen painter

    Hello gurus,
    I want to design a screen in which the text input field is used to get file name. For that i need to enable file search in local folders and drives with f4 key press. I wish to use the functionality of function module 'F4_FILENAME" in screen painter. How can i do that?
    I tried creating search help for RLGRAP structure. It compiles fine but gives the message 'No inout for selection'.
    What should i do?

    Thank you all,
    The problem has been solved.
    I am posting the final code.
    1. In se38, i created program zprogram.
    2. In se51, i created a screen for the program zprogram.
    3. In layout, i took 2 buttons and one input/output field.
    1st button for import and 2nd button for exit.
    4.In flow logic-
    i wrote the follwing code.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_100.
    PROCESS AFTER INPUT.
    PROCESS ON VALUE-REQUEST.
    FIELD FILENAME1 MODULE F4_FILE_SEARCH.
    5. IN THE MAIN PROGRAM
    i wrote the following code-
    REPORT ZPROGRAM.
    DATA: FILENAME1 TYPE RLGRAP-FILENAME,
               OK_CODE TYPE SY-UCOMM.
    CALL SCREEN 100.
    MODULE F4_FILE_SEARCH INPUT.
    OK_CODE = SY-UCOMM.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
        FIELD_NAME         = 'FILENAME1'
    IMPORTING
        FILE_NAME           = FILENAME1
    ENDMODULE.
    MODULE STATUS_100 OUTPUT.
    CASE OK_CODE.
    WHEN 'IMPORT'.
    MESSAGE 'THE FILE IS RECIEVED' TYPE 'I'.
    WHEN 'CANCEL'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.
    I REFERRED TO THE DEMO PROGRAM MENTIONED
    IN OTHER POST
    NAME OF THE DEMO PROGRAM IS - DEMO_DYNPRO_F4_HELP_MODULE

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

  • Question on Search Help and Authorization Check for Sales Order Type

    Question 1:
    When I go to VA01 and click the search help, it shows only order type that are not blocked.
    However, when I have sales order type in select-options of a Z program,
    S_AUART FOR VBAK-AUART
    I click on the search help, it gives all the sales order types. How can I have a list with unblocked sales order type only?
    Question 2:
    I want to check whether a use can extract data from a sales order type (e.g. OR and RE)that he/she authorized to use.
    I have include the following in my program:
    AUTHORITY-CHECK OBJECT 'AUART'
    ID 'AUART' FIELD 'OR'.
    It always returns SY-SUBRC = 12.
    But order type 'OR' is granted to the user (he/she can create order with type OR in VA01)
    Please kindly give me some ideas, thanks.

    hi,
    ad1
    use following code:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR auart.
      PERFORM auartGet.
    FORM auartGet.
        CALL FUNCTION 'RV_HELP'
             EXPORTING
                  KEY            = VKORG
                  KEY2           = VTWEG
                  KEY3           = SPART
                  KEY4           = '0'
                  NUMBER         = '008'
                  FIELD_IN       = AUART
             IMPORTING
                  FIELD          = AUART.
    ENDFORM.
    ad2.
    example:
       AUTHORITY-CHECK OBJECT 'V_VBAK_AAT'
             ID 'AUART' FIELD 'OR'
             ID 'ACTVT' FIELD '01'. "01-create order, 02-change, 03 display
    check sy-subrc eq 0.
    regards,darek

  • 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

  • Not able to get the data in custom search help.

    Hi ,
    sorry was not aware of how to post a new thread.
    I am working on web UI and i need help asap.
    I want f4 help whose value depends on the other fields drop down.somhow i managed to get the values in local table and passed it to static attribute of the z class ZL_CRM_UIU_ZZORDERADM_H0201_G.
    in this z class i have redefined a method IF_BSP_WD_CUSTOM_F4_CALLBACK~RETRIEVE_CUSTOM_VALUES.
    which returns a table CT_RESULTS_TAB of type as f4.i have taken key n values in this table too.but the below code should populate the value in the field.but m not getting the values.
    move 'STRUCT.ZZORDERADM_H0201' to ls_map-context_attr.    "#EC NOTEXT
      condense ls_map-context_attr no-gaps.
      ls_map-f4_attr = 'KEY'.
      append ls_map to: lt_outmap.
      lr_entity ?= me->collection_wrapper->get_current( ).
      if lr_entity is bound.
        move 'STRUCT.ZZORDERADM_H0201' to lv_controller_key.
        call method cl_bsp_wd_reference_tool=>set_reference
          exporting
            iv_remove_existing = abap_true
            iv_controller_key  = lv_controller_key
            iv_controller_ref  = lr_entity.
        concatenate '\''' lv_controller_key '\''' into ls_map-context_attr.
         ls_map-f4_attr = if_bsp_wd_custom_f4_callback=>gc_key_ref.
        append ls_map to lt_inmap.
      endif.
      create object rv_valuehelp_descriptor
        type
          cl_bsp_wd_valuehelp_f4descr
        exporting
          iv_help_id                  = '(ZL_CRM_UIU_ZZORDERADM_H0201_G)'       
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap
          iv_trigger_submit           = abap_true.
    can you please help me??

    To Implement Search help for UI field same GET_V method need to implement, no need to implement GET_P method.
    Initially we must have one search help in SE11
      DATA:
    lv_index  TYPE string,
    ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
    lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
    lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
    lv_index = iv_index.
    ls_map-context_attr ='STRUCT.YYSURVEY_ID' .               "#EC NOTEXT
    ls_map-f4_attr = 'SURVEYID'.                              "#EC NOTEXT
    APPEND ls_map TO: lt_inmap,lt_outmap.
    ls_map-context_attr = '\''BUS2000116\''' ."#EC NOTEXT
    ls_map-f4_attr = 'object_type'.                               "#EC NOTEXT
    APPEND ls_map TO: lt_inmap.
    CREATE OBJECT rv_valuehelp_descriptor
    TYPE
    cl_bsp_wd_valuehelp_f4descr
    EXPORTING
    iv_help_id                  = 'CRM_SURVEY_ID'      'SE111 search help name
    iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
    iv_input_mapping            = lt_inmap
    iv_output_mapping           = lt_outmap.

  • SY-TABIX within a search help exit...

    Hallo all,
    I tried to find an answer in earlier postst, but did not succeed, therefore this message.
    I have built a customtabel with several columns. For one of the columns I have built a custom search help, including some coding in the search help exit. In this coding I want to do a different selection based on the value in another column (BUKRS) of the same table. Do you understand what I mean?
    The trick is to retrieve the right value of in the column BUKRS in the same line of the table, at the moment I am pushing F4 for another column.
    And I dont know how to do this. I dont have the right SY-TABIX value, so this is not helping.
    Does anybody have an idea as how to tackle this?
    Kind regards,
    Erik

    Hello Francois & Holger,
    Thanks for the reply, but Iu2019m calling this searh help from the transaction SE16 itself, so I donu2019t have my own table control. I am also using the search help in another situation (from a custom-made screen) and here I can pass on the value via a parameter, but this is not working in the case I described.
    So the SY-STEPL is not working too....
    Kind regards,
    Erik

  • Search Help not getting displayed

    Hi ,
    I have included my own Search Help ZSH to Standard Search Help MAT1 which is related to field MATNR , in the following path..
    In MAT1->MAT1_A, I have INCLUDED my Search Help.
    I have tested it in SE11, it's working fine.
    But, in VA01 screen when I press F4 on the MATNR field only 9 Search Helps are displayed, and my Z-Search Help is not getting displayed.
    What additional settings should I do for the display of my Z-Search Help?
    Thanks in advance,
    Shivaa...

    Also look at this thread Search help enhancement - VA01
    Regards,
    Raymond

  • Search Help for Vendor Feild not getting populated in the Screen Element

    Hi Everyone,
    In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
    The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
    Now that the search help exists and I can drill down the values too but when i select/choose any value,  that value is not getting populated in Screen feild.
    is there any validation I need to do for this.
    Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
    Regards,
    Raj

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Search help is  not working

    Hi All,
    when am trying to search some ids using search help it is showing all ids.
    For Ex: i want to search which ids starts with 'A', am give 'A*' but it is showing all ids.
    Thanks in Advance

    {FUNCTION /VIRSA/ZVIRFFOWNER.
    ""Local interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     REFERENCE(SHLP) TYPE  SHLP_DESCR_T
    *"     REFERENCE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
    EXIT immediately, if you do not want to handle this step
      IF CALLCONTROL-STEP <> 'SELONE' AND
         CALLCONTROL-STEP <> 'SELECT' AND
         " AND SO ON
         CALLCONTROL-STEP <> 'DISP'.
        EXIT.
      ENDIF.
    STEP SELONE  (Select one of the elementary searchhelps)
    This step is only called for collective searchhelps. It may be used
    to reduce the amount of elementary searchhelps given in SHLP_TAB.
    The compound searchhelp is given in SHLP.
    If you do not change CALLCONTROL-STEP, the next step is the
    dialog, to select one of the elementary searchhelps.
    If you want to skip this dialog, you have to return the selected
    elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
    either to 'PRESEL' or to 'SELECT'.
      IF CALLCONTROL-STEP = 'SELONE'.
      PERFORM SELONE .........
        EXIT.
      ENDIF.
    STEP PRESEL  (Enter selection conditions)
    This step allows you, to influence the selection conditions either
    before they are displayed or in order to skip the dialog completely.
    If you want to skip the dialog, you should change CALLCONTROL-STEP
    to 'SELECT'.
    Normaly only SHLP-SELOPT should be changed in this step.
      IF CALLCONTROL-STEP = 'PRESEL'.
      PERFORM PRESEL ..........
        EXIT.
      ENDIF.
    STEP SELECT    (Select values)
    This step may be used to overtake the data selection completely.
    To skip the standard seletion, you should return 'DISP' as following
    step in CALLCONTROL-STEP.
    Normally RECORD_TAB should be filled after this step.
    Standard function module F4UT_RESULTS_MAP may be very helpfull in this
    step.
      IF CALLCONTROL-STEP = 'SELECT'.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    STEP DISP     (Display values)
    This step is called, before the selected data is displayed.
    You can e.g. modify or reduce the data in RECORD_TAB
    according to the users authority.
    If you want to get the standard display dialog afterwards, you
    should not change CALLCONTROL-STEP.
    If you want to overtake the dialog on you own, you must return
    the following values in CALLCONTROL-STEP:
    - "RETURN" if one line was selected. The selected line must be
      the only record left in RECORD_TAB. The corresponding fields of
      this line are entered into the screen.
    - "EXIT" if the values request should be aborted
    - "PRESEL" if you want to return to the selection dialog
    Standard function modules F4UT_PARAMETER_VALUE_GET and
    F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
      IF CALLCONTROL-STEP = 'DISP'.
      PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
                              CHANGING SHLP CALLCONTROL.
        data: begin of i_idowner,
                zvirffid like /virsa/zvirffids-zvirffid,
                zvirffowner like /VIRSA/zvirffids-zvirffowner,
              end of i_idowner.
        data: wa_shlp  TYPE SHLP_DESCR_T,
              iface like DDSHIFACE occurs 0 with header line.
       authority-check object 'GRCFF_0002' id 'YACTVT' field 'OWNR'.
       if sy-subrc = 0.
        select distinct zvirffowner into i_idowner from
           /VIRSA/ZVIRFFIDS.
          record_tab = i_idowner.
          append record_tab.
          clear: record_tab, i_idowner.
        endselect.
       else.
         select distinct zvirffrole into i_rolemonapvr from
            /VIRSA/ZFFROLES.
            where zvirffowner = sy-uname.
           record_tab = i_rolemonapvr.
           append record_tab.
           clear: record_tab, i_rolemonapvr.
         endselect.
    endif.
        EXIT.
      ENDIF.
    ENDFUNCTION.}

Maybe you are looking for

  • IPhone Battery Drain, 7.1.2, I Have A FIX!

    Hello everyone!  My name is Gabriel Chen and my iPhone has been having trouble with battery draining, and overheating.  I'm here to tell you how to fix it.  This is completely different from the rest of the posts because I've discovered something int

  • Export to Excel Formatting Lost

    I've got a CR designed such that the report prints out a separate page for each grouping of data bay a certain data field. The Crystal format and PDF format look beautiful and the paging is perfect.  Yet when I export to Excel it all runs together an

  • Download file from AL11 into CSV to load MD into BPC

    Hi All I have an issue in downloading file from AL11 which is in the form of CSV. 1) I have exported the masterdata for Costcenter using a Open hub. 2) The file is residing at the app server AL11 in the form of CSV. 3) I want to down load the file in

  • How do you flip or reverse scenes??

    i just got my 1st mac and love it. im trying to use imovie for first time and cant figure out how to take a scene or clip and have it play in reverse. for instance, if i have a scene where im walking and i jump off a wall, i want to edit it so i can

  • Seeking for a job abroad

    Hi, I'm a Technical Supervisor, Bid preparator, SCADA developer and a certified Instrumentation technician with 3years experience in labview programming. Special Skills: -SCADA/PLC programming (Siemens S7 series,NI LabView,Allen Bradley RS Logix,OPTO