精华内容
下载资源
问答
  • ABAP入门.zip

    2019-07-04 21:46:20
    ABAP入门
  • ABAP入门培训

    2013-02-25 20:35:49
    ABAP入门培训,SAP ABAP基础开发技术,ABAP入门企业培训教程。
  • SAP-ABAP 入门培训

    2011-04-09 00:09:18
    SAP-ABAP 入门培训 SAP-ABAP 入门培训 SAP-ABAP 入门培训
  • SAP ABAP入门学习-基本语法

    万次阅读 多人点赞 2016-12-16 14:41:16
    SAP ABAP入门学习-基本语法

    1、了解SAP ABAP编辑器

    事务代码:SE38
     
     
    2、ABAP语法特点
     
    (1)由各自独立的语句构成。
    (2)单词之间至少要用一个空格分隔。
    (3)每个语句结束必须要用句号。

    一个语句可以跨多行,只要不遇到句号,就认为是一个延续的语句,可以把多个语句放在一行。

    (4)ABAP不区分大小写。

    关键字和用户操作数都一样,除了引号中的内容。

    (5)支持分块缩进,便于阅读。
    (6)注释:

    注释行由第一列的星号(*)开头,并且必须写在第一 列,前面不能有

    空格(行注释)。

    编译器忽略注释行,不会执行

    在行末的注释用双引号(”)作为前导(部分注释)。

     

    (7)规范化打印机统一设置代码格式

     

    由于编程的时候随时切换大小写比较麻烦,可以在ABAP编辑器中  用“规范化打印机”按钮来自动转换

    (8)通过链语句减少关键字重复输入

    如果连续多行的第一个关键字相同,可以使用链语句的方式减少输入。

    第一个关键字后面用一个冒号表示链语句开始

    链语句的最后一句结束还是用句号,但是中间的分隔由句号改成逗号。

    空格和换行跟基本语句一样,可以任意加。

    注意,这样的写法并不会提高执行效率,仅仅为了显示好看。

    3、程序类型

    (1)可执行程序 (程序类型为 1)

    可执行程序的特点是可以直接执行,而无需事务码,这个也是一般报表开发最常用的程序类型。可执行程序包含一些预定义的过程块,比如INITIALIZATION、AT SELECTION-SCREEN、START-OF-SELECTION、END-OF-SELECTION 等等,有一个后台系统程序会控制可执行程序,按照规定的顺序依次调用这些过程块。首先显示一个选择屏幕,最后输出一个列表。

    (2)为屏幕绘制器画出的屏幕所用的模块池 (程序类型为 M)

    模块池包含了来自业务的屏幕模块的处理步骤,它只能通过事务码或者菜单功能调用。

    (3)包含程序 (程序类型为 I)

    包含了不能独立运行的程序代码,它的作用主要是让程序变得清晰和可以被重用,在其他程序里,用INCLUDE 语句可以把一个包含程序加到程序里。最终的效果相当于用被包含的程序里的全部内容替换调INCLUDE 语句。

    (4)子程序 (程序类型为 S)

    这种类型的程序里只包含被外部 PERFORM 语句调用的程序块。也就是说,只包含形如FORM ... ENDFORM 块的程序代码,从外部程序里,用 PERFORM IN PROGRAM[IF FOUND]. 来调用。

    (5)函数组 (程序类型为 F)

    这类程序包含了函数模块。函数组和函数模块用函数制作器进行管理,事务码 SE37。在创建函数组和函数模块时,函数制作器把程序类型设置为F。

    包含了接口。类和接口池 (程序类型为J)

    接口都在类制作器中管理,事务码 SE24。

    (6)类池 (程序类型为 K)

    包含了类。类和接口都在类制作器中管理,事务码 SE24。
    4、数据类型和数据对象

    (1)形式上的变量描述叫做数据类型,由数据类型具体定义的变量叫做数据对象。
    (2)数据类型

    标准数据类型(预定义数据类型)、本地数据类型、全局数据类型

    (3)定义数据类型用关键字TYPES

    (4)定义数据对象用关键字DATA

    4.1 数据类型——预定义类型

    它是SAP内置的基本数据类型,所有其他数据元素和域都是由这些基本数据类型组合而成的。它可以分为完整的和非完整的。

    完整的数据类型指它包含了与类型相关的固定长度的信息

    D :日期类型,格式为YYYYMMDD,长度为8
    T :时间类型,格式为HHMMSS,长度为6
    I  :整数类型,长度为4字节
    F :浮点类型,长度为8
    STRING:变长字符串类型
    XSTRING:变长字节序列类型
     

    非完整的数据类型指它所对应的变量长度是在数据对象定义时指定的。

    C :字符串类型,定义变量时指定字符个数
    N :数字字符串类型,定义变量时指定数值字符个数
    X :字节序列类型,定义变量时指定字节数

    P :组合数值类型,定义变量时指定长度和小书点后位数

    4.2 数据类型——本地数据类型

    可以使用这些基本类型来定义更完整和更复杂的本地数据类型,但是它们只能作为当前程序的增强,这些定义可以用TYPES 语句来实现。

    4.3 数据类型——全局数据类型

    在ABAP字典中定义的类型,可以在整个SAP 系统中使用。

    4.4 数据对象——变量

    通常用DATA 语句来定义数据对象
    数据对象的类型可以是基本类型、本地类型或全局类型
     
    实际开发中更多的是参考现有的数据对象(LIKE)。

       DATA myvar2LIKE myvar1.

    可以使用VALUE 关键字来指定数据对象的初始值

    DATA number1 TYPE iVALUE 17.

    LENGTH 关键字也是指定变量长度

    DATA number2 TYPE c LENGTH 8.

    DATA number2(8) TYPE C.

    如果DATA 语句没有指定TYPE ,则默认用C 类型

    DATA myvar.  定义一个长度为1 个字符的C 类型变量。

    如果非完整类型没有指定长度,则使用默认长度

    DATA  myvarTYPE n. 定义一个长度为1的数字串类型变量。

    4.5 数据对象——固定数据对象

    固定数据对象有一个固定值,在运行时不能改变。文字和常数都属于固定数据对象
    文字是在程序里面写的固定值,可以分为数值文字(不使用单引号)和字符文字(用单引号括起来)。

    数值文字:123、-123

    字符文字:’Hello’、’123.45’、’123.45E03’

    可以使用CONSTANTS 语句来定义常数,TYPE 的指  定方法跟基本数据对象一致,而VALUE 则是必须的,用来赋值。

     CONSTANTS myc TYPE tname VALUE { 文字| IS INITIAL }

    如果可能的话,尽量减少使用文字,而多用常数,这样可以给程序维护带来很大的便利。

     

    展开全文
  • ABAP入门教程试用于初学者,很友好.pdf
  • ABAP入门——1

    千次阅读 2011-01-26 10:22:00
    ABAP入门

    ABAP (Advanced Business Application Programming, originally Allgemeiner Berichts-Aufbereitungs-Prozessor, German for "general report creation processor" [1]) is a high-level programming language created by the German software company SAP. It is currently positioned, alongside the more recently introduced Java, as the language for programming the SAP Application Server, part of its NetWeaver platform for building business applications. The syntax of ABAP is somewhat similar to COBOL.

     

     

     Introduction

    ABAP is one of the many application-specific fourth-generation languages (4GLs) first developed in the 1980s. It was originally the report language for SAP R/2, a platform that enabled large corporations to build mainframe business applications for materials management and financial and management accounting.

    ABAP used to be an abbreviation of Allgemeiner Berichtsaufbereitungsprozessor, the German meaning of "generic report preparation processor" , but was later renamed to Advanced Business Application Programming. ABAP was one of the first languages to include the concept of Logical Databases (LDBs), which provides a high level of abstraction from the basic database level(s).

    The ABAP programming language was originally used by developers to develop the SAP R/3 platform. It was also intended to be used by SAP customers to enhance SAP applications – customers can develop custom reports and interfaces with ABAP programming. The language is fairly easy to learn for programmers but it is not a tool for direct use by non-programmers. Good programming skills, including knowledge of relational database design and preferably also of object-oriented concepts, are required to create ABAP programs.

    ABAP remains the language for creating programs for the client-server R/3 system, which SAP first released in 1992. As computer hardware evolved through the 1990s, more and more of SAP's applications and systems were written in ABAP. By 2001, all but the most basic functions were written in ABAP. In 1999, SAP released an object-oriented extension to ABAP called ABAP Objects, along with R/3 release 4.6.

    SAP's current development platform NetWeaver supports both ABAP and Java.

     

     Where does the ABAP program run?

    All ABAP programs reside inside the SAP database. They are not stored in separate external files like Java or C++ programs. In the database all ABAP code exists in two forms: source code, which can be viewed and edited with the ABAP Workbench tools, and generated code, a binary representation somewhat comparable with Java bytecode. ABAP programs execute under the control of the runtime system, which is part of the SAP kernel. The runtime system is responsible for processing ABAP statements, controlling the flow logic of screens and responding to events (such as a user clicking on a screen button); in this respect it can be seen as a Virtual Machine comparable with the Java VM. A key component of the ABAP runtime system is the Database Interface, which turns database-independent ABAP statements ("Open SQL") into statements understood by the underlying DBMS ("Native SQL"). The database interface handles all the communication with the relational database on behalf of ABAP programs; it also contains extra features such as buffering of tables and frequently accessed data in the local memory of the application server.

     

     

     SAP Basis

    The ABAP language environment, including the syntax checking, code generation and runtime system, is part of the SAP Basis component. SAP Basis is the technological platform that supports the entire range of SAP applications, now typically implemented in the framework of the SAP Web Application Server. In that sense SAP Basis can be seen as the virtual machine on which SAP applications run. Like any operating system, SAP Basis contains both low-level services (for example memory management, database communication or servicing Web requests) and high-level tools for end users and administrators. These tools can be executables ("SAP kernel") running directly on the underlying operating system, transactions developed in ABAP, or Web-based interfaces.

    SAP Basis also provides a layer of abstraction between the business applications and the operating system and database. This ensures that applications do not depend directly upon a specific server or database platform and can easily be ported from one platform to another.

    SAP Basis currently runs on UNIX (AIX, HP-UX, Solaris, Linux), Microsoft Windows, i5/OS on IBM System i (formerly iSeries, AS/400) and z/OS on IBM System z (formerly zSeries, S/390). Supported databases are IBM DB2, Informix, MaxDB, Oracle and Microsoft SQL Server (support for Informix was discontinued in SAP Basis release 7.00).

     

     

     SAP systems and landscapes

    All SAP data exists and all SAP software runs in the context of an SAP system. A system consists of a central relational database and one or more application servers ("instances") accessing the data and programs in this database. An SAP system contains at least one instance but may contain more, mostly for reasons of sizing and performance. In a system with multiple instances, load balancing mechanisms ensure that the load is spread evenly over the available application servers.

    Installations of the Web Application Server (landscapes) typically consist of three systems: one for development, one for testing and quality assurance, and one for production. The landscape may contain more systems, e.g. separate systems for unit testing and pre-production testing, or it may contain fewer, e.g. only development and production, without separate QA; nevertheless three is the most common configuration. ABAP programs are created and undergo first testing in the development system. Afterwards they are distributed to the other systems in the landscape. These actions take place under control of the Change and Transport System (CTS), which is responsible for concurrency control (e.g. preventing two developers from changing the same code at the same time), version management and deployment of programs on the QA and production systems.

    The Web Application Server consists of three layers: the database layer, the application layer and the presentation layer. These layers may run on the same or on different physical machines. The database layer contains the relational database and the database software. The application layer contains the instance or instances of the system. All application processes, including the business transactions and the ABAP development, run on the application layer. The presentation layer handles the interaction with users of the system. Online access to ABAP application servers can go via a proprietary graphical interface, which is called "SAP GUI", or via a Web browser.

     

     

     Authentication into ABAP Systems

    There are three common approaches for authentication into ABAP systems:

     

     Transactions

    A transaction in SAP terminology is the execution of a program. The normal way of executing ABAP code in the SAP system is by entering a transaction code (for instance, VA01 is the transaction code for "Create Sales Order"). Transactions can be called via system-defined or user-specific, role-based menus. They can also be started by entering the transaction code directly into a command field, which is present in every SAP screen. Transactions can also be invoked programmatically by means of the ABAP statements CALL TRANSACTION and LEAVE TO TRANSACTION.

    The term "transaction" must not be misunderstood here; in the context just described, a transaction simply means calling and executing an ABAP program. In application programming, "transaction" often refers to an indivisible operation on data, which is either committed as a whole or undone (rolled back) as a whole. This concept exists in SAP and is called as a LUW (Logical Unit of Work). In the course of one transaction (program execution), there can be different LUWs.

     

     

    Types of ABAP programs

    As in other programming languages, an ABAP program is either an executable unit or a library, which provides reusable code to other programs and is not independently executable.

    ABAP distinguishes two types of executable programs:

    • Reports
    • Module pools

    Reports follow a relatively simple programming model whereby a user optionally enters a set of parameters (e.g. a selection over a subset of data) and the program then uses the input parameters to produce a report in the form of an interactive list. The term "report" can be somewhat misleading in that reports can also be designed to modify data; the reason why these programs are called reports is the "list-oriented" nature of the output they produce.

    Module pools define more complex patterns of user interaction using a collection of screens. The term “screen” refers to the actual, physical image that the user sees. Each screen also has a “flow logic”, which refers to the ABAP code implicitly invoked by the screens. Each screen has its own flow logic, which is divided into a "PBO" (Process Before Output) and "PAI" (Process After Input) section. In SAP documentation the term “dynpro” (dynamic program) refers to the combination of the screen and its flow logic.

    The non-executable program types are:

    • INCLUDE modules
    • Subroutine pools
    • Function groups
    • Object classes
    • Interfaces
    • Type pools

    An INCLUDE module gets included at generation time into the caling unit; it is often used to subdivide very large programs. Subroutine pools contain ABAP subroutines (blocks of code enclosed by FORM/ENDFORM statements and invoked with PERFORM). Function groups are libraries of self-contained function modules (enclosed by FUNCTION/ENDFUNCTION and invoked with CALL FUNCTION). Object classes and interfaces are similar to Java classes and interfaces; the first define a set of methods and attributes, the second contain "empty" method definitions, for which any class implementing the interface must provide explicit code. Type pools define collections of data types and constants.

     

     ABAP Workbench

    The ABAP Workbench contains different tools for editing programs. The most important of these are (transaction codes are shown in parentheses):

    • ABAP Editor for writing and editing reports, module pools, includes and subroutine pools (SE38)
    • ABAP Dictionary for processing database table definitions and retrieving global types (SE11)
    • Menu Painter for designing the user interface (menu bar, standard toolbar, application toolbar, function key assignment) (SE41)
    • Screen Painter for designing screens and flow logic (SE51)
    • Function Builder for function modules (SE37)
    • Class Builder for ABAP Objects classes and interfaces (SE24)

    The ABAP Workbench (transaction SE80) provides a single integrated interface into these various tools.

     

     

    ABAP Dictionary

    The ABAP Dictionary contains all metadata about the data in the SAP system. It is closely linked with the ABAP Workbench in that any reference to data (e.g. a table, view, data type, etc.) will be obtained from the dictionary. Developers use the ABAP Dictionary transactions (directly or through the SE80 ABAP Workbench) to display and maintain this metadata.

    When a dictionary object is changed, a program that references the changed object will automatically reference the new version the next time the program runs. Because ABAP is interpreted, it is not necessary to recompile programs that reference changed dictionary objects.

    A brief description of the most important types of dictionary objects follows:

    • Tables are data containers that exist in the underlying relational database. In the majority of cases there is a 1-to-1 relationship between the definition of a table in the ABAP Dictionary and the definition of that same table in the database (same name, same columns). These tables are known as "transparent". There are two types of non-transparent tables: "pooled" tables exist as independent entities in the ABAP Dictionary but they are grouped together in large physical tables ("pools") at the database level. Pooled tables are often small tables holding for example configuration data. "Clustered" tables are physically grouped in "clusters" based on their primary keys; for instance, assume that a clustered table H contains "header" data about sales invoices, whereas another clustered table D holds the invoice line items. Each row of H would then be physically grouped with the related rows from D inside a "cluster table" in the database. This type of clustering, which is designed to improve performance, also exists as native functionality in some, though not all, relational database systems.
    • Indexes provide accelerated access to table data for often used selection conditions. Every SAP table has a "primary index", which is created implicitly along with the table and is used to enforce primary key uniqueness. Additional indexes (unique or non-unique) may be defined; these are called "secondary indexes".
    • Views have the same purpose as in the underlying database: they define subsets of columns (and/or rows) from one or - using a join condition - several tables.
    • Structures are complex data types consisting of multiple fields (comparable to struct in C/C++).
    • Data elements provide the semantic content for a table or structure field. For example, dozens of tables and structures might contain a field giving the price (of a finished product, raw material, resource, ...). All these fields could have the same data element "PRICE".
    • Domains define the structural characteristics of a data element. For example, the data element PRICE could have an assigned domain that defines the price as a numeric field with two decimals. Domains can also carry semantic content in providing a list of possible values. For example, a domain "BOOLEAN" could define a field of type "character" with length 1 and case-insensitive, but would also restrict the possible values to "T" (true) or "F" (false).
    • Search helps (successors to the now obsolete "matchcodes") provide advanced search strategies when a user wants to see the possible values for a data field. The ABAP runtime provides implicit assistance (by listing all values for the field, e.g. all existing customer numbers) but search helps can be used to refine this functionality, e.g. by providing customer searches by geographical location, credit rating, etc.
    • Lock objects implement application-level locking when changing data.

     

    转自 :http://en.wikipedia.org/wiki/ABAP

    展开全文
  • ABAP入门资料集

    2008-03-10 22:50:23
    包括,《ABAP入门课件》、《ABAP三月通》
  • sap ABAP入门资料,精髓,带截图,详细讲解。很适合新人参考。不信自己下载去吧
  • 很全的ABAP入门资料

    2011-11-09 13:55:45
    学习ABAP入门资料,非常基础,绝对是学习入门的好帮手
  • ABAP入门培训资料

    2008-10-15 14:46:39
    ABAP入门培训资料,版本比较老,但讲解比较清楚,适合初学者掌握基础知识
  • abap入门傻瓜书3

    2011-11-27 11:19:07
    abap入门傻瓜书3 ABAP(Advanced Business Application Programming)是SAP/R3系统的开发工具 ,是第四代支持结构化程序设计的语言。 本书把相当复杂的SAP技术以非常简单 的方式表达,非常直接地描述SAP技术,并...
  • abap入门傻瓜书2

    2011-11-27 11:13:10
    abap入门傻瓜书2 ABAP(Advanced Business Application Programming)是SAP/R3系统的开发工具 ,是第四代支持结构化程序设计的语言。 本书把相当复杂的SAP技术以非常简单 的方式表达,非常直接地描述SAP技术,并...
  • abap入门傻瓜书1

    2011-11-27 11:11:27
    abap入门傻瓜书1 ABAP(Advanced Business Application Programming)是SAP/R3系统的开发工具,是第四代支持结构化程序设计的语言。 本书把相当复杂的SAP技术以非常简单的方式表达,非常直接地描述SAP技术,并采用...
  • 内含ABAP入门资源(11天学会ABAP)以级中级ABAP篇,高级ABAP资料
  • SAP ABAP 入门

    2013-03-23 19:43:37
    第一章 ABAP开发环境和总体介绍.pdf 第二章 创建HELLO WORLD程序.pdf 第三章 ABAP语法示例.pdf 第四章 数据字典和数据表的读取.pdf 第五章 标准列表和选择屏幕.pdf 第六章 实战屏幕SCREEN设计.pdf 第七章 表控制...
  • abap入门教材(中文)

    2007-05-04 21:27:15
    abap入门教材(中文)
  • ABAP入门步骤

    2020-04-15 08:57:15
    1、先白嫖一张培训机构 学习路线。 2、《SAP实用开发进阶》+ ABAP技术总结 【江正军】

    1、先白嫖一张培训机构 学习路线。
    2、《SAP实用开发进阶》+ ABAP技术总结 【江正军】


    Learning Journeys 学习之旅

    https://developers.sap.com/

    (ps:页面看着是真的挺舒服的)

    I am a Developer
    I design and develop system functionalities to meet customer’s business needs and requirements.
    我设计和开发系统功能,以满足客户的业务需求和要求。

    我的主要任务包括:
    1、支持交付和IP构建活动,重点开发应用程序和扩展
    2、将不能使用非编程配置方法实现的业务需求转换为程序代码。
    3、根据业务流程需求定义集成场景的规范,以支持项目交付和应用程序开发
    4、创造最佳的整体战略系统景观,包括第三方、遗留系统和现代SAP解决方案。
    5、快速地将概念转化为具体的UI和/或视觉草稿,然后快速地迭代草图/线框图,形成完美的最终设计
    6、创建/维护用户界面和视觉设计风格指南,维护图标和设计库
    7、测试和调试

    我的专业领域包括:
    1、特定的开发语言和技术工具
    2、深谙SAP云平台相关开发工具/扩展性框架及云相关平台组件(SAP SCP)
    3、解决方案集成和可扩展性开发
    4、数据建模、迁移计划、评审/评估和加载
    5、系统集成和业务流程
    6、安全的概念;角色、授权和用户管理
    7、对硬件、设备和平台有丰富的知识。
    8、具有交互设计、视觉设计和沟通方面的技能
    9、有定义和创造的经验


    【转载】链接推荐

    1、会开发和懂开发的区别:
    https://www.cnblogs.com/saper/p/7251271.html

    展开全文
  • SAP ABAP入门PPT

    2016-05-12 00:04:59
    SAP ABAP开发培训PPT,凯捷出品
  • ABAP入门解惑

    2011-02-11 10:51:00
     ABAP入门不难,有2年以上编程经验的人可以用1个月的时间入门,掌握基本的语法,编写简单的程序。许多的朋友都能够顺利的过了这一关,并认为ABAP并不是想象的那么难。  可当他们再继续学习了1个多月...

     ABAP入门不难,有2年以上编程经验的人可以用1个月的时间入门,掌握基本的语法,编写简单的程序。许多的朋友都能够顺利的过了这一关,并认为ABAP并不是想象的那么难。
        可当他们再继续学习了1个多月以后,可能就会变得迷茫,因为他们不知道该学习什么内容了?为什么会出现这种情况?因为教材上的内容都是固定而有限的,而实际项目中的问题确实五花八门的。
        所以在这里建议大家,在掌握了ABAP的语法,报表制作,屏幕制作等知识之后应通过各种途径获取一些项目中的实际案例,根据这些案例进一步提高自己的技能。这些案例可以让你综合的运用之前学到的知识,进一步提高自己,让你所学的内容能够解决实际项目中的问题。

    展开全文
  • abap 入门书籍

    2012-07-19 16:33:52
    不错的资料 还有实战练习 讲解的很细致
  • ABAP开发学习总结之一:ABAP入门基本要点 2011-11-08 12:37  安装好系统,搭好了平台,你是不是想有所作为,运行几个TCODE对于想写程序的人来说是很没劲的,都希望在SAP的平台完完全全按自
  • ABAP入门----以簇方式存储数据对象

    千次阅读 2017-08-23 17:55:16
    ABAP入门—-以簇方式存储数据对象可以用数据簇方式对ABAP/4程序的任何复杂内部数据对象进行分组保存,并将其临时存储在ABAP/4内存中,或长时间存储在数据库中。 可以在ABAP/4内存中存储数据簇。ABAP/4内存是分配给...
  • ABAP入门基础教程

    2013-05-08 17:57:46
    APAB开发入门教程,介绍了基本的APAB编程规范和,语法,非常适合初学者
  • 实战abap(abap入门首选)

    2010-06-24 19:24:55
    第一章_ABAP开发环境和总体介绍 第二章_创建HELLO_WORLD程序 第三章_ABAP语法示例 第四章_数据字典和数据表的读取 第五章_标准列表和选择屏幕 第六章_实战屏幕SCREEN设计 第七章_表控制Table_Control设计 第八章_ALV...
  • SAP ABAP入门资料

    2008-10-29 11:15:28
    对于初学者来说,这是很实用的资料 ABAP/4是SAP/R3是sap系统开发工具,语法近似VB和java
  • ABAP入门必看资料.pdf

    2012-06-07 16:57:01
    SAP编程模块ABAP初学者必看,从基本语法到加强,到各个模块项目模拟程序都有详细讲解,适合新手初学SAP使用。
  • abap入门标准开发教材

    2010-05-08 18:29:38
    SAP很好的入门教材, 非常适合初级者上手
  • sap abap入门.pdf

    2009-06-24 18:30:22
    sap abap标准教材,用于abap自学等。

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,093
精华内容 437
关键字:

abap入门