当前位置:网站首页>SAP SMARTFORMS文本内容手动换行输出
SAP SMARTFORMS文本内容手动换行输出
2022-06-11 00:50:00 【DeveloperMrMeng】
实现效果如下,批次和片号信息换行输出(非自动换行)

实现方式如下:
1.使用 CL_ABAP_CHAR_UTILITIES=>CR_LF 拼接换行符

2.smartforms定义全局变量

3.添加代码行

DATA:
LT_STRAM_LINES TYPE STANDARD TABLE OF STRING,
LS_STRING TYPE STRING,
LT_TEXT TYPE TLINE_T.
CLEAR GT_CHARGPID.
LS_STRING = GS_ITEM-CHARGPID.
APPEND LS_STRING TO LT_STRAM_LINES.
CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
EXPORTING
STREAM_LINES = LT_STRAM_LINES
LF = 'X'
TABLES
ITF_TEXT = GT_CHARGPID.4. 将字段内容替换为动态文本,动态文本字段的格式为表格样式中设置的默认段落格式,如果有多个格式,且默认格式是带有行间距等一些设置的格式的话,可能会出现多行内容叠加显示或者一些不正常的显示效果

边栏推荐
- [leetcode] path sum II (first glimpse recursion + backtracking)
- [matlab] image enhancement (power transformation, histogram specification processing method, smoothing and sharpening filtering)
- (solved) latex -- cancel the superscript display of references in the text (gbt7714-2015 will lead to the default superscript reference) (tutorial on mixed use of superscript and flush)
- 2021-3-1matlas MNIST database training for CNN writing
- Matlab array other common operation notes
- [leetcode] flat multi-level bidirectional linked list
- Introduction and practice of QT tcp/udp network protocol (I) TCP communication
- ---排列数字---
- 爱思唯尔---Elseviewer---预印本在线发表通知
- kubernetes 二进制安装(v1.20.15)(七)加塞一个工作节点
猜你喜欢

Loki 学习总结(1)—— Loki 中小项目日志系统的不二之选

Method of using dism command to backup driver in win11 system

AI fanaticism | come to this conference and work together on the new tools of AI!

【BSP视频教程】BSP视频教程第17期:单片机bootloader专题,启动,跳转配置和调试下载的各种用法(2022-06-10)

【音乐】基于matlab演奏《过火》【含Matlab源码 1875期】

爱思唯尔---Elseviewer---预印本在线发表通知

2021-2-14 gephi learning notes

Task07: double pointer

---排列数字---

Today's sleep quality record 80 points
随机推荐
Project sorting of Online Exercise System Based on gin and Gorm
A brief history of neural network
字节北京23k和拼多多上海28K,我该怎么选?
Introduction and practice of QT tcp/udp network protocol (I) TCP communication
LeetCode 1010 Pairs of Songs With Total Durations Divisible by 60 (hash)
[winning] Title A of the 9th Teddy Cup Challenge
Method of using dism command to backup driver in win11 system
Fallible point--
【MATLAB】MATLAB图像处理基本操作
ACM tutorial - heap sorting
[linked list] find the midpoint of the linked list and deepen the understanding and Application
[matlab] basic operation of MATLAB image processing
【MATLAB】图像复原
[Qt] Erreur: qapplication: No such file or directory Solution
Deep exploration of functions with indefinite parameters in C language
[leetcode] same tree + symmetric binary tree
Understanding of pointers
Programming implementation: input any English month, and output its corresponding Chinese prompt after looking up the month table. Abbreviations can also be found.
關於概率統計中的排列組合
2021-02-27image processing of MATLAB