当前位置:网站首页>SAP script tutorial: se71, se78, SCC1, vf03, so10-013
SAP script tutorial: se71, se78, SCC1, vf03, so10-013
2022-06-22 16:22:00 【Boating in rainy days】
AP The script is SAP The system has its own text processing system . It looks and feels very similar to other leading text processing systems .
It is used to print pre formatted text in a pre formatted form .
SAPScript The components of
SAP The script consists of five main components :

Editor for entering and editing text lines
Print the style and layout set of the layout . These are created independently of each text using the corresponding maintenance transaction , And later assigned to text
The composer is a central output module .SAP The script writer is not visible to the outside world
A programming interface , Allow you to SAP Script components are included in your own application , And control the output of the layout set from the program
For storing text 、 Multiple database tables for style and layout sets
Layout set
To output a document using a programming interface ,R/3 The application needs what is called a layout set ( A form ). stay SAP Script , A layout set describes the layout of each printed page , And use text elements to provide definable output blocks , The printer can call these output blocks . A layout set can be defined as the page design of a document
The separately set layout does not contain any data . The data selection of the document is completed through the printing program . The printer selects data from the database tables and feeds it to the layout set . When the print program is executed , The document is printed on the screen , The printer .
Usually ,SAPScript Layout Consists of the following components
Header data : Header data is used for SAP Printing information and control . The header data is provided by 2 Part of it is made up of - The equipment is independent - Store information , Such as the start page , Default paragraph , Language attributes, etc . Device related storage Information , Such as page format , Direction line per inch, etc
Paragraph and character formatting : Use various attributes to format paragraphs . for example , Standard paragraph properties specify left or right margins , Alignment mode , Row spacing, etc . The font attribute specifies the font family , Font size, etc . Character formatting allows you to format the entire block of text within a paragraph
Window and text elements : A window is a text area in a page ( Header address 、 date 、 The footer ). It helps to merge the information contained in the document into certain groups , And make each group appear in a single area on the printed page . You can define text elements for each window ( Window text ). The printer accesses the text element by name , Format them and print them in the appropriate window . The paragraph and the character format used must be defined in the form .
page : They are the pages of the document , Must have a unique name . You will often find that the layout of each page is different : The first page of the invoice is different from the following pages , You don't have to repeat the general information , For example, address or customer data .
Page window : When defining windows and pages , The position and spacing of the text to be output have not been determined . The page window defines the rectangular output area in the output medium by specifying the upper left edge of the output area and its width and height
Control command
“ Control command ” The purpose of is to allow control over the output format . These commands are not controlled by SAP The script editor explains , It is delivered to SAP The script writer processes . This includes , for example , Line and page formatting , Format the text according to the specified paragraph and character format .
grammar
Enter /: in the paragraph format
Example
New page – Explicit page breaks
Protect .........ENDPROTECT – Print complete paragraphs on one page .
contain – Include the contents of other text in the current text
perform – Call any ABAP Subroutines of programs
Print program
The script is executed through ABAP Program ( It is called a printing program ) Accomplished . Every printing program should have a ENTRY Forms , The form will call... From customization .
For standard configurations , We can do it in form TNAPR See the form name in the ( Script name )、 Print program name and output type . The printer uses form control functions to call scripts .
The printer calls all or part of the form control functions to execute the script
OPEN_FORM( Required ) Open layout set output
CLOSE_FORM( Required ) End layout set output
START_FORM( Optional ) Start a new layout set
WRITE_FORM( It's necessary ) Call the layout set element
END_FORM( Optional ) End the current layout set
The output type
The output type can be specified as the printing form required for internal use , You can also specify forms to send to customers or suppliers . The output type can also be an internal email to be sent to employees in other departments .
for example ,“ Printout ” An output type that can be classified as a billing document , That is, when this output type is executed , Print billing documents . Similarly ,“Fax” It can be an output type , That is, when this output type is executed , Send fax of billing document
Any document ( For example, accounting documents ) All output types of will be stored in the table NAST in . The output type passes through the program RSNAST00 perform .
Example : The output type in the account document -
go to VF03
Enter the account document number , Then press enter again
Select output... Under the menu go to -> title
among Z101 Is the output type of the printout
Standard text and graphics
You can use transactions SO10 Create standard text for the report
Graphics and printer macros accompany reports RSTXLDMC Upload to a single standard text document , Or through a transaction SE78 Upload . Graphics to “ The baseline TIFF 6.0” Format upload (.tif PC File on )
SAP Scripts and standard text elements can use RSTXSCRP Programs export or import between two systems
Copy scripts across clients :
SAP A script is a client - dependent object . Different from the procedure , On a client side SAP Changes made by the script will not be reflected in other clients . To copy a script from one client to another , Please go to SE71 And use “ Utilities ” Menu “ Copy from client ” Options , Or use transactions SCC1 Import the transfer request to save the script from the original client .
matters needing attention
SAP Scripts do not maintain any versions . therefore , In the revision SAP Script time , Make sure that the changes are well documented in the script . This also applies to standard text .
Viewing the output of the form on the screen and printer will be different . therefore , Always test the output of the script on the printer .
边栏推荐
- Dear students, don't read the textbooks any more. Just read this one for the complexity of time
- Batch export excel zip using zipfile, openpyxl and flask
- 杜老师自建国内不蒜子统计平台
- [Shanda conference] use typescript to reconstruct the project
- 5.文件的读写(学生类)
- 3. Classe abstraite (forme)
- Gd32f4xx MCU drives MCP2515 to expand can interface
- Cmake tutorial series-00-introduction
- 畅享高性能计算!天翼云HPC解决方案来了
- SAP教程中的ALV报告 - ABAP列表查看器-012
猜你喜欢
随机推荐
[Shangshui Shuo series] day three - VIDEO
用递归法求Fibonacci数列第n项的值
Program substitution function
GD32F4xx MCU 驱动mcp2515扩展CAN接口
【山大会议】WebRTC基础之对等体连接
Pymssql Module User Guide
nio服务多线程版本
New design of databend SQL planner
nio编程service
find命令使用
默认函数控制 =default 与 =delete
84. (cesium chapter) movement of cesium model on terrain
首个赛博格人陨落背后:科技与渐冻症的极限赛跑
webDriver以及Selenium使用总结
中信建投证券是跟启牛学堂存在什么关系?开证券账户安全吗
Modularity in SAP ABAP: macros, subroutines and function modules -04
数睿数据受邀参与南通企业数字化转型研讨会
6.GUI(图形,填充)
shell学习
Simulation of stack and queue





![[leetcode] 9. Palindromes](/img/58/1817b072949458f9652c144ac4ec0e.png)


