SAP ABAP Class CL_O2C_SLS_PUR_CHANGE_MODEL (Model Class to retrieve data for the WD detail component)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   SD (Application Component) Sales and Distribution
     ERP_SALES_O2C_WHOLESALE (Package) ERP Sales Order 2 Cash - Wholesale
Properties
Class CL_O2C_SLS_PUR_CHANGE_MODEL  
Short Description Model Class to retrieve data for the WD detail component    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package ERP_SALES_O2C_WHOLESALE   ERP Sales Order 2 Cash - Wholesale 
Created 20070419   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 CL_O2C_POWL_SLS_PUR Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_O2C_SLS_PUR_CHANGE_MODEL has no interface implemented.
Friends
Class CL_O2C_SLS_PUR_CHANGE_MODEL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MT_CDHDR_ST Instance attribute Private Type reference (TYPE) GY_CDHDR_ST 20080728
2 MV_CDHDR_ST_VBELN Instance attribute Private Type reference (TYPE) VBELN Sales and Distribution Document Number 20080728
3 M_EKBE Instance attribute Private See coding 20070430
4 M_EKBE_EXTENDED Instance attribute Private Type reference (TYPE) TDT_SLS_PUR_GR 20070430
5 M_EKBE_EXTENDED_MSG Instance attribute Private Type reference (TYPE) POWL_MSG_TTY Authority-Check Error message 20070814
6 M_EKET Instance attribute Private See coding 20070430
7 M_EKET_EXTENDED Instance attribute Private Type reference (TYPE) TDT_SLS_PUR_PO_SCHED_LINES Table containing the data from the PO & PO Schedule lines 20070430
8 M_EKET_EXTENDED_MSG Instance attribute Private Type reference (TYPE) POWL_MSG_TTY Authorization Error messages 20070814
9 M_GR_EBELN Instance attribute Private Type reference (TYPE) EBELN Purchasing Document Number 20070502
10 M_GR_EBELP Instance attribute Private Type reference (TYPE) EBELP Item number of the SD document 20070502
11 M_PO_SCH_EBELN Instance attribute Private Type reference (TYPE) EBELN Item number of the SD document 20070502
12 M_PO_SCH_EBELP Instance attribute Private Type reference (TYPE) EBELP Sales and Distribution Document Number 20070502
13 M_SO_SCH_ETENR Instance attribute Private Type reference (TYPE) ETENR Delivery Schedule Line Number 20070430
14 M_SO_SCH_POSNR Instance attribute Private Type reference (TYPE) POSNR Item number of the SD document 20070430
15 M_SO_SCH_VBELN Instance attribute Private Type reference (TYPE) VBELN Sales and Distribution Document Number 20070430
16 M_VBEP Instance attribute Private See coding 20070430
Methods
# Method Level Visibility Method type Description Created on
1 ADD_TOOLTIPS Instance method Public Method Method to add some tooltips 20070515
2 CHECK_AUTHORITY_PUR_PO Instance method Private Method Perform the Authority-Check for the Purchase Order 20070814
3 CHECK_AUTHORITY_PUR_PO_ITEM Instance method Public Method Perform the Authority-Check for the Purchase Order 20070814
4 CHECK_AUTHORITY_PUR_PR Instance method Private Method Perform the Authority-Check for the Purchase Requisitions 20070814
5 CHECK_DIFFERENCES Instance method Public Method Method to check the differences in Dates and Quantity 20070516
6 CHECK_DIFFERENCES_ITEM Instance method Public Method Method to check the differences in Dates and Quantity 20080728
7 CLEAR_PO_DATA Instance method Private Method Clear PO Data if the authority check fails 20070814
8 CLEAR_PR_DATA Instance method Private Method Clear PR Data when the authority-check has failled. 20070814
9 GET_ADDITIONAL_DATA Instance method Public Method Get additional data for the table (vendor & material data) 20070426
10 GET_GR_STATUS Instance method Public Method Get the good receipt status 20070421
11 GET_ITEM_GR Instance method Public Method Retrieve for an SO item the Goods receipts 20070419
12 GET_ITEM_PO_SCHED_LINES Instance method Public Method Retrieve for an SO item the scheduled Purchase Order Lines 20070419
13 GET_ITEM_SO_SCHED_LINES Instance method Public Method Retrieve for an SO item the scheduled Sales Order Lines 20070419
14 GET_ITEM_VND_CONF Instance method Public Method Retrieve for an SO item the vendor confirmations 20070502
15 GET_MATERIAL_AVAILABILITY_DATE Instance method Public Method Get the material availabity date from the PO delivery date 20070522
16 GET_OBJECT_IND_PO Instance method Public Method Get Object for the individual Purchase Requisition. 20070419
17 GET_OBJECT_IND_PR Instance method Public Method Get Object for the individual Purchase Requisition. 20070419
Events
Class CL_O2C_SLS_PUR_CHANGE_MODEL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GX_CDHDR_ST Public See coding 20080728 BEGIN OF gx_cdhdr_st. TYPES changenr TYPE cdhdr-changenr. TYPES tcode TYPE cdhdr-tcode. TYPES udate TYPE cdhdr-udate. TYPES utime TYPE cdhdr-utime. TYPES END OF gx_cdhdr_st
2 GX_SO_PUR_CHANGES Public See coding 20070517 BEGIN OF gx_so_pur_changes. TYPES m_src TYPE slssrc. TYPES m_typ TYPE slsptyp. TYPES m_vrkme TYPE vbep-vrkme. TYPES m_wmeng TYPE vbep-wmeng. TYPES m_menge TYPE ekpo-menge. TYPES m_meins TYPE ekpo-meins. TYPES m_long_description TYPE string. TYPES END OF gx_so_pur_changes
3 GY_CDHDR_ST Public See coding 20080728 gy_cdhdr_st TYPE STANDARD TABLE OF gx_cdhdr_st WITH NON-UNIQUE DEFAULT KEY
4 GY_SO_PUR_CHANGES Public See coding 20070517 gy_so_pur_changes TYPE STANDARD TABLE OF gx_so_pur_changes WITH NON-UNIQUE DEFAULT KEY
5 GY_T001W Public See coding 20070523 gy_t001w TYPE STANDARD TABLE OF t001w
Method Signatures

Method ADD_TOOLTIPS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing E_MESSAGES Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070515
2 Changing IT_RESULTS Call by reference Type reference (TYPE) INDEX TABLE 20070515
3 Importing I_LANGU Call by reference Type reference (TYPE) LANGU SY-LANGU Language Key 20070515
4 Importing I_TYPE Call by reference Type reference (TYPE) POWL_TYPE_TY POWL type ID 20070515

Method ADD_TOOLTIPS on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CHECK_AUTHORITY_PUR_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_IND_PO Call by reference Type reference (TYPE) STANDARD TABLE Feeder Class Individual Purchase Order Table 20070814
2 Changing CT_MESSAGES Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
3 Importing IV_DELETE_DATA Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20070814

Method CHECK_AUTHORITY_PUR_PO on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CHECK_AUTHORITY_PUR_PO_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_IS_AUTHORIZED Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20070814
2 Exporting E_MESSAGES Call by reference Type reference (TYPE) BAPIRET2_T Message META description 20070814
3 Importing IV_IND_PO Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20070814
4 Importing IV_IND_PO_ITEM Call by reference Type reference (TYPE) EBELP Feeder Class Individual Purchase Order Table 20070814

Method CHECK_AUTHORITY_PUR_PO_ITEM on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CHECK_AUTHORITY_PUR_PR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_IND_PR Call by reference Type reference (TYPE) STANDARD TABLE Feeder Class Individual Purchase Requisition Table 20070814
2 Changing CT_MESSAGES Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
3 Importing IV_DELETE_DATA Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20070814

Method CHECK_AUTHORITY_PUR_PR on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CHECK_DIFFERENCES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting IT_DIFFERENCES Call by reference Type reference (TYPE) GY_SO_PUR_CHANGES List of differences found for display 20070517
2 Importing IT_RANGE_SLSPTYP Call by reference Type reference (TYPE) INDEX TABLE Selection Criteria Range for Problem Type 20070516
3 Importing IT_RANGE_SLSSRC Call by reference Type reference (TYPE) INDEX TABLE Selection Criteria Range for Problem Source 20070516
4 Changing IT_RESULTS Call by reference Type reference (TYPE) INDEX TABLE Result set table 20070516
5 Importing IV_ALL_DIFFERENCES Call by reference Type reference (TYPE) BOOLEAN ABAP_FALSE Indicates if all differences should be retrieved 20070517
# Exception Resumable Description Created on
1 CX_O2C_SLS_PUR_CHANGE_MODEL Exception class for the CL_O2C_SLS_PUR_CHANGE_MODAL 20070516

Method CHECK_DIFFERENCES_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_RESULT Call by reference Type reference (TYPE) TDS_SLS_IND_PUR Resultset Row 20080729
2 Exporting ET_DIFFERENCES Call by reference Type reference (TYPE) GY_SO_PUR_CHANGES List of differences found for display 20080728
3 Importing IT_RANGE_SLSPTYP Call by reference Type reference (TYPE) INDEX TABLE Selection Criteria Range for Problem Type 20080728
4 Importing IT_RANGE_SLSSRC Call by reference Type reference (TYPE) INDEX TABLE Selection Criteria Range for Problem Source 20080728

Method CHECK_DIFFERENCES_ITEM on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CLEAR_PO_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_IND_PO Call by reference Type reference (TYPE) ANY Individual Purchase Document Structure 20070814

Method CLEAR_PO_DATA on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method CLEAR_PR_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_IND_PR Call by reference Type reference (TYPE) TDS_SLS_IND_PR Individual Purchase Document Structure 20070814

Method CLEAR_PR_DATA on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_ADDITIONAL_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_GR Call by reference Type reference (TYPE) TDT_SLS_PUR_GR Table containing EKBE & PO related data 20070426
2 Exporting ET_ITEM_PO_SCHED_LINES Call by reference Type reference (TYPE) TDT_SLS_PUR_PO_SCHED_LINES Table containing EKET & PO related data 20070426
3 Exporting ET_ITEM_VND_CONF Call by reference Type reference (TYPE) TDT_SLS_PUR_VND_CONF Table containing EKES & PO related data 20070426
4 Importing IT_EKPO_KEYS Call by reference Type reference (TYPE) INDEX TABLE Table containing the keys to use 20070426
5 Importing IT_ITEM_GR Call by reference Type reference (TYPE) INDEX TABLE Table containing EKBE data 20070426
6 Importing IT_ITEM_PO_SCHED_LINES Call by reference Type reference (TYPE) INDEX TABLE Table containing EKET data 20070426
7 Importing IT_ITEM_VND_CONF Call by reference Type reference (TYPE) INDEX TABLE Table containing EKES data 20070426

Method GET_ADDITIONAL_DATA on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_GR_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_MSEGSTATUS Call by reference Type reference (TYPE) MSEGSTATUS Good Receipt Status 20070421
2 Importing IT_BUDAT Call by reference Type reference (TYPE) INDEX TABLE Posting Date Selection Criteria 20070514
3 Importing I_DESIRED_QUANTITY Call by reference Type reference (TYPE) EKPO-MENGE Purchase Order Quantity 20070421
4 Importing I_EBELN Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20070502
5 Importing I_EBELP Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20070502

Method GET_GR_STATUS on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_ITEM_GR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_GR Call by reference Type reference (TYPE) INDEX TABLE History per Purchasing Document (EKBE) 20070419
2 Exporting ET_ITEM_GR_EXT Call by reference Type reference (TYPE) TDT_SLS_PUR_GR Table containing the data from PO & Goods receipts 20070426
3 Importing IT_BUDAT Call by reference Type reference (TYPE) INDEX TABLE Posting Date Selection Criteria 20070514
4 Importing IV_EBELN Call by reference Type reference (TYPE) EBELN Sales and Distribution Document Number 20070502
5 Importing IV_EBELP Call by reference Type reference (TYPE) EBELP Item number of the SD document 20070502

Method GET_ITEM_GR on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_ITEM_PO_SCHED_LINES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_PO_SCHED_LINES Call by reference Type reference (TYPE) INDEX TABLE Scheduling Agreement Schedule Lines (EKET) 20070419
2 Exporting ET_ITEM_PO_SCHED_LINES_EXT Call by reference Type reference (TYPE) TDT_SLS_PUR_PO_SCHED_LINES Table containing the data from the PO & PO Schedule lines 20070426
3 Exporting ET_ITEM_PO_SCHED_LINES_EXT_MSG Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
4 Importing IV_EBELN Call by reference Type reference (TYPE) EBELN Sales and Distribution Document Number 20070502
5 Importing IV_EBELP Call by reference Type reference (TYPE) EBELP Item number of the SD document 20070502

Method GET_ITEM_PO_SCHED_LINES on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_ITEM_SO_SCHED_LINES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_SO_SCHED_LINES Call by reference Type reference (TYPE) INDEX TABLE Sales Document: Schedule Line Data (VBEP) 20070419
2 Importing IV_ETENR Call by reference Type reference (TYPE) ETENR Delivery Schedule Line Number 20070430
3 Importing IV_POSNR Call by reference Type reference (TYPE) POSNR Item number of the SD document 20070502
4 Importing IV_VBELN Call by reference Type reference (TYPE) VBELN Sales and Distribution Document Number 20070502

Method GET_ITEM_SO_SCHED_LINES on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_ITEM_VND_CONF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_VND_CONF Call by reference Type reference (TYPE) INDEX TABLE Vendor Confirmations (EKES) 20070502
2 Exporting ET_ITEM_VND_CONF_EXT Call by reference Type reference (TYPE) TDT_SLS_PUR_VND_CONF Table containing data from the PO & Vendor Confirmations 20070502
3 Exporting ET_ITEM_VND_CONF_EXT_MSG Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
4 Importing IV_BSTAE Call by reference Type reference (TYPE) BSTAE Confirmation Control Key 20070525
5 Importing IV_EBELN Call by reference Type reference (TYPE) EBELN Sales and Distribution Document Number 20070502
6 Importing IV_EBELP Call by reference Type reference (TYPE) EBELP Item number of the SD document 20070502
7 Importing I_LAST_CONF Call by reference Type reference (TYPE) XFELD Checkbox 20070502

Method GET_ITEM_VND_CONF on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_MATERIAL_AVAILABILITY_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MAT_AVAILABILITY_DATE Call by reference Type reference (TYPE) DATUM Calculated Material availability date 20070522
2 Importing IV_BWART Call by reference Type reference (TYPE) BWART Movement Type (Inventory Management) 20070522
3 Importing IV_ETENR Call by reference Type reference (TYPE) ETENR Delivery Schedule Line Number 20070522
4 Importing IV_FABKL Call by reference Type reference (TYPE) FABKL Factory calendar key 20070530
5 Importing IV_GR_PROC_TIME Call by reference Type reference (TYPE) WEBAZ Good receipt processing time 20070522
6 Importing IV_MAT_DELIVERY_DATE Call by reference Type reference (TYPE) DATUM Date 20070522
7 Importing IV_POSNR Call by reference Type reference (TYPE) POSNR_VA Schedule Line Number 20070522
8 Importing IV_VBELN Call by reference Type reference (TYPE) VBELN Sales and Distribution Document Number 20070522
9 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D Plant value 20070522

Method GET_MATERIAL_AVAILABILITY_DATE on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_OBJECT_IND_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGES Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
2 Exporting EF_DO_POST_FILTER Call by reference Type reference (TYPE) FLAG SD Post-Filtering is required based on PO. 20080606
3 Exporting E_RESULTS Call by reference Type reference (TYPE) TDT_SLS_IND_PO Feeder Class Individual Purchase Requisition Table 20070419
4 Exporting E_RESULTS_CONV Call by reference Type reference (TYPE) CL_O2C_POWL_SLS_PUR=>GX_IND_PO_RESULT_CONV 20081218
5 Importing I_APPLID Call by reference Type reference (TYPE) POWL_APPLID_TY Application ID 20070419
6 Importing I_DATA Call by reference Type reference (TYPE) INDEX TABLE 20070419
7 Importing I_LANGU Call by reference Type reference (TYPE) LANGU SY-LANGU Language Key 20070419
8 Importing I_SELCRIT_VALUES Call by reference Type reference (TYPE) RSPARAMS_TT rsparams Table 20070419
9 Importing I_TYPE Call by reference Type reference (TYPE) POWL_TYPE_TY POWL type ID 20070419
10 Importing I_USERNAME Call by reference Type reference (TYPE) XUSER User name 20070419

Method GET_OBJECT_IND_PO on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.

Method GET_OBJECT_IND_PR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGES Call by reference Type reference (TYPE) POWL_MSG_TTY Message META description 20070814
2 Changing C_DATA Call by reference Type reference (TYPE) INDEX TABLE 20070430
3 Exporting E_RESULTS Call by reference Type reference (TYPE) TDT_SLS_IND_PR Feeder Class Individual Purchase Requisition Table 20070419
4 Exporting E_RESULTS_CONV Call by reference Type reference (TYPE) CL_O2C_POWL_SLS_PUR=>GX_IND_PR_RESULT_CONV 20081218
5 Importing I_APPLID Call by reference Type reference (TYPE) POWL_APPLID_TY Application ID 20070419
6 Importing I_LANGU Call by reference Type reference (TYPE) LANGU SY-LANGU Language Key 20070419
7 Importing I_SELCRIT_VALUES Call by reference Type reference (TYPE) RSPARAMS_TT rsparams Table 20070419
8 Importing I_TYPE Call by reference Type reference (TYPE) POWL_TYPE_TY POWL type ID 20070419
9 Importing I_USERNAME Call by reference Type reference (TYPE) XUSER User name 20070419

Method GET_OBJECT_IND_PR on class CL_O2C_SLS_PUR_CHANGE_MODEL has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 602