Search help exit while user double click

Hi,
As it was done earlier but while test facing some issue,Double clicked value from the output is not returned to input screen whatever thevalues only last value is returning to the screen
please ooverview some of my code,
IF callcontrol-step = 'DISP' or
    callcontrol-step = 'SELECT' or "or "AND
   callcontrol-step = 'RETURN'.
*  EXIT.
   SELECT *
   from /ain/dm_loct
   into table lt_loct.
   IF sy-subrc eq 0.
     READ TABLE shlp-INTERFACE into ls_interface INDEX 1.
     if ls_interface-shlpfield = lc_gln. "'GLN'.
       lv_cp_gln = ls_interface-value.
     ENDIF.
     loop at lt_loct INTO ls_loct.
       CALL FUNCTION '/AIN/UI_MAPPED_LOC_ID_GET'
         EXPORTING
           IV_LOC_GUID = ls_loct-loc_guid
           IV_ID_TYPE  = lc_fmcg "'FMCG'
         IMPORTING
           ET_VALUE    = lt_value.
*         ET_RETURN   =
       READ TABLE lt_value into ls_value with key element = lc_gln.
*    'GLN'.
       if sy-subrc = 0.
         ls_loc_gln-GLN     = ls_value-element_value.
         ls_loc_gln-locdesc = ls_loct-locdesc.
         APPEND ls_loc_gln to lt_valuex.
       endif.
       REFRESH lt_value.
     ENDLOOP.
     endif.
*-- Mape  output data
if callcontrol-step = 'DISP' OR
    callcontrol-step = 'SELECT'.
       IF lv_cp_gln = '' AND lt_valuex IS NOT INITIAL.
         CALL FUNCTION 'F4UT_RESULTS_MAP'
           EXPORTING
*           SOURCE_STRUCTURE   =
             apply_restrictions = gc_true "'X'
           TABLES
             shlp_tab           = shlp_tab
             record_tab         = record_tab
             source_tab         = lt_valuex
           CHANGING
             shlp               = shlp
             callcontrol        = callcontrol
           EXCEPTIONS
             illegal_structure  = 1
             OTHERS             = 2.
*      endif.
*        exit.
       Else.
         refresh: record_tab[],lt_final.
         LOOP at lt_valuex into ls_loc_gln where gln cp lv_cp_gln.
           ls_loc_glnx-GLN =    ls_loc_gln-gln.
           ls_loc_glnx-locdesc = ls_loc_gln-locdesc.
           APPEND ls_loc_glnx to lt_final.
         ENDLOOP.
         IF sy-subrc eq 0 and lt_final is NOT INITIAL.
           CALL FUNCTION 'F4UT_RESULTS_MAP'
             EXPORTING
*             SOURCE_STRUCTURE   =
               apply_restrictions = gc_true "'X'
             TABLES
               shlp_tab           = shlp_tab
               record_tab         = record_tab
               source_tab         = lt_final
             CHANGING
               shlp               = shlp
               callcontrol        = callcontrol
             EXCEPTIONS
               illegal_structure  = 1
               OTHERS             = 2.
         else.
         ENDIF.
         IF record_tab[] is INITIAL.
           message 'No values Exist' type 'S'.
         ENDIF.
       endif.

sorry only first value is going to input screen

Similar Messages

  • T-code PA30(SAP HR) search help exit problem.

    Hi Experts ,
    I have a requirement to restrict/show particluar Wage Types in PA30 t-code on basis a  company code of a given the employee (PERNR).
    The field PERNR/Company code are not there in the parameters or selection method of the elementary search help H_T5W3A(PA0151-LGART field) .
    I have managed to add the field pernr to the parameters of this elementary serach help H_T5W3A and also given it as a importing parameter in the custom search help exit FM.
    When i debug the PERNR/Company code don't get populated in the FM parameters.
    I need this PERNR/Comp code to be poulated in order for the search help entries to be restricted as this is the requirement.
    Please tell me what step i am missing here.
    Any other workarounds for this requirement.

    Hi,
    Adding an importing parameter just provides the user to restrict the search by entering the field value. For this you need not write a search help exit. You only need to join the tables with the fields properly in the search help. However if the Wage types need to be populated as per the company code and if you have included the company code as an importing parametr, then everytime the user clicks on the F4 help for Wage type, he "has" to enter the company code in the pop up that appears for selection criteria, otherwise how would the search help know the value that you have entered for company code.
    Without entering the company code in the pop up that would appear to restrict the search, the search help won't work as there won't be any other way to make it aware of the value entered.

  • Modify another field value in search help exit.

    While creating the Sales Order, the user does an f4 on ship to party to determine the sold to party ( search help exit ), now I have the values of both the Ship to customer and Sold to customer in the search help exit, but I can update only the ship to field of the sales order, do you know how I can modify the sold to value on the screen.
    I tried setting up the parameter id 'VAG' in the search help exit with the determined value, but this value is not getting copied in the Sold to party field once the search help is executed.
    The other option which is left is export to memory and import to memory in another user exit of VA01. Is there any other alternative? Also which program do I need to do the import of memory so that sold to party is displayed on the initial before saving the document ?
    Ajay

    Hi,
    Yes..Try calling from the search help exit..
    You have to pass the program name and screen number..
    In the internal table parameter DYNPFIELDS..
    Pass the fieldname and fieldvalue...
    Thanks,
    Naren

  • Help on Search Help Exit

    Hi all,
    In transaction code IW51: Create Notification.
    Equipment Field is on Main screen and Ship-to Party is on Subscreen. I have created a new elementary Search help for Ship-to party and attached to collective search help DEBI in which I am displaying one column of equipment number attached to ship-to party.
    Requirnment is when user hits F4 on Ship-to party, all the equipment associated to this ship-to party are displayed,if user clicks on any of equipment number , this has to be filled in equipment field which is on Main screen.
    I think if fields are on same screen it will be filled automatically, but here the equipment is on main screen.
    Please help me if any of you have faced this type of problem.
    Thanks in Advance,
    Vijendra

    Hi,
    If you trying supply value for the equipment field in the main screen, i guess you wouldn`t be able to do it using the search help exit. Rather on the exit you can supply values for the equipment field directly.
    just for eg.  xxxx-equip. = <user selected value>.
    Regards

  • Populate and display internal table results using search help exit...

    I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value.  For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
    Following is the code:
    TYPES:  BEGIN OF t_search,
                   field2 TYPE field2,
                   field3 TYPE field3,
                   field4 TYPE field4,
                   field5 TYPE field5,
                   field6 TYPE field6,
                   field7 TYPE field7,
                   field8 TYPE field8,
                   field1 TYPE field1,
                END OF t_search.
      DATA: it_itab TYPE TABLE OF t_search,
            wa TYPE t_search,
         wa_selopt TYPE ddshselopt,
            wa_fielddescr TYPE dfies.
    ranges: r_field1 for std_table1-field1
    STEP SELECT    (Select values)
        FREE: r_field1.
    **Get the value entered for FIELD1 in search help
        LOOP AT shlp-selopt INTO wa_selopt.
          CASE wa_selopt-shlpfield.
            WHEN 'FIELD1'.
              r_field1-sign = wa_selopt-sign.
              r_field1-option = wa_selopt-option.
              r_field1-low = wa_selopt-low.
              r_field1-high = wa_selopt-high.
              APPEND r_field1.
              CLEAR: r_field1.
          ENDCASE.
        ENDLOOP.
    **Select 'ID' and 'FIELD1' from table into lt_itab
        SELECT id field1
              INTO TABLE lt_itab
                FROM std_table1
                  WHERE field1 IN r_field1.
        IF sy-subrc = 0.
    **Now, based on the particular IDs from lt_itab, I need to select other values
    from other tables which also have 'ID' as the key.
           SELECT std_table2~field2
                std_table2~field3
                std_table3~field4
                std_table3~field5
                std_table3~field6
                std_table4~field7
                std_table4~field8
                std_table1~field1
              INTO CORRESPONDING FIELDS OF TABLE it_itab
              FROM std_table2
                         INNER JOIN std_table3 ON
                                std_table3mandt = std_table2mandt AND
                                std_table3id = std_table2id
                         INNER JOIN std_table4 ON
                                std_table4mandt = std_table2mandt AND
                                std_table4id = std_table2id
                         INNER JOIN std_table1 ON
                                std_table1mandt = std_table2mandt AND                                           std_table1id = std_table2id
              WHERE
                    std_table1~field1 IN r_field1.
    'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
    STEP DISP     (Display values)
    **Then I need to gather all the results in my internal table it_itab and display
    in search help results for the value of FIELD1 entered by the user in the search help.
        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter   = 'FIELD1'
            fieldname   = 'FIELD1'                          
          TABLES
            shlp_tab    = shlp_tab                                   
            record_tab  = record_tab
            source_tab  = it_itab
          CHANGING
            shlp        = shlp
            callcontrol = callcontrol.
    I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
    Any guidance will be appreciated and awarded appropriate points.
    Thanks.

    the webdynpro fieldname and the search help input parameter name were made same.

  • SELECT-OPTIONS Values via DYNP_VALUES_READ in a Search Help Exit

    Hi all,
    I appended a standard search help of a standard report with a search help of my own. Now I am trying to retrieve the values the user has entered into the selection screen of the report using the FM DYNP_VALUES_READ in my search help exit FM. It works fine for single values defined by PARAMETERS and for low and high values of SELECT-OPTIONS (so_example-LOW and so_example-HIGH), but I need the entire SELECT-OPTIONS table. I cannot make any changes in the report, so do you have any solutions I could implement in my search help exit FM?
    Many thanks!
    Vladan
    P.S.
    I found several questions on this topic but they either just different enough not to be applicable in my case or the formatting has made the replies useless.

    Most of the time we just copy the standard FM F4IF_SHLP_EXIT_EXAMPLE to a new one and give our own name.
    You can see that on the 12th line there is the following code
    * EXIT immediately, if you do not want to handle this step
      IF CALLCONTROL-STEP &lt;&gt; 'SELONE' AND
         CALLCONTROL-STEP &lt;&gt; 'SELECT' AND
         " AND SO ON
         CALLCONTROL-STEP &lt;&gt; 'DISP'.
         EXIT.
      ENDIF.
    you should comment those line in order for the control to reach the PRESEL step (which is already defined in the SH Exit FM) which is on line 44.
    Most of the time, when someone says they don't hit PRESEL, this is the problem.
    Edited by: ajithkpunnoose on Jan 5, 2012 12:00 PM

  • Help needed in search help exit

    Hi Experts,
       I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab.
    But the problem comes when I go to some other search tab and come to the required search tab the field which I have included is not displayed.
    Please give your suggestions to solve this problem.
    Thanks in Advance,
    Arasu K

    Hi,
          In that case. you can do one thing.
    in your search help, following field will have the value entred by the user.
    SHLP_TAB[1]-INTERFACE[1]-VALUE
    Read this table SHLP_TAB index 1 and do your logic.
    Reward points if useful.
    Regards,
    Niyaz

  • Search Help Exit : Table appears sorted in Search Help!

    Hi All,
    I have implemented a search help exit to show a custom list of objects. Unfortunately, the list gets sorted somewhere in between the search help exit and the actual F4 display.
    Any ideas what I can do tp prevent the sorting?  It's very important that the output list displays in exact order that I have in the exit function module.
    Thanks!
    Roman D.

    while passing the changing parameter CALLCONTROL
    chk while populating the table make sure that
    callcontroltable-sortoff(DDSHF4CTRL-SORTOFF)
    is not 'X'.
    Refer to this link below
    search help exit
    Regds
    Manohar

  • 'Screen Group' in Screen Painter,  & 'Search help Exit'

    Hii All,
    1. What is 'Screen Group' in Screen Painter
    attributes. In which Scenario we will go for it.
      2. What is 'Search help Exit'.
    Please post your messages and guide me in this topic,
    Thanks & Regards,
    John.

    Hi John,
    A Search help exit is something similar to a user exit. Every search help will have an option of attaching a search help exit under the definition tab( when you view the search help from se12).
    For example take a look at the search help VMVA - you will notice a search help exit  SD_F4_SHLP_EXIT_SUBSHLP_CHOOSE attached to it.
    Basically the serah help exit which is nothing but a function module with a predefined interface which gets triggered before a f4 help is displayed. The exit is used to supress or do any other related modification required.
    We have implemented many search help exits and the reason is that we have given a custom interface to our business partners to carry out some transaction on our SAP systems. Though we have given them access to our SAP system we also want to ensure that the business partner does not view any additional data in the system. We have controlled this via many ways like using z objects, using authorizations etc. Still once the user has authorizations to any transaction he or she can do a f4 help on any field and see the data which he should not be able to do. So we have implemented search help exits to supress the drop down only for the business partners. We control this based on the unique login id's we have given to them.
    So in short it is used to modify the behaviour of F4 help, mostly used to supress the drop down.
    It has to be defined in a specific format.
    Hope this helps.
    Cheers
    VJ

  • Search help exit for CSH_T003 not working in FB60

    Hi. We need to restrict document types per transaction code.
    I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
    I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
    Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi ,
    If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
    Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
    Thanks
    Ron
    Edited by: Ron on Dec 2, 2009 8:45 PM

  • Use of search help exit

    use of search help exit with an example

    Hi,
    A search help describes the standard input help process. In exceptions it could be necessary to deviate in some points from this standard. Such a deviation from the standard can also be implemented with a search help exit.
    The input help process should look as much the same as possible throughout the entire system. Search help exits should therefore only be used for exceptions.
    A search help exit is a function module that has a predefined interface. A search help exit is called at certain times by the help processor. The administrative data of the help processor are passed to the search help exit using the interface.
    You can store your own program logic that manipulates this administrative data in the search help exit. Individual steps of the input help process can be skipped with a search help exit.
    for example
    Search help exit F4UT_OPTIMIZE_COLWIDTH adjusts the column width in the hit list to the contents of the column. It makes sense to use this search help exit when the columns of the hit list have to be made very wide for extreme cases (e.g. for name fields), but normally they will contain much smaller values.
    Each search help exit must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE (is used as pattern for all the search help exits to be created). You can find more information about the interface in the documentation for this function module.
    Calling the Search Help Exit
    If a search help exit is assigned to a search help, the help processor calls it at the following times:
    Before Displaying the Dialog Box for Selecting the Required Search Path.
    It is only called for collective search helps. Using the search help exit, the set of elementary search helps available can for example be restricted depending on the context.
    Before Starting the F4 Process for the Elementary Search Help
    The call is triggered independent of whether the dialog window for entering the search conditions appears or whether the selection is executed immediately (for example, because in the Hot key of the elementary search help Immediate value display is set).
    Before Displaying the Dialog Box for Entering Search Conditions.
    You can either influence the dialog for entering search conditions or skip it altogether here. You can also influence how the selection screen looks. The call is triggered only if there is no direct selection (that is, if in the Hot key of the elementary search help Immediate value display is not set).
    Before Selecting Data.
    The data selection can be partly or completely copied from the search help exit. This can become necessary if the data selection cannot be implemented with a SELECT statement for a table or a view.
    Before Displaying the Hit List.
    You can influence the display of the hit list in this step with the search help exit. You can reduce the number of values displayed here. For example, you can display only values for which the person calling the input help has authorization. You can also copy the complete hit list from the search help exit.
    Before Returning the Values Selected by the User to the Input Template.
    It could be advisable to intervene at this time if control of the further transaction flow should depend on the value selected. A typical example is setting set/get parameters.

  • Issue Search Help Exit for Material Group

    Dear Expertsl,
    I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
    1)  I developed custom table to hold the Invalid material groups
    2) Developed search help as same as in the bellow link
    link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
    3) Before the statement
        SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
          WHERE matkl IN t_matkl
    i selected the Invalid materials from the custom table into an internal table
    4)    i am restricting the entries with the following code.
    LOOP AT a_tab.
    only move values that meet the requirements
    after you convert to upper case.
         MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
         TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
            MOVE      a_tab-wgbez        TO a_tab-wgbez_test.
            TRANSLATE a_tab-WGBEZ_test   TO UPPER CASE.
            MOVE      a_tab-wgbez60      TO a_tab-wgbez60_test.
            TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
          IF a_tab-wgbez60_test IN i_wgbez60 AND
             a_tab-wgbez_test   IN i_wgbez   AND   
             a_tab-matkl        IN i_matkl.
            ADD 1 TO findex.
            MOVE a_tab-matkl   TO temp_tab-matkl.
            MOVE a_tab-WGBEZ   TO temp_tab-WGBEZ.   
            MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
            IF findex > callcontrol-maxrecords.
              MOVE 'X' TO callcontrol-maxexceed.
              EXIT.
            ENDIF.
            READ TABLE i_invalid INTO w_invalid
            WITH KEY matkl = a_tab-matkl.
            IF sy-subrc NE 0.
              APPEND temp_tab.
            ENDIF.
            CLEAR temp_tab.
          ENDIF.
        ENDLOOP.
    This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
    But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
    Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials  groups from now onwards.
    I would appropriate if any one can helping this regard.
    Thanks in advance.,
    Regards,
    Venkat

    Hi Venkat,
    You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
    For example, your screen field is MARA-ZXXXX, screen 0100 and search help :  ZSEARCH_HELP
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname                   = 'MARA'
          fieldname                  = 'ZXXXX'
          searchhelp               = 'ZSEARCH_HELP '
          dynpnr                      = '0100'
          dynprofield                =  'MARA-ZXXXX'
    TABLES
       return_tab                = lt_returntab.
    This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
    Regards
    Deepa.

  • Customer field account assignment - F4 - search help exit

    Hi all,
    I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
    I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
    I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
    CALL FUNCTION 'DYNP_VALUES_READ'
            EXPORTING
              dyname               = lc_dyname_1
              dynumb               = lc_dynumb_1
              translate_to_upper   = 'X'
            TABLES
              dynpfields           = li_fields_filter
    I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
    Does anybody know how I can include de filter values of my search screen in my search ?
    Thanks in advance,
    Kristof

    Hi
    Which SRM version are you using ? What's your detailed requirement ?
    <b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
    <u>Please go through these function modules.</u>
    *--- Get the user-entered fieldname
    <u>    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
    *--- Map the Results
    <u>    CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
    <b>Other related links -></b>
    Re: Search helps - CASE sensitive
    Re: Search Help - format problem
    Hope this will help.
    Regards
    - Atul

  • How to concatenate fields in Search help exit

    Hi,
    My requirement is i have to create a search help for a field in cj20n transaction.
    when i press f4 on that field i should get a popup of 4 fields from custom table,when user selects any 1 row,
    first 3 field values should be concatenated and appear in screen field . in search hlp i added 1 more field so that i can concatenate
    all 3 field values and place in it.I can use  search help exit so i can concatenate but there are steps like selone,presel etc i am not able to understand .
    I saw some examples in wiki, but not able to understand what to do for my requirement.
    regards.
    Edited by: vnamamala on May 27, 2010 12:22 PM

    You would use the step 'SELECT' to control the data selection into an internal table.  You would use the step 'DISP' to map the records in the internal table to the search help record table.  In your case, I would already have a field in the internal table with the values concatenated together prior to the hit list display (do this in SELECT step) which is not displayed in the hit list but is flagged as the EXPORT field in the search help definition; otherwise just put the field at the end of the hit list. 
    Map your results in DISP as follows:
    *   Map the internal table to RECORD_TAB
        CALL FUNCTION 'F4UT_RESULTS_MAP'
             TABLES
                  SHLP_TAB          = SHLP_TAB
                  RECORD_TAB        = RECORD_TAB
                  SOURCE_TAB        = GT_DOCUMENT
             CHANGING
                  SHLP              = SHLP
                  CALLCONTROL       = CALLCONTROL
             EXCEPTIONS
                  ILLEGAL_STRUCTURE = 1
                  OTHERS            = 2.
        CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
             TABLES
                  SHLP_TAB    = SHLP_TAB
                  RECORD_TAB  = RECORD_TAB
             CHANGING
                  SHLP        = SHLP
                  CALLCONTROL = CALLCONTROL.

  • Search Help Exit - Dependent Search Help

    Hello All
    My question is related to Sarch Help in SE11.
    I have created a Search Help and implemented a Search help Exit.In My search help i have PLANT  and LGORT(storage loc.).
    and i have taken the Search help of PLANT and LGORT from T001L table( H_T001W and H_T001L).
    Now on the SELECTION SCREEN of SEARCH HELP ,based on PLANT selected, the Storage Location should come with filtered records based PLANT.
    A kind of Dependent Seach help.
    I have Checked that in TABLE T001L, when i do F4 on PLANT and then if i do F4 on LGORT it comes with the filtered records.
    Kindly Help.
    Points will be Awarded.

    *Below is the Code:-
    IF callcontrol-step <> gc_selone AND  "SELONE
         callcontrol-step <> gc_select AND  "SELECT
         callcontrol-step <> gc_disp   AND  "DISP
         callcontrol-step <> gc_presel.    "PRESEL
        EXIT.
      ENDIF.
      "Checking Call Control Step is "PRESEL" For doing Validation and
      "changing the field Label before displaying the Scren.
      IF callcontrol-step = gc_presel."'PRESEL'.
        ASSIGN shlp TO <fs_shlp1>  .
        READ TABLE <fs_shlp1>-interface ASSIGNING <fs_shlp2> WITH KEY f4field = gc_x."X
        IF sy-subrc = 0.
          <fs_shlp2>-f4field = gc_space."' '.
        ENDIF.
    *Renaming Internal Characteristic to Characteristics Name
        LOOP AT <fs_shlp1>-fielddescr ASSIGNING <fs_shlp3>.
          IF <fs_shlp3>-fieldname = gc_flag."Renaming "FLAG" to "NO ZERO STOCK BATCH"
            <fs_shlp3>-fieldtext =  text-001.
            <fs_shlp3>-reptext   =  text-001.
            <fs_shlp3>-scrtext_s =  text-002.
            <fs_shlp3>-scrtext_m =  text-001.
            <fs_shlp3>-scrtext_l =  text-001.
          ELSEIF <fs_shlp3>-fieldname = gc_lgort."Renaming "STORAGE LOCATION".
            <fs_shlp3>-fieldtext =  text-005.
            <fs_shlp3>-reptext   =  text-005.
            <fs_shlp3>-scrtext_s =  text-006.
            <fs_shlp3>-scrtext_m =  text-005.
            <fs_shlp3>-scrtext_l =  text-005.
          ENDIF.
        ENDLOOP.*Validation for PLANT
        CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
          EXPORTING
            parameter_required = gc_werks "Field to be mandatory('WERKS')
          TABLES
            shlp_tab           = shlp_tab
            record_tab         = record_tab
          CHANGING
            shlp               = shlp
            callcontrol        = callcontrol.
      ENDIF.
      IF callcontrol-step = gc_select.   "SELECT*Reading all the Values given at screen.
        PERFORM read_shlp USING shlp.
        IF ( r_atwrt  IS NOT INITIAL  OR r_atinn IS NOT INITIAL ).*If user has only given CHARACTERISTICS and VALUE as selection criteria.
          PERFORM char_value_fetch.
        ELSEIF r_matnr IS NOT INITIAL OR r_werks IS NOT INITIAL OR r_lgort IS NOT INITIAL.*If user has only given any value other than CHARACTERISTICS and VALUE as selection criteria.
          PERFORM fetch_other_details.
          IF gv_flag = gc_x. "'X'
            DELETE gt_final WHERE clabs = gc_labst.
            DELETE gt_final WHERE cinsm = gc_labst.
          ENDIF.
          EXIT. "Don't process STEP DISP additionally in this call.
        ENDIF.*Prepare Final Table
      ENDIF.
      IF callcontrol-step = gc_disp. "DISP*Refreshing the RECORD_TAB and Populating it with values of GT_FINAL
        REFRESH:record_tab.
        callcontrol-maxexceed = gc_x. "X*This Method Fills the RECORD_TAB from GT_FINAL to display.
        CALL FUNCTION 'F4UT_RESULTS_MAP'
          TABLES
            shlp_tab          = shlp_tab
            record_tab        = record_tab
            source_tab        = gt_final
          CHANGING
            shlp              = shlp
            callcontrol       = callcontrol
          EXCEPTIONS
            illegal_structure = 1
            OTHERS            = 2.
        IF sy-subrc <> 0.* Implement suitable error handling here
        ENDIF.*Refreshing GT_FINAL
        REFRESH: gt_final,r_matnr,r_atwrt,r_atinn,r_klart,r_werks,r_lgort,shlp_tab,gt_mchb,gt_mara,gt_makt,gt_ausp,gt_mcha.
        CLEAR:gv_flag.
      ENDIF.

Maybe you are looking for

  • Full screen video on TV via mini DV to TV adapter

    Hello guys, I am trying to configure my iMac with TV to be able to watch some movies, but I am stuck as I cannot find the option that allows to do it. Here is what I want to do: - I want my family watch a movie stored on my Mac's hard drive. - I want

  • Can't deploy to catalogue in 10gR2

    Hi all, I have built 3 dimensions and a cube (all rolap) in a schema, with a set of 4 mappings to source each of them from a table in a separate schema. The mappings are basic table -> dim.operator and table -> cube operator. I deployed and ran every

  • Freight provision in purchase order

    Hi, I have 2 cases. case1 the price in purchase info record is a lumpsum of material cost + freight case2 the price in purchase info record is only material cost May I know if case 1, I should provide for freight? I only need to provide for case 2 in

  • Photoshop CS 3 error message?

    I tried googling this error message and came up empty.  Anyone seen it? (first one).  Thought Id ask about the others as well. thank you in advance! - Adobe Photoshop CS3[613]    failed to send request 0: -1 - [0x0-0x3d03d].com.adobe.Photoshop[613]  

  • How do you type a non-breaking space in Photoshop?

    I'm using Photoshop CC on Mavericks. In Apple Pages it's option+spacebar, but that doesn't seem to work in Photoshop.