Posts

Showing posts with the label Reports

How to Pass Selection-screen Information in SAP ABAP ALV Report

How to Pass Selection-screen Information in SAP ABAP ALV Report In the previous post, we have discussed How to Define SAP ABAP ALV Report Output list description, SAP ABAP ALV Reports data declaration, Events Table, Selecting the optional Variants and Output Field Characteristics and their importance in the ALV report, from this post, we will learn about Pass Selection-screen Information in SAP ABAP ALV Report. This step is required to get the selection screen information in the report output. The prerequisite is to set the parameter LAYOUT-GET_SELINFOS of the IMPORTING structure. The parameters to be passed in the IS_SEL_HIDE table are: o mode:              'R' = only the entries are given in the internal table IS_SEL_HIDE-T_ENTRIES      Is output in the pop-up. Selection info, which the list tool read in the selection screen (when called by a report with a selection screen), is replaced by the values passed. 'S' = ...

How to Define SAP ABAP ALV Report Output list description

Image
How to Define SAP ABAP ALV Report Output list description In the previous Post ,we have discussed about SAP ABAP ALV Reports data declaration ,Events Table ,Selecting the optional Variants and Output Field Characteristics and their importance in ALV report ,from this post ,we will learn about ALV Report Output list description which defines the list output that is ALV layout which user want to display on the real time screen. A layout is build for the report output list description USING the internal table declared above (I_LAYOUT). Output list description structure.      The parameters are described under the following heads: -          Display options -          Exceptions -          Totals -          Interaction -          Detail screen -          Display variants (only for hierarchical-sequential ...

What is Search Help Exit in SAP ABAP and How to Create it

What is Search Help Exit in SAP ABAP and How to Create it? Search Help Exit You may not know the correct records when you searching for some information from the SAP Data Base, in this case, based on known values, you can filter records to retrieve the data or you can filter the data to fetch your required records with the help of Search Help Exit and also using this function module, you can modify F4 Values at run time. Search Help Exit Definition Search Help Exit is a function module which contains predefined changing and tables parameter you can be modified/filter the F4 values selected by Elementary or collective search help using Search help exit function module from the DataBase table. Consider searching for sales order through VA03, and select sales document not fully confirmed tab, enter the customer number, and press enter   The result list will be displayed as below,   Now say our requirement is to have a customer number and custome...

SAP ABAP Operators

SAP ABAP Operators Arithmetic operators are used in mathematical expressions,Comparison Operators,Bitwise Operators,Character String Operators. All ABAP operators are classified into four categories − Arithmetic Operators Comparison Operators Bitwise Operators Character String Operators SAP ABAP Operators Example Programs REPORT ZS_SEP_01. DATA: A TYPE I VALUE 150, B TYPE I VALUE 50, Result TYPE I. Result =  A / B. WRITE / Result. DATA: A TYPE I VALUE 115,       B TYPE I VALUE 119.       IF A LT B.       WRITE: / 'A is less than B'.       ENDIF REPORT ZS_SEP_02. DATA: A TYPE I.       IF A IS INITIAL.       WRITE: / 'A is assigned'.       ENDIF. REPORT ZS_SEP_03. DATA: P(10) TYPE C VALUE 'APPLE',       Q(10) TYPE C VALUE 'CHAIR'.       IF P CA Q.       WRITE: / 'P contains at least one cha...

Table Components in SAP ABAP

Table Components in SAP ABAP As a SAP ABAP ,Every ABAP Developer should know about table components and its Technical details to increase basic strong knowledge to understand the Table Components technically. A relationship which can be defined between tables and must be explicitly defined at field level. Foreign keys are used to ensure the consistency of data. Data entered should be checked against existing data to ensure that there are now contradiction. While defining foreign key relationship cardinality has to be specified. Cardinality mentions how many dependent records or how referenced records are possible. What are Compound Foreign Key in ABAP Dictionary? A compound foreign key is a foreign key composed of two or more fields. In other words, a check is done to compare two fields in the foreign key table against two fields in the check table. The combination of values must exist in the check table before they can be inserted into the foreign key table. However...

Use of field symbols in SAP ABAP programming, using field symbols in SAP ABAP

Use of field symbols in SAP ABAP programming, using field symbols in SAP ABAP  the declaration operator FIELD-SYMBOL declares a field symbol <fs> to which a memory area is assigned in the current operand position. The declared field symbol is visible statically in the program from FIELD-SYMBOL (<fs>) and is valid in the current context. The declaration is made when the program is compiled, regardless of whether the statement is actually executed. The syntax for declaring a field symbol. FIELD-SYMBOLS: <FIELD_SYMBOL> TYPE MARA-MATNR. "here MARA-MATNR is a variable type FIELD-SYMBOLS: <FIELD_SYMBOL> TYPE  MARA. "here MARA is a structure FIELD-SYMBOLS: <FIELD_SYMBOL> TYPE REF TO DATA . "here DATA is a reference type  ASSIGNING and ASSIGN are the keywords that are used to assign a value to the field symbol. Example of using field symbol as a work area In the below example we are going to use the field symbol as a work area. REPORT ZS...

How to Write a Program in SAP ABAP

Image
How to Write a Program in SAP ABAP Anybody who want to lean SAP and Going to learn  SAP Programming Language  must be know the what is SAP Program ,How it will be created in SAP System and What is the Language(ABAP) used to create SAP Application Programs. What is ABAP Programming Language in SAP? ABAP (Advanced Business Application Programming) ABAP is a  programming language  that runs in the SAP ABAP run time environment, created and used by SAP for the development of  application programs . ABAP is also called ABAP/4, The “4” in ABAP/4 stands for “Fourth Generation Language” . How to Start SAP ABAP   Different types of ABAP Programs Reports Module Pool Programming Interfaces Forms Data conversions User Exits & BADI All of R/3’s applications and even parts of its basis system were developed in ABAP. Steps to create SAP Program Log in to SAP System. Now give the User Name and Pass word. SAP Systems...

How to Create SAP ABAP Query Using SQ01 Step by Step Guide

Image
How to Create SAP ABAP Query Using SQ01 Step by Step Guide You can create ABAP query objects if they do not exist in the SAP system. You can create an SAP query without  ABAP programming knowledge. ABAP Query provides users with a variety of ways to define and create different types of reports , such as Basic Lists , Stats , and Sorted Lists . ABAP query consists of four elements: Queries InfoSets Groups Translation query Queries The query component is used by end-users for Queries. You can create queries, change, and queries executed. Transaction SQ01. Trnslation component / QUERY Many texts to define queries, InfoSets, and user groups are generated. These texts are displayed in the language we choose to access the SAP system. We can compare the text or languages ​​that use this component. InfoSets InfoSets are the views of the Special Data Sources. An InfoSet Describes the fields of a data source that can be reported in the query. An InfoSet can be a...