cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving SAPSCRIPT LAYOUT

Former Member
0 Kudos

Hi,

1) created the bussiness object ( SWO1)

2) created the document type (OAC2)

Document class: OTF

3. Link object with document type (OAC3)

Content repository or archive id: XX

passed the values in the code for OPEN_FORM

l_options-TDARMOD = '2'. " set the archiving mode and print

l_options-tdnewid = 'X'.

l_options-tdlifetime = '8'.

l_options-tddelete = ''.

      • set the values the Archive Index

l_ARCHIVE_INDEX-MANDANT = sy-mandt.

l_ARCHIVE_INDEX-SAP_OBJECT = XXXX

l_ARCHIVE_INDEX-OBJECT_ID = XXXXX .

l_ARCHIVE_INDEX-AR_OBJECT = XXXX.

l_ARCHIVE_INDEX-RESERVE+0(6) = XXX.

      • set the values the Archive paramters

l_ARCHIVE_PARAMS-SAP_OBJECT = XXXX.

  • l_ARCHIVE_PARAMS-ARCHIV_ID = XXX

l_ARCHIVE_PARAMS-AR_OBJECT = XXXXX.

l_ARCHIVE_PARAMS-DOC_TYPE = XXXXX

l_ARCHIVE_PARAMS-MANDANT = sy-mandt.

passed the values to OPEN_FORM

It is not archived ... not even gives any error

did i missed any step for the configuration

please let me now if any solution otr other way round

Thanks in Advance

Shravan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

when TDARMOD = '2'. It will just archive and TDARMOD = '3' it will "Print + Archive".

Try this may help you.

Regrads,

Lokesh

Former Member
0 Kudos

Hi Lokesh ,

Thanks for reply

Actually it is not save the data TOA01. Even i tried with this option already.

Thanks

Shravan

Former Member
0 Kudos

Hi Team,

i am facing same issue now. not table to arcive sap script .. i passed to cdoe like above i. i set 3 value for mode .

OPEN_FORM is not giving any error.

Please any clue.

Regards

Ramky

Former Member
0 Kudos

Hi Team,

PASS THE VALUES FOR BELOW PARAMETERS.

ARCHIVE_INDEX

ARCHIVE_PARAMS

OPTIONS

and make TDGETOTF = ' ' and LVS_ITCPO-TDNEWID = 'X'.. ad TDARMOD = '3'. TO

opne_form FUNCTION MODULE.

Now i can able to archive the document.

Regards

Ramky