SAP ABAP Class CL_CFDI_UTILITY_MX (CFDI Digital Invoice MX:Main Functions)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
FI-LOC (Application Component) Localization
⤷
ID-LO-MX (Package) Localization Mexico - CFDI
⤷
⤷
Properties
| Class | CL_CFDI_UTILITY_MX | |
| Short Description | CFDI Digital Invoice MX:Main Functions | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | ID-LO-MX | Localization Mexico - CFDI |
| Created | 20130808 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_CFDI_UTILITY_MX has no forward declaration.
Interfaces
Class CL_CFDI_UTILITY_MX has no interface implemented.
Friends
Class CL_CFDI_UTILITY_MX has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | DLVUNIT | 'SAP_BASIS' | Software Component | 20131203 | ||
| 2 | Constant | Public | Type reference (TYPE) | SPRAS | 'E' | Language Key | 20131203 | ||
| 3 | Constant | Public | Type reference (TYPE) | I | 255 | 20131203 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Build Digest Value | 20131203 | |
| 2 | Static method | Public | Method | Build File Path | 20131203 | |
| 3 | Static method | Public | Method | Build the serail number string | 20131203 | |
| 4 | Static method | Public | Method | Build the signed infor string | 20131203 | |
| 5 | Static method | Public | Method | Create blocks for structures in Original input message | 20131203 | |
| 6 | Static method | Public | Method | Create blocks for table types in Original input message | 20131203 | |
| 7 | Static method | Public | Method | Convert to base 64 format | 20131203 | |
| 8 | Static method | Public | Method | Final Cancel Chain Generation | 20131203 | |
| 9 | Static method | Public | Method | Get Certificate Information | 20131203 | |
| 10 | Static method | Public | Method | Get Timestamp in ISO 8601 format | 20131203 | |
| 11 | Static method | Public | Method | Convert date and time to local time (Mexico) | 20131203 | |
| 12 | Static method | Public | Method | Create the Original Input Message for CFDI 3.2 XML Version | 20131203 | |
| 13 | Static method | Public | Method | Get Profile Parameters of Application Server | 20131203 | |
| 14 | Static method | Public | Method | Get PSE Local Path | 20131203 | |
| 15 | Static method | Public | Method | Create xtsring from raw table | 20131203 | |
| 16 | Static method | Public | Method | Prepare Cancellation Request Data (CFDI) | 20131203 | |
| 17 | Static method | Public | Method | Prepare Character Chain data | 20131203 | |
| 18 | Static method | Public | Method | Update the request and response table once IDOC triggered | 20131203 | |
| 19 | Static method | Public | Method | Save Header Texts for Billing Documents | 20131203 | |
| 20 | Static method | Public | Method | Sign the Signed info string | 20131203 |
Events
Class CL_CFDI_UTILITY_MX has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TT_IN_DATA_TABLE | Public | See coding | 20131203 | tt_in_data_table TYPE TABLE OF ssfbin
|
||
| 2 | TT_SSFINFO | Public | See coding | 20131203 | tt_ssfinfo TYPE TABLE OF ssfinfo
|
Method Signatures
Method BUILD_DIGEST_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DIGEST_VALUE | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IV_CODEPAGE | Call by reference | Type reference (TYPE) | CPCODEPAGE | SAP Character Set ID | 20131203 | |||
| 3 | IV_INV_DATE | Call by reference | Type reference (TYPE) | CFDI_DOC_DATE | (1.b) Time Stamp for Moment of Billing (ISO 8601) | 20131203 | |||
| 4 | IV_RFC | Call by reference | Type reference (TYPE) | CFDI_CMPNY_TAX_N | (2.a) Tax Number of Company Code | 20131203 | |||
| 5 | IV_UUID | Call by reference | Type reference (TYPE) | CFDI_UUID | UUID: Unique Identifier | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion Error | 20131203 | ||
| 2 | Error | 20131203 | ||
| 3 | No Operation | 20131203 |
Method BUILD_FILE_PATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALUE | Call by reference | Type reference (TYPE) | CSEQUENCE | 20131203 | ||||
| 2 | IV_FILENAME | Call by reference | Type reference (TYPE) | CSEQUENCE | 20131203 | ||||
| 3 | IV_PATH | Call by reference | Type reference (TYPE) | CSEQUENCE | 20131203 |
Method BUILD_FILE_PATH on class CL_CFDI_UTILITY_MX has no exception.
Method BUILD_SERIALNR_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ISSUER_NAME | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | EV_SERIAL_STRING | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 3 | IV_CERTIFICATE | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 4 | IV_SERIAL_NO | Call by reference | Type reference (TYPE) | STRING | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error | 20131203 |
Method BUILD_SIGNED_INFO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_ORI_SIGNED_INFO_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IV_ENCODE_DIGEST_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 |
Method BUILD_SIGNED_INFO_STRING on class CL_CFDI_UTILITY_MX has no exception.
Method CREATE_BLOCKS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_DATA_POS_CHAIN | Call by reference | Type reference (TYPE) | ANY | 20131203 | ||||
| 2 | IS_BLOCK_DATA | Call by reference | Type reference (TYPE) | ANY | 20131203 | ||||
| 3 | IV_BLOCK_INDEX | Call by reference | Type reference (TYPE) | I | 20131203 | ||||
| 4 | IV_SEPARATOR | Call by reference | Type reference (TYPE) | ANY | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | invalid maintenance of SSF-profile or SSF-parameters | 20131203 | ||
| 2 | data error within a data block | 20131203 |
Method CREATE_NESTED_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_DATA_POS_CHAIN | Call by reference | Type reference (TYPE) | ANY | 20131203 | ||||
| 2 | IS_BLOCK_DATA | Call by reference | Type reference (TYPE) | ANY | 20131203 | ||||
| 3 | IV_SEPARATOR | Call by reference | Type reference (TYPE) | ANY | 20131203 |
Method CREATE_NESTED_TABLE on class CL_CFDI_UTILITY_MX has no exception.
Method ENCODE_BASE64 Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FINAL_CHAIN | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IV_FINAL_CHAIN | Call by reference | Type reference (TYPE) | STRING | 20131203 |
Method ENCODE_BASE64 on class CL_CFDI_UTILITY_MX has no exception.
Method FINAL_CANC_CHAIN_GEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FINAL_CHAIN | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IV_CERTIFICATE | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 3 | IV_CMPNY_TAX_NUM | Call by reference | Type reference (TYPE) | CFDI_CMPNY_TAX_N | (2.a) Tax Number of Company Code | 20131203 | |||
| 4 | IV_ENCODE_DIGEST_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 5 | IV_FECHA | Call by reference | Type reference (TYPE) | CFDI_DOC_DATE | (1.b) Time Stamp for Moment of Billing (ISO 8601) | 20131203 | |||
| 6 | IV_SERIAL_NUMBER | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 7 | IV_SIGNEDINFO_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 8 | IV_UUID | Call by reference | Type reference (TYPE) | CFDI_UUID | UUID: Unique Identifier | 20131203 |
Method FINAL_CANC_CHAIN_GEN on class CL_CFDI_UTILITY_MX has no exception.
Method GET_CERTIFICATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_SIGNER | Call by reference | Type reference (TYPE) | TT_SSFINFO | 20131203 | ||||
| 2 | EV_CERTIFICATE | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 3 | EV_SERIAL_NO | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 4 | EV_VALIDITY_FLAG | Call by reference | Type reference (TYPE) | FLAG | General Flag | 20131203 | |||
| 5 | IS_PSEPROF | Call by reference | Type reference (TYPE) | IDMX_DI_PSEPROF | pse-file and parameter (entities) | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20131203 | |||
| 2 | 20131203 | |||
| 3 | 20131203 | |||
| 4 | 20131203 | |||
| 5 | 20131203 | |||
| 6 | 20131203 | |||
| 7 | 20131203 | |||
| 8 | 20131203 | |||
| 9 | 20131203 |
Method GET_ISO_8601_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | CHAR19 | 19 Characters | 20131203 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | DATUM | Date | 20131203 | |||
| 3 | IV_TIME | Call by reference | Type reference (TYPE) | TIMS | Time | 20131203 | |||
| 4 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | TTZZ-TZONE | Time Zone | 20131203 |
Method GET_ISO_8601_TIMESTAMP on class CL_CFDI_UTILITY_MX has no exception.
Method GET_LOCAL_TIME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ERDAT | Call by reference | Type reference (TYPE) | ERDAT | Date on Which Record Was Created | 20131203 | |||
| 2 | EV_ERZET | Call by reference | Type reference (TYPE) | ERZET | Entry time | 20131203 | |||
| 3 | IV_ERDAT | Call by reference | Type reference (TYPE) | ERDAT | Date on Which Record Was Created | 20131203 | |||
| 4 | IV_ERZET | Call by reference | Type reference (TYPE) | ERZET | Entry time | 20131203 | |||
| 5 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | TTZZ-TZONE | Time Zone | 20131203 |
Method GET_LOCAL_TIME on class CL_CFDI_UTILITY_MX has no exception.
Method GET_ORI_INPUT_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ORI_INPUT_MSG | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IS_DATA_EXTRACT_ORI_IN_MSG | Call by reference | Type reference (TYPE) | CFDI_ORI_IN_MSG_TYPE_MX | CFDI Digital Invoice Mexico:data for Original input message | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | error while creating a data block | 20131203 | ||
| 2 | invalid maintenance of SSF-profile or SSF-parameters | 20131203 | ||
| 3 | data error within a data block | 20131203 | ||
| 4 | error in original input message ( number of blocks ) | 20131203 |
Method GET_PROFILE_SYSPARAM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALUE | Call by reference | Type reference (TYPE) | CSEQUENCE | 20131203 | ||||
| 2 | IV_NAME | Call by reference | Type reference (TYPE) | CSEQUENCE | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SSF Parameter not found | 20131203 |
Method GET_PSE_LOCAL_PATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_PROFILE | Call by reference | Type reference (TYPE) | SSFPARMS-PAB | Private Address Book for SSF | 20131203 | |||
| 2 | IS_PSEPROF | Call by reference | Type reference (TYPE) | IDMX_DI_PSEPROF | pse-file and parameter (entities) | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SSF Parameter not found | 20131203 |
Method GET_XSTRING_FROM_RAW_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_OUT_STRING | Call by reference | Type reference (TYPE) | XSTRING | 20131203 | ||||
| 2 | CV_OUT_STRING_L | Call by reference | Type reference (TYPE) | I | 20131203 | ||||
| 3 | IT_IN_DATA_TABLE | Call by reference | Type reference (TYPE) | TT_IN_DATA_TABLE | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Conversion Error | 20131203 |
Method PREPARE_CANC_REQ_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_HEAD_XVBRK | Call by reference | Type reference (TYPE) | VBRKVB | Reference Structure for XVBRK/YVBRP | 20131203 | |||
| 2 | IT_XKOMV | Call by reference | Type reference (TYPE) | VA_KOMV_T | Table for structure KOMV | 20131203 | |||
| 3 | IT_XVBPA | Call by reference | Type reference (TYPE) | VA_VBPAVB_T | Table for structure VBPAVB | 20131203 | |||
| 4 | IT_XVBRK | Call by reference | Type reference (TYPE) | VBRKVB_T | Reference Structure for XVBRK/YVBRP | 20131203 | |||
| 5 | IT_XVBRP | Call by reference | Type reference (TYPE) | VBRPVB_T | Billing Item Data | 20131203 | |||
| 6 | IV_XVBRK_TABIX | Call by reference | Type reference (TYPE) | SYTABIX | Index of Internal Tables | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error Occured | 20131203 |
Method PREPARE_CHAR_CHAIN_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CFDI_CHAIN_DATA | Call by reference | Type reference (TYPE) | CFDI_CHAIN_TT_MX | Table type for CFDI_CHAIN_MX | 20131203 | |||
| 2 | EV_LEN | Call by reference | Type reference (TYPE) | I | 20131203 | ||||
| 3 | IV_GUID | Call by reference | Type reference (TYPE) | CFDI_GUID | GUID for Character Chain | 20131203 | |||
| 4 | IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20131203 |
Method PREPARE_CHAR_CHAIN_DATA on class CL_CFDI_UTILITY_MX has no exception.
Method REQ_IDOC_UPDATE_STATUS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | VBDKR | Call by reference | Type reference (TYPE) | VBDKR | Document Header View for Billing | 20131203 |
Method REQ_IDOC_UPDATE_STATUS on class CL_CFDI_UTILITY_MX has no exception.
Method SAVE_HEADER_TEXT_SD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131203 | |||
| 2 | IV_CHAIN_VALUE | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 3 | IV_DATAID | Call by reference | Type reference (TYPE) | IDMX_DI_DATAID | Data ID | 20131203 | |||
| 4 | IV_VBELN | Call by reference | Type reference (TYPE) | VBELN | Sales and Distribution Document Number | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error | 20131203 |
Method SIGN_SIGNED_INFO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_SIGNEDINFO_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 2 | IT_SIGNER | Call by reference | Type reference (TYPE) | TT_SSFINFO | 20131203 | ||||
| 3 | IV_CODEPAGE | Call by reference | Type reference (TYPE) | CPCODEPAGE | SAP Character Set ID | 20131203 | |||
| 4 | IV_HASHALG | Call by reference | Type reference (TYPE) | SSFHASH | 20131203 | ||||
| 5 | IV_ORI_SIGNED_INFO_STR | Call by reference | Type reference (TYPE) | STRING | 20131203 | ||||
| 6 | IV_SSFFORMAT | Call by reference | Type reference (TYPE) | IDMX_DI_FORMAT | Format of Digital Signature | 20131203 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20131203 | |||
| 2 | 20131203 | |||
| 3 | 20131203 |
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in |