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: 

Function module 'F4IF_INT_TABLE_VALUE_REQUEST'

Former Member
0 Kudos

Hai,

Here what is the use of RETURN_TAB field, i mentioned it's in bold

DATA: RET_TAB TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'PONO' " ORIGINAL TABLE FIELD NAME

DYNPROFIELD = 'DYNFIELD'" STRINGVALUE

DYNPPROG = 'SY-CPROG'"PROGRAM NAME

DYNPNR = SY-DYNNR "SCREEN NUMBER

WINDOW_TITLE = 'PURCHASE ORDER NUMBER'" TITLE

VALUE_ORG = 'S'

tables

value_tab = ITAB "INTERNAL TABLE

<b>RETURN_TAB = RET_TAB </b>

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

5 REPLIES 5

Former Member
0 Kudos

Return the selected values

former_member386202
Active Contributor
0 Kudos

Hi,

The selected value is returned in table RETURN_TAB if it is not copied to screen fields in the module itself.

Caution: Despite being called with RETURN_TAB, up to Release 4.6B the help is started amodally as soon as the screen information DYNPPROG, DYNPNR and DYNPROFIELD is passed and the user has activated the ActiveX help. In this case you cannot be sure that the RETURN_TAB contains the selected lines of the hit list. In an amodal call, the function module terminates before the user has made his choice.

In most cases table RETURN_TAB has exactly one line containing the contents of the return column from the selected line of the hit list in field FIELDVAL.

If RETURN_TAB does not contain any lines, the user has terminated the selection.

If there are multiple return columns or if multiple selection was allowed, the table can contain more than one line.

If there is more than one return column, FIELDNAME specifies the column to which the value in FIELDVAL belongs. FIELDNAME corresponds to field FIELDNAME in table FIELD_TAB.

With multiple selection (more than one line of the hit list is selected), field RECORDPOS is used to number the lines, i.e. if three lines were selected, all the columns of the first selected line are numbered with RECORDPOS = 1, all the columns of the second line are numbered wiith RECORDPOS = 2, etc.

Field RETFIELD specifies the screen field belonging to the column if it is known. If there is only one return column, RETFIELD contains the field name passed in DYNPROFIELD.

Field SHLPNAME is not relevant for this module.

Regards,

Prashant

Former Member
0 Kudos

Hi,

Returns the selected values into ret_tab.

then you can read into the input paraneter or select-option.

regards,

kavitha

Former Member
0 Kudos

The RETURN_TAB is used to return the Selected F4 value to the field defined.

the tabe parameter is passed with

RETURN_TAB = IT_RETURN

Declaration of the table is

DATA: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

Reward Points if useful.

Former Member
0 Kudos

hi,

it will return value to ur parameter for which u created F4 help...

PARAMETERS : p_kunnr TYPE kna1-kunnr .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR <b>p_kunnr</b>.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = field_tab-fieldname

TABLES

value_tab = value_tab

field_tab = field_tab

return_tab = return_tab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc = 0.

<b>p_kunnr</b> = return_tab-fieldval.

ENDIF.

reward if useful..