Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.