SAP Script form 开发

简介: http://learnabaponline.blogspot.jp/2013/06/sapscript.html Steps for Creating SAPScript 1.
http://learnabaponline.blogspot.jp/2013/06/sapscript.html

Steps for Creating SAPScript


1.       Go to  transaction SE71.
 
2.       Enter the use of your program in meaning text box. It is mainly useful for understanding what the program does.  Now SAVE your program clicking on Save button.

 
3.       Before proceeding further first ensure by going to Settings> Form Painter  under the SAPScript Tab both Form Painter and PC editor checkbox are unchecked. If not, uncheck them.
 

4.       Now goto Paragraph Formats Tab and create a paragraph. Give all the Font and alignment settings you want for your output here. If you wish to have more than one paragraph formats for your script create another one. Save the script.

Don’t forget to press Enter Key after you create your paragraph as the Enter Key works as  submit in SAP. Many people face issues due to this.
5.       Now goto Pages Tab.  Create a Page with any page name and give it some description. If your output is long and wont come in a single page and you wish to show the remaining part in another page (probably with different page settings) then you need to give the description of same in NEXT PAGE text box. By default, the same page would be used to display the output. Save the script.


6.       After creating Pages we need to create Windows. Please note that on a single Page there could be multiple windows. Goto Windows tab for creating Windows. By default you could see that a MAIN window is already been given by SAP.  For every page there could possibly be only one MAIN window.  Therefore, for further divisions of a page SAP provides us with 2 other window types other than MAIN window :-  Constant and Variable.
                -The width of the main window remains the same on each form page in which it appears. "Continuous" text is output in the main window (text which covers several pages).
             -Constant windows are the same size and have the same contents on all form pages in which they appear. They therefore only need to be edited once when output. The text editing process is quicker if a window is defined as constant.
           -Variable windows, on the other hand, can be various sizes and have different contents on different pages.
Now create one header window by entering details as shown below. Also assign default paragraph to Header window as well as Page Window.

MAIN Window Attributes:-


7.       As of now we have created Paragraphs, Page and windows.  Now we will assign the window to the page we have created. For that goto Page Windows tab. At the Tab goto Edit > Create Elements 


Now, double click on HEADER window. At the Standard Attributes block give some values for windows width and height. We will change it later as per our suitability. Repeat the Same Procedure for MAIN window and Save the script.
Also, if you want you can use your MAIN window multiple times in a single page, while other windows VAR or CONST could only be used once.

8.       Now, goto Settings > Form Painter and then go on SAPScript tab. The Form Painter and PC Editor Checkbox which we unchecked at starting of program, check them now and click on OK.

9.       A  Form Painter window will appear where you could see the page we have created. On the page you could also see the windows we created. Now adjust the page windows as per your requirement.  After adjusting the windows just save the Script. And again Uncheck the Form Painter and PC editor checkboxes by going to System > Form Painter.


10.   Now, Suppose we have to display the Sales Details in our Script. For that first we would create Text Elements in our MAIN window. Now go to Page Windows point cursor on MAIN window. Then goto Edit > Text Elements. Write the code as shown

click on back button. Then click on Save. 

11.    Similarly, do it for header window

click on back button. Then click on Save. 


12.    Now click on  Header button.  After that click on 
In the window that appears,  fill in details about Default Para and First Page.
目录
相关文章
|
SQL 设计模式 前端开发
【置顶】SAP ABAP开发实战——从入门到精通系列目录
本文章为SAP ABAP开发实战——从入门到精通系列的目录以及关于该教程的后续写作计划表
1929 0
【置顶】SAP ABAP开发实战——从入门到精通系列目录
SAP 金额转中文大写自开发函数
关于凭证打印时需将金额转换成中文大写
140 0
|
BI
SAP ABAP在线预览文档对象的开发实现
应用场景:有些定制化开发(报表/功能增强等)完成之后,客户需要将其操作手册或者相关文档放在某个报表的初始画面,供实际操作者在线查阅,当然这个功能也同样类似于模板的下载,这里就以在线预览(直接打开)为例进行说明。
273 0
SAP DALOG开发-代码触发回车事件
对于指定输入框:触发屏幕回车事件
300 0
|
程序员 BI
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
也谈SAP业务顾问如何避免被ABAP开发顾问怒打
|
安全 物联网 大数据
SAP开发实验室,等你来参加!
9月19日到22日的阿里云栖大会上,SAP展台(C馆303展位)的”开发实验室”将为您带来SAP云平台的全新体验。由来自SAP的顶尖开发教练,手把手带您玩转各种开发工具,领略SAP 开发平台的能量,全天循环不停歇!我们诚邀您来我们的“开发实验室”小聚,更有机会赢得精美礼品!
2124 0
|
BI
SAP应用界面开发:5)Report List报表开发-输入列表颜色的设定(5)
  使用FORMAT语句可以实现其它一些屏幕格式化功能,如调整输出颜色等。      [Syntax]      FORMAT [ON|OFF]  [ON|OFF]........      一旦设定,FORMAT语句中设置的格式将适用于所有后续输出的语句,直到再次使用OFF选项关闭,其具体选项列表如下:      COLOR n [ON|OFF]:设定列表行的背景颜色。
844 0
SAP应用界面开发:3)SELECTION-SCREEN之PUSHBUTTON对象(3)
在ABAP中在屏幕上创建按钮,你需要在SELECTION-SCREEN对象中加入PUSHBUTTON参数,语法如下:     [Syntax]     SELECTION-SCREEN PUSHBUTTON [/] USER-COMMAND [MODIF ID ]     :PUSHBUTTON按钮在屏幕生成的位置与长度。
1367 0
SAP应用界面开发:3)SELECTION-SCREEN对象(4)
前面几篇文章已经学习了ABAP中SELECTION-SCREEN的大部分对象,既然是大部分对象,那么还遗留有小部分对象还未接触,接下来我们将继续学习。      (1)SELECTION-SCREEN COMMONT fmt name.      用于定义或者修改本地元素的注释,包括PARAMETER、CHECKBOX BUTTON等。
1065 0