当前位置:首页>开发知识>ABAP开发>Form打印>[Smart] SMARTFORM中Global Definitions和Program Lines使用

[Smart] SMARTFORM中Global Definitions和Program Lines使用

场景:根据航班的最大座位数(Maximum seats )和已售座位数(Occupied seats),来计算可供订购座位数(Seats Available)。

 

1T-codesmartForms创建一个smartform

[Smart] SMARTFORM中Global Definitions和Program Lines使用

Form Interface

[Smart] SMARTFORM中Global Definitions和Program Lines使用

Global definitions定义全局变量——SEATS_AVAIL 

 

2、创建Program Lines

[Smart] SMARTFORM中Global Definitions和Program Lines使用

选择Main Window -> Create -> Flow Logic -> Program Lines 

[Smart] SMARTFORM中Global Definitions和Program Lines使用

传入参数SEATS_MAX and SEATS_OCC,传出参数SEATS_AVAIL

 

3、创建txt文本

[Smart] SMARTFORM中Global Definitions和Program Lines使用

选择Main Window ->Create ->Text

注意:文本一定要在program lines下面,程序是从上向下执行的,可通过拖拽的方式调整位置

 

4F8测试

[Smart] SMARTFORM中Global Definitions和Program Lines使用

 

输入Maximum seatsOccupied seats参数值,F8执行

[Smart] SMARTFORM中Global Definitions和Program Lines使用

 

选择LP01打印机,打印预览

 

 

 

给TA打赏
共{{data.count}}人
人已打赏
Form打印

[Smart] 修改SMARTFORMS默认文本编辑器

2022-11-21 16:50:21

开发知识点

[Smart] smartform中Address和Graphics的使用

2022-11-21 16:47:11

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索