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 ALV Reports Interview Questions and Answers for Experienced.

SAP ABAP ALV Reports Interview Questions and Answers for Experienced. Here, i am sharing very import real time oriented questions which are faced at several interviews on ALV Reports to help for freshers and experienced SAP ABAP consultants with appropriate answers . What is ALV? ALV stands for ABAP List Viewer. ALV gives us a standard List format and user interface to all our ABAP reports. ALV is created by a set of standard function modules provided by SAP. What are the uses of ALV reports? Sorting of records Filtering of records Totals and Sub-totals Download the report output to Excel/HTML Changing the order of the columns in the report Hide the unwanted columns from the report What are standard function modules used to create ALV? REUSE_ALV_LIST_DISPLAY Display an ALV list REUSE_ALV_GRID_DISPLAY Display an ALV grid REUSE_ALV_COMMENTARY_WRITE Output List header information REUSE_ALV_VARIANT_F4 Display variant selection dialog box REUSE_ALV_VARIANT_EXISTENCE Checks w...

Overview of ABAP Programming Language

 Overview of ABAP Programming Language Basic Syntax of ABAP *ABAP 4 is a programming language developed by SAP for the interactive development of application programming. *ABAP 4 is a fourth generation language. ABAP 4 is tightly integrated across all the modules viz like SD, MM, HR etc and most or all of the modules and transactions(like screens are created using ABAP). *All application programs, along with parts of the R/3 Basis system, are written in the ABAP Workbench using ABAP, Sap's programming language. The individual components of application programs are stored in a special section of the database called the R/3 Repository. The R/3 Repository serves as a central store for all of the development objects in the R/3 System ABAP Programs are objects of R/3 Repository. You maintain them using ABAP WorkBench Tool- in this case its ABAP Editor(Transaction SE38). R/3 applications are written in the ABAP programming language, and run within the application layer ...

SAP INTERVIEW QUESTIONS AND ANSWERS

SAP INTERVIEW QUESTIONS AND ANSWERS What is SAP? SAP is the name of the company founded in 1972 under the German name (Systems, Applications, and Products in Data Processing) is the leading ERP (Enterprise Resource Planning) software package. SAP Basics feature * Configuration of the SAP modules o Transaction SPRO - this is the main tree for all the configuration. * Function Key o F1 - Help o F4 - Possible entries or matchcode for the field you are accessing o F5 - Selection screen o F7 - Previous screen o F8 - Next screen o F9 - Technical info o CTRL+X - Cut o CTRL+C - Copy o CTRL+V - Paste * Navigation o /n Skip to the next record if you are processing one batch input session o /bend Cancel a batch input foreground process o /nend Close all R/3 sessions and logoff o /nxxx x Call the transaction xxxx in the same session o /o Generate a session list o /oxxx x Call the transaction xxxx in an additional session o /i Delete the current session o /h Turn the de...