07-23-2008 5:08 AM
Hi All,
I have an alv report in which internal table has 114 entries but when i am using function module REUSE_ALV_FIELDCATALOG_MERGE , only 44 fields are copied into the fieldcatalog....can anyone tell me why this is happening?
07-23-2008 5:41 AM
Check your internal table declaration...
when you declare the internal table fields using LIKE instead of TYPE.
data: begin of it_final occurs 0,
vbeln like vbak-vbeln,
matnr like vbap-matnr, "use LIKE instead of type
end of it_final.
07-23-2008 5:31 AM
the structure you are passing to REUSE_ALV_FIELDCATALOG_MERGE might be having only 44 fields in it.. check the structure you are passing to the FM REUSE_ALV_FIELDCATALOG_MERGE
114 entries are rows...
and 44 fields(columns) Is valid...
07-23-2008 5:40 AM
Hi Jay,
I am passing an internal table that has 114 entries but in fieldcatlog only 44 fields are appearing..
07-23-2008 5:46 AM
114 entries.. what are those 114 data entries.. (number of rows) or Number of fields in the internal table..
the structure should be declared using LIKE..
data: begin of itab,
vbeln LIKE VBAP-VBELN,
posnr LIKE VBAP-POSNR....
07-23-2008 5:48 AM
Hi,
Just read this:
Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.
The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.
The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:
Performance is affected since the code of the table definition must always be read and interpreted at runtime.
Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.
If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.
If the field catalog is passed with values, they are merged with the 'automatically' found information.
Regards,
Shiva Kumar
07-23-2008 5:41 AM
Check your internal table declaration...
when you declare the internal table fields using LIKE instead of TYPE.
data: begin of it_final occurs 0,
vbeln like vbak-vbeln,
matnr like vbap-matnr, "use LIKE instead of type
end of it_final.
07-23-2008 12:12 PM
Hi,
I would suggest to creat your own strucutr to include those fields in the output list & simply pass that structure to the FM: REUSE_ALV_FIELDCATALOG_MERGE.This ensures the complete trnasfer of all the fileds defined in your structure without a single miss on any filed... hope this helps!!
Regars
Ankur.