Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

'f4if_int_table_value_request' used in search help exit

Hi frns ,

              i need to populate all the input selection screen values by providing a single previous input field value ( image1 in se83 input selection screen i  populate value ID1 means ,another all input fields value populate automatically based on  ID1 value  ). i find out that it can be possible using the function 'f4if_int_table_value_request'. But i need to use this function module within this search help exit. thats our problem. And we need a clear example for that.

                                                 1

                                                           2

Thanks

     KaviarasuSivakumar

Capture1.PNG (79551 B)
Former Member
replied

Hi Former Member,

you can do it without search help, I mean you can explicit it in your program, so just use this function module FM  F4IF_INT_TABLE_VALUE_REQUEST and you can get all values to your all parameters,

just try thit out, and let me to know if you face any problem .

REPORT ztest55 .
PARAMETERS:
p_lifnr 
TYPE lifnr,
p_bukrs
TYPE  bukrs  ,
p_ekorg
TYPE  ekorg  ,
p_name1
TYPE  name1  .

TYPES: t_return_tab  TYPE ddshretval.
TYPES: BEGIN OF ty_line,
lifnr 
TYPE lifnr,
bukrs
TYPE  bukrs  ,
ekorg
TYPE  ekorg  ,
name1
TYPE  name1  ,
END OF ty_line.

DATA: it_list TYPE STANDARD TABLE OF ty_line,
      w_return_tab
TYPE t_return_tab,
      i_return_tab
TYPE  TABLE OF ddshretval,
      v_repid
TYPE sy-repid,
      v_dynnr
TYPE sy-dynnr.
DATA:
      it_map
TYPE STANDARD TABLE OF dselc,
      wa_map
TYPE dselc.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lifnr.
 
SELECT * FROM zssi_kavi_vendor INTO CORRESPONDING FIELDS OF TABLE it_list.
 
CHECK sy-subrc  = 0.

  wa_map-fldname
= 'F0001'. "FIELD FOR POSITION 1
  wa_map-dyfldname
= 'P_LIFNR'.
 
APPEND wa_map TO it_map.

  wa_map-fldname
= 'F0002'. "FIELD FOR POSITION 2
  wa_map-dyfldname
= 'P_BUKRS'.
 
APPEND wa_map TO it_map.

  wa_map-fldname
= 'F0003'. "FIELD FOR POSITION 2
  wa_map-dyfldname
= 'P_EKORG'.
 
APPEND wa_map TO it_map.

  wa_map-fldname
= 'F0004'. "FIELD FOR POSITION 2
  wa_map-dyfldname
= 'P_NAME1'.
 
APPEND wa_map TO it_map.


 
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
   
EXPORTING
      retfield       
= 'LIFNR'
      dynpprog       
= sy-repid
      dynpnr         
= sy-dynnr
      dynprofield    
= 'P_LIFNR'
      value_org      
= 'S'
   
TABLES
      value_tab      
= it_list
      return_tab     
= i_return_tab
      dynpfld_mapping
= it_map
   
EXCEPTIONS
      parameter_error
= 1
      no_values_found
= 2
     
OTHERS          = 3.

 
IF sy-subrc = 0.
*      READ TABLE it_map
 
ENDIF.


Regards

Ibrahim



2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question