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

Function Module output display

Former Member
0 Likes
1,505

HI Frnds,

When I am calling the function module and displaying the output the column name is displayed as field name but my requirement is to diplay the field description of that field how to do it tell me

Thanks in advance

Y.Ravikumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
983

Use REUSE_ALV_LIST_DISPLAY to display your output. You can use the function module output as input to this (T_outtab) and in the I_STRUCTURE_NAME provide the structure name of function module output.

Hope this helps.

Reward if it helps

Krishna

3 REPLIES 3
Read only

Former Member
0 Likes
984

Use REUSE_ALV_LIST_DISPLAY to display your output. You can use the function module output as input to this (T_outtab) and in the I_STRUCTURE_NAME provide the structure name of function module output.

Hope this helps.

Reward if it helps

Krishna

Read only

Former Member
0 Likes
983

hi,

if you are displaying using ALV.

then in fieldcatalog you can use .

d_fieldcat_wa-fieldname = 'MATNR'.

d_fieldcat_wa-seltext_l = 'material number'. * user defined fieldname.

d_fieldcat_wa-edit = 'X'.

d_fieldcat_wa-col_pos = 1.

append d_fieldcat_wa to d_fieldcat.

clear d_fieldcat_wa.

data : gd_repid like sy-repid.

gd_repid = sy-repid.

call function module reuse_alv_grid_display.

exporting.

program name = gd_repid.

t_fieldcatalog = d_fieldcat.

importing.

t_outtab = itab.

exceptions.

Reward with points if helpful.

Read only

Former Member
0 Likes
983

Frnds ,

Thanks for ur replies but the task is not easy because , the function module is RFC enabled it is ZXXXX fun module the user is calling this function module from non-SAP system there he wants the output column name as field description not as field name

Thanks