Skip to Content
avatar image
Former Member

Converted SAPSCRIPT to SmartForm: A few Questions

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 29, 2008 at 07:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 29, 2008 at 04:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded