How-to map multiple explicit search help values to context attributes?

Hi,
I have a custom explicit Search Help with multiple attributes set as export and uses search help exit for data retrieval. I have set this Search Help for one of the context attribute that is binded to one of the input fields on view.
Now, is it possible to dynamically map other export attributes from this Search Help to other Context attributes?
I know this works for Input helps that are directly derived from check tables but not sure how to do it for explicit Search Helps.
Can anyone please confirm and let me if this is possible? If yes, then can you please share an example or describe how to do it?
Thanks and Regards,

Hi Srinivas,
Check this ..Search help can be dynamically assigned to a field.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1'                  " Your attribute Name
value_help_mode = '121'    " Valid value help mode
value_help = 'Z187442'.      " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131
Also refer this..
Re: How to put dynamic search help in web dynpro ABAP.
Cheers,
Kris.

Similar Messages

  • LSMW - ME21 How to map multiple line items

    Hi all,
    I am using LSMW tool with batch input recording technique to create POs via ME21. I have defined source structures as HEAD with POSI as its subordianted structure. This settings worked perfectly for one single item line. However, it created a new transaction for each line item in the file. I did some searches in this forum and I noticed that someone suggested to dynamically set the line positon at the processing points. I tried a few times and could not get it work. Anyone knows how to map multiple items in LSMW, please help.
    Here is part of my recording:
    EKPO-EMATN(01)                 000995NM
    EKPO-MENGE(01)                                 1      RM06E-EEIND(01)                2006.04.27             EKPO-NETPR(01)                             10         EKPO-WERKS(01)                 0001                   EKPO-LGORT(01)                 0001      
    My input file looks like this:
    H  77777400  NB2006.05.140001001T
    L000995NM00000000052006.05.15         1000010001CAON
    L000998NM00000000052006.05.15         1000010001CAON
    H  77777400  NB2006.05.140001001T
    L000995NM00000000052006.05.15         1000010001CAON
    Thanks!

    Hi
    If you have used a b.i. recording, all abap code is inserted in std table /SAPDMC/LSGBDC.
    The program to generate the B.I. session is automatically created when you run "Create Batch Input Session" step.
    What means the numbers of items you can insert depend on the totals of items you have used while creating your b.i. recording:
    If you have simulated to insert only one item, you'll be able to insert only one item in your project.
    So you should simulate to insert severals items not only one, but I think it should be better you use a std method to create PO by LSMW:
    - Std B.I: object 0085, method 0001 (RM06EEI0);
    - BAPI   : object BUS2012, method CREATEFROMDATA1
    Max

  • Web dynpro for abap how to create a customize search help in alv column

       hi:
          Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?
          Are there specific examples ?
          thanks!!

    HI:
       I want to created a freely programed help which include date&time,and put help value to alv column.
      I have created a freely programed help in web dynpro for abpa application,I refer:
      **************** - WebDynpro for ABAP
      but have a problem!
       If you focus on the the input field in the first row, you get the value help
    However if  I go to the second row and focus on the same input field in this column, I don't get the value help:
    What is a good way to solve similar problems?
    thanks

  • How to pass parameter to search help

    Hi,
    I have created a search help( zv_region) for a screen field(region) and assigned that search help( zv_region) to  screen attributes of screen field (region). But i have two fields in my screen. These two fields i am not taking from table or structure. I declared in my module pool program as global fields.
    1. Country
    2. Region.
    I want to filter "region" based on "country". For example if they enter "US" in country field, then they click on search help for region field it needs to populate only all us states.  
    Please advice me how to do that.
    Thanks in advance.

    Hi Sankar,
    I have implemented a functionality similar to yours. Here I have made use of fm F4IF_INT_TABLE_VALUE_REQUEST to populate the values. You first copy this program and run it. You will get the idea.
    *& Report  ZKun_F4HELP1                                               *
    REPORT  ZKUN_F4HELP1                           .
    DATA: BEGIN OF VALUES,
          MATNR TYPE MARA-MATNR,
          MTART TYPE MARA-MTART,
          END OF VALUES.
    DATA: PROGNAME LIKE SY-REPID,
          DYNNUM   LIKE SY-DYNNR,
          DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
          VALUES_TAB LIKE TABLE OF VALUES WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-008.
    PARAMETERS : MATNR_N LIKE MARA-MATNR OBLIGATORY,
                 MTART_N LIKE MARA-MTART.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATNR_N.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = 'MARA'
        fieldname                 = 'MATNR'
      SEARCHHELP                = ' '
      SHLPPARAM                 = ' '
       DYNPPROG                  = PROGNAME
       DYNPNR                    = DYNNUM
       DYNPROFIELD               = 'MATNR_N'
      STEPL                     = 0
      VALUE                     = ' '
      MULTIPLE_CHOICE           = ' '
      DISPLAY                   = ' '
      SUPPRESS_RECORDLIST       = ' '
      CALLBACK_PROGRAM          = ' '
      CALLBACK_FORM             = ' '
      SELECTION_SCREEN          = ' '
    IMPORTING
      USER_RESET                =
    TABLES
      RETURN_TAB                = VALUES_TAB
    EXCEPTIONS
       FIELD_NOT_FOUND           = 1
       NO_HELP_FOR_FIELD         = 2
       INCONSISTENT_HELP         = 3
       NO_VALUES_FOUND           = 4
       OTHERS                    = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      PROGNAME = SY-REPID.
      DYNNUM   = SY-DYNNR.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'MATNR_N'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MTART_N.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                         = PROGNAME
        dynumb                         = DYNNUM
       TRANSLATE_TO_UPPER             = 'X'
      REQUEST                        = ' '
      PERFORM_CONVERSION_EXITS       = ' '
      PERFORM_INPUT_CONVERSION       = ' '
      DETERMINE_LOOP_INDEX           = ' '
      tables
        dynpfields                     = dynpro_values
    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 <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
    select matnr mtart from mara into table values_tab where matnr =
    FIELD_VALUE-FIELDVALUE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        retfield               = 'MTART'
      PVALKEY                = ' '
       DYNPPROG               = PROGNAME
       DYNPNR                 = DYNNUM
       DYNPROFIELD            = 'MTART_N'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      tables
        value_tab              = VALUES_TAB
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 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.
    Regards,
    Kunal.
    <b>Note : you just have to modify this program for country and region fields instead of matnr and mtart.</b>
    Message was edited by: Kunal Kumar

  • Search Help values to Internal table

    Dear Friends,
    Is it possible to export Search Help values to Internal table?
    On screen, when user click on Search button, the SAP standard search help will call (Customer Search). After entering values, some result get displayed and this result need to export to the internal table.
    Thanks in stack
    Nilesh

    Hi:
    try this:
    DATA : wa_shlp TYPE shlp_descr,
               it_records LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    wa_shlp-SHLPNAME = 'MAT0M'.   "one of elementary search help name from mara-matnr.
    wa_shlp-SHLPTYPE = 'SH'.
    CALL FUNCTION 'F4IF_SELECT_VALUES'
         EXPORTING
           shlp                   = wa_shlp
      MAXROWS                = 0
      SORT                   = ' '
      CALL_SHLP_EXIT         = ' '
    IMPORTING
      MAXROWS_EXCEEDED       =
        TABLES
      RECORD_TAB             =
      RECDESCR_TAB           =
          return_tab            = it_records
    LOOP AT it_records.
      WRITE:/ it_records.
    ENDLOOP.
    Follows is how to get the search help name:
    CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
      EXPORTING
        tabname                 = 'MARA'
        fieldname               = 'MATNR'
        langu                   = sy-langu
      NO_CHKTAB_MAPPING       =
      GET_ENTITYTAB           = ' '
       CHANGING
         shlp                    = wa_shlp
      callcontrol             = callcontrol
      EXCEPTIONS
        field_not_found         = 1
        no_help_for_field       = 2
        OTHERS                  = 3
    CALL FUNCTION 'F4IF_EXPAND_SEARCHHELP'
       EXPORTING
         shlp_top = wa_shlp
       IMPORTING
         shlp_tab = shlps.
    好运,
    启明星

  • Search help value restriction in two tables having same value table

    Hi Gurus,
    I have two tables containing same field having same domain with value table. My requirement is to restrict the values in the tables. For example the field contains 4 values:
    1) A
    2) B
    3) C
    4) D
    For table 1, only A and C should be seen in F4 and for table 2, only B and D should be seen. Also if somebody forces  B or D
    in 1st table should not be allowed and the same for 2nd table ( A & C are not allowed ). How to do this using search help exit . Which event should I use. I don't want to create two separate check tables containing only the required values.
    Regards,
    Debopriyo

    Hi Gurus,
    I have two tables containing same field having same domain with value table. My requirement is to restrict the values in the tables. For example the field contains 4 values:
    1) A
    2) B
    3) C
    4) D
    For table 1, only A and C should be seen in F4 and for table 2, only B and D should be seen. Also if somebody forces  B or D
    in 1st table should not be allowed and the same for 2nd table ( A & C are not allowed ). How to do this using search help exit . Which event should I use. I don't want to create two separate check tables containing only the required values.
    Regards,
    Debopriyo

  • Explicit Search Helps Short-Dump in Editable ALV with included structure

    I have an editable ALV grid defined as follows:
      TYPES: BEGIN OF gs_outtab200.
        TYPES: row_indx(4)      TYPE n.
        TYPES: multipurp        TYPE c.
        INCLUDE structure zxrfwc_test.
      TYPES: end of gs_outtab200.
      DATA:
        gt_outtab200             TYPE TABLE OF gs_outtab200,
        wa_outtab200             TYPE gs_outtab200.
    The included structure zxrfwc_test has a component (field) which is defined with a data element that has an explicit search helps associated with it.
    I know that this search help is working properly because it works fine in the program's selection screen.
    But when I invoke the search help from within a column of the ALV itself, I get a short dump with a "GETWA_NOT_ASSIGNED" error.
    I have done plenty of editable ALVs with search helps defined on the data elements and never encountered this problem. 
    Am I hitting this problem because the zxrfwc_test structure is defined within the
    gs_outtab200 structure ??
    If not, what is causing this problem.  (Please note that I have set  ls_fcat-F4AVAILABL = 'X' in the fieldcat routine - this doesn't seem to help at all.)
    Please advise!!!!
    I'm really stuck on this one because it's always worked before when I'm not dealing with a dictionary structure that's included within a larger ALV structure.
    Thanks.

    Hi,
    How you are creating your field catalog?
    Try to create a field catalog in the following way giving reference to your structure. is it possible for you create a DDIC structure as same as
    TYPES: BEGIN OF gs_outtab200.
        TYPES: row_indx(4)      TYPE n.
        TYPES: multipurp        TYPE c.
        INCLUDE structure zxrfwc_test.
      TYPES: end of gs_outtab200.
    * Form f_generate_fieldcatalog                                         *
    * Form generate the field catalog table                                *
    form f_generate_fieldcatalog.
    * Private variable
      data : v_structure like dd02l-tabname.   " Table Name
      v_structure = c_yatt_alv.                      " Structure Name
    * Build the fieldcat according to DDIC structure YATT_ALV:
      call function 'LVC_FIELDCATALOG_MERGE'
        exporting
          i_structure_name       = v_structure
          i_client_never_display = c_x
        changing
          ct_fieldcat            = i_fieldcat[].
    endform.                                 " F_generate_fieldcatalog

  • Transferring Search Help values from ECC 6.0 to SRM 7.0

    Hi SAP experts,
    I have a requirement to display the search help values for a data element in ECC 6.0 into the custom data element that I created on SRM 7.0.
    Is there a BAPI that I can use to retrieve the values for a search help element (for example SH_ANLKA) from the the ECC into SRM?
    Your advise would be greatly appreciated!
    Regards,
    Andrew

    Hi Andrew,
    I have got a similar requirement to fetch the PO details from ECC search help to a new SRM search help. Please help me with the procedure you used for the above scenario.
    Thanks,
    Santosh.

  • How to copy a standard search help to another field

    Hi All,
    I have a BSP screen in that for one input field i need to copy the standard search help for the Business Partner. Could any one guide me how to copy the standard search help for the business partner into the input field in the BSP screen.
    Thanks In advance for the help...
    Thanks,
    SAP SAP

    Hi,
    the BP search is its own web client UI component. For the integration you could check any standard transaction UI component like the BT115H_SLSO, as those contain several partner fields.
    Best Regards,
    Michael

  • How to find an existing search help?

    Hi Friends,
    How to find an existing search help for some certain fields? for example search help "H_TVKO" is for "Help view for Sales Organizations"[for the field VKORG], and search help "MAT1" is for "Find Material Number"[for the field MATNR]...... but how to find these search helps for a certain field?
    Thanks a lot!!

    Hello Qiwei,
    You can find the search help using their table and fields name.
    simply you have to point the cursor on same field for which you want to see search help in SE11.and then in same window search help tab available click on this..
    It will show all search help which is having same field.
    Have a Nice Day.
    Regards,
    Sujeet
    Edited by: Sujeet on Jan 14, 2009 10:41 AM

  • How to remove additional of search help?

    In complex standard of search help S_MAT1 has added the additional of search search help ZTEST_SEARCH, now I wish to remove the additional  of search help ZTEST_SEARCH, but at removal attempt the error stands out: "Because of use in objects of the dictionary it is impossible to spend removal".
    We look magazine of use for additional of search help ZTEST_SEARCH - shows use only in standard of search help S_MAT1. And how to be, how to remove additional  of search help?

    hi,
    try to do the where used list of ZTEST_SEARCH for all the objects, programs, function moduels, exits, screens etc etc....any of the object may be using your search help.......
    hope this helps,
    thanks,
    tanmaya

  • HELP_START: how can i do a search help F4 same as field Group PLNNR in CA02

    Hi all,
       I'm developing a report in which i use two field Group (PLNNR) and Group counter (PLNAL) as same as in CA02: choose a group by F4 and after these two fields are filled with the chosen values in help screen.
       My problem: i would like to do a search help for field Group (PLNNR) as same as in CA02. I have used the Function HELP_START for this purpose, but i can not reach my purpose: i choose a group in dialog help and after the field Group have the chosen value, but the field Group counter (PLNAL) don't have any value.
       I don't know which input values for structure HELP_INFOS will be get a result as same as in CA02?
       Anyone know how i should do to solve my problem, please help me?
      Which input is incorrect (code below), please help me!
    Thanks a lot in advance,
    My Actual input for structure HELP_INFOS as below:
    ls_help-call      = 'V'.
      ls_help-tabname   = 'RC271'.
      ls_help-fieldname = 'PLNNR'.
      ls_help-spras     = sy-langu.
      ls_help-docuid    = 'FE'.
      ls_help-object    = 'F'.
      ls_help-dynpprog  = sy-repid.
      ls_help-report    = sy-repid.
      ls_help-dynpro    = sy-dynnr.
      ls_help-pfkey     = 'NXD'.
      ls_help-dynprofld = 'P_PLNNR'. (My fiel 'Group' in Selection screen)
      ls_help-MENUFUNCT = 'HC'.
      ls_help-fieldlng = '8'.
      ls_help-pov = 'N'.
      ls_help-curow = sy-cucol.
      ls_help-cucol = sy-curow.
      ls_help-selectart = 'A'.
    CALL FUNCTION 'HELP_START'
           EXPORTING
                help_infos   = ls_help
           IMPORTING
                select_value = lv_select_value
           TABLES
                dynpselect   = wt_dselc
                dynpvaluetab = wt_dval.
    Thanks,
    Vinh Vo

    Why do it in more complicated way, while the simplest method is available. You can use :
    PARAMETERS: p_plnnr LIKE rc271-plnnr.
    PARAMETERS: p_plnal LIKE rc271-plnal.
    Give it a try.
    Thanks & regards,
    Hadiman

  • How to create user exit search help

    Hi,
    I have created a search help from se11 with a field (PT9653-ZDOCENTE) of table control.
    Now I want to fill another field (PT9653-ZMATERIA) of table control  when the user select a value in the search help.
    How do I do it?
    I read that I must use a user exit, is it correct?
    could you give me some examples?

    I have created a exit that should upgrade the second field with the function 
        dynpvaluetab2-fieldname = 'PT9653-ZDOC_TXT'.
        WRITE wa_nome TO dynpvaluetab2-fieldvalue.
        dynpvaluetab2-stepl = sy-stepl.
        APPEND dynpvaluetab2.
        CLEAR   dynpvaluetab2.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname     = 'MP965300'
            dynumb     = '2000'
          TABLES
            dynpfields = dynpvaluetab2.
    but it is not work.
    Instead, if the first use F4IF_INT_TABLE_VALUE_REQUEST to see the search help and then the DYNP_VALUES_UPDATE to update the other fields work.
      SELECT objid stext FROM hrp1000
        INTO CORRESPONDING FIELDS OF TABLE tab_materie
      WHERE plvar EQ '01'
       AND otype EQ 'ZM'.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'OBJID'
          dynpprog        = sy-repid
          dynpnr          = '2000'
          dynprofield     = 'PT9653-ZMATERIA'
          value_org       = 'S'
        TABLES
          value_tab       = tab_materie
          return_tab      = tb_ret_conc
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE s000(zh) WITH 'Non trovati record per questa selezione'.
      ENDIF.
      GET CURSOR FIELD pt9653-zmateria LINE riga_corrente.
      READ TABLE tb_ret_conc INDEX riga_corrente.
      REFRESH dynpvaluetab.
      dynpvaluetab-fieldname = 'PT9653-ZMATERIA'.
      WRITE tb_ret_conc-fieldval  TO dynpvaluetab-fieldvalue.
      dynpvaluetab-stepl = riga_corrente.
      APPEND dynpvaluetab.
      CLEAR   dynpvaluetab.
      READ TABLE tab_materie WITH KEY objid = tb_ret_conc-fieldval.
      dynpvaluetab-fieldname = 'PT9653-ZMAT_TXT'.
      WRITE tab_materie-stext TO dynpvaluetab-fieldvalue.
      dynpvaluetab-stepl = riga_corrente.
      APPEND dynpvaluetab.
      CLEAR   dynpvaluetab.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = dynpvaluetab.
    bold The problem is that for this field, I need a collective search help , and therefore I can not use the F4IF_INT_TABLE_VALUE_REQUEST. bold

  • How to make custom append search help tab default for all users?

    I've implemented my own search help append and I need to make the F4 search help to display my tab as default for all users. I know that search help stores the last tab used by the user in memory and when user uses the search help next time the last used tab is displayed but I have to make the system display the tab od my search help append always as default tab. Any idea how to do it?
    Message was edited by:
            Marcin Milczynski

    hi
    <b>Enhancement using Append structures</b>
        Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
    Click on the append structure tab and opt to create new
    structure.
    Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
    Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
        Customers can add their own fields to any table or structure they want.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP

  • How to do program for search help

    Hi,
    Please tell me how to do the program for search help in Dialog programming.
    Thanks,
    Sriram.

    Step 1:
    Create a function module (ZZ_TEST_FUNCTION).
    Step 2:
    --> Create a search help(ZSEARCH)
    --> Enter the above function Module(ZZ_TEST_FUNCTION) in search help exit field.
    STEP 3:
    Attach the search help with any field of table.
    Function module Sample Code:
    FUNCTION ZZ_TEST_FUNCTION.               
    ""Local interface:                    
    *"       IMPORTING                 
    *"             VALUE(MCONAME) DEFAULT SPACE *"             VALUE(SELSTR) DEFAULT SPACE
    *"       TABLES                      
    *"              SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"              RECORD_TAB STRUCTURE  SEAHLPRES
    *"       CHANGING                   
    *"             VALUE(SHLP) TYPE  SHLP_DESCR_T *"             VALUE(CALLCONTROL) LIKE  DDSHF4CTRL 
    *"                             STRUCTURE  DDSHF4CTRL
    CALL SCREEN 100.
    Return from application back to SAP                   
      CASE save_ok_0100.                                    
        WHEN 'RSTR'.                                        
          callcontrol-step = 'SELONE2'.                     
        WHEN 'CANCEL' OR 'BACK' OR 'EXIT'.                  
          callcontrol-step = 'EXIT'.                        
        WHEN 'SEL'.                                         
            READ TABLE itab.                 
            record_tab = itab-filed1.           
            APPEND record_tab.                              
            callcontrol-step     = 'RETURN'.                
           EXIT.                                           
          ENDIF.                                            
      ENDCASE.                                              
    ENDFUNCTION.

Maybe you are looking for