Posts

Showing posts with the label Sap Abap

SEQUENTIAL FILES

Image
Module Objectives Describe the process of opening and closing files Define binary mode and text mode Define the TRANSFER and READ DATASET statements Define the CLOSE DATASET and DELETE DATASET statements Define ABAP statements to fill the fields of a structure Define the process for reading, extending and creating a file Data Imports and Exports Data imports and exports Processing Files there are three step of File processing. Open file Process file Close file Working with Sequential Files Reading Data OPEN DATASET <file name> FOR INPUT. : : READ <file name> INTO <field>. : : CLOSE DATASET <file name>. Writing Data  OPEN DATASET <file name> FOR OUTPUT. :   : TRANSFER <field> TO <file name>. :   : CLOSE DATASET <file name>. style="display:block" data-ad-format="fluid" data-ad-layout="image-side" data-ad-layout-key="-fg+5r+6h-fn+4k" data-ad-client="ca-pub-4708127434193346...

BASIC ALV

Image
BASIC ALV •Define and describe ALV •Discuss and use the standard function module ‘REUSE_ALV_GRID_DISPLAY’ in ABAP program •ALV Navigation Define and Describe ALV The ALV (ABAP List Viewer) is a flexible tool for displaying lists in SAP. The tool provides common list operations as generic functions and can be enhanced by user-defined options. This allows you to use the ALV grid control in a wide range of application programs. For this module, the simplest way to use ALV will be discussed. Advanced topics in ALV may be discussed in the later part of the Training. Sample ALV Output Sample ALV output The ALV Field Catalog The field catalog is an internal table which contains information about the fields to be displayed on the ALV. The type is SLIS_T_FIELDCAT_ALV. We must first build the field catalog before displaying any output in the ALV. There are many fields in the field catalog but for a simple output, the only necessary fields are FIELDNAME and SELTEXT_L. Using the FM ‘REUSE_ALV_GRID...

FUNCTION MODULES

Image
FUNCTION MODULES Module Objectives Define Function Modules Define Function Groups Describe Function module Parameters Explain Exception Processing Define global data / local memory Use Remote Function Call (RFC) Search the Function Library Introduction to Function Modules •Function modules are procedures that are defined in special ABAP programs, so-called function groups, that can be called by all ABAP programs. •Function groups act as containers for function modules that logically belong together. •Function modules also play an important role during updating and in the interaction between different SAP systems, or between SAP systems and remote systems through remote communications. function module Navigating to Function Modules (SE37) Navigating to function Modules Navigating to Function Modules (ADT) Navigation to function Modules Function Groups Function Groups function groups Calling a Function Module Calling a function module Parameters Parameters Exception Processing Exceptions...

SAP ABAP SELECT STATEMENT

Image
Module Objectives •Explain database Tables / data browser •Use the SELECT statement and the WHERE clause •Describe the SELECT SINGLE statement •Explain the ORDER BY addition •Describe retrieving individual columns •Exclude duplicate records during selection •Describe the SELECT statement syntax •Define aggregate expressions •Familiarization with ABAP 7.40 select statement new features •Discuss performance and best practices •SQL Console SELECT Statement - Basic Form the select statement is very simple in ABAP, we just use Keyword SELECT the we specified all columns of the table which we want to get we use * to show all columns with FROM keyword we specified the table. then we use a variable which will hold the result of the table and, in the end, we use ENDSELECT  to end the select query. Select Query Selecting specific fields from database table Selecting specific fields from database table Inline Declaration after INTO for ABAP 7.40 instead of defining all the fields in ABAP 7....

SAP ERP ABAP SIMPLE OUTPUT STATEMENTS

Image
Module Objectives •Explain the WRITE statement •Define text symbols •Use system fields •ABAP Expressions for WRITE Processing Review on How to create an ABAP Program The WRITE Statement Text Symbols Text symbols have the advantage of being translated to different languages depending on the logon language without further coding. After maintenance, save and activate the text symbols. System Fields •System fields are variables filled by the ABAP runtime environment and can be used in an ABAP program to know system statuses. •They should only be accessed on a read-only basis and not modified during runtime. Examples: sy-datum – system date sy-datlo – user local date sy-uname – user name sy-langu – SAP logon language key sy-uzeit – system time sy-timlo – user local time sy-repid – current ABAP program sy-sysid – current SAP system ABAP Expressions for WRITE Processing Using String Templates •String templates enables us to create a new character string out of literal texts and embedded expre...

ABAP PROGRAMMING OVERVIEW

Image
Module Objectives Explain program structure Discuss both current and obsolete ABAP events Overview on classic ABAP Comments Program Structure Classic ABAP Program structure ABAP Events Commenting Programs

SAP ERP ABAP DEVELOPMENT TOOLKIT (ADT) NAVIGATION in Eclipse Luna

Image
Connecting to SAP ERP system in Eclipse Luna open Eclipse Luna click on file -> new -> project Select the ABAP Project Now click on Browse to check the valuable connections. now Click on Define Manually radio button and insert the Properties of connection  now enter the login client , user and password which is provided to you by SAP basis team. Since we are creating an ABAP project this will open a ABAP perspective. Perspective gives you an option to work in different areas of Eclipse, Now you are ready with your project and connected to your box Coding ABAP in Eclipse Luna Navigation open Eclipse and click on file -> new -> ABAP program Enter the required information like Project name, Packages , Name and description and click next Select a transport request / create a new request/ or enter a request number. In $TMP package, it is not needed to use a request number You are now ready to code and launch in Eclipse Luna! Enter a write statement as per the example and exe...