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

ALV

Former Member
0 Likes
684

I want to display the output in alv..

i passed the internal table and field catalog to the REUSE_ALV_GRID_DISPLAY.

i am not getting the data from the internal table in the ALV... i am getting only the header of the ALV

1 ACCEPTED SOLUTION
Read only

dhruv_shah3
Active Contributor
0 Likes
663

Hi,

Make sure that your internal table i filled with data.

Also Write the Field Catalog in CAPS, coz it is required....

HTH

Regards,

Dhruv Shah

6 REPLIES 6
Read only

Former Member
0 Likes
663

hi,

ckeck that ur internal table having data?

Read only

Former Member
0 Likes
663

Check out this sample Grid ALV Report

http://sap-img.com/abap/example-of-a-simple-alv-grid-report.htm

Regards,

Santosh

Read only

Former Member
0 Likes
663

check if the fieldcatalog is populated

also while passing internal tables to REUSE_ALV_GRID_DISPLAY , pass the whole body of internal tables

TABLEs

fieldcat = it_fieldcat[]

outtab = itab[]

post ur code for more solutions

Edited by: Chandrasekhar Jagarlamudi on Mar 28, 2008 5:39 PM

Read only

dhruv_shah3
Active Contributor
0 Likes
664

Hi,

Make sure that your internal table i filled with data.

Also Write the Field Catalog in CAPS, coz it is required....

HTH

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
663

Hi dhavamani,

once check the data in the data base table .

In the EXPORT parameters of FM REUSE_ALV_GRID_DISPLAY pass this field also

I_CALLBACK_PROGRAM = SY-REPID

Regards,

gangireddy

Read only

Former Member
0 Likes
663

This is a problem with the fieldcat table. All fields must be properly named and in order. An easier alternative to defining this way (and less error prone) - is to setup your structure in the data dictionary. In this case the only thing you need in the fieldcat are those things that can't be defined in datadictionary, ie. Hotspot, no out etc.

In the sample below the struture ZPF01 is defined in the datadictionary.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

i_callback_program = g_variant-re

i_callback_pf_status_set = 'SET_PF_STAT

i_callback_user_command = 'ALV_USER_CO

i_callback_top_of_page = 'PRINT_ZRSMP

i_callback_html_top_of_page = 'INTERACTIVE

  • I_CALLBACK_HTML_END_OF_LIST = ' '

i_structure_name = 'ZPF01'

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE = L_HEADER

i_grid_settings = g_grid

is_layout = layt

it_fieldcat = tcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

i_save = 'A'

is_variant = g_variant

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IT_ALV_GRAPHICS =

  • IT_ADD_FIELDCAT =

  • IT_HYPERLINK =

  • I_HTML_HEIGHT_TOP =

  • I_HTML_HEIGHT_END =

  • IT_EXCEPT_QINFO =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

tables

t_outtab = btab

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2