Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Configuring HTTP Content Server (1) - Save printed document (1)

$
0
0

I will not speak about installing and configuring the HTTP Content Server, there is already very good documentation about it. Here we will see how to use the content server to store printed document.

For the example, I will used the Sales Order in an IDES Server.

Configuring the output

 

The configuration of the output is done using the transaction NACE.

nace_1.png

To configure Sales Order output, you have to select the Application "V1" and press the button "Output types"

 

 

nace_1.png

The standard Output Types for the sales order is BA00, I will use it.

Select the Output type in the right part, and double click on "Processing routines".

 

 

nace_1.png

The configuration of the Output type "BA00" for printing is this one. Program "ZSD_RVADOR01" and Smartform "ZSD_SALES_ORDER".

 

 

 

 

Now we could open a Sales Order and check if the message BA00 works.

Transaction VA02.

va01_1.png

 

 

Press the button "Print preview" to display the default output type :va02_4.png

 

 

va02_5.png

 

The Smartforms works (good).

 

 

To display witch output type was used, you have to go in the menu :

va02_2.png

 

va02_3.png

 

This output is yellow because it's not already processed. Print preview doesn't process the message, even if you print during a preview !

To configure the automatic creation of this message you have to configure the transaction VV12.

 

vv12.png

(in your system, you could have several key combinations, for example to be able to specify the printer by plant / sales org / ...)

 

if you go in detail of the condition record you will see something like this :

vv12.png

In this doc, we will try to use the option of the last parameter :

vv12.png

 

 

 

Creation of the content repository

 

A content repository is like a directory. It's a place were you could put several kind of data. You could use only one content repository to store all your data. You could use several content repository to be able to move it to another content server, for size issue, ...

 

Transaction OAM1

This is the global transaction where you will find all the customizing of the content server.

oam1.png

 

Go in the menu :

oam1.png

you could access directly using the transaction OAC0.

 

oam1.png

Press the button create (blank page), and press "Full administration"

 

oam1.png

First, set a name of content repository on two digits (you will have problems in some customizing of ArchivLink if you set more)

Set the version (should be 0046)

Set the host or the IP address of the content server

Set the port number (should be 1090)

Set the HTTP Script (should be ContentServer/ContentServer.dll)

Set the OutputDevice to "ARCH"

 

and save it

 

You have create the content repository in the ECC system, not in the Content Server.

 

Now, you could press the button "CS Admin"

oam1.png

When you use MaxDB, you have to set the setting for the driver.

And press the SAVE button

 

A new tab will appear

oam1.png

 

Now we will have to generate the certificat, go in the certificat tab:

oam1.png

 

Press the SEND button send.png

Select the new line that appears and press the button activate send.png

 

Now the Content server is ready

send.png

 

 

 

 

 

Check if the server is Up and Running

 

 

First, you could check quickly using your internet browser :

http://my_content_server_host:1090/ContentServer/ContentServer.dll?serverInfo

(special thanks to Yann to remember me this helpful link)

 

This link must display a list of variables like this :

send.png

 

One of this variable gives you the status : serverStatus="running";

You could see also there is one ContentRepository : Z1

 

 

The second method is to run the report : RSCMST

 

Enter you ContentRepository and press F8

send.png

 

You must run all the steps of this report :

send.png

if you have any problem on your HTTP Content Server, launch this report to have informations on the errors.

 

 

 

 

Configure the archiving of the Sales order

 

A long preparation for a quick configuration ..

 

 

Define document type :

 

Transaction OAM1, go in the menu :

oam1.png

(or directly using transaction OAC2)

 

oam1.png

I specify to the system to save the document in PDF format. I could set "*" if I will be able to store PDF, Word, Excel, ...

 

 

 

Define the links

 

Transaction OAM1, go in the menu :

send.png

(or directly using transaction OAC3)

 

The key corresponding to Sales Order is VBAK :

oam1.png

In the OAC3 trans. we specify for this kind of document to store the document in the ContentRepository Z1 and to use the link table TOA01.

(You could use 99 link tables TOA01 -> TOA99)

Save it

 

 

Test

 

Now, we come back to the configuration of the output type in the VA02 transaction.

(menu : Extras -> Output -> Header -> Edit)

oac3.png

Select the line and Click on the button "Communication method" and select "Print & Archiv"

 

oac3.png

(don't forget to set with the button "Further Data" : "Send immediately" )

 

Back and Save.

 

 

Result

 

In transaction VA03, go in the output type.

oam1.png

 

Select the line and go in the menu :

oam1.png

 

With Sales order you will have a popup like that, but with others transaction like Invoice you won't.

oam1.png

 

Double-click on the document will open you an internet browser :

oam1.png


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>