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

Customizing archiving object and programs (write,delete,reload) question

Former Member
0 Likes
773

I have requirement to develope archiving programs to archive the data from customized tables such as write program, read program and also reload program (May be more) <BR>

<BR>

My requirement is want to archive the data from 4 customized tables which have the relation each other <BR>

for example, cutomized tables; YTABLE1, YTABLE2, YTABLE3, YTABLE4. <BR>

The data from table YTABLE1 will relate to table YTABLE2, Moreover, data from table YTABLE2 will relate to table YTABLE3

and so on. <BR>

<BR>

Because I and basis team have not much experience to develop the customizing archiving object and arhiving programs, <BR>

since, It's rare to customize new archiving object if you have not requirement to archive data in customized table. <BR>

<BR>

Thus, I have some questions to ask all of you as listed below: <BR>

(Appreciate if you can suggest me to further study). <BR>

<BR>

In Archiving setup aspect: <BR>

1. Created archiving object: <BR>

- For structure definition: <BR>

Is it correct to setup as follows ? <BR>

Rec Parent Segment Segment <BR>

10 - YTABLE1 <BR>

20 YTABLE1 YTABLE2 <BR>

30 YTABLE2 YTABLE3 <BR>

40 YTABLE3 YTABLE4 <BR>

- For "Table from which you only delete entries" <BR>

Is it important to maintain any tables? <BR>

- For "Archiving Class Used" <BR>

Do I need to create Archiving Class in transaction ACLA? Is it used in archiving program? <BR>

After checking, some program use it, the other don't use it. <BR>

<BR>

In ABAP development aspect: <BR>

1. I have develop programs following the standard programs which have the same scenario such as MM_MATBEL. <BR>

But I can't see the details in the archiving file. To anyone who know, Is it keep the data from table MKPF and MSEG into 2 <BR>

archiving file or it combines MKPF and MSEG data into 1 archiving file as examples below:<BR>

<BR>

MKPF1 ......................<BR>

MSEG1 .....................<BR>

MSEG1 .....................<BR>

MKPF2 .....................<BR>

MSEG2 .....................<BR>

MSEG2 .....................<BR>

<BR>

Additionally, I have use the template program from archiving object BC_SFLIGHT in ECC6 system and also follow the logic<BR>

of programs in MM_MATBEL. Thus, anyone has any suggestion about the archiving programs to be the template for <BR>

development?<BR>

<BR>

2. I have study the logic of standard program for write archiving file, I found the some programs refer to archiving class.<BR>

I just knew about it is created by transaction ACLA. but I don't know .. Is it mandatory to use or Is it use for specific requirement?<BR>

<BR>

Many thanks in advance for your guideline, It will be useful for me to further study and development.<BR>

<BR>

2 REPLIES 2
Read only

Former Member
0 Likes
482
Read only

Former Member
0 Likes
482

Hi,

1. Structure Definition: Structure mentioned with relationship with all associated table is correct.

2. For "Table from which you only delete entries" - If you want to archive all the 4 custom table entries then there is no need to specify any table in Table from which you only delete entries. In case if there is any table related to this business document were in, you want to just delete it without considering for archiving then you have to make use of this option.

3. - For "Archiving Class Used"

there are standard archiving class such as CHANGEDOCU, TEXT, and so on.. If you have in plan with the document you are archivng then you have to make use of it.

4. In Archive files - It will archive all the entries that you have mentioned in Structure defiination.

5. Using of Archiving class is not mandatory but depends of business document that you are archiving.

Hope these information will help you