archiving smartforms
TRANSCRIPT
-
5/21/2018 Archiving Smartforms
1/3
Archiving SmartformsThis question is Assumed 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 amable 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 passingArchve 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 system
arc_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_dara
format = 'PDF'* ARC_TAB =* ARCHIVE_COPIES = ' '* MAX_COPIES = '001'
tables
otf = 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 advice
874 Views
http://scn.sap.com/message/4816282#4816282http://scn.sap.com/message/4816282#4816282http://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/people/poornachander.sunkavallimailto:[email protected]:[email protected]://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/people/poornachander.sunkavallimailto:[email protected]://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/message/4816282#4816282 -
5/21/2018 Archiving Smartforms
2/3
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.
Regards
Poorna
http://scn.sap.com/message/4860174#4860174http://scn.sap.com/message/4860174#4860174http://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/thread/726599#4816282http://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/thread/726599#4816282http://scn.sap.com/people/poornachander.sunkavallihttp://scn.sap.com/message/4860174#4860174 -
5/21/2018 Archiving Smartforms
3/3