cancel
Showing results for 
Search instead for 
Did you mean: 

Converted SAPSCRIPT to SmartForm: A few Questions

Former Member
0 Kudos

I am new to Smartforms.

Smartforms easily got all the data now I have a lot of sytax errors, I imagine they are defined in the Print Program?

How do I link the Print Program to the newly conmverted SmartForm. an entry already exists in TNAPR.

Thank-You

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tom

To link your Smartform in the Print Program (PP), you need to call 2 function modules in the PP, First in the

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'Name of your smartform'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

  • IMPORTING

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

and second is the Function module which is generated on activating the Smartform. The name of this Smartform can be obtained

go to

Environment-> Function Module Name

eg:

CALL FUNCTION '/1BCDWB/SF00000347'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

TOT = TOT

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

TB_VBRK = TB_VBRK

TB_MATERIAL = TB_MATERIAL

TB_ADDRESS = TB_ADDRESS

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

Hope this info will Help You.

Regard With Points if you find it Helpful

Thanks

Karan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Go to NACE transaction.

Select The Application Type.

Like EF for Purchase Order.

Click on Output Types-->Select The Output Types.

Double Click On Processing Routines.

Then Enter Your Smartform Name in the column for Smartform,

Regards

Sandipan