‎2005 Dec 15 10:24 AM
hi frnds,
Im using a func. module to create F4 help in the event at selection secreen on value request, but the double clicked values are not getting selected.
points assured to all replies.
madan..
‎2005 Dec 15 10:27 AM
Hi Madan,
This is Important after calling your FM.......
READ TABLE t_return INDEX 1.
p_s_pernr = t_return-fieldval.
You need to read your internal table.
After that you have to assing value to selection-screen field.
You follow your previous post it is very very clear.
Thanks.
If this helps u reward with points.
‎2005 Dec 15 10:25 AM
‎2005 Dec 15 10:27 AM
Hi Madan,
This is Important after calling your FM.......
READ TABLE t_return INDEX 1.
p_s_pernr = t_return-fieldval.
You need to read your internal table.
After that you have to assing value to selection-screen field.
You follow your previous post it is very very clear.
Thanks.
If this helps u reward with points.
‎2005 Dec 15 10:30 AM
data : begin of itab occurs 0,
mat_no like mara-matnr,
end of itab.
select-options :
plant for marc-werks,
mat_no for mara-matnr.
*parameters : plant like marc-werks,
mat_no like mara-matnr.
at selection-screen on value-request for mat_no-low.
select matnr from marc into table itab where werks in plant.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ''
retfield = ''
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab
FIELD_TAB =
RETURN_TAB = t_return
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
( And y is that F4 does not return values for parameters ? )
‎2005 Dec 15 10:35 AM
Hi,
data : begin of itab occurs 0,
mat_no like mara-matnr,
end of itab.
select-options :
plant for marc-werks,
mat_no for mara-matnr.
*parameters : plant like marc-werks,
mat_no like mara-matnr.
at selection-screen on value-request for mat_no-low.
select matnr from marc into table itab where werks in plant.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ''
retfield = ''
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab
FIELD_TAB =
**************************
RETURN_TAB = t_return "un comment this.
********************
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
************
read table t_return with index 1.
mat_no = t_return-fieldval.
***************
For parameters also it will return.
you need to do is
AT SELECTION-SCREEN ON VALUE REQUEST FOR MAT_NO.
Thats all.
Thanks.
If this helps u reward with points.
Message was edited by: Deepak333 k
‎2005 Dec 15 10:39 AM
‎2005 Dec 15 10:29 AM
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
value_org = 'S'
display = 'F'
TABLES
value_tab = t_1001
return_tab = return_values
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE .
READ TABLE return_values INDEX 1.
t_1001-matnr = return_values-fieldval
check with above code