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

F4if_int _table_value_request

Former Member
0 Likes
922

hello experts ,

i want the function mobule "F4if_int tablevalue_request" to return more than one values associated with the return field ,i.e, i need the entire row to be present in the return_tab when the user double clicks on a particular line of pop-up .right now i m only getting the value of the single field in return_tab and i want the value of all the columns shown in the pop-up as soon as the user selects a row. is there a way out to achieve it or suggest some way out of it.....

Message was edited by:

swapnil kubal

8 REPLIES 8
Read only

Former Member
0 Likes
831

Hi,

You need to write the logic as below

AT Selection-screen on Field1.

call the function module F4IF_INT_TABLE_VALUE_REQUEST

At selection screen on Field2.

call the function module F4IF_INT_TABLE_VALUE_REQUEST

Regards

Sudheer

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
831

Hi

one FM can not give more than 1 field value.

U can have call the FM as many times as u want for the each field.

Regards,

kumar

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
831

Hi,

If u want the same for more than one field use the FM to the fields which u want and include the fields in the internal table which u are returning from the FM

write a select statement and paass it to the internal table and then use the FM.

Ur problem will be solved...

Cheers,

Simha.

Read only

Former Member
0 Likes
831
DATA: BEGIN OF IT_VALUE2 OCCURS 0,
                  F1 LIKE TABLE-FIELD,
                  F2 LIKE TABLE-FIELD,
 
                END OF IT_VALUE2.

        SELECT F1 F2 
           FROM TABLE
           INTO  TABLE IT_VALUE2
          WHERE  FX = CONDITION.
  ENDIF.


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD    = 'SCREENFIELD'
      DYNPPROG    = SY-CPROG
      DYNPNR      =  SY-DUNNR
      DYNPROFIELD =  TABLE FIELD   "
      VALUE_ORG   = 'S'
    TABLES
      VALUE_TAB   = IT_VALUE2.

so u can write a select to display more that one or more fields in teh display but when clicked /selected only that value is dropped to the table field.

//i want the function mobule "F4if_int tablevalue_request" to return more than one field values .

You can use <b>dynp_values_up</b>date to get the same .

if u can tell what is the exact business requirement from std reference then we can make a pseudo code for the same .

regards,

vijay.

Read only

Former Member
Read only

Former Member
0 Likes
831

hi,

it will give 2 f4 on first screen

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field1.

call FM 'F4......'

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field2.

call FM 'F4......'

to fill some value in some other field,

put in AT SELECTION SCREEN OUTPUT event.

Read only

Shivaji16
Active Participant
0 Likes
831

Hi,

Use VRM type pool and the FM as below.

DATA : t_sourceid TYPE vrm_values,

t_pricetyp TYPE vrm_values.

IF t_pricetyp IS INITIAL.

SELECT zserv_type

INTO TABLE t_pricetyp

FROM zmservice_type

WHERE purch_req_flg = c_check.

ENDIF.

IF t_sourceid IS INITIAL.

SELECT src_just_id src_just_dsc

INTO TABLE t_sourceid

FROM zmsource_just.

ENDIF.

  • Sole Source List Box

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = c_src_just_fld " field name

values = t_sourceid

EXCEPTIONS

id_illegal_name = 0

OTHERS = 0.

  • Pricing Type List Box

IF w_pstyp = c_srv_type.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = c_prc_value_fld " field name

values = t_pricetyp

EXCEPTIONS

id_illegal_name = 0

OTHERS = 0.

Read only

Former Member
0 Likes
831

hi swapnil,

dont know whether is there any other way of getting the othr fields of the selectd row, but what u can do is, get the value of the selected field (return_tab-fieldval), and read the input table (value_tab) with it, to get the other fields.....