Custom Archiving Object: cluster tables
Hello All,
I need to create a custom archiving object to archive the content of a cluster table. Does anyone know how to do this? Would you provide me with the steps to do so?
Thank you in advance!
Solution
As of R/3 Release 3.0, the ADK is also delivered to customers as a development tool for archiving programs. The ADK (Archive Development Kit) consists of function modules that help you to develop your own archiving solutions, as well as documentation on how to use the function modules.
As of Release 3.0, all existing archiving from SAP applications is moved to the ADK.
If you want to enhance an existing solution, you can do this with the help of the ADK. However, your own solutions may NOT delete or modify data from SAP standard tables.
Archiving classes are developed by SAP exclusively and must not be used alone but only in connection with an archiving object.
Archiving objects and archiving classes (and the objects belonging to the class) are not namespace-capable. A namespace as prefix may lead to errors in this case and must therefore not be used.
For more information on the ADK documentation please see Note 71930.
The two-days customer training BC670 deals with customer-specific enhancements to data archiving
Similar Messages
-
Archiving object for tables GLPCC and GLPCO
Hi All,
GLPCA table stores the actual line items in PCA and GLPCT table stores the totals records of PCA.
What are the transactions which get affected in regular course by these tables?
GLPCC - EC-PCA: Transaction Attributes
GLPCO - EC-PCA: Object Table for Account Assignment
There is no archiving object for the tables GLPCC and GLPCO when checked in DB15. What is the alternative for archiving the entries in those tables?
Thanks in advance
Regards
AnupamaHello Anupama,
The standard archiving objects for PCA are EC_PCA_ITM & EC_PCA_SUM. Most of the data is archived with above two objects. Hence it would be better to use given archiving object. About 80% of data can be archived through standard archiving objects.
For more information you may read SAP Data Management Guide.
Regds
Ambadas -
Searching for Archiving Object for table COMH PP-PI messages header
Hallo,
i am faced to archive records from table COMH (PP-PI message headers).
And searched SMP, SDN, Dataguides but i could not find any objects or delete-reports for this table.
Could anyone give input on how to get rid of the records in COMH?
with regards
ingoHello Ute,
thanks for your informations.
We are going to start RCOCB009 as batchjob periodical, once per month, to get rid of elder messages.
with regrads
ingo -
Hi,
I need to archive data using archiving object CHANGEDOCU. Now the condition is that in this archiving object, I need to restrict the data (to be archived) to company code 1030 (country US). As the company code field is not available in the selection screen of this archiving object, can you please tell me, how can I limit the data to company code 1030, using other fields in the selection screen.
Thanks and Regards,
AnujHello,
If you are targeting few tables for your requirement than you may create a customized(Z) archiving object for them using transaction AOBJ.
While creating the archiving program you can create your own selection screen. On this basis you can write the select queries and then archive them.
A detailed steps to create a customized archiving object and program is mentioned in below link.
**************** - Step-by-step procedure for Creation of Custom Archiving Object
Reward points if this is useful
With Regards,
Viral Bhuva -
Archiving object CRM_SERORD
Hi everyone-
I need to clean up my transaction monitor screen (delete/archive old test messages). I am able to delete the basis part of the message fine by running the report Z_DELETE_BASIC_NOTIFICATIONS per note 566225, however I need some help in archiving the CRM part of the message.
I know that this is done in transaction SARA by using archiving object CRM_SERORD, but that is all I know....once I execute transaction SARA, what do I do next?
Can anyone walk me through the steps for archiving the CRM side of the message?
Thanks,
NathanHi,
Data is said to be archived when both the Write job and Delete job for the data has run successfully. TA: SARA is used to run both the Write and Delete programs. Before you run these programs you need to do some customizing
- Archive Object Specific
- Application specific
For detailed steps visit this <a href="http://help.sap.com/saphelp_crm50/helpdata/en/e6/c66f3b6c980c3be10000000a11402f/content.htm">link</a>
Hope this helps
Cheers!
Samanjay -
Diff. Between Pool & Cluster Table
Hi,
Could any just let me know regarding the Basic Diff. B/w
Pool & Clsuter Table.
Thanks & Regards
Irfan HussainHi Irfan,
Pooled Table :-
A pooled table in R/3 has a many-to-one
relationship.
When you look at a pooled table in R/3, you see a
description of a table.
R/3 uses table pools to hold a large number (tens to
thousands) of very small tables (about 10 to 100
rows each).
Table pools reduce the amount of database resources
needed when many small tables have to be open at the
same time.
SAP uses them for system data.
You might create a table pool if you need to create
hundreds of small tables that each hold only a few
rows of data.
Pooled tables are primarily used by SAP to hold
customizing data.
Cluster Table :-
A cluster table is similar to a pooled table.
It has a many-to-one relationship with a table in
the database.
Many cluster tables are stored in a single table in
the database called a table cluster.
It holds many tables within it.
The tables it holds are all cluster tables.
Like pooled tables, cluster tables are another
proprietary SAP construct.
They are used to hold data from a few (approximately
2 to 10) very large tables.
They would be used when these tables have a part of
their primary keys in common, and if the data in
these tables are all accessed simultaneously.
Table clusters contain fewer tables than table pools
and, unlike table pools, the primary key of each
table within the table cluster begins with the same
field or fields.
A cluster is advantageous in the case where data is
accessed from multiple tables simultaneously and
those tables have at least one of their primary key
fields in common.
Cluster tables reduce the number of database reads
and thereby improve performance.
Pooled and cluster tables are usually used only by
SAP and not used by customers, probably because of
the proprietary format of these tables within the
database and because of technical restrictions
placed upon their use within ABAP/4 programs.
Cluster table can only be read and display via your
ABAP program.
For furthur details visit this link...
<a href="http://www.sap-img.com/abap/the-different-types-of-sap-tables.htm">http://www.sap-img.com/abap/the-different-types-of-sap-tables.htm</a>
Best Regards,
Maheswaran.B -
Hello friends,
We have created a archiving object in transaction AOBJ. However when i enter this object in SARA, we get this error message.
"Entry missing in Customizing table for object Z******* "
I have matched my object with few other archiving objects and things looks similar.
Have you faced this kind of problem..
thanks
ashishHi,
I checked and i can see entry for ZSCS_TRAFO object in AOBJ.
But when i enter ZSCS_TRAFO, i get this error :
Entry missing in Customizing table for object ZSCS_TRAFO
Message no. BA057
Diagnosis
A function cannot be executed due to a missing table entry.
Procedure
Please create an entry for the archive object ZSCS_TRAFO with the AOBJ transaction.
However, a few other Z objects works well.
thanks
ashish -
Archive Object GLFUNCA, GLFUNCP and other Custom table ZGLFUNCA, etc
Hi Expert,
I am encountering one issue that is how to define the write and delete program. I have three standard tables which have standard archive object and meanwhile I have another three custom own table which have the relationship with these standard table. Now I'm wondering should I defiine the dependency of these two archive objects and check only when the first object is done, the second one can proceed.
I'm really looking forward your advice, so far I plan to create one 'z' archive object which include three custom tables and put the standard archive object as dependency object. But how to proceed with the write and delete program?
Please kindly give your advise and solutions. Thank you.Hi,
you can ask your ABAP consultant to code in the table maintenance events. We need to call appropriate authorization objects in the events and allow/disallow the changes for a field/record based on the authorization.
If you want more details on TMG events, just search in SCN. We have lot of information on this.
Thanks,
Vinod. -
Archiving object for the tables
Hi,
I want to archive the tables.But some of the tables I did not find the archiving object.What should be done on this.Pls guide.
Tables w/o archiving object which i want to archive
APQD,ARFCSDATA,DYNPSOURCE,WBBP,REPOLOAD,REPOSRC,BDCP,BDCPS
ThanksHi Rajesh,
Not all tables can be archived. For some tables there may be option available for plainly deleting the contents without archiving. Please check the Data Management Guide available at the service marketplace for further information. You may also refer to SAP note 706478.
Word of caution: Not all tables are meant to be archived / deleted. Some tables maybe required for proper functioning of the SAP system (however big the table is). So please proceed with caution if you are trying to develop a custom program to delete contents from a standard SAP table, you may end up deleting some data which was required. Even when deleting using standard SAP programs, proper due diligence and testing is necessary
Hope this helps,
Naveen -
Archiving object CUHD (Customs Document)
Hi All,
I am new to GTS. Could you please let me know what all t-codes related data will archive if I archive CUHD(Customs Document) object.
Regards,
J.Hi Jatin,
I fully agree with Siba that we don't have any T-code related data up for archiving but it is always table related (transactional) and area specific data that is archived.
For more dive into this topic, you can go to below area's:-
GTS cockpit-->System Administration-->Archiving.
or
you visit the Archiving administration directly through t-code SARA. Here, you will find a variety of objects to choose from based on the view of which data to be archived.
Moreover, for further reference, please visit SAP standard help on this topic as below.
System Administration - SAP Library
This explanation is simple and clear. Hope you will find it helpful.
Regards,
Aman -
How to retrive data from SAP Archive (from Cluster or Content Table)
Hi,
I am working on HR -ABAP where i have a scenario to retive employee photo and disaplay as output in smartforms.And these employee photo are stored in Cluster table SDOKCONT1 in SAP Archive Link (storage type - SAP System Database).
Anybody can tell me the way how to retrive data ( employee Photo ) from this cluster and display its output in smartform dynamically.
Regards,
Sourabh ShrivastavaHello Sourabh,
If I am not wrong, there are two parts two your query...
a) Data or Content Retrieval
b) Displaying Retrieved content
Here is my feedback
a) The Content can be Retrieved using the FM ARCHIV_GET_TABLE.
Pass the Archive Object, SAP Object and the SAP Object ID and based on the Connection table entries (TOA*), the underlying Content Repository (T-code OAC0) is determined and a request for synchronous retrieval is made to the Content Server.
b) Display of Retrieved content is normally done through dedicated viewers (Ex: Livelink Viewer) or front-end applications (Excel, Word) based on the Protocol (OAA3/OAA4) specified in the Content Reository Configuration. Hence, to my knowledge, you cannot display the content directly in the Smartform.
With Regards
Vijay Gajavalli -
Add more tables to be archived to standard archive object
Hi,
Is it possible to add more tables to be archived?
I would like to add tables eg DFKKCOLLH_I_W to archive object FIMKKCOLL.
Cheers...HI,
Yes . You can Add additional table to the standard object. But you have to update the standard write , delete program to include this table in the archival process. So that it is not advisable to update the standard object.
But you can create a custom object by including all the tables you want and take the custom versions of the write,delete programs and do the required changes in that version.
Hope this helps you.
Regards - Swarna. -
Internal Error in reading a Table of Oracle custom-defined objects.
Hi,
We are running into an Oracle internal error when trying to extract data from an OUT parameter of a stored procedure. The OUT parameter is of the type TABLE of Oracle custom-defined OBJECT.
Any help on this issue will be greatly appreciated.
Thanks, in advance,
OraNew
Program:
package test;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import oracle.sql.ARRAY;
import oracle.sql.STRUCT;
import src.vo.ProfileBank;
public class TestOracle {
* @param args
public static void main(String[] args) {
try{
Connection con = getConnection();
ResultSet rsBalance = null;
CallableStatement cs =
con.prepareCall("{ CALL acr_profiles.get_profile_bank( ?, ?, ?)}");
cs.setLong(1, new Long(133).longValue());
cs.setLong(2, new Long(29032).longValue());
cs.registerOutParameter(3,Types.ARRAY,"ACR_USER." + "ACR_PROF_BANK_TAB");
cs.execute();
ARRAY array = (oracle.sql.ARRAY) cs.getObject(3);
System.out.println("length: "+ array.length());
System.out.println("isConvertible: " + array.isConvertibleTo(Object.class));
System.out.println("isInline: " + array.isInline());
rsBalance = array.getResultSet();
showResultSet(rsBalance);
} catch (Exception sql){
System.out.println("Exception "+ sql);
public static void showResultSet (ResultSet rs) throws SQLException
System.out.println("ResultSet = "+ rs.toString());
List profileBanks = new ArrayList();
while (rs != null && rs.next()) {
STRUCT struct = (STRUCT)rs.getObject (2); //getting the Internal Error on this line.
Object[] attribs = struct.getAttributes();
System.out.println("Bank Alias Id"+ (java.math.BigDecimal) attribs[0]);
System.out.println("Bank Name"+ (String)attribs[1]);
System.out.println("Bank set flag "+ (String) attribs[2]);
ProfileBank pBank = new ProfileBank();
pBank.setBankAliasId(new Integer(((java.math.BigDecimal) attribs[0]).intValue()));
pBank.setBankName((String) attribs[1]);
pBank.setSelBankFlag((String) attribs[2]);
profileBanks.add(pBank);
public static Connection getConnection() throws ClassNotFoundException, SQLException {
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver loaded");
// establish a connection
Connection conn = DriverManager
.getConnection(
"jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.3.11.201)(Port=1521)) (CONNECT_DATA=(SERVICE_NAME= aada.a.al)))",
"acr_user", "acr_user");
System.out.println("Database connected");
return conn;
Console Output:
Driver loaded
Database connected
length: 2
isConvertible: false
isInline: true
ResultSet = oracle.jdbc.driver.ArrayDataResultSet@1f3aa07
Exception java.sql.SQLException: Internal Error
Partial Stacktrace obtained from the Eclipse Debug window:
oracle.jdbc.driver.DatabaseError.throwSqlException(int) line: 292
oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName() line: 1192
oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(int) line: 1225
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName(boolean) line: 119
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName() line: 93
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).initSQLName() line: 497
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).getName() line: 392
oracle.sql.StructDescriptor.getClass(java.util.Map) line: 2003
oracle.sql.STRUCT.toJdbc(java.util.Map) line: 983
oracle.jdbc.driver.ArrayDataResultSet.getObject(int, java.util.Map) line: 1379
oracle.jdbc.driver.ArrayDataResultSet.getObject(int) line: 1198
test.TestOracle.showResultSet(java.sql.ResultSet) line: 53
test.TestOracle.main(java.lang.String[]) line: 38
Environment:
Database: Oracle 10g (10.2.0.3)
JDBC Drivers: version 10.2.0.3 (ojdbc14, orai18n)
Database Server: HP-UX
Client machine: Windows XP
<end of thread>hi Thom,
most error relating to table DOKTL are caused by misconfigured network card.
if this is a "home" system, install a loopback adapter from Microsoft and use IP address 127.0.0.1 and also check "hosts" file for inconsistency. do not use the IP adddress provided by your ISP as it may change. -
Lock object for KONV table/Cluster table ??
Hi All,
Is it possible to set Lock/Enqueue cluster tables or in my case table:KONV (KNUMV field) ?.
OSS provided some programs without locks so was hoping if I could add before performing data manipulation.
Regards,
NeethHi Nameeth,
you can use generic lock object E_TABLE with function modules ENQUEUE_E_TABLE, DEQUEUE_E_TABLE for locking and unlocking with parameters table name and key field.
Regards,
Satya -
Help on archiving object - table AUFK
hi,
for table AUFK i would like to perform a test archiving scenario. currently i'm at the identifying the archiving object stage.
From TAANA i was able to see the data distribution across the order categories and its entries as below
Order category entries
1 1.844.505
20 88.642
30 80.473
10 14.558
3 1
DB15 has following archiving objects
CO_ORDER
PM_ORDER
PP_ORDER
PR_ORDER
PS_PROJECT
Can you please help me out find out the right archiving object in these, I'm at SE16 but not getting a clue to find out how the order category is linked to this object.
Please suggest.thanks
Maybe you are looking for
-
Cannot boot into Arch using Gummiboot and Intel fake RAID
This is my first time installing Arch Linux in a few years. The installation seemed to go fine, but I can't boot into it. At this point, when I try to boot into it this is my console output: http://pastie.org/9389435 First of all, what confuses me ab
-
Get-order of FTP-adapter (bpel/esb)
Hello, Is it possible to change or influence the order of getting files, i.e. get files by oldest creation date? Scenario: I'm using an FTP-adapter in a bpel process to get files. The interval is set to 1 minute. However, sometimes files are created
-
Hi folks, can anybody send me an step by step solution for lookup in Message Mapping? Many thanks for your help
-
Two questions, touchy touchpad and case maintenance
I noticed this morning that the touchpad is a bit iffy when I'm trying to move around or do two finger it randomly interprets one finger as if i had two on it. The other odd issue with the touchpad is the click action no longer actually "clicks." It
-
Dataguard document for R12.1
We plan to implemnet Dataguard on EBS R12.1 (Redhat Linux). I only found document for R12: Business Continuity for Oracle Applications Release 12 on Database Release 10gR2 - Single Instance and RAC Doc ID: 452056.1 anyone know document for