SAP ABAP Class CL_NWDEMO_SERVICE_PO (Services for purchase order)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-NWD (Application Component) NetWeaver Demonstration
     S_NWDEMO_MODEL_PURCHASE_ORDER (Package) SAP NetWeaver Demo Model - Purchase Order
Properties
Class CL_NWDEMO_SERVICE_PO  
Short Description Services for purchase order    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_NWDEMO_MODEL_PURCHASE_ORDER   SAP NetWeaver Demo Model - Purchase Order 
Created 20071029   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)
2 CL_NWDEMO_SERVICE Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_NWDEMO_SERVICE_PO has no interface implemented.
Friends
Class CL_NWDEMO_SERVICE_PO has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_QUERY_METHOD_NAME Constant Private Type reference (TYPE) STRING 'IF_OS_CA_PERSISTENCY~GET_PERSISTENT_BY_QUERY' Name of the query method 20071029
2 GR_AGENT Static Attribute Private Object reference (TYPE REF TO) CA_NWDEMO_PERSIST_PO Agent SAP NW Demo Model - po persistence class 20071029
3 GR_BP_SERV Static Attribute Private Object reference (TYPE REF TO) CL_NWDEMO_SERVICE_BP Services for BP 20071029
4 GR_ITEM_AGENT Static Attribute Private Object reference (TYPE REF TO) CA_NWDEMO_PERSIST_PO_I Agent SAP NetWeaver Demo Model - Purch Order Item persistenc 20071106
5 GR_QUERY_MNG Static Attribute Private Object reference (TYPE REF TO) IF_OS_QUERY_MANAGER Object Services Query Manager 20071029
6 GR_QUERY_WITH_PO_BUYER_ID Instance attribute Private Object reference (TYPE REF TO) IF_OS_QUERY Object Services Query 20071029
7 GR_QUERY_WITH_PO_ID Instance attribute Private Object reference (TYPE REF TO) IF_OS_QUERY Object Services Query 20071029
8 GR_QUERY_WITH_PO_ITEM_ID Instance attribute Private Object reference (TYPE REF TO) IF_OS_QUERY Object Services Query 20071106
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_QUERY_BY_BUYER_ID Instance method Private Method Build filter argument for the query by name 20071029
2 CHANGE_PO Instance method Public Method Change purchase order 20071106
3 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20071029
4 CREATE_PO Instance method Public Method Create purchase order 20071029
5 DELETE_ALL Static method Public Method Delete all data of all purchase orders 20071029
6 DELETE_PO Instance method Public Method Delete purchase order 20071029
7 DELETE_PO_BY_GUID Instance method Public Method Delete purchase order by int. key (GUID) 20071029
8 DELETE_PO_BY_ID Instance method Public Method Delete purchase order by ext. key (ID) 20071029
9 FILL_MULT_RESULT Instance method Private Method Fill multiple results into table 20071029
10 FILL_PO_DATA Instance method Private Method Fill purchase order data 20071029
11 GET_BP_GUID_BY_ID Instance method Private Method Get partner guid by product id 20071029
12 GET_NEXT_PO_ID Static method Public Method Get the next free purchase order ID 20071029
13 GET_PD_GUID_BY_ID Instance method Private Method Get product guid by product id 20071029
14 MAP_PO_PROXY_INPUT Instance method Public Method Purchase order mapping of proxy input 20080312
15 MAP_PO_RESULT Instance method Private Method Fill Proxy output structure 20071029
16 QUERY_PO_BY_EXT_KEY Instance method Private Method Query purchase order by ext. key (partner ID) 20071029
17 QUERY_PO_ITEM_BY_EXT_KEY Instance method Private Method Query purchase order by ext. key (partner ID) 20071106
18 READ_ALL_PO Instance method Public Method Read all purchase orders 20071029
19 READ_PO Instance method Public Method Read purchase order 20071029
20 READ_PO_BY_BUYER_ID Instance method Public Method Read purchase order by buyer party id 20071029
21 READ_PO_BY_GUID Instance method Public Method Read purchase order by int. key (GUID) 20071029
22 READ_PO_BY_ID Instance method Public Method Read purchase order by ext. key (ID) 20071029
Events
Class CL_NWDEMO_SERVICE_PO has no event.
Types
Class CL_NWDEMO_SERVICE_PO has no local type.
Method Signatures

Method BUILD_QUERY_BY_BUYER_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_SELLER_ID Call by reference Type reference (TYPE) SDEMO_PO_SELLER_ID_TT Lst of seller partner IDs 20071029
2 Changing C_BUYER_ID Call by reference Type reference (TYPE) SDEMO_PARTNER_ID Partner Id 20071029
3 Exporting ETR_PARAMETER Call by reference Type reference (TYPE) OSDREFTAB OS: Table of Data References 20071029

Method BUILD_QUERY_BY_BUYER_ID on class CL_NWDEMO_SERVICE_PO has no exception.

Method CHANGE_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST Purchase order data incl. status information 20071106
2 Changing CT_PO_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_NEW_TT List of purch order items with dep. data, sorted by ext key 20071106
3 Changing CT_PO_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_NEW_TT List of text entries (ext. key) 20071106
4 Importing IS_ITEM_XFLAG Call by reference Type reference (TYPE) SDEMO_PO_I_XFLAG Change flags for purch order item data incl. status info 20071106
5 Importing IS_PURCH_ORDER_XFLAG Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST_XFLAG Change flags for purch order data incl. status information 20071106
6 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Performe COMMIT WORK AND WAIT at end of method 20071106
# Exception Resumable Description Created on
1 CX_NWDEMO_PO Business partner related exceptions 20071106

Method CLASS_CONSTRUCTOR Signature

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

Method CREATE_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST SAP NetWeaver Demo Model - purchase_order with status info 20071029
2 Changing CT_PO_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_NEW_TT List of purchase order items with dep. data 20071029
3 Changing CT_PO_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_NEW_TT List of text entries (ext. key) 20071029
4 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Performe COMMIT WORK AND WAIT at end of method 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO Business partner related exceptions 20071031

Method DELETE_ALL Signature

Method DELETE_ALL on class CL_NWDEMO_SERVICE_PO has no parameter.
Method DELETE_ALL on class CL_NWDEMO_SERVICE_PO has no exception.

Method DELETE_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Perform COMMIT WORK AND WAIT at end of method 20071029
2 Importing I_PO_GUID Call by reference Type reference (TYPE) SDEMO_PO-GUID Pürchase order Guid (internal key) 20071029
3 Importing I_PO_ID Call by reference Type reference (TYPE) SDEMO_PO-ID Pürchase order Id (external key) 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method DELETE_PO_BY_GUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Perform COMMIT WORK AND WAIT at end of method 20071029
2 Importing I_PO_GUID Call by reference Type reference (TYPE) SDEMO_PO-GUID Pürchase order GUID (internal key) 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO Business partner related exceptions 20071029

Method DELETE_PO_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PERFORM_COMMIT Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Perform COMMIT WORK AND WAIT at end of method 20071029
2 Importing I_PO_ID Call by reference Type reference (TYPE) SDEMO_PO-ID Pürchase order ID (external key) 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method FILL_MULT_RESULT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PO Call by reference Type reference (TYPE) SDEMO_PO_ALL_TT List of purchase orders incl. dependend data 20071029
2 Importing ITR_PO Call by reference Type reference (TYPE) OSREFTAB OS: Table of References 20071029

Method FILL_MULT_RESULT on class CL_NWDEMO_SERVICE_PO has no exception.

Method FILL_PO_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST Purchase order data incl. status information 20071029
2 Exporting ET_PO_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_TT List of Purchase order items with dep. data 20071029
3 Exporting ET_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_TT List of text entries 20071029
4 Importing IR_PO Call by reference Object reference (TYPE REF TO) CL_NWDEMO_PERSIST_PO SAP NW Demo Model - po persistence class 20071029
5 Importing I_WITH_PO_DATA Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Get Purchase order data 20071029
6 Importing I_WITH_PO_ITEM Call by reference Type reference (TYPE) XFELD CL_NWDEMO_SERVICE=>TRUE Get Purchase order items 20071029

Method FILL_PO_DATA on class CL_NWDEMO_SERVICE_PO has no exception.

Method GET_BP_GUID_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PARTNER_ID Call by reference Type reference (TYPE) SDEMO_BP-PARTNER_ID Partner ID 20071029
2 Returning R_PARTNER_GUID Value transfer Type reference (TYPE) SDEMO_BP-PARTNER_GUID Partner Guid 20071029

Method GET_BP_GUID_BY_ID on class CL_NWDEMO_SERVICE_PO has no exception.

Method GET_NEXT_PO_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_PO_ID Value transfer Type reference (TYPE) SDEMO_PO-ID PurchaseOrderID 20071031
# Exception Resumable Description Created on
1 CX_NWDEMO_PO Business partner related exceptions 20071031

Method GET_PD_GUID_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PRODUCT_ID Call by reference Type reference (TYPE) SDEMO_PD-PRODUCT_ID ProductID 20071029
2 Returning R_PRODUCT_GUID Value transfer Type reference (TYPE) SDEMO_PD-PRODUCT_GUID Product Guid 20071029

Method GET_PD_GUID_BY_ID on class CL_NWDEMO_SERVICE_PO has no exception.

Method MAP_PO_PROXY_INPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PO Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST Purchase order data incl. status information 20080312
2 Exporting ET_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_NEW_TT List of purch order items with dep. data, sorted by ext key 20080312
3 Exporting ET_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_NEW_TT List of text entries (ext. key) 20080312
4 Importing IS_INPUT Call by reference Type reference (TYPE) SDEMO_PO_CREATE_REQUEST_PO Proxy Structure (generated) 20080312

Method MAP_PO_PROXY_INPUT on class CL_NWDEMO_SERVICE_PO has no exception.

Method MAP_PO_RESULT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_OUTPUT Call by reference Type reference (TYPE) SDEMO_PURCHASE_O_BY_ID_RES_PO PurchaseOrderByIDResponse 20071029
2 Importing IS_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_ALL Purchase order including attribut fields from SDEMO_SO_ST 20071031

Method MAP_PO_RESULT on class CL_NWDEMO_SERVICE_PO has no exception.

Method QUERY_PO_BY_EXT_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_AGENT Call by reference Object reference (TYPE REF TO) OBJECT Agent 20071029
2 Importing I_PO_ID Call by reference Type reference (TYPE) SDEMO_PO-ID Purchase Order ID 20071029
3 Returning RT_ENTRY Value transfer Type reference (TYPE) OSREFTAB OS: Table of References 20071029

Method QUERY_PO_BY_EXT_KEY on class CL_NWDEMO_SERVICE_PO has no exception.

Method QUERY_PO_ITEM_BY_EXT_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_AGENT Call by reference Object reference (TYPE REF TO) OBJECT Agent 20071106
2 Importing I_PO_GUID Call by reference Type reference (TYPE) SDEMO_PO-GUID Purchase Order GUID (Int. key) 20071106
3 Importing I_PO_ITEM_ID Call by reference Type reference (TYPE) SDEMO_PO_I-ID Purchase Order Item ID 20071106
4 Returning RT_ENTRY Value transfer Type reference (TYPE) OSREFTAB OS: Table of References 20071106

Method QUERY_PO_ITEM_BY_EXT_KEY on class CL_NWDEMO_SERVICE_PO has no exception.

Method READ_ALL_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_ALL_TT List of purchase orders with dependend data 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method READ_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_BY_PO_ID_OUTPUT Call by reference Type reference (TYPE) SDEMO_PURCHASE_O_BY_ID_RES_PO Proxy Structure (generated) 20080430
2 Exporting ET_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_ALL_TT List of purchase orders with dependend data 20071029
3 Importing I_PO_BUYER_ID Call by reference Type reference (TYPE) SDEMO_PO-BUYER_PARTY_ID BuyerParty 20071029
4 Importing I_PO_GUID Call by reference Type reference (TYPE) SDEMO_PO-GUID Sales order Guid (internal key) 20071029
5 Importing I_PO_ID Call by reference Type reference (TYPE) SDEMO_PO-ID Sales order Id (external key) 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method READ_PO_BY_BUYER_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PROXY_OUTPUT Call by reference Type reference (TYPE) ANY PurchaseOrderByIDReponse 20071029
2 Exporting ET_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_ALL_TT List of Purchase orders with dependend data 20071029
3 Importing I_PO_BUYER_ID Call by reference Type reference (TYPE) SDEMO_BUYER_PARTY_ID Buyer Party 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method READ_PO_BY_GUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PROXY_OUTPUT Call by reference Type reference (TYPE) ANY SalesOrderByIDReponse 20071029
2 Exporting ES_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST Purchase order data incl. status information 20071029
3 Exporting ET_PO_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_TT List of addressesList of Purchase order items with dep. data 20071029
4 Exporting ET_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_TT List of text entries 20071029
5 Importing I_PO_GUID Call by reference Type reference (TYPE) SDEMO_PO-GUID GUID in 'RAW' format 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031

Method READ_PO_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PROXY_OUTPUT Call by reference Type reference (TYPE) ANY PurchaseOrderByIDReponse 20071029
2 Exporting ES_PURCH_ORDER Call by reference Type reference (TYPE) SDEMO_PO_WITH_ST Purchase order data incl. status information 20071029
3 Exporting ET_PO_ITEM Call by reference Type reference (TYPE) SDEMO_PO_ITEM_ALL_TT List of addressesList of purchase order items with dep. data 20071029
4 Exporting ET_TEXT Call by reference Type reference (TYPE) SDEMO_TEXT_TT List of text entries 20071029
5 Importing I_PO_ID Call by reference Type reference (TYPE) SDEMO_PO-ID Purchase Order ID 20071029
# Exception Resumable Description Created on
1 CX_NWDEMO_PO 20071031
History
Last changed by/on SAP  20080612 
SAP Release Created in 711