‎2007 Feb 14 7:35 AM
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
‎2007 Feb 14 7:38 AM
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
‎2007 Feb 14 7:40 AM
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
‎2007 Feb 14 7:41 AM
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.
‎2007 Feb 14 7:41 AM
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.
‎2007 Feb 14 7:42 AM
Refer this for code sample
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
‎2007 Feb 14 7:43 AM
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.
‎2007 Feb 14 7:49 AM
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.
‎2007 Apr 27 6:44 AM
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.....