SWP Aluma Table Form
- 格式:pdf
- 大小:1.66 MB
- 文档页数:3
abap tables 用法在SAP ABAP(Advanced Business Application Programming)中,`TABLES` 关键字用于传递内部表(Internal Table)或数据库表作为参数到一个子程序(Function Module)中。
这是一种用于向子程序传递数据的方式。
以下是一个简单的例子,演示了`TABLES` 关键字的用法:```abapREPORT ZEXAMPLE_TABLES.TABLES: IT_EMPLOYEES. " 定义内部表DATA: gv_total_salary TYPE i.START-OF-SELECTION.PERFORM CalculateTotalSalary TABLES IT_EMPLOYEES. " 传递内部表到子程序WRITE: / 'Total Salary:', gv_total_salary.FORM CalculateTotalSalary TABLES p_employees TYPE TABLE OF ZEMPLOYEE.LOOP AT p_employees INTO DATA(ls_employee)." 计算总工资gv_total_salary = gv_total_salary + ls_employee-salary.ENDLOOP.ENDFORM.```在上面的例子中,`TABLES` 关键字用于将内部表`IT_EMPLOYEES` 传递到`CalculateTotalSalary` 子程序中。
在子程序中,我们使用`LOOP AT p_employees INTO DATA(ls_employee)` 遍历内部表并计算总工资。
最后,通过`WRITE: / 'Total Salary:', gv_total_salary.` 将总工资显示在屏幕上。
oracle forms 句法详解OracleForms是一个被广泛应用于企业级应用程序开发的集成开发环境。
其句法是开发OracleForms应用程序的关键,因此本文将对Oracle Forms句法进行详细解释。
一、基本语法1.块(Block):Oracle Forms应用程序是由块(Block)构成的,每个块(Block)都是Oracle Forms对象的容器。
2.对象(Object):Oracle Forms中存在多种对象(Object),包括文本框、下拉框、按钮等等。
每个对象(Object)都包含了一定的属性和事件,可以通过代码来实现操作。
3.触发器(Trigger):触发器是指当用户执行某个操作时,Oracle Forms会自动调用一些特定的代码。
例如当用户单击一个按钮时,Oracle Forms会调用该按钮的触发器来执行一些操作。
二、Forms句法1.使用PL/SQL代码块BEGIN-- PL/SQL代码END;2. IF-THEN-ELSE条件语句IF condition THEN-- 代码块1ELSE-- 代码块2END IF;3. FOR循环语句FOR i IN 1..10 LOOP-- 代码块END LOOP;4. WHILE循环语句WHILE condition LOOP-- 代码块END LOOP;5. CASE语句CASE variableWHEN value1 THEN-- 代码块1WHEN value2 THEN-- 代码块2ELSE-- 代码块3END CASE;6.函数调用variable := function_name(arguments);7.过程调用procedure_name(arguments);8.变量声明variable_name datatype;9.变量赋值variable_name := value;10.游标声明CURSOR cursor_name IS SELECT statement;以上是Oracle Forms句法的一些基本语法,掌握这些基本语法能够使开发Oracle Forms应用程序变得更加容易。
eclipse table标签的用法Eclipse Table标签用于在Eclipse插件的用户界面中创建表格视图。
以下是其使用方法:1. 首先,在插件的扩展定义中创建一个新的Table Viewer。
```java<extensionpoint="org.eclipse.ui.views"><viewclass="com.example.MyTableView"id="com.example.myTableView"name="My Table View"></view></extension>```2. 在插件中创建TableViewer类,并继承自org.eclipse.jface.viewers.TableViewer,实现表格视图的自定义逻辑。
```javaimport org.eclipse.jface.viewers.TableViewer;import org.eclipse.swt.SWT;import posite;public class MyTableView extends TableViewer {public MyTableView(Composite parent) {super(parent, SWT.MULTI | SWT.H_SCROLL |SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER);// 设置表格列createColumns();// 设置表格布局getTable().setLinesVisible(true);getTable().setHeaderVisible(true);// 设置表格内容提供者setContentProvider(new MyTableContentProvider());// 设置表格标签提供者setLabelProvider(new MyTableLabelProvider());}private void createColumns() {// 创建表格列,设置宽度、排序等属性// 例如:TableColumn column = new TableColumn(getTable(), SWT.NONE);column.setWidth(100);column.setText("Column 1");column.setMoveable(true);column.setResizable(true);}}```3. 创建内容提供者类和标签提供者类,用于提供表格的内容和标签显示。
ABAP是一种用于开发SAP应用程序的编程语言,ABAP程序由一连串的语句组成。
本文将详细介绍ABAP中perform tables语法的使用,以帮助读者更好地理解和掌握这一关键语法。
1. Perform tables语法的基本概念Perform tables语法是ABAP中用于执行一组逻辑代码块的语句。
它可以在程序中多次执行同一个逻辑块,从而提高代码的复用性和可读性。
在perform tables语法中,tables是用于传递数据给逻辑块的参数表,这使得代码块的功能更加灵活和通用。
2. Perform tables语法的语法结构Perform tables语句的基本语法结构如下:perform tables function_name using tables_parameter.在这个语句中,function_name是要执行的逻辑代码块的名称,tables_parameter是传递给该代码块的参数表。
3. Perform tables的使用示例下面是一个简单的使用perform tables语法的示例:perform tables calculate_sum using input_data.在这个示例中,calculate_sum是一个逻辑代码块的名称,input_data是传递给该代码块的参数表。
4. Perform tables语法的注意事项在使用perform tables语法时,需要注意以下几点:1)传递给逻辑代码块的参数表必须在代码块中进行声明和处理,以确保数据的正确传递和处理。
2)逻辑代码块的名称和参数表必须在程序中提前定义和实现,以确保perform tables语句能够正确执行。
5. Perform tables语法的高级用法除了基本的使用方法外,perform tables语法还可以通过调整参数表的不同位置和使用不同的特性来实现更灵活和复杂的功能。
可以在参数表中使用不同的数据类型和结构来实现对不同类型数据的处理,也可以在代码块中使用不同的控制结构来实现对不同条件的处理。
首先先用sysadmin进入定义一个用户:系统管理员—安全性—责任—定义
定义自己的用户
然后用自己定义的用户进入操作一下
注意:application 选cux customer app。
那个。
其他的按说明改成自己的就行定义表单(Form)
切换责任:Application Developer:application→form
1.定义功能(Function),并关联已定义的表单
责任:Application Developer:application→function
2.定义/分配菜单(Menu),将定义好的功能分配到菜单项
责任:Application Developer:application→menu
保存
3.定义请求组(只需要第一次定义)
切换责任:系统管理员(System Administrator):安全(security)→责任(responsibility)→请求
保存
系统管理员(System Administrator):安全(security)→责任(responsibility)→定义
保存
退出用sysadmin登录
4.查找职责(刚开始定义的那个),分配菜单和请求组给职责;将职责分配给用户
系统管理员(System Administrator):安全(security)→用户→定义
进入查询模式查找出你要挂载的用户,添加责任
退出用自己定义的用户登录5.切换到定义好的职责运行表单。
windchill部分表Wtchangeactivity2 -->ECAWtchangeorder2 --->ECNWtchangerequest2 --->ECRChangeRecordIfc --->记录ECA与产⽣对象之间的关系AffectedActivityData ---->记录ECA与受影响对象之间的关系IncludedInIfc --->记录ECN和ECA之间的关系RelevantRequestData --->ECR和受影响对象之间的关系WTPartWtpartmasterWTDocumentWtdocumentmasterEPMDocument Epmdocumentmaster Epmbuildrule Epmbuildhistory Epmdescribelink --->ProE相关WfProcess Wfprocesstemplate -- 流程实例流程模板WorkItem -- 任务Wfassignedactivity Wfassignedactivitytemplate --活动对象活动模板Wfexpressionrobot Wfexprrobottemplate -- 表达式对象表达式模板Promotionnotice Promotiontarget --升级请求对象表升级请求对象和升级对象关系表Wtpartusagelink --部件使⽤关系表WTPartReferenceLink:部件与参考⽂档之间的关系WTPartDescribeLink:部件与描述⽂档之间的关系WTDocumentUsageLink:⽂档结构关系WTDocumentDependencyLink:⽂档之间的参考关系WTUser ⽤户表WTGroup 群组Ballotsselect * from MembershipLink --上下⽂团队关系⾓⾊成员关系PDMLInkProduct -- 产品Wtlibrary --存储库Project2 --项⽬-- 软属性部件相关表StringDefinition StringValueFloatDefinition FloatValueRefenceDefintionselect * from WTTypeDefinition -- 类型表LocationChangeRecord 移动历史记录表IdentityChangeHistory 重命名历史记录表MadeFromLink 另存为对象之间的关系LifeCycleHistory 成熟度历史记录。
遇到麻烦1.安装时选择自定义,在安装过程中会出现选择,选项中选择用户归档2,打开用户归档无法新建!解决办法:删除http://oc文件。
即可新建3.每个归档可创建500域用户归档思路:要实现用户归档报表需要做到几点:1.怎样操作数据读写。
2.查询数据。
3.输出报表。
(以存入数据查询数据为例)实现方式:第一步存储数据Function action'----------------------------------------------------'以下注释均是在变量下方注释;'触发该动作的触发变量为@change(变量自建)'flag 变量为标志状态监测是否第一次启动WINCC'----------------------------------------------------Set flag = HMIRuntime.Tags("flag")flag.ReadIf flag.Value =1 ThenDim UA_Reportday_IDSet UA_Reportday_ID = HMIRuntime.Tags("@UA_Reportday_ID")Dim UA_Reportday_JobSet UA_Reportday_Job = HMIRuntime.Tags("@UA_Reportday_Job")UA_Reportday_ID.ReadUA_Reportday_ID.Write -1UA_Reportday_Job.Write 6End IfEnd Function在flag全局动作中脚本如下(该脚本由flag变量触发动作)Option ExplicitFunction actionDim flagSet flag = HMIRuntime.Tags("flag")flag.ReadIf flag.Value =0 Thenflag.Write 1End IfEnd Function第二步查询(该步骤可以根据条件省略,以查询用户归档中的TET3为例)在查询按钮动作中写入Sub OnLButtonUp(ByVal Item, ByVal Flags, ByVal x, ByVal y)Dim SQLlianjieSet SQLlianjie=HMIRuntime.Tags("SQLlianjie")SQLlianjie.ReadSQLlianjie.Write "select * from UA#Reportday where TET1=13"MsgBox"查询成功"End Sub第三步设计报表和配置报表打印(不清楚请参见西门子相关文档)报表编辑器中配置布局中插入 ODBC数据库数据库表,双击弹出对象属性表,再双击数据库连接。
SAP EXCEL导入限制修改关于Excel上载限制修改,SAP提供Excel上载文件的一个函数:ALSM_EXCEL_TO_INTERNAL_TABLE,但此函数有两个限制。
一:每个CELL只能导入50个字符;二:如果超过9999行,行号会初始化为零开始。
解决此问题,只需要修改结构ALSMEX_TABLINE的字段,然后COPY ALSM_EXCEL_TO_INTERNAL_TABLE为ZALSM_EXCEL_TO_INTERNAL_TABLE,并做少许改动即可。
第一步:COPY ALSMEX_TABLINE为ZALSMEX_TABLINE修改其字段类型:第二步:COPY ALSM_EXCEL_TO_INTERNAL_TABLE为ZALSM_EXCEL_TO_INTERNAL_TABLE并第三步:将COPY出来的代码添加如下代码并激活。
下面为EXCEL导入的简单示例:REPORT ZTEMPRO3.*----------------------------------------------------------------------** TABLE*----------------------------------------------------------------------*TABLES: ZISS_CO_006.*----------------------------------------------------------------------** TYPE-POOLS*----------------------------------------------------------------------**----------------------------------------------------------------------** TYPE*----------------------------------------------------------------------*TYPES:BEGIN OF TYP_UPLOAD,RYEAR TYPE STRING,POPER TYPE STRING,BUKRS TYPE STRING,RACCT TYPE STRING,FKBER TYPE STRING,LINETYPE TYPE STRING,HSL TYPE STRING,END OF TYP_UPLOAD.*----------------------------------------------------------------------** INTERNAL TABLE*----------------------------------------------------------------------***---- INTERNAL TABLE ----**DATA: IT_UPLOAD TYPE STANDARD TABLE OF TYP_UPLOAD.DATA: IT_OUTPUT LIKE STANDARD TABLE OF ZISS_CO_006 WITH HEADER LINE. **---- HEADER ----**DATA: WA_UPLOAD TYPE TYP_UPLOAD.*----------------------------------------------------------------------** WORKS*----------------------------------------------------------------------**----------------------------------------------------------------------** DATA*----------------------------------------------------------------------*DATA: ITAB TYPE STANDARD TABLE OF ZALSMEX_TABLINE WITH DEFAULT KEY.*----------------------------------------------------------------------** CONSTANTS*----------------------------------------------------------------------**----------------------------------------------------------------------** FIELD-SYMBOLS*----------------------------------------------------------------------*FIELD-SYMBOLS: <WA_ITAB> TYPE ZALSMEX_TABLINE.*----------------------------------------------------------------------** RANGES*----------------------------------------------------------------------**----------------------------------------------------------------------** PARAMETERS*----------------------------------------------------------------------*SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-001.PARAMETERS: FLOCAL LIKE RLGRAP-FILENAMEDEFAULT 'D:\FILE.XLSX' OBLIGATORY.SELECTION-SCREEN END OF BLOCK 0.*======================================================================** MAIN ROUTINE*==================================================================== ==*AT SELECTION-SCREEN ON VALUE-REQUEST FOR FLOCAL.PERFORM FRM_SELECT_FILE CHANGING FLOCAL. "选择文件*----------------------------------------------------------------------** START-OF-SELECTION*----------------------------------------------------------------------*START-OF-SELECTION.CALL FUNCTION 'ZALSM_EXCEL_TO_INTERNAL_TABLE'EXPORTINGFILENAME = flocalI_BEGIN_COL = 1 "导入单元格的开始列I_BEGIN_ROW = 2 "导入单元格的开始行I_END_COL = 8 "导入单元格的结束列I_END_ROW = 65535 "导入单元格的结束行TABLESINTERN = ITABEXCEPTIONSINCONSISTENT_PARAMETERS = 1UPLOAD_OLE = 2OTHERS = 3.IF ITAB IS INITIAL.MESSAGE '导入模板中无数据' TYPE 'E'.ENDIF.SORT ITAB BY ROW.* 文件上传PERFORM FRM_UPLOAD.* 将数据插入数据库PERFORM FRM_INS_DATA.*----------------------------------------------------------------------** END-OF-SELECTION*----------------------------------------------------------------------**&---------------------------------------------------------------------**& Form FRM_SELECT_FILE*&---------------------------------------------------------------------** 选择文件*----------------------------------------------------------------------*FORM FRM_SELECT_FILE CHANGING C_FLOCAL.DATA: l_rc TYPE i,l_filetable TYPE filetable,l_filefilter TYPE string.l_filefilter = 'Excel文件 (*.xlsx)|*.xlsx|全部文件 (*.*)|*.*|'.CALL METHOD cl_gui_frontend_services=>file_open_dialog EXPORTINGwindow_title = '选择上载文件'file_filter = l_filefiltermultiselection = spaceCHANGINGfile_table = l_filetablerc = l_rcEXCEPTIONSfile_open_dialog_failed = 1cntl_error = 2error_no_gui = 3not_supported_by_gui = 4OTHERS = 5.IF sy-subrc = 0 AND l_rc = 1.READ TABLE l_filetable INTO C_FLOCAL INDEX 1.ENDIF.ENDFORM. " FRM_SELECT_FILE*&---------------------------------------------------------------------**& Form FRM_UPLOAD*&---------------------------------------------------------------------** 文件上传*----------------------------------------------------------------------*FORM FRM_UPLOAD .LOOP AT ITAB ASSIGNING <WA_ITAB>.CASE <wa_itab>-col.WHEN '0001'.wa_upload-RYEAR = <wa_itab>-value.WHEN '0002'.wa_upload-POPER = <wa_itab>-value.WHEN '0003'.wa_upload-BUKRS = <wa_itab>-value.WHEN '0004'.wa_upload-RACCT = <wa_itab>-value.WHEN '0005'.wa_upload-FKBER = <wa_itab>-value.WHEN '0006'.wa_upload-LINETYPE = <wa_itab>-value.WHEN '0007'.wa_upload-HSL = <wa_itab>-value.WHEN OTHERS.ENDCASE.AT END OF ROW.APPEND WA_UPLOAD TO IT_UPLOAD.CLEAR WA_UPLOAD.ENDAT.ENDLOOP.ENDFORM. " FRM_UPLOAD*&---------------------------------------------------------------------**& Form FRM_INS_DATA*&---------------------------------------------------------------------** 插入数据至数据库*----------------------------------------------------------------------*FORM FRM_INS_DATA .LOOP AT IT_UPLOAD INTO WA_UPLOAD.IT_OUTPUT-RYEAR = WA_UPLOAD-RYEAR.IT_OUTPUT-POPER = WA_UPLOAD-POPER.IT_OUTPUT-BUKRS = WA_UPLOAD-BUKRS.IT_OUTPUT-RACCT = WA_UPLOAD-RACCT.IT_OUTPUT-FKBER = WA_UPLOAD-FKBER.IT_OUTPUT-LINETYPE = WA_UPLOAD-LINETYPE.IT_OUTPUT-HSL = WA_UPLOAD-HSL.APPEND IT_OUTPUT.CLEAR: WA_UPLOAD.ENDLOOP.IF IT_OUTPUT IS NOT INITIAL.LOOP AT IT_OUTPUT.MODIFY ZISS_CO_006 FROM IT_OUTPUT.ENDLOOP.MESSAGE '更新完成' TYPE 'I'.ENDIF.ENDFORM. " FRM_INS_DATA。
Oracle FLEXCUBE Universal Banking ® 12.87.050.0 Development of Dashboard FormsJ une 2018Table of Contents1Preface (3)1.1Audience (3)1.2Related Documents (3)2Introduction (4)3Creating Dashboard Screen (4)3.1Preferences (5)3.2Data Sources (5)3.3Data Blocks (6)3.3.1Block Fields (7)3.4Summary (8)4Generation of units (9)5User Maintenance (10)1PrefaceThis document describes Dashboard Forms available in Oracle FLEXCUBE and guides the developers in designing a Dashboard screen using Oracle FLEXCUBE DevelopmentWorkbench for Universal Banking1.1AudienceThis document is intended for FLEXCUBE Application developers/users that useDevelopment Workbench to develop various FLEXCUBE components.To Use this manual, you need conceptual and working knowledge of the below:1.2Related Documents04-Development_WorkBench _Screen_Development-I.docx05-Development_WorkBench _Screen_Development-II.docx2IntroductionThis document provides information on:∙Chapter 2 , “Introduction”∙Chapter 3 , “Creating Dashboard Form"∙Chapter 4 , “Generation of Units"∙Chapter 5 , “User Maintenance"3Creating Dashboard Form∙ Log into the Development Workbench and click on Function Generation tab.Fig 5.1: Function Generation tab∙Select Action -New.∙Dash Board-id is to be entered in Function Id field. It follows the same naming convention as a normal function id∙Select Function Type –Parent∙Select Function Category –DashboardFig 5.2: Selecting Function Category3.1PreferencesDeveloper can maintain the menu details in Preferences screen. Please note that TYPE STRING will be generated as ‘D’ for dashboard screens in smtb_menu.Currently only summary dashboard screens are supported. So maintain menu details only for summary screens.Fig 5.1.1: Selecting the Preferences3.2 Data SourcesDeveloper can add table as per the requirement. Please note that dashboard screen supports only one data source to be added in a screen (which has to be the master data source)Fig 5.2.1: Data sources3.3Data BlocksData block has to be created and attach the data source to the block. Currently, dashboard screens can have only one data blockFig 5.3.1: Data blocks3.3.1Block FieldsAdd block fields to the block as required. If the field is a linked field (hyper link), select Display type as Link.If the field is a linked field, dashboard link details have to be maintained in dashboard link tab.Fig 5.3.1.1: Block fieldsLevel: Level can be either Row or Column.If it is column, then the link is limited to that column alone and different links can be provided different fields in the same row. Multiple column level links can be defined for a summary dashboardIf it is row, the link is the same across all the fields in the row. Only one row level link can be defined for a summary dashboard. If a row level link is present, then no other link should be defined in the summary dashboard.Link Type: Link Type can be standard or custom.Function Name: Provide the function id which has to be launched on clicking the linked field. Linked field value will be taken as the primary key for launching this function id.3.4 SummaryDevelopment Workbench currently supports only summary dashboards. Attach the block to the summary screen. Hence don’t create any screens.Summary Screen Size: Specify the size of the summary screenMain Summary Screen: Specify the main summary screen function id which will be launched on clicking moreDon’t provide any values in default where clause. This has to be maintained by the user through user dashboard maintenance screen in Flex cube.Attach the fields which are required in the summary screen.Below screenshot shows the summary screen along with the preview of the screenFig 4.4.1: Summary Screen4Generation of unitsFollowing units needs to be generated and deployed for the proper functioning of summary dashboard screen.i)SYS jsii)UIXMLiii)Menu details inc (smtb_menu)iv)Summary Details inc(cstb_summary_info)v)Label Details, Data source details5 User MaintenanceUser need to maintain the dashboards accessible to him in user dashboard maintenance screen in FLEXCUBE . Sequence number of the screens as well as the where clause of summary screen has to be provided here.11Development of Dashboard FormsDevelopment of Dashboard FormsJune 2018Oracle Corporation World Headquarters 500 Oracle ParkwayRedwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200/ financial_services/Copyright © 2017-2018 Oracle Financial Services Software Limited. All rights reserved.No part of this work may be reproduced, stored in a retrieval system, adopted or transmitted in any form or by any means, electronic, mechanical, photographic, graphic, optic recording or otherwise, translated in any language or computer language, without the prior written permission of Oracle Financial Services Software Limited.Due care has been taken to make this document Development of Dashboard Forms and accompanying software package as accurate as possible. However, Oracle Financial Services Software Limited makes no representation or warranties with respect to the contents hereof and shall not be responsible for any loss or damage caused to the user by the direct or indirect use of Development of Dashboard Forms and the accompanying Software System. Furthermore, Oracle Financial Services Software Limited reserves the right to alter, modify or otherwise change in any manner the content hereof, without obligation of Oracle Financial Services Software Limited to notify any person of such revision or changes.All company and product names are trademarks of the respective companies with which they are associated .。