Application Development 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: 

'f4if_int_table_value_request' used in search help exit

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member184158
Active Contributor
0 Kudos

Hi Kaviarasu sivakumar,

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



3 REPLIES 3

Former Member
0 Kudos

http://www.saptechnical.com/Tutorials/ABAP/View/Help.htm

Hi Shiva,

You cannot use that FM in Search Help. It is meant for providing Search Helps in Report Programs.

What I suggest you is Create a Help View in SE11 and assign the View Name in your Search Help.

It is Easy. You can get fields from multiple table and you can control which fields you want as Input and Output of the Search Help.

Above Link may be helpful for you.

Thanks and Regards,

Vinay Mutt

former_member184158
Active Contributor
0 Kudos

Hi Kaviarasu sivakumar,

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



0 Kudos

Hi

  KaviarasuSivakumar