oracleerp报表开发开发培训教程解读

上传人:pu****.1 文档编号:465743089 上传时间:2023-08-28 格式:DOC 页数:39 大小:1.50MB
返回 下载 相关 举报
oracleerp报表开发开发培训教程解读_第1页
第1页 / 共39页
oracleerp报表开发开发培训教程解读_第2页
第2页 / 共39页
oracleerp报表开发开发培训教程解读_第3页
第3页 / 共39页
oracleerp报表开发开发培训教程解读_第4页
第4页 / 共39页
oracleerp报表开发开发培训教程解读_第5页
第5页 / 共39页
点击查看更多>>
资源描述

《oracleerp报表开发开发培训教程解读》由会员分享,可在线阅读,更多相关《oracleerp报表开发开发培训教程解读(39页珍藏版)》请在金锄头文库上搜索。

1、内部资料NO.ERP0002创建时间:2005-2-28 20:31:00 作者:lisr 公司:Kudonet Page # of 28内部资料NO.ERP0002KudoNet多茂科技创建时间:2005-2-28 20:31:00 作者:lisr 公司:Kudonet Page # of 28内部资料NO.ERP0002创建时间:2005-2-28 20:31:00 作者:lisr 公司:Kudonet Page # of 28内部资料NO.ERP0002南京多茂科技发展有限公司Oracle ERP报表开发培训教程创建时间:2005-2-28 20:31:00 作者:lisr 公司:Kud

2、onet Page # of 28内部资料NO.ERP0002报表开发的总体步骤,及一些工具包的简单介绍 .-I-Pl/sql 语法及pl/sql 函数、数组、记录、游标、视图、基表、临时表、异常 :4-HTML技术和 CSS修饰 :查找数据的方法及 Oracle Application表命名的规律 :-11-可执行、并发程序、请求组和值集的定义 :-1-2一个报表开发的实例:-:5系统中部分表的介绍::21开发分页报表(套打)的步骤 :2:开发规范 :.: -.:24:附:记录和数组使用范例:.: - 28-内部资料NO.ERP0002所谓报表开发就是按照用户的需求,根据用户提供的样表,运用

3、编程的手段,从ERP系统中取岀数据展现在页面上的一个理解需求、查找数据、展现结果的过程。目前开发报表的方法及工具有很多种,有专门针对报表需求定制的报表系统,通过对sql语句的改写能实现特别的报表需求,这样的系统有很强的针对性和限制性;还有运用报表开发工具根据用户需求临时开发报表,具有很强的灵活性和应用性。本文档只关注运用 Oracle 在DB中提供的一些开发工具包,及WEB技术开发报表的过程和方法。Oracle 博大精深,如果在实际开发过程中遇到困难可以通过网上论坛和oracle 网站获得技术帮助。根据实际的开发过程,本文档从以下几个方面来说明:一.报表开发的总体步骤,及一些工具包的简单介绍开

4、发步骤1分析客户提供的样表2向客户或者顾问征询报表中每个值的意思,务必理解所需开发报表的意向3需要客户在ERP指明数据的取处4自己动手在测试环境中做一遍,梳理一下流程5清楚报表的参数是什么6以包的形式组织数据,在包里面实现各种功能7在ERP中定义可执行,从而使 ERP和DB建立联系8在ERP中定义并发程序,定义了报表的输岀文件的类型和参数9在相应的请求组中加入已定义好的并发程序名称工具包介绍1 FND_PROFILERetrieve user profile values for the current run-time environmentSet user profile values f

5、or the current run-time environmentFnd_profile.value(ORG_lD )取配置文件的值2 DBMS_OUTPUTThis package enables you to send messages from stored procedures, packages, and triggers在sql window 中输出结果Dbms_output.put_line3 FND_GLOBAL模拟环境Fnd_global. APPS_INITIA LI ZE(user_id,resp_id,resp_appl_id)其中 user_id,resp_id,

6、resp_appl_id可以通过这种方法获得:帮助 - 诊断- 检查,在块中选择$PROFILES,在字段选择USER_ID 可以获得 USER_ID,同样方法可 以获得RESP_ID,RESP_APPL_ID(可能有时你需要在 Oracle用上述方法达到你的目的)Fnd_global. User_nameFnd_global. User_id4 UTL_FILEApplications环境外运行一些 PL/SQL语句,但是这些语句中需要访问系统相关的环境变量,例如view,这样你可以使The UTL_FILE package lets your PL/SQLprogramsread and

7、writeoperatingsystem(OS)textfiles.It provides a restricted version of standard OS stream file input/output (I/O).The fileI/O capabilitiesare similarto thoseof thestandardoperatingsystemstreamfileI/O(OPEN,GET, PUT, CLOSE), with some limitations.For example, call the FOPEN functionto returna filehandl

8、e,which youthenuse insubsequent得到当前用户的名称 得到当前用户的idcalls to GET_LINE or PUT to perform stream I/O to a file. When you are done performing I/Oon the file, call FCLOSE to complete any output and to free any resources associated with the file.UTL_FILE.FILE_TYPE定义文件指针创建时间:2005-2-28 20:31:00 作者:lisr 公司:Ku

9、donet Page 3 of 28内部资料NO.ERP0002utl_file.fopen(dir,name,mode) Opens a file for input or output with the default line sizeutl_file.put_line( , ) Writes a line to a file向文件中写数据utl_file.fclose_all Closes all open file handles关闭所有已打开的文件指针5 FJ_FUNC客户化的函数包,定义了一些在实际开发过程中用到一些方法和变量在实际开发过程中,如果需要一些方法时可以在这个包中查找

10、,如果通用性比较强的过程也可以加到这个包里详细可以参阅这个包6 FJ_OUTPUT客户化的报表格式生成包,封装了 html语法详细可以参阅这个包二. Pl/sql 语法及pl/sql函数、数组、记录、游标、视图、基表、临时表、异常、Pl/sql 基本元素的使用SelectThe SELECT statement allows you to retrieve records from one or more tables in your database.The syntax for the SELECT statement is:SELECT columns FROM tables WHERE

11、 predicatesDistinctThe DISTINCT clause allows you to remove duplicates from the result set. The DISTINCT clause can only be used with select statementsThe syntax for the DISTINCT clause is:SELECT DISTINCT columnsFROM tables WHERE predicatesEXISTSThe EXISTS condition is considered to be met if the su

12、bquery returns at least one rowThe EXISTS condition can be used in any valid SQL statement - select, insert, update, or delete.Example #1The following is an SQL statement that uses the EXISTS condition:SELECT * FROM suppliersWHERE EXISTS(select * from orders where suppliers.supplier_id = orders.supp

13、lier_id);This select statement will return all records from the suppliers table where there is at least one record in the orders tableith the same supplier_id.Example #2 - NOT EXISTSThe EXISTS condition can also be combined with the NOT operator.For example,SELECT * FROM suppliersWHERE not exists (s

14、elect * from orders Where suppliers.supplier_id = orders.supplier_id);This will return all records from the suppliers table where there are no records in the orders table for the given supplier_idInThe IN function helps reduce the need to use multiple OR conditionsThe IN functioncan be used in any v

15、alid SQL statement - select, insert, update, or delete.Example #1内部资料NO.ERP0002The following is an SQL statement that uses the IN function:SELECT *FROM supplierWHERE supplier_name in ( IBM , Hewlett Packard, Microsoft);This would return all rows where the supplier_name is either IBM, Hewlett Packard, or Microsoft.Because the * is us

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号