2006 May 23 11:05 AM
Hi all,
I am using the f4 help(F4IF_INT_TABLE_VALUE_REQUES)fm to get the help in the input screen.
If i select multiple input fields my first data is getting overwritten by the last one. How to solve this.
Regrds,
Priya
Hi all,
I am using the f4 help(F4IF_INT_TABLE_VALUE_REQUES)fm to get the help in the input screen.
If i select multiple input fields my first data is getting overwritten by the last one. How to solve this.
Regrds,
Priya
2006 May 23 11:07 AM
Don't pass anything to the parameter MULTIPLE_CHOICE so that user will not be able to select multiple values.
If you do want the users to select multiple values, then the values should be in the table VALUE_TAB. You should take the values from that table.
Regards,
Ravi
Note : Please mark all the helpful answers
2006 May 23 11:07 AM
hi
hav u checked the <b>MULTIPLE_CHOICE</b> option in the FM
if u give 'X' to it then u will Switch on multiple selection else u wont
<b>plz reward helpful posts</b>
2006 May 23 11:29 AM
hi ,
this is the code
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MDV01'
multiple_choice = 'X'
value_org = 'S'
TABLES
value_tab = it_mdv01
return_tab = return_tab.
loop at return_tab into wa_return_tab.
mdv01-low = wa_return_tab-fieldval.
MDV01-OPTION = 'EQ'.
MDV01-SIGN = 'I'.
append mdv01.
2006 May 23 11:31 AM
Priya,
This code should append all the selected values to the SELECT-OPTIONS FIELD mdv01.
Are you not seeing all the values?
Regards,
Ravi
2006 May 23 11:12 AM
2006 May 23 11:16 AM
Hi Priya,
Use the Function Module: DD_SHLP_SELSCREEN_MULTI_SELECT.
Hope this server your purpose.
Thanks,
Susmitha
2006 May 23 11:31 AM
Hii
just check this code..
select-options: s_matnr for mara-matnr.
declare f4help internal table and return internal table
data: begin of f4inttab occurs 0,
mno like mara-matnr,
end of f4inttab,
ret_tab like ddshretval occurs 0 with header line.
......................
AT SELECTION-SCREEN ON VALUES-REQUEST for s_MATNR.
clear f4inttab.
SELECT matnr FROM mara
INTO correcponding fields of TABLE f4inttab.
PERFORM buildf4help.
LOOP AT ret_tab.
s_matnr-low = ret_tab-fieldval.
ENDLOOP.
clear ret_tab.
.......................
form buildf4help.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
DDIC_STRUCTURE = ' '
retfield = 'MATNR'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
DYNPROFIELD = ' '
STEPL = 0
window_title = 'Material Numbers'
value = '*'
value_org = 'S'
MULTIPLE_CHOICE = 'X'
display = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
tables
value_tab = f4inttab
FIELD_TAB =
return_tab = ret_tab
DYNPFLD_MAPPING =
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
write: / 'Error =', sy-subrc.
else.
READ TABLE ret_tab INDEX 2.
endif.
Multiple selection is activated if this parameter has the value 'X'.
You can also select multiple lines in the hit list.
Go through the documentation of the func module in se37..i guess it will clear your doubts
Regards
Naresh
2006 May 23 11:37 AM
Hi,
With FM 'F4IF_INT_TABLE_VALUE_REQUEST' you can select one value.
Thats the main purpose of using the FM.
If you want to select multiple values, use FM
'VRM_SET_VALUES'.
Hope this helps you.
Regards,Tarun
2006 May 23 11:54 AM
Hai Priya
check the following code
DATA: T_FIELD LIKE DFIES OCCURS 0 WITH HEADER LINE,
T_RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
L_RETFIELD TYPE DFIES-FIELDNAME.
CLEAR CABNT.
SELECT ATINN INTO CABNT-ATINN UP TO 1 ROWS FROM CABNT
WHERE ATBEZ = CHARACTERISTIC_IN.
ENDSELECT.
CHECK SY-SUBRC = 0.
REFRESH: T_FIELD,
T_VALUETAB.
MOVE: 'AUSP' TO T_FIELD-TABNAME,
'ATWRT' TO T_FIELD-FIELDNAME.
APPEND T_FIELD.
CLEAR T_FIELD.
CLEAR CAWN.
SELECT ATWRT INTO T_VALUETAB-VAL FROM CAWN
WHERE ATINN = CABNT-ATINN.
APPEND T_VALUETAB.
ENDSELECT.
L_RETFIELD = 'ATWRT'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = L_RETFIELD
TABLES
VALUE_TAB = T_VALUETAB
FIELD_TAB = T_FIELD
RETURN_TAB = T_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
READ TABLE T_RETURN INDEX 1.
IF SY-SUBRC = 0.
D_VALUE = T_RETURN-FIELDNAME.
ELSE.
CLEAR D_VALUE.
ENDIF.
Thanks & regards
Sreenivasulu P