smartform 输出条码出错提示行1列2のセル不存在 是什么意思

smartform3_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
smartform3
上传于||文档简介
&&s​m​a​r​t​f​o​r​m
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
下载文档到电脑,查找使用更方便
还剩7页未读,继续阅读
你可能喜欢1376人阅读
1、What are the differences between SAP Scripts and
Smartforms?
SAP Scripts are client dependent whereas
Smartforms are client independent.
SAP Scripts require a driver program to display the output whereas in
smartforms the form routines can be written so that it is standalone.
An integrated Form Builder helps to design
Smartforms more easily than SAP Scripts
An Table Painter and Smartstyles to assist in building up the
smartforms
On activation a function module is generated for
Smartforms
It is possible to create a Smartform without a main window
Smartforms generates XML output which can be viewed through the web
Multiple page formats is possible in
smartforms
2、How can I insert symbols in
Smartforms?
Select the Text node.
Change Editor (Click the button above Check near the Editor)
Go to menu Include-&Characters-&SAP Symbols
Choose the SAP symbol that you want to insert.
3、I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
formname = 'ZSMARTFORM'
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc && 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
CALL FUNCTION fm_name
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc && 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.How can I make the
Smartforms to choose a printer name by default?
In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.
The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.
4、How can I make the
Smartforms to display a print preview by default without displaying the popup for print parameters?
In the SSF_OPEN function module,
Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
Set the CONTROL PARAMETERS and control parameters as shown below,
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
control_parameters-no_open = 'X'.
control_parameters-no_close = 'X'.
OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
CALL FUNCTION 'SSF_OPEN'
output_options = output_options
control_parameters = control
user_settings = ' '
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc && 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
5、How can I display the total number of pages in
Smartforms?
Use SFSY-FORMPAGES to display the total number of pages in the
Smartforms
&SFSY-PAGE& Current page number
&SFSY-FORMPAGE& Total number of pages in the currently formatted layout set
&SFSY-JOBPAGE& Total number of pages in the currently formatted print request
&SFSY-COPYCOUNT& Original-1,1st copy-2
&SFSY-DATE& Date
&SFSY-TIME& Time
&SFSY-USERNAME& Username
I'm using the variable SFSY-FORMPAGES, I get a star &*& instead of the total number of pages.
There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&
6、What are the various text formatting options in
Smartforms?
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(&)& Display Leading Sign to the Left
&symbol(&)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
7、How can I provide a background shading to the table?
In the Table Painter, you can specify the color and shading for the table lines.
8、Where can I provide the input parameters to the smartform?
The input parameters for the smartform can be defined in Global Settings-&Form Interface.
The Associated Type must be defined in the ABAP Dictionary.
9、Where can I define my own global types for the smartform?
The global types(within the smartform) can be defined in Global Settings-&Global Definitions-&Types
The types defined here will be global through the entire smartform.
Also the form routines can be defined Global Settings-&Global Definitions-&Form Routines
10、I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.
11、I have created a table node for display. Where can I check the condition which must satisfy to display the table?
The conditions can be defined in the Conditions tab. In
smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.
12、How can I define Page Protect in
Smartforms?
To define Page Protect for a node go to the Output options and check the Page Protection checkbox.
13、What is the difference between Template and Table in
Smartforms?
The Template contains a fixed number of rows and columns, where the output is fixed.
The Table can have variable number of rows
14、Where can I define the paragraph and character format for the
smartforms?
The paragraph and character format for the
smartforms can be defined in the transaction SMARTSTYLES
15、How to add watermark to smartform output?
Go to the properties of 'PAGE', tab 'Background Picture'. Add the grapic image name here
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1507796次
积分:27784
积分:27784
排名:第130名
原创:927篇
转载:1692篇
译文:74篇
评论:107条
(80)(92)(73)(53)(88)(59)(22)(113)(43)(9)(22)(144)(240)(122)(55)(8)(5)(15)(14)(3)(2)(32)(2)(4)(5)(11)(34)(35)(39)(35)(36)(33)(10)(41)(39)(40)(16)(5)(12)(55)(38)(33)(24)(21)(43)(56)(55)(10)(68)(21)(53)(18)(76)(45)(159)(224)(9) 上传我的文档
 下载
 收藏
该文档贡献者很忙,什么也没留下。
 下载此文档
正在努力加载中...
Smartform 常见问题与解答 - 汇丰银行
下载积分:700
内容提示:Smartform 常见问题与解答 - 汇丰银行
文档格式:PDF|
浏览次数:72|
上传日期: 20:45:19|
文档星级:
该用户还上传了这些文档
Smartform 常见问题与解答 - 汇丰银行
官方公共微信SAP高手们!请教一个smartform 打印时的问题!_百度知道
SAP高手们!请教一个smartform 打印时的问题!
谁能帮忙解决这个问题啊(既能不用选择输出设备;X'. OUT_OPTION-TDDEST = 'LP01'. CALL FUNCTION FM_NAME EXPORTING TITLE = TITLE CONTROL_PARAMETERS = TMP_CONTROL_PARAMETERS OUTPUT_OPTIONS = OUT_OPTION USER_SETTINGS = '&#39,写成如下!请教一个问题!我在smartform 打印时. TMP_CONTROL_PARAMETERS-NO_DIALOG = &#39,但是却无法打印了,又能打印);X&#39,直接进入 打印预览,能让SMARTFORM不用选择输出设备;,直 接进入打印预览! TMP_CONTROL_PARAMETERS-PREVIEW = ' TABLES ITAB_A = ITAB_A ITAB_B = ITAB_B ITAB_C = ITAB_C ITAB_D = ITAB_D EXCEPTIONS FORMATTING_ERROR = 1 INTERNAL_ERROR = 2 SEND_ERROR = 3 USER_CANCELED = 4 OTHERS = 5SAP高手们
我有更好的答案
不用选打印设备的话只要在主窗口设置一下默认打印的设备就可以了,至于直接进入打印预览我就 不知道了
补充一下,不用选择输出设备,并且不跳出选择输出设备的界面.
其他类似问题
为您推荐:
sap的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁博客访问: 8655
博文数量: 6
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Linux
&&&& smartform是ABAP设计单据打印的常用工具,在单据开发过程中经常用到。smartform可以根据需要调整字体的大小、字体、颜色等。它的表格可以通过表格绘制器绘画,绘图方便灵活,表格可以直观地显示出来。
smartform原理:定义内表后,在程序中通过SQL查询将需要的数据放入内表,然后通过函数调用SMARTFORM。在执行SMARTFORM时把内表中的数据填充到所画的表格当中,并显示出来。
我的理解:写一个smartform包括两个部分,程序和smartform表,分别通过SE38和smartforms这两个TCODE进入相应的编辑界面。一个程序使用的smartform的名字可以与程序名不同,命名是任意的,但相同的命名比较好。
数据的流向:DB-->程序中的内表-->smartform表格-->打印输出。
DB-->程序中的内表:这个过程通过SQL查询来实现。
程序中的内表-->smartform表格:这个过程要求在程序和对应的smartform中定义完全一样的数据结构和数据类型。
下面以一个简单的例子来说明smartform程序的一般结构。我的开发平台是IDES,ECC6.0。
*&---------------------------------------------------------------------**& Report& Z080718*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*
REPORT& Z080718.
TABLES: VBAK.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& " 定义我所使用的表
DATA fm_name TYPE rs38l_fnam.&&&&&&&&&& " 这是后面会用到的一个参数
DATA: IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.&& " 定义内表,用来传数据
SELECT-OPTIONS: s_VBELN FOR VBAK-VBELN .&&&&&&& " 条件输入界面
START-OF-SELECTION.
PERFORM. get_data_smart.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& " 通过SQL查询得到需要的数据
END-OF-SELECTION.
PERFORM. trans_data_smart.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& " 将数据传给smartform
FORM. get_data_smart.&&& SELECT& *&&& INTO TABLE IT_VBAK&&& FROM VBAK&&& WHERE VBELN IN s_VBELN.ENDFORM.
FORM. trans_data_smart.& CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&&& EXPORTING&&&&& formname&&&&&&&&&& = 'Z080718'&&&&&&&&&&&&&&&&&&&&&&&&&&"&smartform表格的名字&&& IMPORTING&&&&& fm_name&&&&&&&&&&& = fm_name&&&&&&&&&&&&&&&&&&&&&&&&&"&开头定义的参数,用于SAP生成function_module name&&& EXCEPTIONS&&&&& no_form&&&&&&&&&&& = 1&&&&& no_function_module = 2&&&&& others&&&&&&&&&&&& = 3.
& CALL FUNCTION fm_name&&& "EXPORTING&&&&& "control_parameters = tmp_control_parameters&&& TABLES&&&&& "IT_VBAK1 = IT_VBAK&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"&由于我在smartform表格中定义的form&interface&是I_VBAK LIKE VBAK,所以这里不能用IT_VBAK1,必须用I_VBAK&&&&& I_VBAK = IT_VBAK&&& EXCEPTIONS&&&&& formatting_error = 1&&&&& internal_error&& = 2&&&&& send_error&&&&&& = 3&&&&& user_canceled&&& = 4.
阅读(2836) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。

我要回帖

更多关于 sap smartform 的文章

 

随机推荐