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 for select-option

Former Member
0 Likes
1,018

Hi All,

I have created a F4 for select option field declared as no interval and that fied has no F4 at table level.

the F4 is displaying on the selection screen, it is not avaliable when I go to multiple selection screen.

if any one has faced this issue, pls help.

thanx in advance

Regards

Siva

Hi All,

I have created a F4 for select option field declared as no interval and that fied has no F4 at table level.

the F4 is displaying on the selection screen, it is not avaliable when I go to multiple selection screen.

if any one has faced this issue, pls help.

thanx in advance

Regards

Siva

6 REPLIES 6
Read only

Former Member
0 Likes
871

SELECT-OPTIONS sel_opt1 FOR field1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_opt1-low.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_opt1-high.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

Read only

Former Member
0 Likes
871

hi ,

please try this

TABLES : MARA.

DATA: BEGIN OF IT_MARA OCCURS 0,

MATNR LIKE MARA-MATNR,

MTART LIKE MARA-MTART,

END OF IT_MARA.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.

parameters : P_MATNR LIKE MARA-MATNR.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.

SELECT MATNR MTART FROM MARA INTO table it_mara where MTART = 'ROH'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MATNR'

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'P_MATNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = it_mara

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

regards

prashant

Read only

Former Member
0 Likes
871

HI,

Check this code ..

AT SELECTION-SCREEN ON VALUE-REQUEST FOR HKONT-LOW.

SELECT KSTAR KTEXT INTO TABLE IT_HKONT FROM CSKU WHERE SPRAS EQ 'EN'.

SORT IT_HKONT BY KSTAR.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'HKONT'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = IT_HKONT

RETURN_TAB = IT_RETURN.

IF SY-SUBRC = 0.

READ TABLE IT_RETURN INDEX 1.

MOVE IT_RETURN-FIELDVAL TO HKONT-LOW.

ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR HKONT-HIGH.

SELECT KSTAR KTEXT INTO TABLE IT_HKONT FROM CSKU WHERE SPRAS EQ 'EN'.

SORT IT_HKONT BY KSTAR.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'HKONT'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = IT_HKONT

RETURN_TAB = IT_RETURN.

IF SY-SUBRC = 0.

READ TABLE IT_RETURN INDEX 1.

MOVE IT_RETURN-FIELDVAL TO HKONT-HIGH.

ENDIF.

Read only

Former Member
0 Likes
871

hi,

if the select option is as follows:

SELECT-OPTIONS s_field FOR field.

then use the on value request as follows:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-high.

regards

rahul

Read only

Former Member
0 Likes
871

Hi,

U created a F4 for select option field declared as no interval .

No Interval means that select-options work like Parameter..

so Delete that ..

now it wil work ...

Read only

Former Member
0 Likes
871

hi,

try the code:


AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.
*CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'*
...

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-high.
*CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'*
...