图解SAP-Query创建过程

上传人:沈*** 文档编号:99910769 上传时间:2022-06-01 格式:DOC 页数:17 大小:1.24MB
返回 下载 相关 举报
图解SAP-Query创建过程_第1页
第1页 / 共17页
图解SAP-Query创建过程_第2页
第2页 / 共17页
图解SAP-Query创建过程_第3页
第3页 / 共17页
点击查看更多>>
资源描述
SAP Query步骤QUERY是SAP的一项简单报表工具,它可为没有编程基础的用户用来生成简单的报表.第一次接触QUERY的时候,感觉也不是很复杂,因为它有图形化的界面,你可在上面托托拽拽,然后就可以见到你要的报表,可是这只是简单的应用,其实每个工具功能都是比较完善的,QUERY也不例外. 要全面的理解QUERY,首先看一下QUICKVIWER.事务代码:SQVI.我感觉这是QUERY的一个简化,大体流程基本一致,但是在许多方面的功能都缩水了.体现如下:1.Quick Viewer所生成的报表是用户自定义的报表,只能由此用户自己使用、维护2.Quick Viewer只能使用存于数据库内的数据,不能进行计算除小计、累计3.提供与SAP内部工具如EIS,ABC,ALV与外部工具如Word,Excel借口4.无须也无法利用用户组、Functional area统一管理5.无法传输比较而言,QUERY就比较完善了,可是做起来也比较麻烦一下:1.生成用户组SAP菜单工具ABAP工作台实用程序SAP查询用户组T-Code:SQ032.创建Functional area功能区SAP菜单工具ABAP工作台实用程序SAP查询信息集T-Code:SQ023.创建SAP QuerySAP菜单工具ABAP工作台实用程序SAP查询查询T-Code:SQ01这些组件之间的关系有:1.Query的管理包括建立Functional area功能区和User Group用户组,并将功能区分配到相应的用户组中去.2.Functional area功能区中定义query中需引用的表和字段.3.只有当一个用户属于至少一个用户组才可以创建、运行分配到该用户组的Queries.一个用户可以属于几个用户组.用户组中的用户享有相同的权力.因此,要想让一个用户使用某个Query,必须将该用户分配到对应的用户组.4.当Functional area功能区分配给了某用户组,该用户组的成员即可以访问此功能区.SAP Query总体思路:1.sq02建立功能区域 a.选择table b.建立条件 c.选择字段2.sql01建立query,可把query的使用分配给你建立的使用者群组权限的控制3.使用query,可定义格式,使用那些栏位进行选择具体步骤如下:1. Example by query for Scrap reason;2. T-code SQ02 for create a query;3. Input the report name then click Create;4. If the information that show in final report include in one table than choice Direct read of table, if need got from more than one table than choice Table join by basis table and maintained major table name. In our example, the major table is MSEG; 5. After save, you can choice additional table from Insert table;6. Fill the addition table name, in our example, the secondly table is MKPF; 7. System will automatic create the relation between two table, in our example the key field is MBLNR ;8. After all related table is chose and create the relation, then click back, in our example we just need use two table;9. Then choice include key fields; 10. After click , you can see below screen; 11. Expanded the field group;12. Then you can choice the required information from left side to right side;13. Our report structure is GL account / Material document number / Material number / posting date / Quantity / Unit / Amount / Currency / Profit center / Cost center / Movement type / Reason / Reason text / User name, after choice;14. Then generate the report;15. After you got the green notice from system, then you can save and back;16. After back;17. Using T-code SQ03 for assign user;18. Choice user group from the list, in our example, we choice Group MM; 19. Then click Assign users and Infosets; 20. Then you can specific choice who can use the report;21. Add user in the screen then save and back; 22. Then back to SQ02, choice user group assignment;23. Choice user group MM, then save and back; 24. User T-code SQ01, fill the query name then click Create;25. Find the new Query then double click; 26. Then filled the column Title then choice Basic list;27. After choice Basic list;28. Expanded the field group, and choice Text: Material number and Text: Reason for movement then we can show the description for material code and reason code in final report, the filed that already chose will use green to highlight;29. Then you can choice which field in Left side should show in final report by click column List field;30. Then you need choice which field is the Filter conditional in this report by click column Selection fields;31. Then you can test the report by click icon Test;32. You can ignore the system dialogue box choice continue directly;33. System will display a choice box then you can fill the condition that you want; 34. Result after execute the report;35. If anything is ok, then you back and save;36. Use T-code SQ00 to execute the report and save by EXCEL.我已经跟大家介绍了SAP Query创建的基本步骤,下面,通过一个固定资产查询的Query创建的实例,我来给大家示范一下一个完美的Query是如何诞生的.1、运行事物码SQ03,创建用户组User Group,在创建User Group之前,需要先设置查询区域:第一个是client相关,第二个是跨client的,一般默认为跨client的.然后,输入User Group的名字,点create:保存即可.2、运行事物码SQ02,创建功能区Functional Area:输入功能区的名字,点击create:如果是多个表联查,就选择1,如果是直接读取某个表,就选择2,插入第二张表:设置连接条件,一般默认的连接条件就可以,然后点击信息集:嗯,包括所有表字段:然后点击红色的BMW车轮标记,生成功能区.然后,将新建的功能区分配到用户组,以使该用户组包含的用户能使用该功能区的Query:3、运行事物码SQ01,创建Query.在创建之前,先要设置正确的用户组和范围:上篇完,预知后事如何,请见第二篇.承接上文图解SAP Query创建过程一:输入Query的名字,点击create:点击下一页,这里设置需要的数据字段:下一页,设置选择屏幕的选择字段:点击基本清单,选择报表界面的显示字段再顺便选一下选择字段:保存:然后测试运行:4、为Query设置事物码:运行事物码SE93,输入需要定义的事物码最好以Z开头,然后点击create:这里填的是Query生成的程序.这个程序能从哪里获取呢?从Query执行的地方可以看到:可以看到程序名.我们继续刚才的界面,保存即可.然后执行T-CODE:ZAA09,即可以实现用T-CODE来运行Query:如何传输Query在做传输之前,请选择菜单 Environment-Query areas,这时会弹出一个选择窗口来,其中用两项选择:Standard Area和Global Area.这两项是什么意思呢?从字面上我们知道Standard Area是与客户端相关的,只能在特定的客户端使用的;而Global Area是可以跨客户端的,也就是能够在不同的客户端使用的,可以在不同的客户端传输.默认的Query是可以在不同的客户端传输使用的. 在SAP Query的维护界面SQ02选择菜单Environment-Transports,这样就到了SAP Query的传输工具的界面,请选择必要的参数,填写所需要传输的Query、InfoSet,执行就能够产生传输请求.这样就可以被传输到其他的客户端了. 传输到另外的系统后,QUERY还是需要在SQ01里面执行generated program生成本地程序.17 / 17
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 管理文书 > 施工组织


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!