qmhiro - by - 17 五月, 2008 22:11

SmartForms总结

步骤一:Create Form

Tcode: smartforms

2在Form后面输入名称,然后单击“创建”;

3输入描述;

4设计界面;

5保存并激活;

6执行,可以自到系统会自动产生一个Function module,如:/1BCDWB/SF00000016

7执行,输入必要的参数;

8执行,输入OutputDevice

9打印预览,可以看到设计的界面。

步骤二:建立程序

代码如下:

DATA W_SFLIGHT like sflight occurs 0 with header line.

*Name of Function Module

DATA: fm_name TYPE rs38l_fnam.

select * from sflight into table w_sflight.

*SmartForms生成的功能模块名称*

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZTESTSMART_AJAX2' "Smartforms name

* VARIANT = ' '

* DIRECT_CALL = ' '

IMPORTING

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.

ENDIF.

*调用SmartForms生成的功能模块,将触发打印功能*

CALL FUNCTION fm_name

EXPORTING

* ARCHIVE_INDEX =

* ARCHIVE_INDEX_TAB =

* ARCHIVE_PARAMETERS =

* CONTROL_PARAMETERS =

* MAIL_APPL_OBJ =

* MAIL_RECIPIENT =

* MAIL_SENDER =

* OUTPUT_OPTIONS =

* USER_SETTINGS = 'X'

zcompany = '某某公司' “自定义的接口

* IMPORTING

* DOCUMENT_OUTPUT_INFO =

* JOB_OUTPUT_INFO =

* JOB_OUTPUT_OPTIONS =

tables

i_sflight = W_SFLIGHT “自定义的接口(内表)

* 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.

说明:

<!--[if !supportLists]-->1)<!--[endif]-->屏幕左测显示所有对象,双击它可以显示属性;

<!--[if !supportLists]-->2)<!--[endif]-->只有主窗体中数据才能在多个页面中连续输出;

<!--[if !supportLists]-->3)<!--[endif]-->表格:

静态表格: Template节点

动态表格: TableLoopComplex section节点,最好要放在主窗口中,可以输出多页。

<!--[if !supportLists]-->4)<!--[endif]-->节点处理流程:从顶端到底端

come from:http://blog.csdn.net/ft1612796/archive/2007/06/15/1653746.aspx

more Smart Form templates available from SAP SAP Labs also has some more Smart Form templates for around 20 forms. They're preconfigured & have versions or translations in a few languages besides English. MOstly they cover SD and MM modules.
You have to have access to the Service Marketplace though.
SAP SmartForms lib:
http://help.sap.com/saphelp_46c/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
Alternatively, go to help.sap.com, go to Basis components, then go to Basis Services/Communications Interface.
This has loads of information on SMARTFORMS



    最新回复








博客日历
« 八月 2008 »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
搜索
管理控制台
TOP_Read
TOP_Reply
New_Reply
网站链接
100easy
itput.net
erphome
sap.itpub.net
sapforum.net
ERP100 SAP论坛
我看企业管理
CSDN SAP 论坛
SAP俱乐部
sapsh.com
226E
saphome.NET
huihoo SAP
sap netweaver
sapsky.com
CSDN tag系统
SAP开发者社区
SAP SDN Blogs
sapfans
sap-directory
ittoolbox
sap-img
bwexpertonline
sapteched.com
BW Discussion Forums
sapprofessionals.org
squidoo.com
chetanasforum.com
sapcookbook.com
ENGLISH招聘网站
SAP BW Resumes
hotgigs
ZP rnd.in
jobsvista.com
SAPBWReport
bwexpertonline
BW A & Q
wordpress.com
bwexpertonline.com
国外论坛
sap jobs
searchsap.com
job
SAP JOBS
gleez.com/sap-bw
uky.edu
www.ittestpapers.com
SAP SERACH
searchsap.techtarget.com
Aaron Wang
SAP Help Portal
SAP BW Library
sap support portal
SAP CN
SAP Certification
BW Technical Consultant Certification
sap certification
BW310 help
全国车次网
个人所得税计算器
购书中心书籍检索
个税住房按揭计算器
广图书目检索
蔚蓝电子商务
当当网
得益网
eastday.com
21stcentury
全库网123查
SAP BOOKS
SAP BW Hints and Tips
SAP BW certification
博克SAP书籍
广社保业务大厅
招行理财计算器
工行理财计算器
nw2004s library
股票买卖计算
chinese-english
http://gz.city8.com/
SAP生活
零售业SAP学习
小白之家
XCBQL SAP天地
iyahui
SAP R3 人民公社
MBA智库百科
神话的博客
翱翔云天
JYW
SAP圈
会计博客-arrow
SAP CLUB
JACK WU HOME
SAPING
JY0314
天一剑客
aton001 ABAP
SAP砍刀
zhpfeng
jumpwater
lifeiwu
My SAP CW
Flying的ERP空间
思考、规划、执行
大兵SAP HR博客
SAP Specialist
youlan
SAP博客
SAP BW
厚德载物
forchheim bw
天津包子
科华SAP笔记
wangqiwu
ABAP
沧海拾贝
ABAP chouer
老黄的畅享空间
SAP-ENGLISH
Jack Wu BW
SAP BI Blog
sap-img.com
sdn.sap.com
SAP BW Interviews
forchheim
ericmw78
LAZY的窝窝
charles6222FICO
IDES FICO
robinyou
SAP屠夫的博客
一把老骨头
Melody
http://charles6222.itpub.net
shenpng
arrow
似雪飞翔
学无止境ABAP
童话.生活...
铁血论坛
我爱笑话
ICXO
MSN理财网
汽车之家
汽车标志
汽车报价库
ask question
SAP book
英文早报
羽球在线
中羽网社区
大傻羽球
FT中文
sap-press.de
bw.sdn.sap.com
和讯
和讯BBS
新闻聚合
RSS 0.90
RSS 1.0
RSS 2.0
Atom 0.3