SAP ABAP Class CL_PUR_SALESORDER_UTIL (Mapping helper class for Sales Order services)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷ SD-SLS-ES (Application Component) Enterprise Services in Sales
⤷ OPS_SE_SLS (Package) Service Enabling for Sales
⤷ SD-SLS-ES (Application Component) Enterprise Services in Sales
⤷ OPS_SE_SLS (Package) Service Enabling for Sales
Properties
Class | CL_PUR_SALESORDER_UTIL | |
Short Description | Mapping helper class for Sales Order services | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | OPS_SE_SLS | Service Enabling for Sales |
Created | 20070807 | SAP |
Last change | 20100310 | 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_PUR_SALESORDER_UTIL has no interface implemented.
Friends
Class CL_PUR_SALESORDER_UTIL has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | GO_BADI | Static Attribute | Private | Object reference (TYPE REF TO) | BADI_PUR_SALESORDER | Interface for customizing BAdI | 20070821 | ||
2 | GV_AUART | Static Attribute | Private | Type reference (TYPE) | AUART | Sales Document Type | 20070823 | ||
3 | GV_KUNNR_AG | Static Attribute | Private | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070824 | ||
4 | GV_KUNNR_LF | Static Attribute | Private | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070824 | ||
5 | GV_MESSAGE_HEADER | Static Attribute | Private | Type reference (TYPE) | SAPPLCO_BUS_DOC_MESSAGE_HEADER | Business information from the perspective of the sender appl | 20070822 | ||
6 | GV_SPART | Static Attribute | Private | Type reference (TYPE) | SPART | Division | 20070823 | ||
7 | GV_VKORG | Static Attribute | Private | Type reference (TYPE) | VKORG | Sales Organization | 20070823 | ||
8 | GV_VTWEG | Static Attribute | Private | Type reference (TYPE) | VTWEG | Distribution Channel | 20070823 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CHECK_ZTERM | Static method | Public | Method | Check Customer Terms of Payment | 20070808 |
2 | DETERMINE_ORDER_DATA | Static method | Public | Method | Derive Sales Area and Sales Document Type | 20080116 |
3 | GET_BADI | Static method | Private | Method | Get BAdI | 20070821 |
4 | GET_KUNNR | Static method | Public | Method | Determine Customer number | 20070816 |
5 | GET_KUNNR_FROM_STANDARD_ID | Static method | Public | Method | Determine Customer number | 20080116 |
6 | GET_MATNR | Static method | Public | Method | Determine Material Number | 20070810 |
7 | GET_PRODUCT_SUBSTITUTION | Static method | Private | Method | Determine Material substitution | 20070824 |
8 | GET_WERKS | Static method | Public | Method | Get plant | 20070925 |
9 | GET_ZTERM | Static method | Public | Method | Determine Terms of Payment Key | 20070808 |
10 | MAP_PRODUCT_EAN11 | Static method | Private | Method | Map Product Content to ERP EAN11 field | 20070824 |
11 | MAP_STRING_TO_EAN11 | Static method | Private | Method | Map String Content to ERP | 20070920 |
12 | MAP_STRING_TO_ERP_CHAR | Static method | Private | Method | Map String Content to ERP | 20070823 |
13 | SET_KUNNR_SHIP_TO_PARTY | Static method | Public | Method | Set Customer number Ship-to-party | 20070824 |
14 | SET_KUNNR_SOLD_TO_PARTY | Static method | Public | Method | Set Customer number Sold-to-party | 20070824 |
15 | SET_MESSAGE_HEADER | Static method | Public | Method | Set Message Header | 20070822 |
16 | SET_SALESDOCUMENT_TYPE | Static method | Public | Method | Set Sale Document Types | 20070824 |
17 | SET_SALES_ORGANISATION | Static method | Public | Method | Set Sales Organisation, Distribution Channel, Division | 20070824 |
Events
Class CL_PUR_SALESORDER_UTIL has no event.
Types
Class CL_PUR_SALESORDER_UTIL has no local type.
Method Signatures
Method CHECK_ZTERM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20070816 | ||
2 | Importing | IS_CASH_DISCOUNT_TERMS | Call by reference | Type reference (TYPE) | SAPPLCO_CASH_DISCOUNT_TERMS | Proxy Structure (Generated) | 20070808 | ||
3 | Importing | IV_ZTERM | Call by reference | Type reference (TYPE) | DZTERM | Terms of Payment Key | 20070808 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ZTERM_DIFF | 20070808 |
Method DETERMINE_ORDER_DATA 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) | BAPIRET2_T | Return parameter table | 20080116 | ||
2 | Exporting | EV_AUART | Call by reference | Type reference (TYPE) | AUART | Sales Document Type | 20080116 | ||
3 | Exporting | EV_SPART | Call by reference | Type reference (TYPE) | SPART | Division | 20080116 | ||
4 | Exporting | EV_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20080116 | ||
5 | Exporting | EV_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20080116 | ||
6 | Importing | IV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number 1 | 20080116 | ||
7 | Importing | IV_SELLER_PARTY | Call by reference | Type reference (TYPE) | SAPPLCO_EXT_BUSINESS_TRANSACTI | Proxy Structure (Generated) | 20080116 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | DETERMINATION_ERROR | No appropriate entry in EDSDC was found | 20080116 | |
2 | ERROR_IN_BADI_IMPLEMENTATION | Error Message coming from BADI Implementation | 20080116 |
Method GET_BADI Signature
Method GET_BADI on class CL_PUR_SALESORDER_UTIL has no parameter.
Method GET_BADI on class CL_PUR_SALESORDER_UTIL has no exception.
Method GET_KUNNR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20070816 | ||
2 | Exporting | EV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Debitorennummer 1 | 20070816 | ||
3 | Importing | IV_PARTYID | Call by reference | Type reference (TYPE) | SAPPLCO_EXT_BUSINESS_TRANSACTI | Structur of Ext. Party ID | 20070816 | ||
4 | Importing | IV_PARVW | Call by reference | Type reference (TYPE) | PARVW | 'KU' | Partnerrolle | 20070816 | |
5 | Importing | IV_SELLER_PARTY | Call by reference | Type reference (TYPE) | SAPPLCO_EXT_BUSINESS_TRANSACTI | Proxy Structure (Generated) | 20080116 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | PARTY_ERR | Int. partner-id | 20070816 |
Method GET_KUNNR_FROM_STANDARD_ID Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20080116 | ||
2 | Exporting | EV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Debitorennummer 1 | 20080116 | ||
3 | Importing | IV_PARTYID | Call by reference | Type reference (TYPE) | SAPPLCO_EXT_BUSINESS_TRANSACTI | Structur of Ext. Party ID | 20080116 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CONFLICTING_STANDARD_IDS | 20080116 | ||
2 | DUNS_NOT_SUPPORTED | 20080116 | ||
3 | STANDARD_IDS_NOT_SUPPORTED | The transferred standard IDs are not supported | 20080116 | |
4 | STANDARD_ID_NOT_WELL_DEFINED | 20080116 |
Method GET_MATNR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20070816 | ||
2 | Exporting | EV_INT_PRODUCT | Call by reference | Type reference (TYPE) | MATNR | Materialnummer | 20070816 | ||
3 | Importing | IV_EXT_PRODUCT | Call by reference | Type reference (TYPE) | SAPPLCO_BT_DOCUMENT_PRODUCT | Structure of external Product | 20070816 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | MATNR_ERR | Material | 20070810 |
Method GET_PRODUCT_SUBSTITUTION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20070824 | ||
2 | Exporting | EV_INT_PRODUCT | Call by reference | Type reference (TYPE) | MATNR | 20070824 | |||
3 | Importing | IV_EXT_PRODUCT | Call by reference | Type reference (TYPE) | SAPPLCO_BT_DOCUMENT_PRODUCT | 20070824 |
Method GET_PRODUCT_SUBSTITUTION on class CL_PUR_SALESORDER_UTIL has no exception.
Method GET_WERKS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Return parameter table | 20070925 | ||
2 | Exporting | EV_WERKS | Call by reference | Type reference (TYPE) | WERKS_D | Plant | 20070925 | ||
3 | Importing | IV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070925 | ||
4 | Importing | IV_SPART | Call by reference | Type reference (TYPE) | SPART | Division | 20070925 | ||
5 | Importing | IV_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20070925 | ||
6 | Importing | IV_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20070925 |
Method GET_WERKS on class CL_PUR_SALESORDER_UTIL has no exception.
Method GET_ZTERM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRET2_T | Returntabelle | 20070816 | ||
2 | Exporting | EV_ZTERM | Call by reference | Type reference (TYPE) | DZTERM | Terms of Payment Key | 20070808 | ||
3 | Importing | IV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070808 | ||
4 | Importing | IV_SPART | Call by reference | Type reference (TYPE) | SPART | Division | 20070808 | ||
5 | Importing | IV_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20070808 | ||
6 | Importing | IV_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20070808 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ZTERM_ERR | Failure ZTERM | 20070808 |
Method MAP_PRODUCT_EAN11 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) | BAPIRET2_T | Return parameter table | 20070824 | ||
2 | Changing | CV_FLAG_ERROR | Call by reference | Type reference (TYPE) | ABAP_BOOL | Return Flag | 20070824 | ||
3 | Exporting | ES_CONTENT_ERP | Call by reference | Type reference (TYPE) | EAN11 | EAN11 Content | 20070824 | ||
4 | Exporting | EV_SCHEMEAGENCYID | Call by reference | Type reference (TYPE) | SAPPLCO_PRODUCT_INTERNAL_ID-SCHEME_AGENCY_ID | Scheme Agency ID Content | 20070831 | ||
5 | Exporting | EV_SCHEMEID | Call by reference | Type reference (TYPE) | SAPPLCO_PRODUCT_INTERNAL_ID-SCHEME_ID | Scheme Id Content | 20070831 | ||
6 | Importing | IS_CONTENT | Call by reference | Type reference (TYPE) | SAPPLCO_BT_DOCUMENT_PRODUCT | Product Content | 20070824 | ||
7 | Importing | IV_ACTIV_FIELD | Call by reference | Type reference (TYPE) | CHAR1 | Define Field | 20070824 |
Method MAP_PRODUCT_EAN11 on class CL_PUR_SALESORDER_UTIL has no exception.
Method MAP_STRING_TO_EAN11 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) | BAPIRET2_T | Return parameter table | 20070920 | ||
2 | Changing | CV_CONTENT_ERP | Call by reference | Type reference (TYPE) | CLIKE | Content | 20070920 | ||
3 | Changing | CV_FLAG_ERROR | Call by reference | Type reference (TYPE) | ABAP_BOOL | Return Flag | 20070920 | ||
4 | Importing | IV_CONTENT | Call by reference | Type reference (TYPE) | CLIKE | Content | 20070920 | ||
5 | Importing | IV_FIELD_FOR_DDIC_LENGTH | Call by reference | Type reference (TYPE) | DDOBJNAME | Name of ABAP Dictionary Object | 20070920 | ||
6 | Importing | IV_FIELD_FOR_MESSAGE | Call by reference | Type reference (TYPE) | STRING | Message Variable | 20070920 |
Method MAP_STRING_TO_EAN11 on class CL_PUR_SALESORDER_UTIL has no exception.
Method MAP_STRING_TO_ERP_CHAR 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) | BAPIRET2_T | Return parameter table | 20070823 | ||
2 | Changing | CV_CONTENT_ERP | Call by reference | Type reference (TYPE) | CLIKE | Content | 20070823 | ||
3 | Changing | CV_FLAG_ERROR | Call by reference | Type reference (TYPE) | ABAP_BOOL | Return Flag | 20070823 | ||
4 | Importing | IV_CONTENT | Call by reference | Type reference (TYPE) | CLIKE | Content | 20070823 | ||
5 | Importing | IV_FIELD_FOR_DDIC_LENGTH | Call by reference | Type reference (TYPE) | DDOBJNAME | Name of ABAP Dictionary Object | 20070823 | ||
6 | Importing | IV_FIELD_FOR_MESSAGE | Call by reference | Type reference (TYPE) | STRING | Message Variable | 20070823 | ||
7 | Importing | IV_FLAG_USE_EXIT_ALPHA | Call by reference | Type reference (TYPE) | ABAP_BOOL | Use Conversion Exit Alpha Input | 20070823 |
Method MAP_STRING_TO_ERP_CHAR on class CL_PUR_SALESORDER_UTIL has no exception.
Method SET_KUNNR_SHIP_TO_PARTY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070824 |
Method SET_KUNNR_SHIP_TO_PARTY on class CL_PUR_SALESORDER_UTIL has no exception.
Method SET_KUNNR_SOLD_TO_PARTY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number 1 | 20070824 |
Method SET_KUNNR_SOLD_TO_PARTY on class CL_PUR_SALESORDER_UTIL has no exception.
Method SET_MESSAGE_HEADER Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_MESSAGE_HEADER | Call by reference | Type reference (TYPE) | SAPPLCO_BUS_DOC_MESSAGE_HEADER | Business information from the perspective of the sender appl | 20070822 |
Method SET_MESSAGE_HEADER on class CL_PUR_SALESORDER_UTIL has no exception.
Method SET_SALESDOCUMENT_TYPE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_AUART | Call by reference | Type reference (TYPE) | AUART | Sales Document Type | 20070824 |
Method SET_SALESDOCUMENT_TYPE on class CL_PUR_SALESORDER_UTIL has no exception.
Method SET_SALES_ORGANISATION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_SPART | Call by reference | Type reference (TYPE) | SPART | Division | 20070824 | ||
2 | Importing | IV_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20070824 | ||
3 | Importing | IV_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20070824 |
Method SET_SALES_ORGANISATION on class CL_PUR_SALESORDER_UTIL has no exception.
History
Last changed by/on | SAP | 20100310 |
SAP Release Created in | 603 |