Posts

Showing posts from 2017

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 Disable Icons in SAP ALV Toolbar :SAP ABAP Language

How to Disable Icons in SAP ALV Toolbar :SAP ABAP Language I have developed One SAP ALV Report in which i want to Disable Icons ,so How can you do that ,to learn ,follow the below steps. Fetch data from database table. Build field catalog and fill the excluding table with function codes of icons that you want to disable. &ILT& is the function code for Filter Icon. Pass field catalog and excluding table to function module ‘REUSE_ALV_GRID_DISPLAY’. TYPE-POOLS: slis.  " SLIS contains all the ALV data types *&---------------------------------------------------------------------* *& Data Declaration *&---------------------------------------------------------------------* DATA: it_sbook     TYPE TABLE OF sbook. DATA: it_fieldcat  TYPE slis_t_fieldcat_alv,       wa_fieldcat  TYPE slis_fieldcat_alv. DATA: it_excluding TYPE slis_t_extab,       wa_excluding TYPE slis_extab. DATA: g_repid  ...

SAP ABAP Full Form

SAP ABAP Full Form Many ABAP beginners do not know what is SAP ABAP Full Form? so I discussed here it, in brief, to teach ABAP Full Form for ABAP learners. ABAP stands for Advanced Business Application Programming. It is a programming language developed by SAP. SAP is a German company that develops ERP (Enterprise Resource Planning System) systems. ABAP (Advanced Business Application Programming) is a programming language for developing applications for the SAP R/3 system, a widely-installed business application subsystem. The latest version, ABAP Objects, is object-oriented programming. SAP is just a company name and Abap or Abap/4 is a language programming. SAP company has a lot of products: ERP(material, sales, costs, financial), CRM, SRM, SCM, and all of them are customizing and programmed with ABAP and Java. ... Much of SAP's software is written in ABAP. Functional SAP ERP Modules Human Resource Management (SAP HRM), also known as Human Resource (H...

How to Check RFC Connection using Function Module RFC_PING before Calling RFC Function Module

How to Check RFC Connection using Function Module RFC_PING before Calling RFC Function Module RFC part in SAP ABAP is may be some what confused ,but learn How to validate RFC connection in SAP?,Validating RFC destination before calling RFC function module, check RFC connection using Function module RFC_PING In ABAP programming, some times we may need to validate and check RFC Destination before calling a function module, you can find useful information in this tutorial. Required validations for RFC: Check if RFC destination is available or not. Check RFC destination connection is working or not. Example programm to validate RFC destination All the RFC destinations are stored in table RFCDES, we can check connection using function module RFC_PING (When ever you call and RFC, it will automatically validate connection, if you need to validate explicitly you can use this function module). REPORT ZSRI_CHECK_RFC. DATA : WA_DES TYPE RFCDES. PARAMETERS P_RFC TYPE STRING. ...

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...

SAP ABAP Tutorial with Screenshots

SAP ABAP Tutorial with Screenshots These tutorials explained with screenshots for ABAP Language learning beginners, which are step by step tutorials to learn SAP ABAP Language easily. ABAP Programming Language Basics tutorials with screenshots ABAP Syntax ABAP Statements ABAP Program Types SAP ABAP Workbench Tools Data Dictionary Tutorials with Screenshots       Data Dictionary Overview     Tables     Domain     Data element     Views     Lock Objects     Types     Search Helps SAP ABAP Reports and ALV Tutorials         What is Internal Table ?    Events in Interactive Reports    ALV Reports    ALV Field Catalog in ABAP    Simple ALV Report Example    ABAP ALV Interactive Report SAP ABAP BDC Tutorials      BDC and LSMW    BDC Call Transaction Method Program in SAP ABAP...

BADI in SAP ABAP Step by Step

 BADI in SAP ABAP Step by Step BAdI Acronym of Business Add Ins As a customer outsider, it helps BAdI to improve SAP functionality.  Why is BADI? Unlike previous improvement methods, BADI continues the approach aimed at re-use objectives. BADI can be used in a number of times that these standard evaluation techniques can only be used once. For example, if you are upgrading a custom project, you can not map the extension on other custom projects. In order to overcome this disadvantage, SAP provided a new evaluation technique called BADI. Code of transaction for BADI definition: SE18 When you create a BAdI definition, you create a class interface automatically and you can define the methods in the interface. The application of the methods can be made in SE19 transactions. When created BAD, they are generated automatically: An interface with 'IF_EX_' is inserted between the first and second characters of the BAdi name Class classified as 'CL_EX_' inserted ...

What is BAPI in SAP ABAP with Example

What is BAPI in SAP ABAP with Example What is BAPI? The Business Application Programming Interface (BAPI) is a standardized programming interface (method) that allows external applications to access enterprise processes and R / 3 system data. BAPIs are defined in the Business Object repository (BOR) as SAP Business Object-type methods that perform certain business functions. They are implemented as RFC-compatible functional modules and are created in the ABAP Workbench function generator. Some BAPIs and methods provide basic functionality and can be used in most SAP business objects. These are called BAPI NORMALIZED. BAPIs for Mass Processing -ChangeMultiple(), CreateMultiple(), DeleteMultiple(). BAPIs for Reading Data - GetList() , GetDetail() , GetStatus() , ExistenceCheck(). BAPIs for Creating or Changing Data- Create() ,Change(),Delete() and Undelete() . They provide stable and standardized methods for perfect integration between the R / 3 system and external appl...

ABAP Code Inspector Tool

ABAP Code Inspector Tool The Code Inspector is a tool for checking static ABAP coding and DDIC objects . It helps developers to adhere to programming standards and guidelines by creating messages on less-than-optimal coding. The Code Inspector offers various possibilities to define object sets and to combine multiple single checks in so-called "check variants". Single object checks from the Development Workbench  You can check a single object with the Code Inspector from the ABAP Editor (transaction SE38), the Function Builder (transaction SE37), the Class Builder (transaction SE24), or the ABAP Data Dictionary (transaction SE11). To do this, choose <object> > Check > Code Inspector from the menu, where <object> can be a program, function module, class, or table. Checks on transport objects from the Transport Organizer  You can invoke the Code Inspector from within the Transport Organizer (transaction SE09) to check objects in a transport requ...

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...