Professional Documents
Culture Documents
How To Exclude An Expense From The FI Posting 20180409
How To Exclude An Expense From The FI Posting 20180409
EXTERNAL
TABLE OF CONTENTS
SCENARIO DESCRIPTION ............................................................................................................................................. 3
SOLUTION APPROACH ................................................................................................................................................ 3
HOW TO IDENTIFY THE CBCP CREDIT CARD EXPENSES ................................................................................................ 3
PRE-REQUISITE ........................................................................................................................................................... 4
STEP 1: DETERMINE THE USE CASE ............................................................................................................................. 4
STEP 2: PROCESS THE USE CASE .................................................................................................................................. 4
www.sap.com/contactsap
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National
product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if
any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This
document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be
changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All
forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking
statements, and they should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product
and service names mentioned are the trademarks of their respective companies. See http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
This document is intended to provide an example how the “Use Case” BAdI which is part of SAP Integration with
Concur Solutions can be utilized. BADI_CTE_FIN_POST_USE_CASES is the technical name of the “Use Case” BAdI.
Disclaimer: This document is designed to show a potential option how the required information can be handled in
expense reports coming from Concur using SAP Integration with Concur Solution. This is not a final solution. The
coding shown in this document is just an example and may require customer-specific adjustments. SAP is not
responsible for any errors and will not deliver any support or corrections.
Scenario Description
Let’s assume that you want to exclude CBCP credit card expenses from the FI posting. Let’s further assume that the
payment type CBCP has been setup within SAP Concur for CBCP credit card expenses.
Solution Approach
Excluding CBCP credit card expenses can be done by implementing one of the following 2 BAdIs of the Financial
Integration :
• BADI_CTE_FIN_POST_USE_CASES
• BADI_CTE_FIN_POST_ADJUST_DOC
Implementing the given scenario via BADI_CTE_FIN_POST_ADJUST_DOC requires quite some effort. When the BAdI is
called, SAP’s standard posting logic as well as all the logic of the other Financial Integration BAdIs has already been
executed. Within BADI_CTE_FIN_POST_ADJUST_DOC you will have to identify all posting lines incl. amount and tax
lines which have been created for CBCP credit card expenses.
Implementing the given scenario via BADI_CTE_FIN_POST_USE_CASES is fairly easy and will be explained in this
document. By implementing the « Use Case » BAdI, you can also prevent that SAP Concur’s standard logic is being
executed for the CBCP credit card expenses. Implementations of the « Use Case » BAdI are always split in 2 steps :
• Step 1 « Determine Use Case » (method DETERMINE_USE_CASE): All you have to do in this step is to tell the
system whether a special treatment is required for an expense. You can tell the system that you want to
implement a special treatment for the tax portion of the expense and/or the non-tax portion of the expense.
• Step 2 « Process Use Case » (method PROCESS_USE_CASE): This step is only executed for those expenses that
have been identified in Step 1.
3
Pre-requisite
To be able to use the payment type key when implementing a BAdI of the Financial Integration, you will have to
implement the method MAP_ENTRY_ADDITIONAL_DATA of the BAdI BADI_CTE_FIN_POST_DATA_CHANGE. The
implementation could be as follows:
DATA ls_entry_data LIKE LINE OF et_entry_additional_data.
" determine the report entry payment type key of the expense and
" make the payment type key available for being used in the other BAdIs
ls_entry_data-name = 'REPORT_ENTRY_PAT_KEY'.
ls_entry_data-value = is_entry_data-report_entry_pat_key.
INSERT ls_entry_data INTO TABLE et_entry_additional_data.
FIELD-SYMBOLS:
<ls_add_data> LIKE LINE OF is_entry_data-additional_data.
CLEAR ev_customer_use_case_id.
CLEAR ev_customer_tax_case_id.
IF sy-subrc = 0.
IF <ls_add_data>-value = 'CBCP'.
" non-tax information will be handled in a customer-specific way
ev_customer_use_case_id = 'ZN_EXCL_CC'.
" tax handling will be done in a customer-specific way
ev_customer_tax_case_id = 'ZT_EXCL_CC'.
ENDIF.
ENDIF.
4
posting. But if you also have other customer-specific use cases to consider, then the following coding will exclude the
CBCP expense from posting:
IF is_use_case_admin-use_case_id = 'ZN_EXCL_CC' OR
is_use_case_admin-tax_case_id = 'ZT_EXCL_CC'.
" expense should be excluded from posting => nothing to do
RETURN.
ENDIF.