SAP ABAP Class CL_IM_REXC_PT_SAFT (SAF-T Implementation class for BADI_RE_XC_PT_SAFT)
Hierarchy
☛
EA-FIN (Software Component) EA-FIN
⤷
FI-LOC (Application Component) Localization
⤷
GLO_REFX_PT (Package) Localization Flexible Real Estate Portugal

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_BADI_INTERFACE | Tag Interface for BAdIs | 20131205 |
2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_EX_RPFIEU_REFX | Interface for BAdI: BADI_RPFIEU_REFX | 20131205 |
Properties
Class | CL_IM_REXC_PT_SAFT | |
Short Description | SAF-T Implementation class for BADI_RE_XC_PT_SAFT | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | GLO_REFX_PT | Localization Flexible Real Estate Portugal |
Created | 20130425 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
3 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | IF_BADI_INTERFACE | Tag Interface for BAdIs | 20131205 | ||
2 | IF_EX_RPFIEU_REFX | Interface for BAdI: BADI_RPFIEU_REFX | 20131205 |
Friends
Class CL_IM_REXC_PT_SAFT has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Protected | Type reference (TYPE) | LAND1 | 'PT' | Country Key | 20131205 | |
2 | ![]() |
Constant | Protected | Type reference (TYPE) | REXCPTITEMMETH | '2' | SAFT item line calculation method | 20131205 | |
3 | ![]() |
Constant | Protected | Type reference (TYPE) | REXCPTITEMMETH | '1' | SAFT item line calculation method | 20131205 | |
4 | ![]() |
Constant | Protected | Type reference (TYPE) | REXCPTITEMMETH | ' ' | SAFT item line calculation method | 20131205 | |
5 | ![]() |
Constant | Private | Type reference (TYPE) | CHAR2 | 'FX' | SAFT: Source Module | 20131205 | |
6 | ![]() |
Constant | Private | Type reference (TYPE) | REXCPTPRODMETH | '1' | Product Code Method | 20131205 | |
7 | ![]() |
Constant | Private | Type reference (TYPE) | REXCPTPRODMETH | ' ' | Product Code Method | 20131205 | |
8 | ![]() |
Constant | Private | Type reference (TYPE) | REXCPTPRODMETH | '3' | Product Code Method | 20131205 | |
9 | ![]() |
Constant | Private | Type reference (TYPE) | REXCPTPRODMETH | '2' | Product Code Method | 20131205 | |
10 | ![]() |
Instance attribute | Private | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20131205 | ||
11 | ![]() |
Instance attribute | Private | Type reference (TYPE) | AWKEY | Reference Key buff | 20131205 | ||
12 | ![]() |
Instance attribute | Private | Type reference (TYPE) | BAL_S_LOG | Application Log: Log header data | 20131205 | ||
13 | ![]() |
Instance attribute | Private | Type reference (TYPE) | PTSAFT_MATPRE | SAFT PT : prefix for material numbers | 20131205 | ||
14 | ![]() |
Instance attribute | Private | Type reference (TYPE) | BAL_S_MSG | Application Log: Message Data | 20131205 | ||
15 | ![]() |
Instance attribute | Private | Type reference (TYPE) | TIVEXFITAXMAP | Tax Code Assignment per RE Tax Type/Group | 20131205 | ||
16 | ![]() |
Instance attribute | Private | Type reference (TYPE) | VIRADOC | RE Document Header buff | 20131205 | ||
17 | ![]() |
Instance attribute | Protected | See coding | SAFT: Invoices from SD(summary) | 20131205 | |||
18 | ![]() |
Instance attribute | Protected | See coding | SAFT: Invoices from SD (Header) | 20131205 | |||
19 | ![]() |
Instance attribute | Protected | See coding | SAFT: Invoices from SD (Item) | 20131205 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Private | Method | Generate time stamp string | 20131205 |
2 | ![]() |
Instance method | Private | Method | Get ship from address from Comp Code | 20131205 |
3 | ![]() |
Instance method | Private | Method | Extract document number | 20131205 |
4 | ![]() |
Instance method | Private | Method | Get RE-FX invoice lines | 20131205 |
5 | ![]() |
Instance method | Private | Method | Determine product details | 20131205 |
6 | ![]() |
Instance method | Private | Method | Get revered/reversal invoce/credit memo | 20131205 |
7 | ![]() |
Instance method | Private | Method | Get ship from address from contract | 20131205 |
8 | ![]() |
Instance method | Private | Method | Get FI tax code | 20131205 |
9 | ![]() |
Instance method | Private | Method | Get VAT id for one-time-customers | 20131205 |
10 | ![]() |
Instance method | Private | Method | Get customer address | 20131205 |
11 | ![]() |
Instance method | Private | Method | Read BKPF | 20131205 |
12 | ![]() |
Instance method | Private | Method | Read Contract Condition Information | 20131205 |
13 | ![]() |
Instance method | Private | Method | Read VIRADOCITEM related to VIRAINV | 20131205 |
14 | ![]() |
Instance method | Private | Method | Update SAF-T tables | 20131205 |
Events
Class CL_IM_REXC_PT_SAFT has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | T_R_BUDAT | Private | See coding | Range of date | 20131205 | T_R_BUDAT TYPE RANGE OF D
|
|
2 | T_T_FIEUD_SDINV_I | Private | See coding | Table of FIEUD_SDINV_I | 20131205 | T_T_FIEUD_SDINV_I TYPE TABLE OF FIEUD_SDINV_I
|
Method Signatures
Method _DATE_AND_TIME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ID_DATE | Call by reference | Type reference (TYPE) | DERF | Date in CHAR format | 20131205 | ||
2 | ![]() |
ID_TIME | Call by reference | Type reference (TYPE) | TERF | Time in CHAR Format | 20131205 | ||
3 | ![]() |
RE_STAMP | Value transfer | Type reference (TYPE) | CHAR20 | Time stamp | 20131205 |
Method _DATE_AND_TIME on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_COCD_ADDRES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_ADRNR | Call by reference | Type reference (TYPE) | ADRNR | Address number | 20131205 | ||
2 | ![]() |
RE_ADDRESS | Value transfer | Type reference (TYPE) | BAPI_RE_OBJ_ADDRESS | Address of an RE Object | 20131205 |
Method _GET_COCD_ADDRES on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_DOCNR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_BELNR | Call by reference | Type reference (TYPE) | BELNR_D | Document number | 20131205 | ||
2 | ![]() |
ED_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131205 | ||
3 | ![]() |
ED_GJAHR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year | 20131205 | ||
4 | ![]() |
ID_DOCITEMID | Call by reference | Type reference (TYPE) | RERADOCITEMID | Coded Key of FI Document Item for RE Internal Use | 20131205 |
Method _GET_DOCNR on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_INVOICE_LINES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CS_SF_ADDRESS | Call by reference | Type reference (TYPE) | BAPI_RE_OBJ_ADDRESS | Address of an RE Object | 20131205 | ||
2 | ![]() |
ED_BSEG_DOCNR | Call by reference | Type reference (TYPE) | BELNR_D | Accounting Document Number | 20131205 | ||
3 | ![]() |
ED_BSEG_YEAR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year of Acc document | 20131205 | ||
4 | ![]() |
ED_CREDIT_AMT | Call by reference | Type reference (TYPE) | WERTV13 | Credit Amount per Invoice | 20131205 | ||
5 | ![]() |
ED_DEBIT_AMT | Call by reference | Type reference (TYPE) | WERTV13 | Debit Amount per Invoice | 20131205 | ||
6 | ![]() |
ED_PSTNGDATE | Call by reference | Type reference (TYPE) | RERAPSTNGDATE | Posting Date | 20131205 | ||
7 | ![]() |
ED_PSTNGPERIOD | Call by reference | Type reference (TYPE) | RERAPSTNGPERIOD | Posting Period | 20131205 | ||
8 | ![]() |
ET_SDINV_I | Call by reference | Type reference (TYPE) | T_T_FIEUD_SDINV_I | Invoices from SD module(Item) | 20131205 | ||
9 | ![]() |
ID_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131205 | ||
10 | ![]() |
ID_CC_WAERS | Call by reference | Type reference (TYPE) | WAERS | Comp.Code Currency | 20131205 | ||
11 | ![]() |
ID_EXT_UUID | Call by reference | Type reference (TYPE) | SYSUUID_C | UUID in character form | 20131205 | ||
12 | ![]() |
ID_INVGUID | Call by reference | Type reference (TYPE) | RERAINVGUID | GUID: Unique Internal Key for RE Invoice | 20131205 | ||
13 | ![]() |
ID_INVNO | Call by reference | Type reference (TYPE) | RERAINVNO | Invoice Number | 20131205 | ||
14 | ![]() |
ID_LAND1 | Call by reference | Type reference (TYPE) | LAND1 | Country Key | 20131205 | ||
15 | ![]() |
ID_YEAR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year | 20131205 | ||
16 | ![]() |
IR_BUDAT | Call by reference | Type reference (TYPE) | T_R_BUDAT | Date range | 20131205 | ||
17 | ![]() |
IS_SAFTPAR | Call by reference | Type reference (TYPE) | REXCC_PT_SAFTPAR | SAFT Customizing Parameters (TIVXCPTSAFTPAR) | 20131205 |
Method _GET_INVOICE_LINES on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_PRODUCT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CD_PRODUCTCODE | Call by reference | Type reference (TYPE) | FIEUD_SDINV_I-PRODUCTCODE | Material number | 20131205 | ||
2 | ![]() |
CD_PRODUCTDESC | Call by reference | Type reference (TYPE) | FIEUD_SDINV_I-PRODUCTDESC | Material description | 20131205 | ||
3 | ![]() |
IS_SAFTPAR | Call by reference | Type reference (TYPE) | REXCC_PT_SAFTPAR | SAFT Customizing Parameters | 20131205 | ||
4 | ![]() |
IS_VIRADOCITEM | Call by reference | Type reference (TYPE) | VIRADOCITEM | RE Document Item | 20131205 | ||
5 | ![]() |
IS_VIRAINVITEM | Call by reference | Type reference (TYPE) | VIRAINVITEM | RE Invoice Item | 20131205 |
Method _GET_PRODUCT on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_REVERSE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_REVDOCDATE | Call by reference | Type reference (TYPE) | FKDAT | Posting Date | 20131205 | ||
2 | ![]() |
ED_REVDOCID | Call by reference | Type reference (TYPE) | SFAKN | Reversal Document | 20131205 | ||
3 | ![]() |
ID_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131205 | ||
4 | ![]() |
ID_GJAHR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year | 20131205 | ||
5 | ![]() |
ID_REFDOCID | Call by reference | Type reference (TYPE) | RERAREFDOCID | GUID: Internal Key for Accompanying Reversal Document | 20131205 |
Method _GET_REVERSE on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_SHIP_FROM_ADDRESS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_OBJNR | Call by reference | Type reference (TYPE) | RERAINVOBJNRSINGLE | Object Number of Only Contract of Invoice, Otherwise Blank | 20131205 | ||
2 | ![]() |
RE_ADDRESS | Value transfer | Type reference (TYPE) | BAPI_RE_OBJ_ADDRESS | Address of an RE Object | 20131205 |
Method _GET_SHIP_FROM_ADDRESS on class CL_IM_REXC_PT_SAFT has no exception.
Method _GET_TAX_CODE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_MWSKZ | Value transfer | Type reference (TYPE) | MWSKZ | Sales Tax Code | 20131205 | ||
2 | ![]() |
ID_COUNTRY | Call by reference | Type reference (TYPE) | LAND1 | Country Key | 20131205 | ||
3 | ![]() |
ID_DATE | Call by reference | Type reference (TYPE) | SYDATUM | System Date | 20131205 | ||
4 | ![]() |
ID_TAXGROUP | Call by reference | Type reference (TYPE) | RERATAXGROUP | Tax Group | 20131205 | ||
5 | ![]() |
ID_TAXTYPE | Call by reference | Type reference (TYPE) | RERATAXTYPE | Tax Type | 20131205 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
no_tax_code_found | 20131205 |
Method _GET_VATID Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_STCEG | Call by reference | Type reference (TYPE) | STCEG | VAT id | 20131205 | ||
2 | ![]() |
IV_BELNR | Call by reference | Type reference (TYPE) | BELNR_D | Doc.nr | 20131205 | ||
3 | ![]() |
IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131205 | ||
4 | ![]() |
IV_GJAHR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year | 20131205 |
Method _GET_VATID on class CL_IM_REXC_PT_SAFT has no exception.
Method _READ_ADDRESS_CUSTOMER Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_STCEG | Call by reference | Type reference (TYPE) | STCEG | VAT Registration Number | 20131205 | ||
2 | ![]() |
ED_XCPDK | Call by reference | Type reference (TYPE) | XCPDK | Indicator: Is the account a one-time account? | 20131205 | ||
3 | ![]() |
ES_SADR | Call by reference | Type reference (TYPE) | SADR | Address Management: Company Data | 20131205 | ||
4 | ![]() |
ID_ADDRNUMBER | Call by reference | Type reference (TYPE) | AD_ADDRNUM | Address number | 20131205 | ||
5 | ![]() |
ID_KUNNR | Call by reference | Type reference (TYPE) | KUNNR | Customer Number | 20131205 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
No address | 20131205 |
Method _READ_BKPF Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ES_BKPF | Value transfer | Type reference (TYPE) | BKPF | Accounting Document Header | 20131205 | ||
2 | ![]() |
IV_BELNR | Call by reference | Type reference (TYPE) | BELNR_D | Doc.nr | 20131205 | ||
3 | ![]() |
IV_BUKRS | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131205 | ||
4 | ![]() |
IV_GJAHR | Call by reference | Type reference (TYPE) | GJAHR | Fiscal Year | 20131205 |
Method _READ_BKPF on class CL_IM_REXC_PT_SAFT has no exception.
Method _READ_CONDITION_DATA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ED_QUANTITY | Call by reference | Type reference (TYPE) | MENGE_D | Quantity | 20131205 | ||
2 | ![]() |
ED_UNITOFMEASURE | Call by reference | Type reference (TYPE) | MEINS | Base Unit of Measure | 20131205 | ||
3 | ![]() |
ED_UNITPRICE | Call by reference | Type reference (TYPE) | FIEUD_SDINV_I-UNITPRICE | Unit price | 20131205 | ||
4 | ![]() |
IS_VIRADOCITEM | Call by reference | Type reference (TYPE) | VIRADOCITEM | RE Document Item | 20131205 | ||
5 | ![]() |
IS_VIRAINVITEM | Call by reference | Type reference (TYPE) | VIRAINVITEM | RE Invoice Item | 20131205 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
error_reading_contract | 20131205 | |
2 | ![]() |
no_condition_found | 20131205 | |
3 | ![]() |
no_value_found | 20131205 |
Method _READ_VIRADOCITEM_FOR_VIRAINV Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_VIRADOC | Call by reference | Type reference (TYPE) | RE_T_VIRADOC | RE Document | 20131205 | ||
2 | ![]() |
ET_VIRADOCITEM | Call by reference | Type reference (TYPE) | RE_T_VIRADOCITEM | RE Document Items | 20131205 | ||
3 | ![]() |
ET_VIRAINVITEM | Call by reference | Type reference (TYPE) | RE_T_VIRAINVITEM | RE Invoice Item | 20131205 | ||
4 | ![]() |
ID_INVGUID | Call by reference | Type reference (TYPE) | RERAINVGUID | Invoice GUID | 20131205 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
error_read_viradocitem | 20131205 |
Method _UPDATE_FIEUD_TABLES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ID_CDCHNGIND | Call by reference | Type reference (TYPE) | CDCHNGIND | Change Type (U, I, S, D) | 20131205 |
Method _UPDATE_FIEUD_TABLES on class CL_IM_REXC_PT_SAFT has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in |