07-08-2008 5:35 PM
Guys, Please help me.. I have been breaking my head with this...! The fieldcatalog is not getting populated. Please help me.
REPORT ztest.
TYPE-POOLS: slis.
DATA: lt_fcat TYPE slis_t_fieldcat_alv.
DATA: BEGIN OF gt_log OCCURS 0,
vbeln LIKE vbbe-vbeln,
posnr LIKE vbbe-posnr,
message TYPE bapi_msg,
color_line(4),
END OF gt_log.
*Definition of local variables for Field catalog
DATA: lv_program_name LIKE sy-repid,
lv_internal_tabname TYPE slis_tabname. "Internal table for ALV
lv_program_name = sy-repid.
lv_internal_tabname = 'GT_LOG'.
*Field Catalog
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = lv_program_name
i_internal_tabname = lv_internal_tabname
CHANGING
ct_fieldcat = lt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
07-08-2008 5:49 PM
Hi Friend,
Looking at your code, I found that you have not the fieldcatalog at all.
You need to fill the fieldcatalog with all the fields you want to display in the alv.
Check the following links regarding field catalog:
http://abap-gallery.blogspot.com/2007/07/field-catalog-in-alv.html
Check this link for sample program:
http://www.saptechnical.com/Tutorials/ALV/SampleALVGridProgram.htm
Hope this helps you.
Any queries, get back to me.
Regards,
Chandra Sekhar
07-08-2008 5:53 PM
Dude.. stop advertising your website links here.
The function module was supposed to populate the field catalog based on the Internal table, But some how it's not working.. any one else... please help me.
07-08-2008 5:52 PM
07-08-2008 5:56 PM
07-08-2008 5:59 PM
07-08-2008 6:02 PM