Skip to Content
0
Former Member
Jul 27, 2005 at 07:38 PM

Field symbol to the table parameter of the Function module

833 Views

TYPES : BEGIN OF ty_project,

project TYPE aufnr,

END OF ty_project.

DATA : gt_project TYPE TABLE OF ty_project INITIAL

SIZE 0.

Select statement to fill the GT_PROJECT table.

How can I assign the Field symbol to table parameter(value_tab) of the function module.

I need to create 5 search help. i.e i wanted to use field symbol with the table parameter of the function module.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = v_fieldname

dynpprog = v_dyname

dynpnr = v_dynnr

window_title = v_title

value_org = 'S'

TABLES

value_tab = <fs>

return_tab = gt_return

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.

Please let me know how can I pass the field symbol to the table parameter of the FM.

thanks

ASD