SAP ABAP Class CL_S_EPM_UI_PRD (Product adaptation for UI)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-NWD (Application Component) NetWeaver Demonstration
     S_EPM_WD (Package) EPM: ABAP Web Dynpro
Properties
Class CL_S_EPM_UI_PRD  
Short Description Product adaptation for UI    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_EPM_WD   EPM: ABAP Web Dynpro 
Created 20090801   SAP 
Last change 20110908   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_S_EPM_UI_PRD Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 IF_EPM_BO Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
4 IF_EPM_BP_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 IF_EPM_MESSAGE_BUFFER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
6 IF_EPM_PRODUCT_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
7 IF_EPM_TEXT_HEADER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_S_EPM_UI_PRD has no interface implemented.
Friends
Class CL_S_EPM_UI_PRD has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_BPID Constant Public Type reference (TYPE) RSSCR_NAME 'BPID' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
2 GC_BP_CITY Constant Public Type reference (TYPE) RSSCR_NAME 'BPCITY' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
3 GC_BP_CONTACT Constant Public Type reference (TYPE) RSSCR_NAME 'BPCONTAC' 20090807
4 GC_BP_NAME Constant Public Type reference (TYPE) RSSCR_NAME 'BPNAME' 20090807
5 GC_CREATE Constant Public Type reference (TYPE) TR_MODE 'C' 20090803
6 GC_DISPLAY Constant Public Type reference (TYPE) TR_MODE 'D' 20090803
7 GC_EDIT Constant Public Type reference (TYPE) TR_MODE 'E' 20090803
8 GC_PRODCAT Constant Public Type reference (TYPE) RSSCR_NAME 'PRODCAT' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
9 GC_PRODCURR Constant Public Type reference (TYPE) RSSCR_NAME 'PRODCURR' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
10 GC_PRODDESC Constant Public Type reference (TYPE) RSSCR_NAME 'PRODDESC' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
11 GC_PRODID Constant Public Type reference (TYPE) RSSCR_NAME 'PRODID' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
12 GC_PRODNAME Constant Public Type reference (TYPE) RSSCR_NAME 'PRODNAME' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
13 GC_PRODPRICE Constant Public Type reference (TYPE) RSSCR_NAME 'PRODPRIC' 20090807
14 GC_PRODTYPE Constant Public Type reference (TYPE) RSSCR_NAME 'PRODTYPE' ABAP/4: Name of SELECT-OPTION / PARAMETER 20090807
15 GC_QUERY_PRODUCT Constant Public Type reference (TYPE) STRING 'PRODUCT' 20090807
16 GC_QUERY_SUPPLIER Constant Public Type reference (TYPE) STRING 'SUPPLIER' 20090807
17 MO_EPM_MESSAGE_BUFFER Instance attribute Private Object reference (TYPE REF TO) IF_EPM_MESSAGE_BUFFER EPM: Message buffer interface 20090801
18 MO_EPM_PRD_INST Instance attribute Private Object reference (TYPE REF TO) IF_EPM_PRODUCT EPM: Business Object Product header node interface 20090801
19 MT_ATTRIBUTE_MAPPING Static Attribute Private Type reference (TYPE) TT_ATTRIBUTE_MAPPING 20100316
20 MV_EDIT_MODE Instance attribute Private Type reference (TYPE) IF_EPM_BO=>TY_EDIT_MODE IF_EPM_BO=>GC_READ_ONLY Edit mode of a BO node element 20090804
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor 20100316
2 CLEANUP Instance method Public Method Cleanup service facade 20090804
3 CONSTRUCTOR Instance method Public Constructor 20090801
4 CONVERT_IDS_TO_KEYS Instance method Public Method Convert Product IDs to Node Keys 20091127
5 CREATE Instance method Public Method Create a new product 20090801
6 GET_ALL_FIELD_PROPS Instance method Public Method Get table containing metadata for all fields 20090806
7 GET_DATA Instance method Public Method Fetch the product data 20090801
8 GET_EPM_ATTRIBUTE_NAME Static method Public Method Get EPM attribute name for UI attribute name 20100310
9 GET_FIELD_PROPS Instance method Private Method Get metadata (readonly, required) for a field 20090803
10 GET_MESSAGES Instance method Public Method Fetch message from message manager 20090804
11 GET_PRD_LIST Instance method Public Method List of POs prepared for UI 20090807
12 GET_SUPPLIER Instance method Private Method Get supplier data via navigation 20090803
13 GET_UI_ATTRIBUTE_NAME Static method Public Method Get UI attribute name for EPM attribute name 20100310
14 SAVE Instance method Public Method Save data in current transaction 20090804
15 SET_ATTRIBUTE Instance method Public Method Set product header attribute 20100308
16 SET_BUSINESS_PARTNER Instance method Public Method Set business partner 20100302
17 SET_DESCRIPTION Instance method Public Method Set product description 20100308
18 SET_NAME Instance method Public Method Set product name 20100308
19 UPDATE_PICTURE Instance method Public Method Update product picture 20090803
Events
Class CL_S_EPM_UI_PRD has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TR_MODE Public See coding 20090803 tr_mode TYPE c LENGTH 1
2 TT_ATTRIBUTE_MAPPING Public See coding 20100316 tt_attribute_mapping TYPE STANDARD TABLE OF ty_attribute_mapping WITH DEFAULT KEY
3 TT_PRD_LIST_DATA Public See coding 20090807 tt_prd_list_data TYPE STANDARD TABLE OF epm_prd_header_ui WITH DEFAULT KEY
4 TT_PRD_METADATA Public See coding 20090804 tt_prd_metadata TYPE STANDARD TABLE OF ty_prd_metadata WITH DEFAULT KEY
5 TY_ATTRIBUTE_MAPPING Public See coding 20100316 BEGIN OF ty_attribute_mapping, ui_attribute TYPE string, epm_attribute TYPE string, END OF ty_attribute_mapping
6 TY_PRD_DATA Public Type reference (TYPE) EPM_PRD_UI_DATA 20090801
7 TY_PRD_LIST_DATA Public Type reference (TYPE) EPM_PRD_HEADER_UI PAL structure of Product BO 20090807
8 TY_PRD_METADATA Public See coding Field metadata 20090803 BEGIN OF ty_prd_metadata, attribute_name TYPE string, read_only TYPE abap_bool, required TYPE abap_bool, END OF ty_prd_metadata
Method Signatures

Method CLASS_CONSTRUCTOR Signature

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

Method CLEANUP Signature

Method CLEANUP on class CL_S_EPM_UI_PRD has no parameter.
Method CLEANUP on class CL_S_EPM_UI_PRD has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_S_EPM_UI_PRD has no parameter.
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090804

Method CONVERT_IDS_TO_KEYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_IDS Call by reference Type reference (TYPE) IF_EPM_PRODUCT_HEADER=>TT_PRODUCT_IDENTIFIERS Table of product identifiers as alternative keys 20091127
2 Returning RT_KEY_MAPPING Value transfer Type reference (TYPE) IF_EPM_BO=>TT_KEY_MAPPING_INFO Conversion info for a set of alternative node keys 20091127

Method CONVERT_IDS_TO_KEYS on class CL_S_EPM_UI_PRD has no exception.

Method CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DATA Value transfer Type reference (TYPE) TY_PRD_DATA 20090801
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090804

Method GET_ALL_FIELD_PROPS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20090806
2 Returning RT_METADATA Value transfer Type reference (TYPE) TT_PRD_METADATA Table containing field metadata 20090806
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090807
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090807

Method GET_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_EDIT_MODE Call by reference Type reference (TYPE) TR_MODE GC_DISPLAY 20090804
2 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20090801
3 Returning RV_DATA Value transfer Type reference (TYPE) TY_PRD_DATA 20090801
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090804

Method GET_EPM_ATTRIBUTE_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ATTRIBUTE Call by reference Type reference (TYPE) STRING 20100310
2 Returning RV_ATTRIBUTE Value transfer Type reference (TYPE) STRING 20100310

Method GET_EPM_ATTRIBUTE_NAME on class CL_S_EPM_UI_PRD has no exception.

Method GET_FIELD_PROPS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FIELD Call by reference Type reference (TYPE) STRING 20090803
2 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20090803
3 Returning RV_METADATA Value transfer Type reference (TYPE) TY_PRD_METADATA 20090803
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090804

Method GET_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_MSG_LIST Value transfer Type reference (TYPE) IF_EPM_MESSAGE_BUFFER=>TT_MESSAGES 20090804
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804

Method GET_PRD_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EO_EXC Call by reference Object reference (TYPE REF TO) CX_ROOT Abstract Superclass for All Global Exceptions 20090807
2 Exporting ET_PRD_LIST_DATA Call by reference Type reference (TYPE) TT_PRD_LIST_DATA 20090807
3 Exporting EV_NR_OF_ROWS Call by reference Type reference (TYPE) IF_EPM_BO=>TY_QUERY_NR_OF_ROWS_FOUND Query: Size of overall query result set ( number of rows ) 20090807
4 Importing IT_PARAMS Call by reference Type reference (TYPE) RSPARAMS_TT rsparams Table 20090807
5 Importing IV_MAX_ROWS Call by reference Type reference (TYPE) IF_EPM_BO=>TY_QUERY_MAX_ROWS IF_EPM_BO=>GC_SELECT_ALL_ROWS Query: Maximum number of rows to select 20090807
6 Importing IV_QUERY Call by reference Type reference (TYPE) STRING GC_QUERY_SUPPLIER 20090807
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090807
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090807

Method GET_SUPPLIER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_SOURCE_NODE_KEY Call by reference Type reference (TYPE) IF_EPM_BO=>TY_NODE_KEY Generic Node element key 20090803
2 Returning RV_BP_DATA Value transfer Type reference (TYPE) IF_EPM_BP_HEADER=>TY_NODE_DATA EPM: Business Partner Table 20090803
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090803
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090803

Method GET_UI_ATTRIBUTE_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ATTRIBUTE Call by reference Type reference (TYPE) STRING 20100310
2 Returning RV_ATTRIBUTE Value transfer Type reference (TYPE) STRING 20100310

Method GET_UI_ATTRIBUTE_NAME on class CL_S_EPM_UI_PRD has no exception.

Method SAVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL 20090804

Method SAVE on class CL_S_EPM_UI_PRD has no exception.

Method SET_ATTRIBUTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ATTRIBUTE Call by reference Type reference (TYPE) STRING EPM attribute name 20100308
2 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20100308
3 Importing IV_VALUE Call by reference Type reference (TYPE) DATA Attribute value 20100308
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20100308
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20100308

Method SET_BUSINESS_PARTNER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BP_ID Call by reference Type reference (TYPE) SNWD_PARTNER_ID EPM: Business Partner ID 20100302
2 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20100302
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20100302
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20100302

Method SET_DESCRIPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20100308
2 Importing IV_TEXT Call by reference Type reference (TYPE) SNWD_DESC EPM: Text field for names and descriptions 20100308
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20100308
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20100308

Method SET_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20100308
2 Importing IV_TEXT Call by reference Type reference (TYPE) SNWD_DESC EPM: Text field for names and descriptions 20100308
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20100308
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20100308

Method UPDATE_PICTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATA Call by reference Type reference (TYPE) XSTRING 20090803
2 Importing IV_MIME_TYPE Call by reference Type reference (TYPE) W3CONTTYPE HTML content type 20090803
3 Importing IV_NODE_KEY Call by reference Type reference (TYPE) SNWD_NODE_KEY EPM: Generic Node Key 20090803
4 Returning RV_PICTURE_URL Value transfer Type reference (TYPE) SNWD_PRODUCT_PIC_URL EPM: URL of Product Image 20090807
# Exception Resumable Description Created on
1 CX_EPM_API_EXCEPTION EPM: API exception class 20090804
2 CX_EPM_SYSTEM_EXCEPTION EPM: System exception class 20090804
History
Last changed by/on SAP  20110908 
SAP Release Created in 730