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

SAP ABAP Interview Questions for Freshers

SAP ABAP Interview Questions for Freshers Are you start learning SAP ABAP course ? do you want to select for interview? are you searching for questions ,here i gathered some important and basic interview questions for freshers which are useful for learning stage ABAP developers . What is SAP? SAP means Systems Applications and Productions .It is ERP Package that is Enterprise Resource Planning Software and It is also name of the Company. SAP Software was established in 1972 by Wellenreuther, Hopp, Hector, Plattner and Tschira. SAP system means integration of a number of fully integrated modules which handles virtually every angle of the business management. SAP Software competitive languages in the market are Oracle, Microsoft Dynamics etc. What is SAP ABAP ? ABAP is a 4th Generation Language which is used to develop SAP Modules applications that are business scenarios of any Enterprise or organisation. ABAP language executed in the 3 tier architecture of SAP System...

Top 35 SAP ABAP Interview Questions

Top 35 SAP ABAP Interview Questions 1) What is SAP ABAP? SAP is a type of software known as ERP (Enterprise Resource Planning) that large company use to manage their day to day affairs. ABAP (Advanced Business Application Programming) is the coding language for SAP to develop RICEFW objects. (Reports, Interfaces, Extensions, Forms and Workflows). 2) What do you mean by an ABAP data dictionary? To describe the logical structures of the objects that are used in application development ABAP 4 data dictionary is used. It is also used to show the underlying relational database in tables. 3) Explain the difference between pool tables and transparent tables? Transparent tables: It has one to one relation with the table in the database. Its structure corresponds to single database field. Pooled tables: It has many to one relation with the table in the database. Pooled tables are stored at the database level. a) Basic List: For simple reports b) Statistics: For Percentage, ...