on 08-19-2008 12:06 PM
HI
am new to smartforms. plz tell how to create the table and template in smartforms clearly.
when am preview the form it could print the field name instead of values. and
when am executing the form with the print program . it depicts the form does not exist.
pls rectify this.
regards
surender
Hi,
see the below link
http://help.sap.com/saphelp_nw04/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
for tables
http://help.sap.com/saphelp_nw04/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
for templates
here is some piece of code to call the Smartform from report.
REPORT ZSALES_PRINT NO STANDARD PAGE HEADING.
DATA FLAG(1).
DATA: FORM_NAME(30) VALUE 'ZSALES_PRINT'.
DATA: FM_NAME TYPE RS38L_FNAM.
PARAMETERS: VBELN LIKE VBAK-VBELN OBLIGATORY,
KUNNR LIKE VBAK-KUNNR OBLIGATORY.
DATA: BEGIN OF ZITAB OCCURS 0.
INCLUDE STRUCTURE VBAP.
DATA: END OF ZITAB.
DATA ZITAB1 LIKE ZITAB OCCURS 0 WITH HEADER LINE.
DATA: SVBELN TYPE DDSHRETVAL.
TABLES: VBAK, VBAP.
START-OF-SELECTION.
SELECT SINGLE * FROM VBAK WHERE VBELN = VBELN
AND KUNNR = KUNNR.
SELECT * FROM VBAP INTO CORRESPONDING FIELDS OF TABLE ZITAB
WHERE VBELN = VBAK-VBELN .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = FORM_NAME
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
EXPORTING
VBELN = VBELN
KUNNR = KUNNR
FLAG = FLAG
TABLES
ZITAB = ZITAB
ZITAB1 = ZITAB1.
Regards,
Jagadeesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Regarding tables and templates you have already got the answers above..
regarding display of values... check whether you have enclosed the field names in between &&
eg. &mara-matnr&
regarding detecting the form name... check if you have given the smartform name in single quotations and also in capital letters.
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Check this
http://help.sap.com/saphelp_nw04/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
Thanks
Anirudh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.