SAP ABAP Class CL_FITV_POSTING_UTIL (Util Class for RPRFIN00_40 / RPRPOSTD (PRRW))
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   FI-TV-COS (Application Component) Travel Expenses
     PTRA_ADDON (Package) Travel Management Add-On
Properties
Class CL_FITV_POSTING_UTIL  
Short Description Util Class for RPRFIN00_40 / RPRPOSTD (PRRW)    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PTRA_ADDON   Travel Management Add-On 
Created 20110615   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)
Interfaces
Class CL_FITV_POSTING_UTIL has no interface implemented.
Friends
Class CL_FITV_POSTING_UTIL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_FALSE Constant Private Type reference (TYPE) XFELD ' ' Checkbox 20121025
2 GC_TRUE Constant Private Type reference (TYPE) XFELD 'X' Checkbox 20121025
3 GT_APPEND_INDEX Static Attribute Public Type reference (TYPE) TT_APPEND_INDEX 20130111
4 GT_PTRV_DOC_HD Instance attribute Private Type reference (TYPE) TT_DOC_HD 20121025
5 GT_PTRV_ROT_AWKEY Instance attribute Private Type reference (TYPE) TT_ROT_AWKEY 20121025
6 GT_TEXTPOOL Instance attribute Private See coding Textpool hashtable 20121025
7 GV_NEW_RUNID Instance attribute Private Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
8 GV_RUNID_TO_BE_CANCELLED Instance attribute Private Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
9 IT_BUKRS_POSNR Instance attribute Private See coding 20111031
10 IT_BUKRS_POSNR_MAN Instance attribute Private See coding 20111031
Methods
# Method Level Visibility Method type Description Created on
1 APPEND_TAX_ITEM_CCODE Instance method Public Method 20111031
2 CANCEL_POSTINGS_IN_RUN Instance method Public Method cancel posted documents in posting run 20121025
3 CHECK_APPEND Static method Public Method determine collect category for negative 100 % tax amounts 20110615
4 CHECK_COMPCODE_NO_TAX Static method Public Method changes the hader compcode if no posting lines exist 20110816
5 CHECK_COMPCODE_TAX_LINES Static method Public Method ensures, that header compode is reflected in posting lines 20110816
6 CHECK_RELEVANT Static method Private Method checks, if document is relevant for comp code procdures 20110816
7 CHECK_ROUNDING Static method Public Method rounding of tax amount and base amount for 100% tax 20110615
8 CHECK_TAX_ITEM_CCODE Instance method Public Method 20111031
9 CREATE_POSTING_RUN Instance method Private Method creates a new posting run 20121025
10 DELETE_ALL_DATA Instance method Private Method deletes all data connected with the reversal run 20121025
11 DELETE_NOT_COMMITED_AWREF Instance method Private Method deletes all not posted docs from run 20130521
12 DETERMINE_T706K_DATE Static method Public Method find settlement date to read T706K 20120716
13 GET_NEXT_AWREF Instance method Private Method gets the next reference document number 20121025
14 GET_POSTED_AWREF Instance method Private Method gets posted documents for a trip included also in unposted 20121025
15 GET_STATUS_OF_POSTING_RUN Instance method Private Method gets the status of a posting run 20121025
16 LOCK_ALL_EMPLOYEES Instance method Private Method locks all emplyoees to reset the status 20121025
17 LOCK_POSTING_RUN Instance method Private Method locks a posting run 20121025
18 PREPARE_RETURN Instance method Private Method does a rollback of all previously saved data 20121025
19 RESET_STATUS Instance method Private Method sets the transferred FI status to space 20121025
20 SET_POSTING_RUN_STATUS Instance method Private Method changes the status of a posting run 20121025
21 SUBMIT_POSTING Instance method Private Method calls RPRPOSTD 20121025
22 UNLOCK_ALL_EMPLOYEES Instance method Private Method unlocks all previously locked employees 20121025
23 UNLOCK_POSTING_RUN Instance method Private Method unlocks a posting run 20121025
Events
Class CL_FITV_POSTING_UTIL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_APPEND_INDEX Public See coding 20130111 tt_append_index TYPE SORTED TABLE OF t_append_index WITH UNIQUE KEY ep_line
2 TT_DOC_HD Private See coding 20121025 tt_doc_hd TYPE TABLE OF t_doc_hd
3 TT_ROT_AWKEY Private See coding 20121025 tt_rot_awkey TYPE TABLE OF t_rot_awkey
4 T_AEND Public See coding 20120716 t_aend TYPE TABLE OF ptk11
5 T_APPEND_INDEX Public See coding 20130111 BEGIN OF t_append_index , ep_line TYPE ep_line, END OF t_append_index
6 T_BUKRS_POSNR Private See coding 20111031 BEGIN OF t_bukrs_posnr, posnr TYPE posnr_acc, bukrs TYPE t001-bukrs, END OF t_bukrs_posnr
7 T_DOC_HD Private Type reference (TYPE) PTRV_DOC_HD Transfer Travel -> FI/CO: Header of TRV int. document 20121025
8 T_DOC_TAX_COLLECT Public See coding 20110615 BEGIN OF t_doc_tax_collect. INCLUDE TYPE: ptrv_doc_tax. TYPES: msatz_char TYPE char9, collect_char TYPE char1. TYPES: END OF t_doc_tax_collect
9 T_ROT_AWKEY Private Type reference (TYPE) PTRV_ROT_AWKEY Assignment of Trip Results to Posting Doc. Number and Line 20121025
Method Signatures

Method APPEND_TAX_ITEM_CCODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BUKRS Call by reference Type reference (TYPE) T001-BUKRS Company Code 20111031
2 Importing IV_MAN Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20111031
3 Importing IV_POSNR Call by reference Type reference (TYPE) POSNR_ACC Accounting Document Line Item Number 20111031

Method APPEND_TAX_ITEM_CCODE on class CL_FITV_POSTING_UTIL has no exception.

Method CANCEL_POSTINGS_IN_RUN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RUNID Call by reference Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025

Method CANCEL_POSTINGS_IN_RUN on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_APPEND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning APPEND Value transfer Type reference (TYPE) XFELD Checkbox 20110615
2 Importing I_WA_DOC_TAX_COLLECT Call by reference Type reference (TYPE) T_DOC_TAX_COLLECT 20110615

Method CHECK_APPEND on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_COMPCODE_NO_TAX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_ID_RWIN_HEAD Call by reference Type reference (TYPE) BAPIACHE04 Posting in Accounting: Payroll (header) 20110816
2 Importing I_PTRV_DOC_IT Call by reference Type reference (TYPE) TAB_PTRV_DOC_IT PTRV_DOC_IT as Table Type for Business Add-Ins Travel Expen. 20110816
3 Importing I_PTRV_DOC_TAX Call by reference Type reference (TYPE) TAB_PTRV_DOC_TAX PTRV_DOC_TAX as Tab.Type for Business Add-Ins Travel Expen. 20110823

Method CHECK_COMPCODE_NO_TAX on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_COMPCODE_TAX_LINES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ID_RWIN_HEAD Call by reference Type reference (TYPE) BAPIACHE04 Posting in Accounting: Payroll (header) 20110816
2 Importing I_PTRV_DOC_IT Call by reference Type reference (TYPE) TAB_PTRV_DOC_IT Posting in accounting: General Ledger HR (Item) 20110816
3 Importing I_PTRV_DOC_TAX Call by reference Type reference (TYPE) TAB_PTRV_DOC_TAX PTRV_DOC_TAX as Tab.Type for Business Add-Ins Travel Expen. 20110816
4 Returning R_APPEND Value transfer Type reference (TYPE) XFELD Checkbox 20110816

Method CHECK_COMPCODE_TAX_LINES on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_RELEVANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_HEAD_COMP_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20110816
2 Importing I_PTRV_DOC_IT Call by reference Type reference (TYPE) TAB_PTRV_DOC_IT PTRV_DOC_IT as Table Type for Business Add-Ins Travel Expen. 20110816
3 Returning R_RELEVANT Value transfer Type reference (TYPE) XFELD Checkbox 20110816

Method CHECK_RELEVANT on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_ROUNDING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_TAX_ITEM_OUT Call by reference Type reference (TYPE) RTAX1U38 Tax records and amounts for several codes 20110615

Method CHECK_ROUNDING on class CL_FITV_POSTING_UTIL has no exception.

Method CHECK_TAX_ITEM_CCODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BUKRS Call by reference Type reference (TYPE) T001-BUKRS Company Code 20111031
2 Importing IV_MAN Call by reference Type reference (TYPE) BOOLEAN ABAP_FALSE Boolean Variable (X=True, -=False, Space=Unknown) 20111031
3 Importing IV_POSNR Call by reference Type reference (TYPE) POSNR_ACC Accounting Document Line Item Number 20111031
4 Returning RV_NEW_NECESSARY Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20111031

Method CHECK_TAX_ITEM_CCODE on class CL_FITV_POSTING_UTIL has no exception.

Method CREATE_POSTING_RUN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_ERROR Value transfer Type reference (TYPE) XFELD Checkbox 20121025

Method CREATE_POSTING_RUN on class CL_FITV_POSTING_UTIL has no exception.

Method DELETE_ALL_DATA Signature

Method DELETE_ALL_DATA on class CL_FITV_POSTING_UTIL has no parameter.
Method DELETE_ALL_DATA on class CL_FITV_POSTING_UTIL has no exception.

Method DELETE_NOT_COMMITED_AWREF Signature

Method DELETE_NOT_COMMITED_AWREF on class CL_FITV_POSTING_UTIL has no parameter.
Method DELETE_NOT_COMMITED_AWREF on class CL_FITV_POSTING_UTIL has no exception.

Method DETERMINE_T706K_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_AEND Call by reference Type reference (TYPE) T_AEND history of trip 20120716
2 Returning R_DATE Value transfer Type reference (TYPE) SY-DATUM date to read t706k table 20120716

Method DETERMINE_T706K_DATE on class CL_FITV_POSTING_UTIL has no exception.

Method GET_NEXT_AWREF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_AWREF Value transfer Type reference (TYPE) PTRV_DOC_HD-AWREF Reference document number 20121025
2 Exporting E_ERROR Call by reference Type reference (TYPE) XFELD Checkbox 20121025

Method GET_NEXT_AWREF on class CL_FITV_POSTING_UTIL has no exception.

Method GET_POSTED_AWREF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_DOC_HD_TO_CANCEL Call by reference Type reference (TYPE) TT_DOC_HD 20121025
2 Importing I_PERIO Call by reference Type reference (TYPE) PTRV_PERIO-PERIO 3-Byte field 20121025
3 Importing I_PERNR Call by reference Type reference (TYPE) PTRV_HEAD-PERNR Character field, 8 characters long 20121025
4 Importing I_REINR Call by reference Type reference (TYPE) PTRV_HEAD-REINR Character Field Length = 10 20121025

Method GET_POSTED_AWREF on class CL_FITV_POSTING_UTIL has no exception.

Method GET_STATUS_OF_POSTING_RUN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RUNID Call by reference Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
2 Returning R_STATUS Value transfer Type reference (TYPE) PEVSH-STATUS Status of posting run 20121025

Method GET_STATUS_OF_POSTING_RUN on class CL_FITV_POSTING_UTIL has no exception.

Method LOCK_ALL_EMPLOYEES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_EMPLOYEES Call by reference Type reference (TYPE) TABLE 20121025
2 Returning R_RESULT Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20121025

Method LOCK_ALL_EMPLOYEES on class CL_FITV_POSTING_UTIL has no exception.

Method LOCK_POSTING_RUN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RUNID Call by reference Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
2 Returning R_ERROR Value transfer Type reference (TYPE) XFELD Checkbox 20121025

Method LOCK_POSTING_RUN on class CL_FITV_POSTING_UTIL has no exception.

Method PREPARE_RETURN Signature

Method PREPARE_RETURN on class CL_FITV_POSTING_UTIL has no parameter.
Method PREPARE_RETURN on class CL_FITV_POSTING_UTIL has no exception.

Method RESET_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TRIPS Call by reference Type reference (TYPE) TABLE 20121025
2 Returning R_ERROR Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20121025

Method RESET_STATUS on class CL_FITV_POSTING_UTIL has no exception.

Method SET_POSTING_RUN_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RUNID Call by reference Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
2 Importing I_STATUS Call by reference Type reference (TYPE) PEVSH-STATUS Status of posting run 20121025
3 Returning R_ERROR Value transfer Type reference (TYPE) XFELD Checkbox 20121025

Method SET_POSTING_RUN_STATUS on class CL_FITV_POSTING_UTIL has no exception.

Method SUBMIT_POSTING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_BOOK Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20121025
2 Importing I_CHECK Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20121025

Method SUBMIT_POSTING on class CL_FITV_POSTING_UTIL has no exception.

Method UNLOCK_ALL_EMPLOYEES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_EMPLOYEES Call by reference Type reference (TYPE) TABLE 20121025

Method UNLOCK_ALL_EMPLOYEES on class CL_FITV_POSTING_UTIL has no exception.

Method UNLOCK_POSTING_RUN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_RUNID Call by reference Type reference (TYPE) PEVSH-RUNID Number of Posting Run 20121025
2 Returning R_ERROR Value transfer Type reference (TYPE) XFELD Checkbox 20121025

Method UNLOCK_POSTING_RUN on class CL_FITV_POSTING_UTIL has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in