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 RECA0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 RECA1 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 RECD1 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 MC_COUNTRY Constant Protected Type reference (TYPE) LAND1 'PT' Country Key 20131205
2 MC_INV_DET_VIRADO2 Constant Protected Type reference (TYPE) REXCPTITEMMETH '2' SAFT item line calculation method 20131205
3 MC_INV_DET_VIRADOC Constant Protected Type reference (TYPE) REXCPTITEMMETH '1' SAFT item line calculation method 20131205
4 MC_INV_DET_VIRAINV Constant Protected Type reference (TYPE) REXCPTITEMMETH ' ' SAFT item line calculation method 20131205
5 MC_INV_SOURCE Constant Private Type reference (TYPE) CHAR2 'FX' SAFT: Source Module 20131205
6 MC_PRODMETH_COT_AND_CT Constant Private Type reference (TYPE) REXCPTPRODMETH '1' Product Code Method 20131205
7 MC_PRODMETH_COT_AND_FT Constant Private Type reference (TYPE) REXCPTPRODMETH ' ' Product Code Method 20131205
8 MC_PRODMETH_CT Constant Private Type reference (TYPE) REXCPTPRODMETH '3' Product Code Method 20131205
9 MC_PRODMETH_FT Constant Private Type reference (TYPE) REXCPTPRODMETH '2' Product Code Method 20131205
10 MD_LOG_HANDLE Instance attribute Private Type reference (TYPE) BALLOGHNDL Application Log: Log Handle 20131205
11 MD_OBJ_KEY Instance attribute Private Type reference (TYPE) AWKEY Reference Key buff 20131205
12 MS_LOG Instance attribute Private Type reference (TYPE) BAL_S_LOG Application Log: Log header data 20131205
13 MS_MATPRE Instance attribute Private Type reference (TYPE) PTSAFT_MATPRE SAFT PT : prefix for material numbers 20131205
14 MS_MSG Instance attribute Private Type reference (TYPE) BAL_S_MSG Application Log: Message Data 20131205
15 MS_TIVEXFITAXMAP Instance attribute Private Type reference (TYPE) TIVEXFITAXMAP Tax Code Assignment per RE Tax Type/Group 20131205
16 MS_VIRADOC Instance attribute Private Type reference (TYPE) VIRADOC RE Document Header buff 20131205
17 MT_INVSUMMARY Instance attribute Protected See coding SAFT: Invoices from SD(summary) 20131205
18 MT_SDINV_H Instance attribute Protected See coding SAFT: Invoices from SD (Header) 20131205
19 MT_SDINV_I Instance attribute Protected See coding SAFT: Invoices from SD (Item) 20131205
Methods
# Method Level Visibility Method type Description Created on
1 _DATE_AND_TIME Instance method Private Method Generate time stamp string 20131205
2 _GET_COCD_ADDRES Instance method Private Method Get ship from address from Comp Code 20131205
3 _GET_DOCNR Instance method Private Method Extract document number 20131205
4 _GET_INVOICE_LINES Instance method Private Method Get RE-FX invoice lines 20131205
5 _GET_PRODUCT Instance method Private Method Determine product details 20131205
6 _GET_REVERSE Instance method Private Method Get revered/reversal invoce/credit memo 20131205
7 _GET_SHIP_FROM_ADDRESS Instance method Private Method Get ship from address from contract 20131205
8 _GET_TAX_CODE Instance method Private Method Get FI tax code 20131205
9 _GET_VATID Instance method Private Method Get VAT id for one-time-customers 20131205
10 _READ_ADDRESS_CUSTOMER Instance method Private Method Get customer address 20131205
11 _READ_BKPF Instance method Private Method Read BKPF 20131205
12 _READ_CONDITION_DATA Instance method Private Method Read Contract Condition Information 20131205
13 _READ_VIRADOCITEM_FOR_VIRAINV Instance method Private Method Read VIRADOCITEM related to VIRAINV 20131205
14 _UPDATE_FIEUD_TABLES 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 Importing ID_DATE Call by reference Type reference (TYPE) DERF Date in CHAR format 20131205
2 Importing ID_TIME Call by reference Type reference (TYPE) TERF Time in CHAR Format 20131205
3 Returning 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 Importing IV_ADRNR Call by reference Type reference (TYPE) ADRNR Address number 20131205
2 Returning 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 Exporting ED_BELNR Call by reference Type reference (TYPE) BELNR_D Document number 20131205
2 Exporting ED_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131205
3 Exporting ED_GJAHR Call by reference Type reference (TYPE) GJAHR Fiscal Year 20131205
4 Importing 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 Changing CS_SF_ADDRESS Call by reference Type reference (TYPE) BAPI_RE_OBJ_ADDRESS Address of an RE Object 20131205
2 Exporting ED_BSEG_DOCNR Call by reference Type reference (TYPE) BELNR_D Accounting Document Number 20131205
3 Exporting ED_BSEG_YEAR Call by reference Type reference (TYPE) GJAHR Fiscal Year of Acc document 20131205
4 Exporting ED_CREDIT_AMT Call by reference Type reference (TYPE) WERTV13 Credit Amount per Invoice 20131205
5 Exporting ED_DEBIT_AMT Call by reference Type reference (TYPE) WERTV13 Debit Amount per Invoice 20131205
6 Exporting ED_PSTNGDATE Call by reference Type reference (TYPE) RERAPSTNGDATE Posting Date 20131205
7 Exporting ED_PSTNGPERIOD Call by reference Type reference (TYPE) RERAPSTNGPERIOD Posting Period 20131205
8 Exporting ET_SDINV_I Call by reference Type reference (TYPE) T_T_FIEUD_SDINV_I Invoices from SD module(Item) 20131205
9 Importing ID_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131205
10 Importing ID_CC_WAERS Call by reference Type reference (TYPE) WAERS Comp.Code Currency 20131205
11 Importing ID_EXT_UUID Call by reference Type reference (TYPE) SYSUUID_C UUID in character form 20131205
12 Importing ID_INVGUID Call by reference Type reference (TYPE) RERAINVGUID GUID: Unique Internal Key for RE Invoice 20131205
13 Importing ID_INVNO Call by reference Type reference (TYPE) RERAINVNO Invoice Number 20131205
14 Importing ID_LAND1 Call by reference Type reference (TYPE) LAND1 Country Key 20131205
15 Importing ID_YEAR Call by reference Type reference (TYPE) GJAHR Fiscal Year 20131205
16 Importing IR_BUDAT Call by reference Type reference (TYPE) T_R_BUDAT Date range 20131205
17 Importing 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 Changing CD_PRODUCTCODE Call by reference Type reference (TYPE) FIEUD_SDINV_I-PRODUCTCODE Material number 20131205
2 Changing CD_PRODUCTDESC Call by reference Type reference (TYPE) FIEUD_SDINV_I-PRODUCTDESC Material description 20131205
3 Importing IS_SAFTPAR Call by reference Type reference (TYPE) REXCC_PT_SAFTPAR SAFT Customizing Parameters 20131205
4 Importing IS_VIRADOCITEM Call by reference Type reference (TYPE) VIRADOCITEM RE Document Item 20131205
5 Importing 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 Exporting ED_REVDOCDATE Call by reference Type reference (TYPE) FKDAT Posting Date 20131205
2 Exporting ED_REVDOCID Call by reference Type reference (TYPE) SFAKN Reversal Document 20131205
3 Importing ID_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131205
4 Importing ID_GJAHR Call by reference Type reference (TYPE) GJAHR Fiscal Year 20131205
5 Importing 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 Importing IV_OBJNR Call by reference Type reference (TYPE) RERAINVOBJNRSINGLE Object Number of Only Contract of Invoice, Otherwise Blank 20131205
2 Returning 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 Returning ED_MWSKZ Value transfer Type reference (TYPE) MWSKZ Sales Tax Code 20131205
2 Importing ID_COUNTRY Call by reference Type reference (TYPE) LAND1 Country Key 20131205
3 Importing ID_DATE Call by reference Type reference (TYPE) SYDATUM System Date 20131205
4 Importing ID_TAXGROUP Call by reference Type reference (TYPE) RERATAXGROUP Tax Group 20131205
5 Importing ID_TAXTYPE Call by reference Type reference (TYPE) RERATAXTYPE Tax Type 20131205
# Exception Resumable Description Created on
1 NO_TAX_CODE_FOUND no_tax_code_found 20131205

Method _GET_VATID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing ED_STCEG Call by reference Type reference (TYPE) STCEG VAT id 20131205
2 Importing IV_BELNR Call by reference Type reference (TYPE) BELNR_D Doc.nr 20131205
3 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131205
4 Importing 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 Exporting ED_STCEG Call by reference Type reference (TYPE) STCEG VAT Registration Number 20131205
2 Exporting ED_XCPDK Call by reference Type reference (TYPE) XCPDK Indicator: Is the account a one-time account? 20131205
3 Exporting ES_SADR Call by reference Type reference (TYPE) SADR Address Management: Company Data 20131205
4 Importing ID_ADDRNUMBER Call by reference Type reference (TYPE) AD_ADDRNUM Address number 20131205
5 Importing ID_KUNNR Call by reference Type reference (TYPE) KUNNR Customer Number 20131205
# Exception Resumable Description Created on
1 NO_ADDRESS No address 20131205

Method _READ_BKPF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing ES_BKPF Value transfer Type reference (TYPE) BKPF Accounting Document Header 20131205
2 Importing IV_BELNR Call by reference Type reference (TYPE) BELNR_D Doc.nr 20131205
3 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131205
4 Importing 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 Exporting ED_QUANTITY Call by reference Type reference (TYPE) MENGE_D Quantity 20131205
2 Exporting ED_UNITOFMEASURE Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20131205
3 Exporting ED_UNITPRICE Call by reference Type reference (TYPE) FIEUD_SDINV_I-UNITPRICE Unit price 20131205
4 Importing IS_VIRADOCITEM Call by reference Type reference (TYPE) VIRADOCITEM RE Document Item 20131205
5 Importing IS_VIRAINVITEM Call by reference Type reference (TYPE) VIRAINVITEM RE Invoice Item 20131205
# Exception Resumable Description Created on
1 ERROR_READING_CONTRACT error_reading_contract 20131205
2 NO_CONDITION_FOUND no_condition_found 20131205
3 NO_VALUE_FOUND 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 Exporting ET_VIRADOC Call by reference Type reference (TYPE) RE_T_VIRADOC RE Document 20131205
2 Exporting ET_VIRADOCITEM Call by reference Type reference (TYPE) RE_T_VIRADOCITEM RE Document Items 20131205
3 Exporting ET_VIRAINVITEM Call by reference Type reference (TYPE) RE_T_VIRAINVITEM RE Invoice Item 20131205
4 Importing ID_INVGUID Call by reference Type reference (TYPE) RERAINVGUID Invoice GUID 20131205
# Exception Resumable Description Created on
1 ERROR_READ_DATA error_read_viradocitem 20131205

Method _UPDATE_FIEUD_TABLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing 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