SAP ABAP Class CL_NWDEMO_SERVICE (Common methods for service classes)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-NWD (Application Component) NetWeaver Demonstration
     S_NWDEMO_MODEL_COMMON (Package) SAP NetWeaver Demo Model - Helper Classes and Utilities
Properties
Class CL_NWDEMO_SERVICE  
Short Description Common methods for service classes    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_NWDEMO_MODEL_COMMON   SAP NetWeaver Demo Model - Helper Classes and Utilities 
Created 20070619   SAP 
Last change 20080612   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)
Interfaces
Class CL_NWDEMO_SERVICE has no interface implemented.
Friends
Class CL_NWDEMO_SERVICE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CHANGE Constant Public Type reference (TYPE) SDEMO_OPERATION 'C' Change operation 20080124
2 CREATE Constant Public Type reference (TYPE) SDEMO_OPERATION 'I' Create operation 20080111
3 C_CLEAR Constant Public Type reference (TYPE) SDEMO_CHG_FLAG 'C' Type of change operation 20071105
4 C_CURRENCY_CODE Constant Public Type reference (TYPE) CHAR3 'USD' standard currency code 20070730
5 C_MY_COMPANY_NAME Constant Public Type reference (TYPE) SDEMO_COMPANY_NAME 'ITelO' Company name of this user 20070730
6 C_QUANTITY_UNIT Constant Public Type reference (TYPE) SDEMO_QUANT_UNIT 'EA' Quantity Unit Code 20070918
7 C_REPLACE Constant Public Type reference (TYPE) SDEMO_CHG_FLAG 'R' Type of change operation 20071105
8 C_TAX_RATE Constant Public Type reference (TYPE) SDEMO_TAX_RATE 19 Numc3, internal use 20070730
9 C_TIMEZONE Constant Public Type reference (TYPE) TTZZ-TZONE 'CET ' Time Zone 20070802
10 DELETE Constant Public Type reference (TYPE) SDEMO_OPERATION 'D' Delete operation 20080111
11 FALSE Constant Public Type reference (TYPE) XFELD SPACE FALSE 20070702
12 GC_QUERY_METHOD_NAME Constant Private Type reference (TYPE) STRING 'IF_OS_CA_PERSISTENCY~GET_PERSISTENT_BY_QUERY' Name of the query method 20070924
13 GR_LINK_AGENT Static Attribute Public Object reference (TYPE REF TO) CA_NWDEMO_PERSIST_LINK Agent SAP NW Demo Model - link persistence class 20070924
14 GR_QUERY_MNG Static Attribute Private Object reference (TYPE REF TO) IF_OS_QUERY_MANAGER Object Services Query Manager 20070924
15 GR_QUERY_WITH_ADDR_GUID_MULT Static Attribute Private Object reference (TYPE REF TO) IF_OS_QUERY Object Services Query 20070924
16 GR_TEXT_AGENT Static Attribute Public Object reference (TYPE REF TO) CA_NWDEMO_PERSIST_TEXT Agent SAP NW Demo Model - link persistence class 20080111
17 GT_TYPEDESCR Static Attribute Private Type reference (TYPE) GYT_TYPEDESCR 20071102
18 INSTANCE Static Attribute Public Object reference (TYPE REF TO) CL_NWDEMO_SERVICE Common methods for service classes 20070619
19 MWST Constant Public Type reference (TYPE) SDEMO_MWST 19 TAXRATE 20080312
20 TRUE Constant Public Type reference (TYPE) XFELD 'X' TRUE 20070702
Methods
# Method Level Visibility Method type Description Created on
1 ADD_SUBSTRUCTURE Static method Private Method 20071105
2 BUILD_MULT_ADDR_QUERY Static method Private Method Build filter argument for the query by name 20070924
3 CHANGE_TEXT Static method Public Method Change text entry 20080111
4 CHG_ATTRIBUTE Static method Public Method Dynamic change of persistent object attribute 20071105
5 CHG_OBJECT_ATTRIBUTES Static method Public Method Change field values of structure 20071105
6 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20070619
7 CREATE_LINK_PERSISTENT Static method Public Method Create link BP - Address 20070924
8 CREATE_TEXT_ENTRIES Instance method Public Method create entries in text table 20070622
9 CREATE_UUID Instance method Public Method Create RAW 16 GUID 20070621
10 DELETE_LINK Static method Public Method Delete link table entry 20071009
11 DELETE_TEXT Static method Public Method Delete text 20070928
12 DELETE_TEXT_ENTRIES Static method Public Method Delete list of text entries 20080124
13 GET_BP_BY_ADDRESS Static method Public Method Get business partner by address 20070924
14 GET_STRUCTURE_CONTENT Instance method Public Method Fill structure with it's field values 20070619
15 GET_TABLE_CONTENT Instance method Public Method Fill all entries and all attributes of corresponding table 20070619
16 GET_TEXT_GUID Static method Private Method Get internal text id for text object 20080124
17 GET_TEXT_LANGU Static method Private Method Get internal text id for text object 20080125
18 GET_TYPEDESCR Static method Public Method Get DDIC data of structure 20071102
19 SAVE Static method Public Method Prepare change of DB 20080314
Events
Class CL_NWDEMO_SERVICE has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GYS_TYPEDESCR Private See coding 20071102 begin of gys_typedescr, tabname type tabname, t_comp type abap_compdescr_tab, end of gys_typedescr
2 GYT_TYPEDESCR Private See coding 20071102 gyt_typedescr type sorted TABLE OF gys_typedescr with UNIQUE key tabname
Method Signatures

Method ADD_SUBSTRUCTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_COMPONENT Call by reference Type reference (TYPE) ABAP_COMPDESCR_TAB 20071105
2 Importing IS_STRUCT Call by reference Type reference (TYPE) ANY 20071105

Method ADD_SUBSTRUCTURE on class CL_NWDEMO_SERVICE has no exception.

Method BUILD_MULT_ADDR_QUERY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ETR_PARAMETER Call by reference Type reference (TYPE) OSDREFTAB OS: Table of Data References 20070924
2 Importing IT_ADDR Call by reference Type reference (TYPE) SDEMO_GUID_TT List of address GUIDs 20070924

Method BUILD_MULT_ADDR_QUERY on class CL_NWDEMO_SERVICE has no exception.

Method CHANGE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_CHG Change: Text 20080111
2 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) CHAR1 FALSE Single-Character Flag 20080111
# Exception Resumable Description Created on
1 CX_NWDEMO_COMMON NWDEMO related Exceptions 20080111

Method CHG_ATTRIBUTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_VALUE Call by reference Type reference (TYPE) ANY 20071105
2 Importing IR_OBJECT Call by reference Object reference (TYPE REF TO) OBJECT 20071105
3 Importing I_ATTRIBUTE_NAME Call by reference Type reference (TYPE) ABAP_COMPNAME 20071105

Method CHG_ATTRIBUTE on class CL_NWDEMO_SERVICE has no exception.

Method CHG_OBJECT_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_STRUCTURE Call by reference Type reference (TYPE) ANY 20071105
2 Importing IR_OBJECT Call by reference Object reference (TYPE REF TO) OBJECT 20071105
3 Importing IS_STRUCTURE_XFLAG Call by reference Type reference (TYPE) ANY 20071105

Method CHG_OBJECT_ATTRIBUTES on class CL_NWDEMO_SERVICE has no exception.

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_NWDEMO_SERVICE has no parameter.
Method CLASS_CONSTRUCTOR on class CL_NWDEMO_SERVICE has no exception.

Method CREATE_LINK_PERSISTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ADDRESS_GUID Call by reference Type reference (TYPE) GUID_16 Business Key 20070924
2 Importing I_ASSOCIATION_NAME Call by reference Type reference (TYPE) SDEMO_ASSOCIATION_NAME Persistent Attribute 20070924
3 Importing I_PARTNER_GUID Call by reference Type reference (TYPE) GUID_16 Business Key 20070924

Method CREATE_LINK_PERSISTENT on class CL_NWDEMO_SERVICE has no exception.

Method CREATE_TEXT_ENTRIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_NEW_TT List of text entries (ext. key) 20070622
2 Importing I_PARENT_KEY Call by reference Type reference (TYPE) SDEMO_TEXT-PARENT_KEY Character field, length 70 20070717
3 Importing I_TEXT_GUID Call by reference Type reference (TYPE) SDEMO_TEXT-TEXT_GUID GUID in 'RAW' format 20070622
4 Importing I_TEXT_TYPE Call by reference Type reference (TYPE) SDEMO_TEXT-TEXT_TYPE sdemo Text Type 20070717

Method CREATE_TEXT_ENTRIES on class CL_NWDEMO_SERVICE has no exception.

Method CREATE_UUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_UUID_X16 Value transfer Type reference (TYPE) SYSUUID-X UUID in X form (binary) 20070621

Method CREATE_UUID on class CL_NWDEMO_SERVICE has no exception.

Method DELETE_LINK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ADDRESS_GUID Call by reference Type reference (TYPE) GUID_16 GUID in 'RAW' format 20071009

Method DELETE_LINK on class CL_NWDEMO_SERVICE has no exception.

Method DELETE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_LANGU Call by reference Type reference (TYPE) SYLANGU SY-LANGU Language Key of Current Text Environment 20070928
2 Importing I_TEXT_GUID Call by reference Type reference (TYPE) GUID_16 GUID in 'RAW' format 20070928

Method DELETE_TEXT on class CL_NWDEMO_SERVICE has no exception.

Method DELETE_TEXT_ENTRIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ITR_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_REF_TT List of references for text entries 20080124

Method DELETE_TEXT_ENTRIES on class CL_NWDEMO_SERVICE has no exception.

Method GET_BP_BY_ADDRESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BP Call by reference Type reference (TYPE) SDEMO_GUID_TT List of business partner guids 20070924
2 Importing IT_ADDR Call by reference Type reference (TYPE) SDEMO_GUID_TT List of address GUIDs 20070924
# Exception Resumable Description Created on
1 CX_NWDEMO_COMMON NWDEMO related Exceptions 20070924

Method GET_STRUCTURE_CONTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_RESULT Call by reference Type reference (TYPE) ANY Result structure with data 20070619
2 Importing IR_ENTRY Call by reference Object reference (TYPE REF TO) OBJECT Reference to one table line 20070619
3 Importing IT_COMPONENT Call by reference Type reference (TYPE) ABAP_COMPDESCR_TAB List of structure components 20070619
4 Importing I_FIELD_SUFFIX Call by reference Type reference (TYPE) CHAR10 Character Field Length = 10 20070709

Method GET_STRUCTURE_CONTENT on class CL_NWDEMO_SERVICE has no exception.

Method GET_TABLE_CONTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RESULT Call by reference Type reference (TYPE) ANY TABLE List of table entries 20070619
2 Importing IT_ENTRY Call by reference Type reference (TYPE) ANY TABLE List of references (1 object per table line) 20070619

Method GET_TABLE_CONTENT on class CL_NWDEMO_SERVICE has no exception.

Method GET_TEXT_GUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_TEXT Call by reference Object reference (TYPE REF TO) CL_NWDEMO_PERSIST_TEXT SAP NW Demo Model - text persistence class 20080124
2 Returning R_TEXT_GUID Value transfer Type reference (TYPE) GUID_16 GUID in 'RAW' format 20080124
# Exception Resumable Description Created on
1 CX_OS_OBJECT_NOT_FOUND Object Services: Object not Found 20080124

Method GET_TEXT_LANGU Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_TEXT Call by reference Object reference (TYPE REF TO) CL_NWDEMO_PERSIST_TEXT SAP NW Demo Model - text persistence class 20080125
2 Returning R_TEXT_LANGU Value transfer Type reference (TYPE) SYLANGU Language Key of Current Text Environment 20080125
# Exception Resumable Description Created on
1 CX_OS_OBJECT_NOT_FOUND Object Services: Object not Found 20080125

Method GET_TYPEDESCR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_COMPONENT Call by reference Type reference (TYPE) ABAP_COMPDESCR_TAB Structure components 20071102
2 Importing IS_STRUCT Call by reference Type reference (TYPE) ANY 20071102
3 Importing I_TABNAME Call by reference Type reference (TYPE) TABNAME Table Name 20071102

Method GET_TYPEDESCR on class CL_NWDEMO_SERVICE has no exception.

Method SAVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_AGENT Call by reference Object reference (TYPE REF TO) OBJECT Agent 20080314

Method SAVE on class CL_NWDEMO_SERVICE has no exception.
History
Last changed by/on SAP  20080612 
SAP Release Created in 710