Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Archive SAPscript - How to?

Former Member
0 Likes
1,291

Hi all,

I have now a task where I want to get my invoice documents archived as PDF files.

There is many ways to do this, but I have decided to try SAP std, and to make use of the archive administration tools. (SARA). I have had a look througt the documentation on this, but when I now are in a phase to actually implement the solution I am a bit stuck.

My first initial issue is how do I get hold of the invoice when it Is printed and how do I store the file?

I currently now look at the "OPEN_FORM" in the sapscript printer program and add the parameters....

  • open form

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMS = <b>ARC_PARAMS</b>

Could anyone please help me out with some hints on the flow, and preferbly some examples how to actually do this.

regards

me.

1 ACCEPTED SOLUTION
Read only

christian_wohlfahrt
Active Contributor
0 Likes
785

Hi Vidar!

Archive is not always archive - SARA is for something different.

Your archiving is customized with OAMx (1, 3) or OACx.

For automatic archiving, go to output message control (NACE), condition type definition, display details (magnifying glass) - in 4th tab (archive system) you can define something like

1 - only printing

2 - only archiving

3 - printing and archiving

Below is a field for the document type - here link information will be done for the archive system.

Regards,

Christian

2 REPLIES 2
Read only

christian_wohlfahrt
Active Contributor
0 Likes
786

Hi Vidar!

Archive is not always archive - SARA is for something different.

Your archiving is customized with OAMx (1, 3) or OACx.

For automatic archiving, go to output message control (NACE), condition type definition, display details (magnifying glass) - in 4th tab (archive system) you can define something like

1 - only printing

2 - only archiving

3 - printing and archiving

Below is a field for the document type - here link information will be done for the archive system.

Regards,

Christian

Read only

Former Member
0 Likes
785

Hi Vidar,

As Christian rightly mentioned, SARA is not for archiving pdf docs as you are trying, SARA is used while archiving application data.

Try this link which will give you some idea about storing outgoing documents:

http://help.sap.com/saphelp_47x200/helpdata/en/02/5bd7345a238045e10000009b38f83b/frameset.htm

PS: you might have to use either a third party storage product or SAP content server to store your outgoing documents, as this is an archivelink scenario.

Regards,

Naveen