cancel
Showing results for 
Search instead for 
Did you mean: 

how to Archive the sap-script output

Former Member
0 Kudos

Hi ,

This issue relates to archiving of SAP script .

Im running a transaction F.2b and a script is generated as an output . I need to archive this script.

Can anyone help me doing this.

All I know is that there are two parameters in open_form and start_form as

ARCHIVE_INDEX

ARCHIVE_PARAMS and i need to pass values to these but what values will be passed is not sure.

Thanks in advance.

Pooja.

Accepted Solutions (0)

Answers (2)

Answers (2)

amit_khare
Active Contributor
0 Kudos

ARCHIVE_INDEX

Enter the index information for the print output you want to archive. This information (DARA line) is stored in the archive together with the print output. Thus, you can use the index information to access the print output directly in the archive.

Structure: TOA_DARA

Default value: SPACE

ARCHIVE_PARAMS

The system interprets the settings passed in this parameter when archiving the output. The archive parameters have the ABAP Dictionary structure ARC_PARAMS.

Structure: ARC_PARAMS

Default value: SPACE

NEW_ARCHIVE_PARAMS

The parameter contains results of the archiving process, including the archive parameters the user changed on the print control screen. The parameter has the ABAP Dictionary structure ARC_PARAMS.

Structure: ARC_PARAMS

naimesh_patel
Active Contributor
0 Kudos

You can use the FM GET_PRINT_PARAMETERS to get the archive parameters. That you can use in the ARCHIVE_PARAMS.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

Im alredy using this FM to pass values to archive_parameters and archive_index .

But the problem im facing is that when I try to archive the output spool after this . the archive button is disabled.

Im not sure if this needs some configuration or some setting needs to be done or may be Im missing some value that is passed in archive_parameters and archive_index .

For archive_index im passing the following values.

FUNCTION DARA

MANDANT 300

DEL_DATE 000000000

SAP_OBJECT KNA1

AR_OBJECT FIOINTCALC

OBJECT_ID

FORM_ID

FORMARCHIV

RESERVE COMMIT

NOTIZ days overdue

and for archive_parameters im pasing

SAP_OBJECT KNB1

AR_OBJECT FIOINTCALC

ARCHIV_ID

DOC_TYPE

RPC_HOST

RPC_SERVIC

INTERFACE

MANDANT

REPORT

INFO

ARCTEXT days overdue

DATUM

ARCUSER

PRINTER

FORMULAR

ARCHIVPATH

PROTOKOLL

VERSION

ACHECK

Can you suggest something whats going wrong.

Thanks in advance.

Pooja.

naimesh_patel
Active Contributor
0 Kudos

Try to set ITCPO-TDARMOD = '3' for the Archieve and Print Option.

Pass this to OPTIONS to OPEN_FORM

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi naimesh,

I tried passing 3 to ITCPO-TDARMOD .

Now when the print dialog box opens and I give LP01 in ouput device name and then press PRINT , it pops an information message ' Archiving not posible'.

Actually this is chnage in the standard code . The output of trans f.2b needs to be archived . The prog name is RFDUZI00 .

Do you think any configuration needs to be done for this or may be some kind of settings to be maintained to get that ARCHIVE button active in output spool .

Thanks,

Pooja.

naimesh_patel
Active Contributor
0 Kudos

In your system, you should have archiving configured to use archive any output.

Take a look at the table TOAOM for the SAP_OBJECT and AR_OBJECT combination.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

I checked te table TOAOM in my system for SAP_OBJECT and AR_OBJECT combination and its coming out to be blank .

I mean there is no entry maintained in the table of this combination. Does that mean that the Archiving configuration is missing in my system?

Can you please help me in understanding this concept. What if the table had an entry for the same ?

Thanks in advance

Pooja.

Former Member
0 Kudos

Hi ,

Can anyone help me on this. Its a really important issue.

Kindly suggest .

Thanks in advance.

Former Member
0 Kudos

Hi Pooja,

Did you get a solution yet for this ?