Skip to Content
avatar image
Former Member

Archive smartform

Hi,

I need to print 4 copies of my smartform

And i need to archive the first copy.

HOw do I do that

i can set tdcopies to 4 i know.

but how do i archive just the first.

what parameters should i pass

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 31, 2007 at 09:37 AM

    Hi,

    You will call the beloe function module to get the Smartform name

    CALL FUNCTION ‘SSF_FUNCTION_MODULE_NAME’

    EXPORTING

    formname = p_form_name

    • VARIANT = ’ ’

    • DIRECT_CALL = ’ ’

    IMPORTING

    fm_name = l_fm_name

    EXCEPTIONS

    no_form = 1

    no_function_module = 2

    OTHERS = 3

    .

    After that you will call the below function module

    CALL FUNCTION l_fm_name

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS = l_control_parameters

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    output_options = l_output_options

    USER_SETTINGS = ‘ ’

    kunag = v_kunag

    kunwe = v_kunwe

    vkorg = v_vkorg

    year = v_year

    month = v_month

    vbdkr = vbdkr

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    EXCEPTIONS

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    OTHERS = 5

    So here in the above function module we have 3 paramters,

    ARCHIVE_INDEX

    ARCHIVE_INDEX_TAB

    ARCHIVE_PARAMETERS

    Use these parameters to archive the smartform

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2007 at 10:00 AM

    Hi when

    i set archive mode to 3

    pint and archive i get the following error

    'No archive information found for object type '

    what could be the issue?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2007 at 06:24 PM

    Hi,

    I can give u some information on archiving smartforms:

    Archiving

    Use

    When you print SAP Smart Forms documents, you can additionally archive them electronically and link them to the application data stored in the SAP System. You can archive only output in OTF format.

    Integration

    At the interface of the generated function module, SAP Smart Forms provides the following standard parameters for archiving purposes:

    ARCHIVE_INDEX

    ARCHIVE_INDEX_TAB

    ARCHIVE_PARAMETERS

    These parameters as well as the document itself are forwarded to SAP ArchiveLink. SAP ArchiveLink is a communication interface for administering storage systems within the SAP System.

    Activating Archiving

    In the spool dialog, the user determines the storage mode for the document. If you suppress the dialog you must set the TDARMOD field of the Output options to '2' (Archive Only) or '3' (Print and Archive) (see also: Controlling the Spool Dialog).

    For more information refer to Storing Outbound Documents in the SAP ArchiveLink Documentation.

    Tip: call smart form function module 2times. first time use archiving and second time just print 3copies

    regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2007 at 06:14 AM

    hi,

    In order to get information on Archiving, please use the link

    archivinghttp://www.ossincorp.com/Black_Box/Black_Box_4.htm">archiving>

    If you want any more information, i can help you out.

    Thank you.

    Add comment
    10|10000 characters needed characters exceeded