Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ssearch help exit message problem

Former Member
0 Likes
702

I have made a search help exit,

and i have to display a message if value not found in record_tab.i did it by putting

record_tab not initial.

message.

but after message one popup comes go through the screen shot i attached any one heaving idea how to disable that.

3 REPLIES 3
Read only

Former Member
0 Likes
676

i have to disable the restrict value range pop up

Read only

0 Likes
676

Hi Manisha,

I tried your code yesterday, it`s working fine to me, didn`t using that 'F4UT_RESULTS_MAP' FM.

FUNCTION zsearch_exit1.
*"--------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCT
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR
*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
*"--------------------------------------------------------------------

  TABLES: /ain/dm_loct.

  DATA : lt_loct TYPE TABLE OF /ain/dm_loct,

         wa_loct TYPE /ain/dm_loct.

  DATA lv_loc_guid TYPE /ain/dm_loc_guid.

  DATA : lt_value TYPE /ain/prf_elementval_tab,

*         lt_valuex type /AIN/PRF_ELEMENTVAL_TAB,

         ls_value TYPE /ain/prf_elementval_str.

  DATA : BEGIN OF ls_loc_gln.

          INCLUDE STRUCTURE /ain/prf_elementval_str.

  DATA locdesc TYPE /ain/dm_locdesc.

  DATA : END OF ls_loc_gln.


  DATA lt_loc_gln LIKE TABLE OF ls_loc_gln.

  DATA lt_valuex LIKE TABLE OF  ls_loc_gln.

  DATA: BEGIN OF ls_record.

          INCLUDE STRUCTURE seahlpres.

  DATA: END OF ls_record.

  IF sy-subrc = 0.


  ENDIF.

  IF callcontrol-step = 'SELECT'.

  ENDIF.

  IF callcontrol-step = 'DISP'.
  SELECT * FROM /ain/dm_loct INTO TABLE lt_loct.

  LOOP AT lt_loct INTO wa_loct.


    CALL FUNCTION '/AIN/UI_MAPPED_LOC_ID_GET'

      EXPORTING

        iv_loc_guid = wa_loct-loc_guid

        iv_id_type  = 'FMCG'

      IMPORTING

*       EV_ID_TYPE  =

*       EV_URN      =

*       EV_SGLN     =

        et_value    = lt_value

*       ET_RETURN   =

      .

    READ TABLE lt_value INTO ls_value WITH KEY element = 'GLN'.

    IF sy-subrc = 0.

      ls_loc_gln-element = ls_value-element.

      ls_loc_gln-element_value = ls_value-element_value.

      ls_loc_gln-locdesc = wa_loct-locdesc.

      APPEND ls_loc_gln TO lt_valuex.

    ENDIF.

    REFRESH lt_value.

  ENDLOOP.

  REFRESH record_tab.


  LOOP AT lt_valuex INTO ls_loc_gln ."where element = 'GLN'.


    CONCATENATE ls_loc_gln-locdesc

                ls_loc_gln-element_value

                INTO  record_tab-string.

    APPEND record_tab.

  ENDLOOP.

BREAK-POINT.  * if i manually added record to record_tab here, then F4 works fine.
  if record_tab[] is INITIAL.
    message 'No values' type 'S'.
  endif.

  ENDIF.

ENDFUNCTION.

regards,

Archer

Read only

0 Likes
676

Hi,

earlier i used concatenate,but values was not mapping correctly,

thats why i used function module,i have display the message with s only but after that range popup is coming i have to disable that