archiving smartforms
DESCRIPTION
smartforms archivingTRANSCRIPT
Archiving SmartformsThis question isAssumed Answered.
Poorna Chander SunkavalliFeb 1, 2008 6:11 PMHi,I need to archive(Document Image Archiving Sytem-CImage) a Notification. I Used smartforms to output the Notification. I am able to Convert this Output to PDF Format and then send a mail.We pass the Archiving Parameters and Archive Index in OPEN_FORM for SAP Scripts. I tried to Archive by directly passing Archve Index & Archive Parameters to Smartform Call but with no result.Then I tried fetching OTF Data from Smartforms call and then Passing it to Archiving FM as below*ARCHIVE_PARAMETERSarc_params-sap_object = 'BUS2078'. "Object typearc_params-archiv_id = 'Z2'. "Target storage systemarc_params-doc_type = 'Z*'. " Doc type in Customizing*ARCHIVE_INDEXls_toa_dara-function = 'DARA'.ls_toa_dara-mandant = sy-mandt.ls_toa_dara-sap_object = 'BUS2078'.ls_toa_dara-object_id = Notif_number.ls_toa_dara-reserve(6) = 'COMMIT'.The Output of Smartform Output(job_output_info-otfdata) is passed to FM below call Function 'CONVERT_OTF_AND_ARCHIVE'exportingarc_p = ls_arc_paramsarc_i = ls_toa_daraformat = 'PDF'* ARC_TAB =* ARCHIVE_COPIES = ' '* MAX_COPIES = '001'tablesotf = ls_output-otfdata.if sy-subrc 0.* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.endif.endif.sy-subrc of Above call returns '0', but the Document is not Archived.Please advice if I missed any parameters or if any further settings needs to be in place for Archiving Smartforms.Thanks in advance for [email protected] 874Views Average User Rating(0 ratings) Re: Archiving Smartforms
Poorna Chander SunkavalliFeb 11, 2008 1:26 PM(in response to Poorna Chander Sunkavalli)Observed that Smartforms do not Archive when Outputting OTF Data. Passing the proper Archive Parameters & Archive Index Directly to the Smartforms FM solved my Problem.RegardsPoorna