Application Development 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: 

Reg : F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Kudos

Hi Friends,

I want to use the Function Module F4IF_INT_TABLE_VALUE_REQUEST in Table Control.

My requirement is to populate the Multiple Values side by side in the table control.

Example:

When user press F4 on the particular field in the Table Control.

Pop up values will appear.

From the values, the user will double click or presses enter button.

After that i want to populate the selected value and the side of the value to be populated in two different fields in the table control.

Please help me in this aspect.

Regards:

Sridhar.J

4 REPLIES 4

Former Member
0 Kudos

Hi,

Suppose you are passing an internal table having three fields to the FM.

You select one from the pop up. After that, the value gets copied to the screen field.

Then you can write a READ statement to read its other two corresponding value from that interna table (which you passed to the F4 Function Module). And you can assign these value to their corresponding screen fields..

reward if helpful.

Former Member
0 Kudos

Hi,

this can be useful for you, try it once.

DATA : TMP_RETURN_TAB LIKE TABLE OF DDSHRETVAL,

TMP_RETURN LIKE DDSHRETVAL,

TMP_FIELD TYPE DFIES-FIELDNAME.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = TMP_FIELD

WINDOW_TITLE = ATITEL

VALUE_ORG = 'S'

TABLES

VALUE_TAB = ATABLES

RETURN_TAB = TMP_RETURN_TAB

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

IF SY-SUBRC = 0.

READ TABLE TMP_RETURN_TAB INDEX 1 INTO TMP_RETURN.

AVALUE = TMP_RETURN-FIELDVAL.

ENDIF.

Former Member
0 Kudos

FORM VERSN_SEARCH_HELP CHANGING PS_VERSN.

CLEAR: IT_VERSN.

REFRESH IT_VERSN.

IF NOT P_MATNRF IS INITIAL AND NOT P_SERNRF IS INITIAL.

SELECT VERSN FROM Zxxxxxxxx

INTO TABLE IT_VERSN WHERE MATNR = P_MATNRF

AND SERNR = P_SERNRF.

DELETE ADJACENT DUPLICATES FROM IT_VERSN

COMPARING VERSN.

PERFORM DISPLAY_SEARCH_HELP_VERSN CHANGING PS_VERSN.

ELSE.

PS_VERSN = ''.

ENDIF.

FORM DISPLAY_SEARCH_HELP_VERSN CHANGING PL_VERSN.

DATA: RETURN TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.

CLEAR RETURN.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'VERSN'

DYNPPROG = 'SY-REPID'

DYNPNR = '9999'

DYNPROFIELD = 'IT_VERSN-VERSN'

VALUE_ORG = 'S'

MULTIPLE_CHOICE = ' '

DISPLAY = ' '

TABLES

VALUE_TAB = IT_VERSN

RETURN_TAB = RETURN .

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 RETURN INDEX 1.

PL_VERSN = RETURN-FIELDVAL.