惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Engineering at Meta
Engineering at Meta
量子位
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
月光博客
月光博客
A
About on SuperTechFans
博客园 - 聂微东
Spread Privacy
Spread Privacy
B
Blog
NISL@THU
NISL@THU
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
T
Threatpost
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Palo Alto Networks Blog
C
Check Point Blog
O
OpenAI News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
T
Threat Research - Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Know Your Adversary
Know Your Adversary
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
P
Privacy International News Feed
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
H
Heimdal Security Blog
Martin Fowler
Martin Fowler
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
V2EX - 技术
V2EX - 技术
V
Vulnerabilities – Threatpost
博客园 - 司徒正美
C
CERT Recently Published Vulnerability Notes
H
Hacker News: Front Page
PCI Perspectives
PCI Perspectives

博客园 - 老白先生

webpack4+vue2+axios+vue-router的多页+单页混合应用框架 用文本增强修改SAP标准屏幕中的字段名称 ABAP:ALV的 Header中添加HTML内容 BDC处理时用到结构--BDCDATA ABAP:Smartform生成PDF FI 相关table的说明 ABAP:FI常用BAPI ABAP 自动生成EXCEL文件并作简单格式处理 Complex LUW processing (internal/external Session) ABAP 动态内表构建 Dynamic internal table AT LINE-SELECTION SAP:建表时如果有QUAN、CURR类型的字段不能激活的问题 关于SAP LUW ABAP:关于隐式与显式的DB Commit ABAP笔记:BDC完整版例子 SAP:Authority-check 加入收藏夹功能(jQuery) 成功的秘密? ERP流程的一个生动的例子
smartform中打印bseg-wrbtr(凭证货币金额)字段的问题
老白先生 · 2011-09-05 · via 博客园 - 老白先生

有些时候使用smartform时,在设计form layout的时候check是不出错的,但是一旦跑了function, exception就返回了,很让人郁闷。

今天就遇到了这个问题,在程序中使用smartform打印,点击“打印预览”后没有任何反映,通过debug获得错误信息“参考字段wa-wrbtr在表格中未知”,知道了错误源,就好解决了。

在smartform中使用bseg-wrbtr字段时,不能直接&wa-wrbtr&,需要先判断它是否有值,不然就会出错

创建定个程序行,代码如下:

l_wrbtr = wa-wrbtr.  "l_wrbtr 类型为c 或者 string

IF wa-wrbtr IS INITIAL.
   CLEAR l_wrbtr.
ENDIF.

最后输出 &l_wrbtr&即可。

虽然解决了,但不能确定是什么原因,可能bseg-wrbtr的类型是CURR的缘故吧。