"ABAP QUERY简单示例:创建HR/Payroll报告与查询"

需积分: 9 4 下载量 178 浏览量 更新于2024-04-02 收藏 696KB DOC 举报
ABAP QUERY是一种常用的SAP编程语言,可用于创建各种报表和查询。本文通过一个简单示例来帮助初学者快速了解ABAP QUERY的基本用法。本例中,我们以创建人力资源/工资报告和ABAP查询为例,旨在帮助用户生成、打印、存储或分发各种HR/Payroll数据报告,符合公司政策或法规规定。 在本例中,我们首先定义了报告的标题为“Organization/Area:EUP Category:BUSINESS PROCESS PROCEDURE”。这个报告的创建和ABAP查询由Dave Shirah负责,发布版本为R/3 4.0B。这个报告的触发条件是需要自定义设计的包含各种HR/Payroll数据的报告,并根据公司政策或其他法规指导进行打印、存储或分发。 整个流程可以分为以下几个步骤: 1. 访问ABAP QUERY:用户首先需要访问ABAP QUERY功能,通过SAP系统进入查询编程界面。 2. 设定报告要求:用户需要定义报告的标题、范围、数据来源等信息。在本例中,我们要创建人力资源/工资报告,所以需要指定相关的组织和业务领域。 3. 编写ABAP查询:用户可以通过ABAP代码编写查询逻辑,提取所需的HR/Payroll数据。可以根据具体需求来设计查询逻辑,比如筛选条件、字段选择等。 4. 运行查询:用户在编写完查询逻辑后,可以执行查询并查看结果。如果需要进一步修改查询逻辑,也可以进行调整。 5. 生成报告:最后,用户可以将查询结果生成报告,包括打印、存储或分发给相关人员。确保报告符合公司政策和法规要求。 通过以上步骤,用户可以快速创建和生成各种HR/Payroll报告,并灵活应对不同的需求和要求。ABAP QUERY的简单示例为初学者提供了一个良好的学习起点,帮助他们更好地理解和应用这一强大的SAP编程工具。希望本文能够为ABAP QUERY的学习和实践提供一些帮助和启发。
2007-05-29 上传
ABAP examples all in one----Made by tomxyl
Please unzip the file and click starting_page.html to begin with!There is also a starting_page.rtf to read if you like.

This book is intended to both beginners and seasoned ABAPers. All the examples here are from SAP, but one thing is different is that in ABAP development environment, you can only surf the contents in online mode, this book offers you a chance to learn ABAP offline, and further, in a structured way.

The reasons I compiled this book 2 years ago are from the following considerations:

1.Although the official book of ABAP from SAP AG is comphensive and authoriative, but it would only intimidate the beginners by including so many confused conceptions, which are not used at most of the time, in a single huge book. It's too lengthy, more than 1500 pages.You can regard that book as a good reference, but not a good book to begin with.

2.Lacking of good ABAP books in the market. I glanced over certain books available in the book market, however, like most Chinese books, only the title of those books are attractive, but the contents are vain.You should also consider the prices of those books, ususally they are more expensive than they really worth.

3.Practice makes perfect! I did not invent that motto, but most of the programmers would agree that credo. Large parts of the examples can be run by simply copying into the source file. Here I would say sorry in advance for those typos that remained in the book, but if you think from my point of view, to compile this book took me a lot of time, and my eyes become dizzy after overloaded work contents, you can understand my pains. Neverthless, this is a good chance to enhance your debug abilty to eliminate those errors.

This book is compiled by matlab report generator and completely for free, you can share with your dear friends.I just have one plea, that is remain the copyrights claimed.

Last, I would point out that I am not full-time ABAPer, but mainly doing implementation in FI, CO, HR and BW. Please feel free to contact me by msn: tomxyl@hotmail.com

Hope we can progress together

Please enjoy your reading!

Bon voyage, tengos amigos!