Skip to main content

YCLASSICAL_JOINING

*&---------------------------------------------------------------------* *& Report  YCLASSICAL_JOINING *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT   yclassical_joining  NO   STANDARD   PAGE  HEADING                               LINE - SIZE   110                               LINE - COUNT   255                               MESSAGE - ID  z...

ALV Field Catalog in SAP ABAP

ALV Field Catalog in SAP ABAP
Field Catalog
Field catalog is an internal table which is used to pass a list of fields to display in ALV report, we can set different properties to fields that will be display in ALV output.
Type Group
It is a data dictionary object which contains all the reusable user-defined types.
Example for a type group is SLIS, which contains all the user-defined types for developing ALV reports.
TYPE-POOLS is a keyword which is used to assign the type-group to a ALV report .
Syntax :
TYPE-POOLS SLIS .
DATA : <IT_FCAT> TYPE SLIS_T_FIELDCAT_ALV . "INTERNAL TABLE FOR FIELD CATALOG
DATA : <WA_FCAT> TYPE SLIS_FIELDCAT_ALV . " WORK AREA FOR FIELD CATLOG
Field catalog types
Field catalog:
Field catalog is a format description of the display area.
There are three procedures to build a FIELD CATALOG.
1. Automatic field catalog.
2. Semi-automatic field catalog.
3. Manual field catalog.
Automatic field catalog.
If the list structure has the same line type as the dictionary structure, then the proxy instance
will automatically create the field catalog.
To do this, just pass the name of the dictionary structure to form using the parameter
'I_STRUCTURE_NAME'.
Semi-automatic field catalog.
All fields of the global structure type appears in the data table with the same name.
Now the requirement is to make changes to the dictionary structure or the additional columns
are to be displayed.
In this case we can call a function module (LVC_FIELDCATALOG_MERGE) that returns the field catalog
of the dictionary structure to a table of type lvc_t_fcat.
Now we can loop it and can make whatever changes we want.
Manual field catalog.
If the data table's line type does not contains the dictionary references or it only contains references to individual
global structure fields, you have to create the field catalog manually.
For this you have to create an internal table of type LVC_T_FACT and populate it manually.
SLIS_T_FIELDCAT_ALV.
SLIS_FIELDCAT_ALV.
..........................End..........................

Comments

Popular posts from this blog

What is ABAP Workbench?

What is ABAP Workbench? ABAP Workbench is a collection of tools you use to develop, test and run ABAP programs.In SAP ,we are using ABAP Workbench to develop standard and custom applications and also within the ABAP Workbench ,we are creating reports ,printing forms ,data entry and general programming .Workbench has the following tools . All tools in the ABAP Workbench are integrated. When you work with the ABAP Workbench, you work with development objects and packages. Development objects are the individual parts of an ABAP application. Development objects are: Programs: reports, transactions, and function modules Program components: events, screens, menus, and function modules Objects that programs can share: database fields, field definitions, and program messages. The SAP system stores development objects in the Repository, which is a part of the database. When you complete your work on a development object, you generate a run time version of the object. In a sta...

SAP ABAP Program to Send IDOC

SAP ABAP Program to Send IDOC This is the SAP ABAP Program to send custom Idoc ,it useful for SAP ABAP Developers who are developing idocs . *&---------------------------------------------------------------------* *& Report ZIDOC_PROGRAM *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZIDOC_PROGRAM. types : begin of zidoc_table, zid type zid, zname type znname2, zcity type zcity, END OF zidoc_table. DATA :it_zidoc type TABLE OF zidoc_table, wa_zidoc type zidoc_table, s_segment type zidoc_segment, it_ddic type TABLE OF edidc, wa_ddic type edidc, it_eddis type TABLE OF edids, wa_eddis type edids, it_eddid type TABLE OF edidd, wa_eddid type edidd. CONSTANTS : c_zseg like edidd-segnam VALUE 'zidoc_segment'. *SELECTION-SCREEN : select-OPTIONS : s_zid for wa_zidoc-zid. PARAMETERS : p_mestyp type edidc-mes...