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

Functional mod

Former Member
0 Likes
791

Dear SDN Members,

What is the use of this FM ' LVC_FIELDCATALOG_MERGE '?

Thanx in Advance.

Regards,

Johnn.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
763

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

8 REPLIES 8
Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
764

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

Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
763

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 ?

Read only

0 Likes
763

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.

Read only

0 Likes
763

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

Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
763

Hello,

If you use this FM, automatically fieldcatalog will be populated by just passing the structure name.

Regs,

Venkat Ramanan N