Abap Notes

137
What is SAP and why SAP ? + - SAP Software is a ERP( Enterprise Resource Planing) solution, through which large and medium scale companies can manage their business.SAP Software is produced by a German based company SAP. SAP Company: SAP Company founded in 1972 in Germany by five former employes of IBM and they released standard versions called R1 and R2 in early days, and they released 3-tier architecture R3 in 1990`s which was very successful. In 2000 SAP released ECC (Enterprise Core Component), latest version in

description

ABAP Thoery notes

Transcript of Abap Notes

What is SAP and why SAP ?+-SAP Software is aERP( Enterprise Resource Planing)solution, through which large and medium scale companies can manage their business.SAP Software is produced by a German based company SAP.SAP Company:SAP Company founded in 1972 in Germany by five former employes of IBM and they released standard versions called R1 and R2 in early days, and they released 3-tier architecture R3 in 1990`s which was very successful.In 2000 SAP released ECC (Enterprise Core Component), latest version in market is ECC 6.0 and they are adding additions to this in the form of enhancement packs.Why SAP?Through SAP software a company can plan their business in different aspects like Supply Chain Solutions, Material Management, Sales and Distribution, Finance controlling, Human Resource planing, etc.The total SAP Software is built using ABAP Programing Language, which is a standard programing language developed by SAP it self, we call ABAP as 4th Generation Programing Language (ABAP/4)Some of Modules in SAP are : SAPFImodule: FI stands for Financial Accounting. SAPCOmodule: CO stands for Controlling. SAPCRMmodule: CRM stands for Customer Relationship Management. SAPCSmodule: CS stands for Customer Service. SAPECmodule: EC stands for Enterprise Controlling. SAPEHSmodule: EHS stands for Environment, Health and Safety. SAPFMmodule: FM stands for Fleet Management. SAPFSCMmodule: FSCM stands for Financial Supply Chain Management. SAPHRmodule: HR stands for Human Resources. SAPIMmodule: IM stands for Investment Management. SAPMMmodule: MM stands for Materials Management . SAPPLMmodule: PLM stands for Product Life Cycle Management. SAPPMmodule: PM stands for Plant Maintenance. SAPPPmodule: PP stands for Production Planning. SAPProduct Costing: Product Costing deals with Plan Costing Actual Costing of Finish products. SAPPSmodule: PS stands for Project Systems. SAPQMmodule: QM stands for Quality Management. SAPREmodule: RE stands for Real Estate. SAPSDmodule: SD stands for Sales and Distribution. SAPSMmodule: SM stands for Service Management. SAPTRmodule: TR stands for Treasury. SAPWMmodule: WM stands for Warehouse Management. SAPLOmodule: LO stands for Logistics General. SAPABAPmodule: ABAP stands for Advanced Business Application Programming. SAPBasis module: Basis also known as Basis Admin is typically the administration of SAP. SAPBImodule: BI stands for Business Intelligence. SAPBPCmodule: BPC stands for Business Planning and Consolidation. SAPBODImodule: BODI stands for Business Objects Data Integrator. SAPEPmodule: EP stands for Enterprise Portal. SAPGRCmodule: GRC stands for Group Risk Compliance. SAPMDMmodule: MDM stands for Master Data Management. SAPNetweavermodule: Netweaver provides technical foundation for SAP applications. SAPSecuritymodule: Security ensures security of enterprise operations. SAPSolution Managermodule: Solution Manager facilitates technical support for distributed systems. SAPXImodule: SAP Exchange Infrastructure (SAP XI) enables you to implement cross-system processes on services. SAPPImodule: SAP Process Integration (SAP PI) is enterprise application integration (EAI)software.SAP Consultants+-SAP is a huge software and in order to implement SAP ERP for a Organization, it needs lot of man power, the SAP implementation is done by different type of consultants .Types of consultants areFunctional ConsultantsTechnical ConsultantsNetwork Administrators

Functional consultants are responsible for configuring the real world business scenarios into SAP software .Ex: Configurations like Plants Configurations, Business Countries Configurations, Sales Organizations configuration etcTechnical consultants are responsible for coustomizing SAP ABAP software as per customer specifications i:e Developing New SAP Business Applications, Enhansing SAP Software, Creating SAP Tables etcNetwork Administrators are Basis Consultants, they are responsible for Network management and Network related SAP configurations like server maintenance, managing network down times, controlling network, user management etc

ABAP Consultant Roles and Responsibilities+-SAP ABAP Consultants are responsible for developing SAP business applications using SAP Standard programming language ABAP, the main roles and responsibilities of SAP ABAP Consultant are... SAP ABAP Consultants plays crucial role in implementation of SAP software for a organization . Total SAP software is developed using ABAP, ABAP consultants are needed in every SAP module.Implementation ProcessSupport Process

Getting the business Requirement document from functional consultant / functional analyst . Analyse the business Requirement. Analyse the estimated time for development. Development of Object ( ABAP application). Unit Testing by Developer . Releasing the object to testing environment . Prepare technical document of the development . Recieving tickets/issues from business . Analysing the ticket . Resolving the issue in time . Developer testing and transporting.

Note:ABAP Consultant roles and responsibilities may vary from company to company, the above are standard roles of ABAP consultants

Ticket system in support projects SAP ABAP Consultants+-Handling tickets is called Issue Tracking system. The errors or bugs forwarded by the end user to the support team are prioritized under three priorities High, Medium and Low. Each and every priority as got its time limits before that we have to fix the error.The main job of the supporting consultant is to provide assistance on line to the customer or the organization where SAP is already implemented for which the person should be very strong in the subject and the process which are implemented in SAP at the client side to understand,to analyses,to actuate and to give the right solution in right time.This is the job of the support consultant.The issues or the tickets(problems) which are raised is taken care of on priority basis by the support team consultants.The work process in support projects are given below for your reference.>1. The customer or the end user logs a call through any tool or by mail (RADIX).2. Each one of the support team is a part of support group.3. Whenever a customer logs a call he /she has to mention to which work group (by name).4. Once the calls came to the work group the support consultant or the team need to send an IR (Initial Response) to the user depending upon the priority of the calls. (Top,High,Med,Low,None)5. Then the error is fixed, debugged by the support consultant or the team. Then after testing properly by generating TR(Transport Request through the basis admin)6. Then it is informed to the end user/customer/super user about the changes which have moved to the production server by CTS process.These are the process. In summary, what I understand is that if any configuration or customization is required to solve the issue, then the consultant have to work on DEV Client, then the end user will test it in the QA client and after approval the BASIS consultant has to transport it to the PRODUCTION client.An example:Tickets in SD can be considered as the problems which the end user or the employee in the company face while working on R/3. Tickets usually occur during the implementation or after the implementation of the project. There can be numerous problem which can occur in the production support and a person who is working in the support has to resolve those tickets in the limited duration, every ticket has the particular deadline alert so your responsibility is to finish it before that deadline.To begin with , we should give "TICKET" to you for not knowing it.Here is an eg of a ticket raise:End user is not able to1. Create Sales order for a customer from a New plant , since shipping point determination is not happened . ( Without Shipping point the document becomes INCOMPLETE and he will not be able to proceed further like DELIVERY, BILLING).He raises a ticket and the priority is set in one of the below:1. Low 2. Medium 3. High.Now you need to solve this ticket. You would analyze the problem and identify that the SP configuration has to be done for the new plant.You would request a transport for DEV CLIENT to BASIS. You do the change and Request one more Transport to BASIS for QA client. The End user will test the same by creating a sales order for the new plant and approve it.Finally, you request a transport to move the changes to PRODUCTION. Once the change is deployed in production the TICKET is closed. What I have given is a small example. You would get some real issues with severity HIGH in your day-day support.

SAP System landscape+-SAP System landscape is the group of systems you have installed, all the systems are linked to different transport routs to main system, system landscape may vary from company to company or business to business, SAP recommended landscape is explained below.

What happens at system levels in SAP project implementation ? All SAP custom object developments and enhancements will be done in development system. Testing and different quality checks will be done in quality assurance system. After testing, the objects will be moved to main production system . All these systems are connected using Transport System. All systems are divided into different clients depends on business requirement.What is client concept in SAP ?Client is a concept of protecting data in SAP from accessing from outside a legal entity. SAP systems are divided into different clients depending on business requirement, the data can be accesses within the client only.Ex: Client 200, 300 etc.DEVDevelopment system, where all custom developments, enhancements and configurations will be done. Once development is completed the objects will be moved to testing system (QAS).It may have more than one client that is one for development and one is for configurations.QASQuality Assurance System where all the developed objects will be tested with different test cases.PRDThis is alive business system, where business users will be using the objects with real-time data, this is where the developed objects will be integrated and used for business purposes .

SAP Range TableApril 23, 2014ABAPLeave a commentTagged:dictionary,range table,report,select optionSAP Range Table represents complex selection criteria, its data structures is exactly like select-option but without any UI part and header line. In this blog I will explain how to define range table type in program and in dictionary for global use.

First little bit more about range table. When you define a select-option on selection screen you automatically get range table which is attached with that select option. However, if you want to define range table without having to define select option than you need to either define local or global range type. Also you need some mechanism of defining work area so that you can perform usual operation on range table. Range table have four columns SIGN, OPTION, LOW and HIGH.ColumnData TypePossible Value

SIGNCHAR length 1I includeE exclude

OPTIONCHAR length 2EQ EqualNE Not EqualGE Greater Than or EqualGT Greater ThanLE Less Than or EqualLT Less ThanCP Contains PatternNP -

LOWData type of selection fieldData value. Can also contain wildcards

HIGHData type of selection field, same as LOWData value in case of range criteria. Can also contain wildcards

ALV Report with Structure+-Requirement:Develop a ALV report to display material details with all fields from MARA table for a material range input(Select-Options input).In this requirement we have to display all fields from MARA (Material master table) in ALV format. We useREUSE_ALV_GRID_DISPLAYFunction module to display ALV report.Steps to create ALV Report with Structure .Step1: Declare Internal table for MARA table.Step2: Print Select-Options.Step3: Get data from database using select statements.Step4: CallFunction ModuleREUSE_ALV_GRID_DISPLAY and pass structure name, program name and itab name.TABLES : MARA. "DECLARE TABLE FOR SELECT-OPTIONSDATA : IT_MARA TYPE TABLE OF MARA. "DECLARE INTERNAL TABLE FOR MARADATA : WA_MARA TYPE MARA.SELECT-OPTIONS: S_MATNR FOR MARA-MATNR. "PRINT SELECT-OPTIONS FOR MATNRSTART-OF-SELECTION.SELECT * FROM MARA INTO TABLE IT_MARA WHERE MATNR IN S_MATNR .

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "CALL FUNCTION MODULE TO DISPLAY ALV GRIDEXPORTINGI_CALLBACK_PROGRAM = SY-REPID "SY-REPID IS A SYSTEM VARIABLE WHICH STORES CURRENT PROGRAM NAMEI_STRUCTURE_NAME = 'MARA'TABLEST_OUTTAB = IT_MARA. "PASS INTERNAL TABLE TO DISPLAY ALV FORMATThe above report after modularizationThe below one is full report after usingmodularization techniques.*&---------------------------------------------------------------------**& Report ZALV_STR*&*&---------------------------------------------------------------------*

REPORT ZALV_STR.TABLES: MARA.DATA : IT_MARA TYPE TABLE OF MARA .

SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.

START-OF-SELECTION . PERFORM GET_MARA_DATA . "Double click to create below form

END-OF-SELECTION . PERFORM DISP_MARA_ALV . "Double click to create below form

*&---------------------------------------------------------------------**& Form GET_MARA_DATA*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** --> p1 text* p1 text* p1 text* p1 text*