cancel
Showing results for 
Search instead for 
Did you mean: 

form does not exist

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi surender

Regards,

Sravanthi

former_member745780
Active Participant
0 Kudos