‎2006 Sep 25 5:11 PM
Dear SDN Members,
What is the use of this FM ' LVC_FIELDCATALOG_MERGE '?
Thanx in Advance.
Regards,
Johnn.
‎2006 Sep 25 5:22 PM
hi John,
Check out this thread ../
http://www.sapdevelopment.co.uk/reporting/alv/alv_variousfcat.htm
*For object ALV (Screen)
DATA: gd_fieldcat2 type LVC_T_FCAT.
CALL FUNCTION '<b>LVC_FIELDCATALOG_MERGE</b>'
EXPORTING
* I_BUFFER_ACTIVE =
I_STRUCTURE_NAME = 'EKKO'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
CHANGING
ct_fieldcat = gd_fieldcat2
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.when do we use???..
http://help.sap.com/saphelp_erp2005vp/helpdata/en/22/a3f5fed2fe11d2b467006094192fe3/frameset.htm
Regards,
santosh
Message was edited by: Santosh Kumar P
‎2006 Sep 25 5:14 PM
Hi
To create the catalog table for ALV grid OO, here you can transfer the name DICTIONARY STRUCTURE and it returns automatically the catalog table arranged on declaration of the table:
call function 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = <DICTIONARY STRUCT>
I_BYPASSING_BUFFER = 'X'
CHANGING
ct_fieldcat = it_grid_fcat.
Max
‎2006 Sep 25 5:22 PM
hi John,
Check out this thread ../
http://www.sapdevelopment.co.uk/reporting/alv/alv_variousfcat.htm
*For object ALV (Screen)
DATA: gd_fieldcat2 type LVC_T_FCAT.
CALL FUNCTION '<b>LVC_FIELDCATALOG_MERGE</b>'
EXPORTING
* I_BUFFER_ACTIVE =
I_STRUCTURE_NAME = 'EKKO'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
CHANGING
ct_fieldcat = gd_fieldcat2
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.when do we use???..
http://help.sap.com/saphelp_erp2005vp/helpdata/en/22/a3f5fed2fe11d2b467006094192fe3/frameset.htm
Regards,
santosh
Message was edited by: Santosh Kumar P
‎2006 Sep 25 5:24 PM
hi John,
This is a ALV control service modules which is used to generate the field catalog automatically or semi-automatically. You combine structure information of the Data Dictionary with your own structure information and send it to the FM and it will return the field catalog ie the struture that is used to display the final internal table in the form of ALV report.
Check out the link.. This contains good info on this.
http://help.sap.com/saphelp_erp2004/helpdata/en/8e/5dc9bee10111d2b47e006094192fe3/content.htm
Regards,
Richa
‎2006 Sep 25 5:28 PM
Hello max Bianci,
While creating a structure, i need to give a component
which i declared as type dats in program.
How to declare that in structure ?
‎2006 Sep 25 5:35 PM
hi,
you can declare the field in the structure with reference some dataelement (eg ERDAT) which has data type Dats or you can assign the data element direct types in the table i.e you can give the datatype directly without using data element.
Hope this helps.
‎2006 Sep 25 5:37 PM
Hi
You have to create a field type dats in your ALV structure in the dictionary (trx SE11), if you want the that fm get a your own description you should create a data element with DATS as type (domain) and assign this data element to a field of your alv structure
Max
‎2006 Sep 25 5:48 PM
Hi John,
While building fieldcatalog with <b>containers</b> we use this Function Module LVC_FIELDCATALOG_MERGE , this is similar o REUSE_ALV_FIELDCATALOG_MERGE when using normal ALV FMs
‎2006 Sep 25 5:48 PM
Hello,
If you use this FM, automatically fieldcatalog will be populated by just passing the structure name.
Regs,
Venkat Ramanan N