Premium Essay

Abap

In:

Submitted By rds6162
Words 465
Pages 2
REPORT ZAPPEND_TABLE_DEMO
DATA: BEGIN OF LINE,
COLA TYPE C,
COLB TYPE I,
END OF LINE.
DATA : TABLE1 LIKE OF LINE ,TABLE2 LIKE TABLE1.

DO 3 TIMES .
LINE-COLA = SY-INDEX. LINE-COLB = SY-INDEX ** 2.
APPEND LINE TO TABLE1.
LINE-COLA =SY-INDEX . LINE-COLB = SY-INDEX ** 3.
APPEND LINE TO TABLE2.
ENDDO.
APPEND LINES OF TABLE2 FROM 2 TO 3 TO TABLE1.
LOOP AT TABLE1 INTO LINE.
WRITE : / LINE-COLA, LINE-COLB.
ENDLOOP.

REPORT ZAPPEND_TABLE_DEMO
DATA : BEGIN OF ROW ,
COL1 TYPE I,
COL2 TYPE I,
COL3 TYPE I,
END OF ROW.
DATA MYTABLE LIKE TABLE OF ROW INITIAL SIZE 2.
ROW-COL1 = 1. ROW-COL2 = 10. ROW-COL3 = 100.
APPEND ROW TO MYTABLE SORTED BY COL2.
ROW-COL1 = 2. ROW-COL2 = 20. ROW-COL3 = 200.
APPEND ROW TO MYTABLE SORTED BY COL2.
ROW-COL1 = 3. ROW-COL2 = 30. ROW-COL3 = 300.
APPEND ROW TO MYTABLE SORTED BY COL2.
ROW-COL1 = 4. ROW-COL2 = 40. ROW-COL3 = 400.
APPEND ROW TO MYTABLE SORTED BY COL2.
ROW-COL1 = 5. ROW-COL2 = 50. ROW-COL3 = 500.
APPEND ROW TO MYTABLE SORTED BY COL2.
LOOP AT MYTABLE INTO ROW .
WRITE : / ROW-COL1, ROW-COL2, ROW-COL3.
ENDLOOP.

REPORT ZREADLINES_DEMO,
COLA TYPE I,
COLB TYPE I,
END OF RECORD.
DATA MYTABLE LIKE HASHED TABLE OF RECORD WITH UNIQUE KEY COLA.

DO 4 TIMES.
RECORD-COLA = SY-INDEX.
RECORD-COLB = SY-INDEX ** 3.
INSERT RECORD INTO TABLE MYTABLE.
ENDDO.
RECORD-COLA = 3 . RECORD-COLB = 64.
READ TABLE MYTABLE FROM RECORD COMPARING COLB.
WRITE : ‘SY-SUBRC.
SKIP.
WRITE : / RECORD-COLA, RECORD-COLB.

REPORT ZREADLINES_DEMO.
DATA BEGIN OF LINE,
COLA TYPE I,
COLB TYPE I,
END OF LINE.
DATA MYTABLE LIKE SORTED TABLE OF LINE WITH UNIQUE KEY COLA.
DO 4 TIMES .
LINE-COLA = SY-INDEX.
LINE-COLB = SY-INDEX ** 2.
INSERT LINE INTO TABLE MYTABLE
ENDDO.

CLEAR LINE.
READ TABLE MYTABLE WITH TABLE KEY COLA = 3 INTO LINE TRANSPORTING COLB.
WRITE :/ ‘SY-SUBRC = ‘, SY-SUBRC,
/ ‘SY-TABIX=’, SY-TABIX.
SKIP.

Similar Documents

Premium Essay

Abap

...A Step-by-Step Guide on IDoc-ALE between Two SAP Servers Applies to: All modules of SAP where data need to transfer from one SAP System to another SAP System using ALE IDoc Methodology. For more information, visit the ABAP homepage. Summary This Document explains step by step procedure to transfer the Material which was created in a SAP server to another SAP server using IDoc Methodology. Author: Boga Uamshankar Company: BOA Created on: 4 January 2011 Author Bio SAP Interface developer working for MNC company in India SAP COMMUNITY NETWORK © 2011 SAP AG SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1 A Step-by-Step Guide on IDoc-ALE between Two SAP Servers Table of Contents TCodes used in this Procedure .......................................................................................................................... 3 Major Steps Involved in IDoc Processing ........................................................................................................... 3 Step 1: Creation of Logical System in IDES System for Client 800 ................................................................ 4 Step 2: Creation of Logical System in RD2 System for Client 120 ................................................................. 8 Step 3: Creation of Another Logical System in IDES System......................................................................... 8 Step 4: Creation of RFC Destination in IDES System ......

Words: 2743 - Pages: 11

Premium Essay

Sap Smart Forms

...neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions). SAP Smart Form Process Overview The basic structure of SAP Smart Forms consists of the Smart Form Builder, the Smart Form print form template (which you create or is given to you as a preconfigured starting point), the Smart Form function module, and the Smart Form print program (also described as a driver program). The Smart Form print programs are not the same as SAPScript programs, and you cannot use a SAPScript print program with a Smart Form print form. Programming Flow When an SAP Smart Form template is created, a user creates the form layout, defines the required fields, conditions, and special programming instructions in the Smart Form template using the Smart Form Builder. After the form design is complete, the form needs to be activated before it can be tested or accessible by print programs. Activating the form initiates the generation of a function module that handles all of the form’s processing. This function module interacts with the application program and print program to create the output in the user-defined output media for the specified device. 5 Steps to create a simple SMARTFORMS Read the abap program in step 5 first to see how the data is begin pass to the internal table. 1. Create a new...

Words: 2824 - Pages: 12

Premium Essay

Costco

...SAP ABAP Summary This article demonstrates in a step-by-step process to write Backup Domain Controller (BDC) reports to do data transfer from legacy system, which is important work during SAP implementation projects. Author(s): Renjith Kumar. P Company: PRICOL Technologies Created on: 21 January 2007 Author Bio P. Renjith Kumar is SAP BI Consultant with PRICOL Technologies. He has extensive cross-functional experience and has been with end-to-end SAP implementations as ABAP Consultant. SAP DEVELOPER NETWORK | sdn.sap.com © 2007 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 1 BDC Step-by-Step Table of Contents Overview: How It Works .................................................................................................................. 2 Steps in data transfer....................................................................................................................... 2 Data Transfer Methods .................................................................................................................... 3 Step-by-Step Process...................................................................................................................... 3 Task 1: Recording............................................................................................................................ 3 Task 2: Creating ABAP Report based on recording done............................................................... 6 Task 3: Writing ABAP report...

Words: 1329 - Pages: 6

Premium Essay

Fitter Snacker

...Problems with Fitter Snacker’s Sales Process Fitter-Snacker Case and SAP Configuration • Fitter Snacker has separate information systems for three functional areas: – Sales order processing – Warehouse management – Accounting • Sales transaction data is shared with accounting via periodic file transfers • Credit data is shared between accounting and sales via paper printout – High number of manual transactions leads to many opportunities for data error 4 Overview of Fitter Snacker • Fictitious Fitter Snacker Company produces two snack bars: – NRG-A: “Advanced Energy” – NRG-B: “Body-building proteins” • Fitter Snacker has two sales divisions: – Wholesale: sells to middlemen who distribute bars to small shops, vending machine operators, health food stores – Direct: large grocery stores, sporting goods stores, other large chain stores Sales Process • The Sales Process involves a series of steps that require coordination between: – – – – Sales Warehouse Accounting Receiving • Note that manufacturing is not generally involved in the sales process as NRG bars are usually sold from warehouse stock 2 5 Overview of Fitter Snacker Sales Process • Direct Sales: offers volume discounts to encourage large orders which are more efficient to process • Wholesale: charges lower fixed price because customer orders are already large (otherwise, the customer would be handled by Direct division) • Both divisions offer terms...

Words: 2501 - Pages: 11

Free Essay

Sap Review

...การใช้งานระบบ SAP เบื้องต้น ในส่วนต่อไปนี้ จะเป็นการแนะนำการใช้งานระบบ SAP เบื้องต้น โดยที่ส่วนของ Desktop ของเครื่องคอมพิวเตอร์ จะมีโปรแกรม SAP Logon ดังรูป เมื่อดับเบิ้ลคลิกที่โปรแกรม SAP Logon เราจะได้หน้าจอดังรูป ให้คลิกที่ User-Defined… เพื่อทำการเพิ่มระบบที่เราจะทำการ Logon เข้าไปใช้งาน เราจะได้หน้าจอดังรูป จากนั้นให้ทำการระบุรายละเอียดของระบบ SAP ที่เราต้องการ Logon เข้าไปทำงาน โดยที่ส่วนของ Description ให้ใส่ค่าอะไรก็ได้ที่จะให้ปรากฏอยู่ที่ส่วนของ SAP Logon ในที่นี้คือค่า SAP R/3 Enterprise : TRN ที่ส่วนของ Application Server ให้ระบุค่า IP Address ของ SAP Application Server ในที่นี้คือค่า 161.200.64.7 และท่ส่วน System ID ให้ระบุค่า SID ของระบบ SAP ในที่นี้คือ TRN และส่วนสุดท้ายคือค่า System Number ของ SAP Application Server ในที่นี้คือค่า 00 จากนั้นคลิกที่ปุ่ม Add เราจะได้หน้าจอดังรูป จากนั้นถ้าเราต้องการ Logon เข้าไปใช้งานระบบ SAP ให้เลือกระบบที่เราต้องการ Logon เข้าไปทำงาน จากนั้นคลิก Log on เราจะได้หน้าจอดังรูป ที่ส่วนของ Client ให้ระบุค่า Client ที่ต้องการเข้าไปทำงาน ในที่นี้คือค่า 800 ที่ส่วน User ให้ระบุค่า User ID ในระบบ SAP และใส่ค่า Password จากนั้นกด Enter เราจะได้หน้าจอดังรูป ถ้าในกรณีที่ User คนนี้ มีการ Logon เข้าไปใช้ระบบ SAP แล้ว ระบบจะแสดง Dialog Box เตือนว่า มีการ Logon เข้าไปแล้วโดย User ที่ชื่อ student นี้ ถ้าเราต้องการ Logon เข้าไปใช้งานด้วย โดยที่ User ที่ทำการ Logon ก่อนหน้านี้ที่ชื่อ student ก็ยังคงอยู่ในระบบ...

Words: 834 - Pages: 4

Premium Essay

Sap Pricing

...® ® ® ® ® ® are registered trademarks of UNIX , X/Open , OSF/1 , and Motif are registered trademarks of The Open Group. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C , World Wide Web Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute of Technology, 545 Technology Square, Cambridge, MA 02139. JAVA is a registered trademark of Sun Microsystems, Inc. , 901 San Antonio Road, Palo Alto, CA 94303 USA. JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, SAP Logo, mySAP.com, mySAP.com Marketplace, mySAP.com Workplace, mySAP.com Business Scenarios, mySAP.com Application Hosting, WebFlow, R/2, R/3, RIVA, ABAP, SAP Business Workflow, SAP EarlyWatch, SAP ArchiveLink, BAPI, SAPPHIRE, Management Cockpit, SEM, are trademarks or registered trademarks of SAP AG in Germany and in...

Words: 33963 - Pages: 136

Free Essay

Tms Discussion

...(Host and Sys number) 4: Create transport route(consolidation route - DEV to QA and Z<SID> is the transport layer and delivery route - QA to PRD ) one-system,two-system,three-system landscape hierarchical list and graphical editor 5: Distribute and activate the new data 6: Check the RFC Connections Transport route: route to configure change requests when released in the dev flow through qa and them to prd. Transport Layer: This is assigned to dev work and determines the target system for the objects to be transported. Exporting and importing of transport requests using SAP transport control program(tp) Directory : as/usr/sap/trans Transport subdirectory: bin,buffer,cofiles,data,EPS,log,sapnames,tmp Tables: TRBAT , TRJOB ABAP Program : RDDIMPDP Report: RDDNEWPP Two types of transports - Configuration and development transports(Transport naming convention - <SID>K900000 ) SE01 - create transport request SE09 / SE10 to release tasks Solution manager - SOLAR02 - Configuration - System role - Access SE09/SE10 Transport log - SE03 , SE10 , SE09 - table TPLOG Return codes : '0' - successful '4' -warning '8' - error Example: - Transport route - DEV system development - ZTST Transport layer for M Phase project - QAT Quality system ...

Words: 527 - Pages: 3

Premium Essay

Fasttrack It Academy

...PROFILE I. Executive Summary of FIT’s profile FastTrackSolutions, Inc (FTSI) introduced its SAP Education arm in August of 2006, focusing on SAP Business One Certfication Courses. Its birth was brought about by the increasing demand for trained SAP Consultants ready for project implementations. 2007 paved the way for expansion of its SAP Programs to Universities and Colleges across the Philippines. To date , FIT is of service to more than 60 University partners for their SAP subject requirements. In 2010 , it has been granted accreditation by SAP Philippines as the only IT academy providing SAP All-In-One Education in the country. FIT offers Specialization in A1 Financials (FICO) , A1 Logistics (SD, MM, PP) , A1 Technical (BASIS) and ABAP Programming. A few years into its inception, the company found itself faced with an unexpected demand for training from different sectors of society. Fasttrack developed and conducted various IT training programs for members of the corporate community. Seeing the steady rise in demand for IT training, FastTrack made the strategic decision to change course. In 2011, Fasttrack IT (FIT) Academy emerged as a full service training facility that offers a wide range of Information Technology courses and certification, to professionals , universities and corporate sector. FIT Academy launched courses which are highly in demand not only in the country but also in the global marketplace. Courses on Mobile Development (iOS/ Android) , Business...

Words: 1593 - Pages: 7

Free Essay

Bapi

...SAP R/3 Document : Introduction To BAPI’S Introduction to BAPIs Definition The SAP Business Objects held in the Business Object Repository (BOR) encapsulate their data and processes. External access to the data and processes is only possible by means of specific methods - BAPIs (Business Application Program Interfaces). A BAPI is defined as a method of a SAP Business Object. For example, the functionality that is implemented with the SAP Business Object type "Material" includes a check for the material's availability. Thus, the Business Object type "Material" offers a BAPI called "Material.CheckAvailability". Use To use a BAPI method, an application program only needs to know how to call the method; that is, it needs to know the method's interface definition. Therefore, when including a BAPI invocation in your application program, you only need to supply the appropriate interface information. A BAPI interface is defined by: Ø Import parameters, which contain data to be transferred from the calling program to the BAPI Ø Export parameters, which contain data to be transferred from the BAPI back to the calling program Ø Import/export (table) parameters for both importing and exporting data Structure The BAPIs in the R/3 System are currently implemented as function modules, all of which are held in the Function Builder. Each function module underlying a BAPI: Ø Supports the Remote Function Call (RFC) protocol Ø Has been assigned as a method to an SAP...

Words: 1918 - Pages: 8

Free Essay

Design

...ABAP (Advanced Business Application Programming) ABAP Workbench The ABAP Workbench component is a fully-fledged development environment for applications in the ABAP language. With it, you can create, edit, test, and organize application developments. It is fully integrated in the R/3 Basis system and, like other R/3 applications, is itself written in ABAP. Application Servers R/3 programs run on application servers. They are an important component of the R/3 System. The following sections describe application servers in more detail. Structure of an Application Server The application layer of an R/3 System is made up of the application servers and the message server. Application programs in an R/3 System are run on application servers. The application servers communicate with the presentation components, the database, and also with each other, using the message server. The following diagram shows the structure of an application server: [pic] The individual components are: Work Processes An application server contains work processes, which are components that can run an application. Each work process is linked to a memory area containing the context of the application being run. The context contains the current data for the application program. This needs to be available in each dialog step. Dispatcher Each application server contains a dispatcher. The dispatcher is the link between the work processes and the users logged onto the application server. Its...

Words: 2346 - Pages: 10

Free Essay

Fitter Snacker

...Fitter Snacker Clients for the SAP University Alliance Prepared by: Bret J. Wagner, Ph.D. Director, Integrated Supply Management Program Western Michigan University Kalamazoo, MI 49008 Phone: 269 387-5222 Fax: 269 387-5710 Cell: 269 271-9903 e-mail: bret.wagner@wmich.edu 1. Fitter Snacker Clients There are four versions of the Fitter Snacker Database client available for Student Exercises. In this document, the term Fitter Snacker Client will be used for the completely configured Fitter Snacker company. In addition to the Fitter Snacker Client, there are three other clients that are partially configured versions Fitter Snacker Client that can be used to teach SAP configuration. These clients are copies of the Fitter Snacker Client that were made during the development of the Fitter Snacker Client. The Fitter Snacker Client was created using the Dolphin Group configuration training document as a template. While there are significant differences between the Dolphin Group (and BPI) configuration classes, these are primarily in terms of the business context, although changes were made to make sure that each company in the Fitter Snacker Client was as independent as possible. The Fitter Snacker Client represents the fictitious Fitter Snacker Company...

Words: 1653 - Pages: 7

Premium Essay

Description

...LO Extraction: Part 3 Extractor Logic Applies to: SAP BI, SAP BW, ECC, ABAP, Business Intelligence Summary This part of the article explains the logic behind the LO Extractors and the relevant backend tables with the details on important function modules. Author: P Renjith Kumar Company: SAP Labs India Pvt Ltd Created on: 26 August 2010 Author Bio P Renjith Kumar is presently working in SAP Labs India Pvt Ltd and specializes in Extraction and Modeling areas of BI. Basically as an ABAP consultant, he has extensive cross functional experience and has been with end to end SAP ERP and BI implementation projects across manufacturing domain. . SAP COMMUNITY NETWORK © 2010 SAP AG SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1 LO Extraction: Part 3 Extractor Logic Table of Contents The Design of the New Extract Structures ......................................................................................................... 3 Datasource.......................................................................................................................................................... 4 Datasource Activation ......................................................................................................................................... 5 Extraction Structure ............................................................................................................................................ 5 Setup Table...

Words: 2347 - Pages: 10

Premium Essay

Resume

...Sahil Garg |Education |Board |Institute |Year |Percentage | |B. Tech (Computer Science and |Punjab Technical |Gurukul Vidyapeeth Institute of Engineering and Technology, Ram|2012 |72.45% | |Engineering) |University |Nagar, Banur | | | |Class XII (Non-Medical) |PSEB |Sada Ram Bansal Sr. Sec. School, Kotkapura |2008 |61.56% | |Class X |CBSE |Gandhi Model Sr. Sec. School, Kotkapura |2005 |72.47% | |INTERNSHIP | |Vardhman Polytex |I.T. Assets (Inventory) |From | |Limited, Ludhiana |Responsibilities |3 Jan 2012 | | |Developed Web Application for Centralizing the Data From different Remote Sites |- | | ...

Words: 285 - Pages: 2

Premium Essay

Sap Netweaver for Dummies

...SAP NetWeaver ® ™ FOR DUMmIES ‰ by Dan Woods and Jeff Word SAP NetWeaver ® ™ FOR DUMmIES ‰ by Dan Woods and Jeff Word SAP® NetWeaver™ For Dummies® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 Copyright © 2004 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, e-mail: permcoordinator@ wiley.com. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States...

Words: 135708 - Pages: 543

Premium Essay

Erp Systems

...ASSIGNMENT 1 BEST OF BREED versus ERP SYSTEMS (BCO6603) PRESENTED BY JOHN SMITH Student ID: 1234567 Victoria University Assignment 1: Management Report 1234567 John Smith 1 Introduction Making decision of what to select between “best of breed” and Enterprise Resource Planning (ERP) systems are never easy. There are many controversy or chaos issues surrounds this thought and debate. Which one is better? What factors need to be considered? This paper will address the difference between “best of breed” and ERP System that needs to be considered, such as the definition, advantages and disadvantages each of them. “Best Of Breed” System “Best of Breed” is a collection of different applications from different vendors that used in an organisation to run a business (Leahy 2004). Typically, the “best of breed” vendors are focused on a single application. Thus, they have more knowledgeable and able to produce a richer set of functionality (Thompson 2003). Advantages According to Carroll (2002) and Montgomery (2003), the advantages of using the “best of breed” are; Produce a richer set of functionality from particular application for each business area. Flexibility to substitute of individual element in the application without major reconstruction to the system. Getting response faster from the vendor to adopt and create new function as the vendor is specialising in particular system application. Assignment 1: Management Report 1234567 John Smith 2 Disadvantages ...

Words: 1625 - Pages: 7