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

F4 help

madan_ullasa
Contributor
0 Likes
775

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..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
747

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.

6 REPLIES 6
Read only

Former Member
0 Likes
747

just show your code..

regards

vijay

Read only

Former Member
0 Likes
748

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.

Read only

0 Likes
747

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 ? )

Read only

0 Likes
747

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

Read only

0 Likes
747

un comment the return tab.

it will work..

regards

vijay

Read only

Former Member
0 Likes
747

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