Posts

Showing posts with the label Object oriented programming

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

BACKGROUND PROCESSING

Image
BACKGROUND PROCESSING Describe the process flow of background jobs Define the scheduling and processing of background jobs Describe the job results for a job log and spool requests Define the authorization objects Describe the automatic generation of jobs Define the function modules for generating jobs Characteristics Execution of ABAP programs without dialog (no specific job-control language for operating system required) Complete integration in the SAP System Parallel background and online operation Ease of use Distributed processing Process Flow Overview Process Flow Processing Jobs – Job Status Scheduled Released Ready Active Finished or Cancel Authorizations and Background Processing Authorization and background Processing Function Modules for Generating Jobs OB_OPEN JOB_SUBMIT OB_CLOSE Job Wizard You can use the Job wizard to schedule a background job. Let us go through the steps to do this. Transaction SM36 is listed below. Click the Job wizard button. The Job Wizard is displaye...

SUBROUTINES

Image
Module Objectives Define and call subroutines Define and use parameters Define global and local data Defining and Calling Subroutines  Defining a Subroutine: FORM subroutine USING lp1 lp2. ... ... ENDFORM. Calling a Subroutine: PERFORM subroutine USING f1 f2. Using Parameters to Pass Data CHANGING  Pass By Value & Result USING Pass By Reference   Pass By Value  TABLES   Pass By Reference  Parameters Example parameter  

ABAP UNIT

Image
Module Objectives Purpose of ABAP Unit Creating Unit Tests Fixture Methods ABAP Unit Test Class Wizard ABAP Unit Test Classes in ADT Purpose of ABAP Unit ABAP Unit is part of the test landscape for ABAP programs. ABAP Unit lets you implement unit tests. ABAP unit tests are methods of specially designated ABAP classes. Test methods work as scripts, with which code under test can be run, and with which the results of a test can be evaluated. ABAP unit lets you test the code at unit level, independent of the entire solution. Creating Unit Tests ABAP unit tests are implemented in the form of test methods in local test classes in any ABAP programs. The expected results are checked with static methods of help class CL_ABAP_UNIT_ASSERT or CL_AUNIT_ASSERT . Unit test Test Properties Risk Level Harmless – the test does not affect any existing processes and/or Database data. Dangerous– the test will change Database or Persistent Data Critical – the test will affect customizing data Duration Sh...

SAP ERP ABAP DEBUGGING

Image
Module Objectives •Define debugging •Describe branching to debugging mode •Define key debugging concepts and functions •Explain the debugging mode •Describe examining/changing variables •Debugging in ADT •Identify breakpoints and watchpoints •Debug internal tables What is Debugging? •Tool used to identify and eliminate errors in ABAP programs •Allows the verification of program logic in a step-by-step manner by examining the results of individual statements Branching to Debugging Mode ABAP Debugging Key Debugging Concepts •Debugger modes •Examining the value of variables •Changing the value of variables •Setting breakpoints •Setting watchpoints •Viewing contents of internal tables Classic Debugging Display Below is the screen shot of how the debugger looks like. Classic Debugging Display Important Debugging Functions Single Step   -Processes the next program line Execute        -Allows the change of data contents during debugging Continue      -Pr...

Online Classes SAP ERP ABAP Data

Image
SAP ERP ABAP 7.4 (Object oriented) DATA •Define variables with the DATA statement •Define constants •Apply type conversions •Explain arithmetic expressions •Perform date calculations •Use parameters (checkboxes and radio buttons) •Create selection screen boxes Predefined Data Types and Their Attributes Predefined Data Types and Their Attributes in SAP ABAP we have many type of data type to hold the value into the variables, from above table you can have a idea about the data type and meaning of datatype. Type-Specific Output below chart will give us the idea about type Specific output. Data Types in ABAP like other programming languages SAP ABAP have data types, which are divided into two categories, Elementary and structured, the Structured is further divided into Structure and internal table. Data Declaration - DATA Statement To store values in any variable we need to do the data declaration, we can only assign a value to a variable if the contain and value have the same datatype. R...