SAP ABAP Class CL_SCPR_REVERT_HELPER (Restore the DB table to state before BCSet activation)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-CUS-TOL-BCD (Application Component) Business Configuration Sets
     SCPR (Package) Business Configuration Sets
Properties
Class CL_SCPR_REVERT_HELPER  
Short Description Restore the DB table to state before BCSet activation    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SCPR   Business Configuration Sets 
Created 20100604   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 SCPR Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SCPR_REVERT_HELPER has no interface implemented.
Friends
Class CL_SCPR_REVERT_HELPER has no friend class.
Attributes
Class CL_SCPR_REVERT_HELPER has no attribute.
Methods
# Method Level Visibility Method type Description Created on
1 COLLECT_CUSTOMER_MODS Static method Public Method Collects cust mods that would be overwritten by revert BCSet 20100715
2 CREATE_REVERTOWNER_ENTRY Static method Private Method Creates entry in SCPRSREVOWNER to mark a changed tableline 20100607
3 DELETE Static method Public Method Store old contents and mark the row as being deleted 20100604
4 DELETE_TABLE Static method Public Method Does an insert for a list 20100609
5 EXPAND_TABLEKEY Static method Public Method Convert the key into a record with key fields filled 20100607
6 FILL_LOG_STRUCTURE Static method Private Method Returns a log structure for customer mod affected by revert 20100713
7 GET_TABLEKEY Static method Private Method Calculates tablekey from tabledescr and record 20100607
8 INSERT Static method Public Method Mark the row as being inserted 20100604
9 INSERT_TABLE Static method Public Method Does an insert for a list 20100609
10 IS_OBSOLETE Static method Private Method 20100922
11 LOG_CUSTOMER_MODS Static method Private Method Create log entries for customer mods affected by revert 20100715
12 MAINTAIN_DELETE_FLAG Static method Private Method mark original data if line is currently present in db 20100608
13 MERGE_TODOS Static method Private Method Merge a new entry into the to-do list 20100609
14 READ_SML_FOR_BCSET Static method Private Method Reads SMLs for given BC Set 20100715
15 REMOVE_SML Static method Private Method Deletes entries in SML tables 20100727
16 REVERT Static method Public Method Restore the rows affected by this BCSet to their original st 20100604
17 STORE_EXPANDED_KEY Static method Private Method Store tablekey expanded with one row per keyfiled 20100621
18 STORE_TABLE_CONTENTS Static method Private Method Store contents of table before BC Set activation 20100607
19 UPDATE Static method Public Method Store old contents and mark the row as being updated 20100604
20 UPDATE_TABLE Static method Public Method Does an insert for a list 20100609
21 WRITE_END_OF_TABLE_MESSAGE Static method Private Method 20100616
Events
Class CL_SCPR_REVERT_HELPER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_KEY_RECORD_LINE Private See coding 20101116 TT_KEY_RECORD_LINE TYPE SORTED TABLE OF t_key_record_line WITH UNIQUE KEY tablekey
2 TT_SCPRC150 Private See coding 20100614 TT_SCPRC150 type sorted table of SCPRC150 with non-unique key table_line
3 TY_T_SCPRSREVERTD Private See coding 20110222 ty_t_scprsrevertd type table of scprsrevertd
4 TY_T_SCPRSREVERTI Private See coding 20110222 ty_t_scprsreverti type table of scprsreverti
5 T_KEY_RECORD_LINE Private See coding 20101116 BEGIN OF T_KEY_RECORD_LINE, TABLEKEY TYPE scprc150, RECORD TYPE REF TO DATA, END OF T_KEY_RECORD_LINE
Method Signatures

Method COLLECT_CUSTOMER_MODS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CUSTOMER_MODS Call by reference Type reference (TYPE) SPROT_U_TAB Table Type for SPROT_U (Log Interface) 20100715
2 Exporting ET_DEP_SMLS Call by reference Type reference (TYPE) SCPR_SMLD_TAB 20100921
3 Exporting ET_IND_SMLS Call by reference Type reference (TYPE) SCPR_SMLI_TAB 20100921
4 Importing IT_BCSETS Call by reference Type reference (TYPE) SCPR_BCSETS BC Sets: BC Set Names to Pass From/To External Interface 20100922
5 Importing IT_CLIENTS Call by reference Type reference (TYPE) SCPRCLITAB BC Sets: Table Type for Structure SCPRCLI 20100719

Method COLLECT_CUSTOMER_MODS on class CL_SCPR_REVERT_HELPER has no exception.

Method CREATE_REVERTOWNER_ENTRY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TABLEKEY Call by reference Type reference (TYPE) TT_KEY_RECORD_LINE BC Sets: Character Field of Length 150 20100614
2 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
3 Importing IV_BCSET Call by reference Type reference (TYPE) SCPRSREVERTOWNRI-BCSET Business Configuration Set 20100607
4 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
5 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
6 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
7 Importing IV_TABLENAME Call by reference Type reference (TYPE) SCPRSREVERTOWNRI-TABLENAME BC Set: Table/View Name 20100607
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPRSREVERTOWNRI-TABLENAME BC Set: Table/View Name 20100825

Method CREATE_REVERTOWNER_ENTRY on class CL_SCPR_REVERT_HELPER has no exception.

Method DELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RECORD Call by reference Type reference (TYPE) ANY Contains current DB contents 20100604
2 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100604
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100604
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method DELETE on class CL_SCPR_REVERT_HELPER has no exception.

Method DELETE_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100609
2 Importing IT_RECORDS Call by reference Type reference (TYPE) TABLE 20100609
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100609
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_STORE_CONTENT Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE stores records as initial content of table 20101028
9 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method DELETE_TABLE on class CL_SCPR_REVERT_HELPER has no exception.

Method EXPAND_TABLEKEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_RECORD Call by reference Type reference (TYPE) ANY 20100607
2 Exporting EV_ISEXPANDED Call by reference Type reference (TYPE) ABAP_BOOL 20100622
3 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100607
4 Importing IV_MANDT Call by reference Type reference (TYPE) MANDT Client 20101019
5 Importing IV_TABLEKEY Call by reference Type reference (TYPE) SCPRSREVERTOWNRI-TABLEKEY BC Sets: Character Field of Length 150 20100607

Method EXPAND_TABLEKEY on class CL_SCPR_REVERT_HELPER has no exception.

Method FILL_LOG_STRUCTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_CUSTOMER_MOD Call by reference Type reference (TYPE) SPROT_U Log Generation Interface 20100715
2 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100713
3 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20100719
4 Importing IV_RECNUMBER Call by reference Type reference (TYPE) SCPR_RECNR BC Set: Template record number 20100714
5 Importing IV_TABLEKEY Call by reference Type reference (TYPE) SCPRC150 BC Sets: Character Field of Length 150 20100713
6 Importing IV_TABLENAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100713

Method FILL_LOG_STRUCTURE on class CL_SCPR_REVERT_HELPER has no exception.

Method GET_TABLEKEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_TABLEKEY Call by reference Type reference (TYPE) TT_KEY_RECORD_LINE XML representation of key fields 20100614
2 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Set: Table field descriptions 20100607
3 Importing IT_RECORD Call by reference Type reference (TYPE) TABLE actual tableline content 20100614

Method GET_TABLEKEY on class CL_SCPR_REVERT_HELPER has no exception.

Method INSERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RECORD Call by reference Type reference (TYPE) ANY Record must contain key values 20100604
2 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100604
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100604
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method INSERT on class CL_SCPR_REVERT_HELPER has no exception.

Method INSERT_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100609
2 Importing IT_RECORDS Call by reference Type reference (TYPE) TABLE 20100609
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100609
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method INSERT_TABLE on class CL_SCPR_REVERT_HELPER has no exception.

Method IS_OBSOLETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RECORD Call by reference Type reference (TYPE) ANY 20100922
2 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100922
3 Importing IT_KEYS Call by reference Type reference (TYPE) SCPR_SKEYS_TAB 20100922
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100922
5 Returning R_FLAG Value transfer Type reference (TYPE) ABAP_BOOL 20100922

Method IS_OBSOLETE on class CL_SCPR_REVERT_HELPER has no exception.

Method LOG_CUSTOMER_MODS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_DEP_SMLS Call by reference Type reference (TYPE) SCPR_SMLD_TAB 20100727
2 Exporting ET_IND_SMLS Call by reference Type reference (TYPE) SCPR_SMLI_TAB 20100727
3 Importing IT_CLIENTS Call by reference Type reference (TYPE) SCPRCLITAB BC Sets: Table Type for Structure SCPRCLI 20100719
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100715

Method LOG_CUSTOMER_MODS on class CL_SCPR_REVERT_HELPER has no exception.

Method MAINTAIN_DELETE_FLAG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_SCPRSREVD_UPD Call by reference Type reference (TYPE) TY_T_SCPRSREVERTD 20110222
2 Changing CT_SCPRSREVI_UPD Call by reference Type reference (TYPE) TY_T_SCPRSREVERTI 20110222
3 Importing IT_SCPRSREVERTD Call by reference Type reference (TYPE) TY_T_SCPRSREVERTD 20110222
4 Importing IT_SCPRSREVERTI Call by reference Type reference (TYPE) TY_T_SCPRSREVERTI 20110222
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_ISDELETED Call by reference Type reference (TYPE) SCPRSREVERTI-ISDELETED Boolean Variable (X=True, Space=False) 20100608
7 Importing IV_TABLEKEY Call by reference Type reference (TYPE) SCPRC150 BC Sets: Character Field of Length 150 20100614

Method MAINTAIN_DELETE_FLAG on class CL_SCPR_REVERT_HELPER has no exception.

Method MERGE_TODOS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TODOS Call by reference Type reference (TYPE) SCPR_BCCLI_TAB 20100609
2 Importing IS_FOLLOWON Call by reference Type reference (TYPE) SCPRBCCLI BC Sets: BC Set with Clients 20100609

Method MERGE_TODOS on class CL_SCPR_REVERT_HELPER has no exception.

Method READ_SML_FOR_BCSET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_DEP_SMLS Call by reference Type reference (TYPE) SCPR_SMLD_TAB 20100715
2 Exporting ET_IND_SMLS Call by reference Type reference (TYPE) SCPR_SMLI_TAB 20100715
3 Importing IT_CLIENTS Call by reference Type reference (TYPE) SCPRCLITAB BC Sets: Client Structure 20100719
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100715
5 Importing IV_CATEGORY Call by reference Type reference (TYPE) SCPR_CTGRY BC Set: Category 20100921
6 Importing IV_CLI_DEP Call by reference Type reference (TYPE) SCPR_CLDEP BC Set: Client-Dependent BC Set Data/Contents 20100921
7 Importing IV_MODDATE Call by reference Type reference (TYPE) SCPR_DATE BC Set: Changed on 20100921
8 Importing IV_MODTIME Call by reference Type reference (TYPE) SCPR_TIME BC Set: Last changed at 20100921

Method READ_SML_FOR_BCSET on class CL_SCPR_REVERT_HELPER has no exception.

Method REMOVE_SML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DEP_SMLS Call by reference Type reference (TYPE) SCPR_SMLD_TAB 20100727
2 Importing IT_IND_SMLS Call by reference Type reference (TYPE) SCPR_SMLI_TAB 20100727

Method REMOVE_SML on class CL_SCPR_REVERT_HELPER has no exception.

Method REVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_CLIENTS Call by reference Type reference (TYPE) SCTS_CL_RESULTS Change and Transport System: Success Status for Client 20100924
2 Changing CT_E071 Call by reference Type reference (TYPE) TR_OBJECTS Objects 20100924
3 Changing CT_E071K Call by reference Type reference (TYPE) TR_KEYS Table Keys 20100924
4 Changing CT_TO_APPLY Call by reference Type reference (TYPE) SCPR_BCCLI_TAB 20100924
5 Importing IS_BCSET Call by reference Type reference (TYPE) SCPRBCCLI BCSet ID and Clients in which it should be reverted 20100609
6 Importing IV_OBSOLETE_ONLY Call by reference Type reference (TYPE) ABAP_BOOL 20100922
7 Importing IV_TRKORR Call by reference Type reference (TYPE) TRKORR Request/Task 20100826

Method REVERT on class CL_SCPR_REVERT_HELPER has no exception.

Method STORE_EXPANDED_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ID Call by reference Type reference (TYPE) SCPRC150 BC Sets: Character Field of Length 150 20100621
2 Importing IS_RECORD Call by reference Type reference (TYPE) ANY 20100621
3 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC-Sets: Field descriptions of a table (table type) 20100621

Method STORE_EXPANDED_KEY on class CL_SCPR_REVERT_HELPER has no exception.

Method STORE_TABLE_CONTENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TABLEKEY Call by reference Type reference (TYPE) TT_KEY_RECORD_LINE BC Sets: Character Field of Length 150 20100614
2 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20101115
3 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
4 Importing IV_ISDELETED Call by reference Type reference (TYPE) SCPRSREVERTI-ISDELETED Revert SBCSets: Contents of tables before BCSet activation 20100607
5 Importing IV_TABLENAME Call by reference Type reference (TYPE) SCPRSREVERTI-TABLENAME BC Set: Table/View Name 20100607

Method STORE_TABLE_CONTENTS on class CL_SCPR_REVERT_HELPER has no exception.

Method UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RECORD Call by reference Type reference (TYPE) ANY Contains current DB contents 20100604
2 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100604
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100604
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method UPDATE on class CL_SCPR_REVERT_HELPER has no exception.

Method UPDATE_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TABLEDESCR Call by reference Type reference (TYPE) SCPRRECORD2 BC Sets: Field Descriptions 20100609
2 Importing IT_RECORDS Call by reference Type reference (TYPE) TABLE 20100609
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) DOKU_OBJ Documentation Object 20100823
4 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100609
5 Importing IV_CLIENT Call by reference Type reference (TYPE) MANDT Client 20101019
6 Importing IV_OBJECTNAME Call by reference Type reference (TYPE) OB_OBJECT Object Name 20100823
7 Importing IV_OBJECTTYPE Call by reference Type reference (TYPE) OB_TYP Object type 20100823
8 Importing IV_VIEWNAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100825

Method UPDATE_TABLE on class CL_SCPR_REVERT_HELPER has no exception.

Method WRITE_END_OF_TABLE_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BCSET Call by reference Type reference (TYPE) SCPR_ID Business Configuration Set 20100616
2 Importing IV_DELCNT Call by reference Type reference (TYPE) I 20100616
3 Importing IV_INSCNT Call by reference Type reference (TYPE) I 20100616
4 Importing IV_TABLENAME Call by reference Type reference (TYPE) SCPR_TABL BC Set: Table/View Name 20100616
5 Importing IV_UPDCNT Call by reference Type reference (TYPE) I 20100616

Method WRITE_END_OF_TABLE_MESSAGE on class CL_SCPR_REVERT_HELPER has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 703