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

All about Classes in ABAP Object Oriented Programming?

All about Classes in ABAP Object Oriented Programming? Class describes real world Object that may be car ,home and Animal .In ABAP Object Oriented (OO)Programming ,Class concept is first and Fore most Topic ,so through this post ,we will learn class in ABAP and Types of class and How to create classes and Methods in SAP ABAP. Class consists the Properties and Attributes. Properties are Methods or Functions or Procedures. Attributes are Variables . One class can have Any number of Objects that is Object is like a class but object can never be a Class. Example :Car is a class ,Here class contains some common Properties for its related Objects. Object may be different companies like Ford Maruthi etc. Objects are instances of a class ,so for one class ,we can create many objects Class Definition in SAP ABAP Class: we can build an Object properties using class. The attributes of objects are defined by the components of the class, which describe the state and behavior of O...

What is SAP (System Applications Products)?

What is SAP (System Applications Products)? The following articles guides you everything about SAP ERP Systems. The first question which arises in our mind “what is SAP” ? what is SAP ERP software? which is the best SAP module and which module has a best scope for bright future ?? What does SAP stands for  – SAP stands for Systems, Applications and Products in data processing. • SAP is the fourth largest software company in the world. • The SAP R/3 system is a business software package designed to What is SAP (System Applications Products)? The following articles guides you everything about SAP ERP Systems. The first question which arises in our mind “what is SAP” ? and  what is SAP ERP software? which is the best SAP module and which module has a best scope for bright future  ?? What does SAP stands for – integrate all areas of a              business. • It provides end to end solutions for financials, manufacturing...

BDC Recording in SAP ABAP

BDC Recording in SAP ABAP Here ,I explained The Steps to record any  Transaction (Example: VA01) to create BDC(Batch Data Communication) Program. Step 1  Execute transaction  SHDB  . Step 2  Enter  name  for recording  Step 3  Enter  transaction  to be executed Step 4  The transaction will now be executed, simply enter the values in the screen fields which you want to record.  Step 5  Once you have finished the recording and selected the  save  button or exit the transaction you  Creating an ABAP program Using a BDC recording   Go to SHDB Transaction Code and Click on New Recording. Give the Record name and Transaction code and click on Start New Recording Button. Now enter the Bank country and Key Now enter the Bank name ,City ,country and street.  Now Save the Recording . Now select the created record and click on Program. Now give the program title ...