Загрузил solov-artem

EBS configuration of search string

реклама
EBS: configuration of search string, part 1
May 6, 2014 | 9,136 Views |
Bohdan Petrushchak
more by this author
FIN (Finance)
btcebs;mt940posting rulesearch string





share 0
share 0
tweet
share 0
like2
Follow
Hello, SAPers!
Search string represents very useful functionality that is used to enhance the efficiency of standard EBS
interpretation mechanisms. There are different instances when this functionality might be applicable e.g. for
clearing purposes, for filling different fields with input values etc. I think that this functionality is especially
useful for bank statement in MT940 format with unstructured field 86. However, content (both official
documentation and user documents on SCN and similar resources) related to the configuration of this
functionality is limited. Among those limited sources, I would like to recommed a great document on search
string for EBS by Nitesh Patel: Search String for EBS (Electronics bank statement). At the same time, I would
like to share my own experience of search string configuration, which might be useful for some of you.
1) Change of posting rule depending on the fixed text in the line items
Standard functionality of EBS implies that you have performed mapping and assigned external Business
Transaction Codes (hereinafter referred to as BTC codes) to internally defined posting rules. However, some
banks cannot provide you with the list of BTC codes or use just one BTC code for all transactions. For
instance, one of the Ukrainian banks uses BTC code 110 for all operations (however, they do not call it BTC
code, they just say that this is some kind of constant without any business logic behind it:). Nonetheless, this
constant can be used as BTC code. We can assign this BTC code to two internally defined posting rules with
different signs for example:
As you can see, BTC code has been assigned to two posting rules associated with incoming payments
from customers and outgoing payments to vendors. Standard interpretation mechanisms can distinguish
between different transactions depending on the transaction sign from the bank statement and deploy either
one posting rule or another. However, you are limited only to two posting rules and consequently you’ll have
to perform a lot of post processing to post all transactions. Therefore, you’ll have to analyze separate lines of
bank statement and define some patterns that will enable you to apply search string functionality. You can find
an example of line item with commission payments below.
As you can see, note to payee of this line item contains the word “COMMISSION053”. Consequently,
we can use this word for configuration of search string. In order to configure search string use the
transaction OTPM or following menu path:
SPRO → Financial Accounting (new) → Bank Accounting → Business Transactions → Payment
Transactions → Electronic Bank Statement → Define Search String for Electronic Bank Statement.
In this transaction, specify the name of search string e.g. BANK_COM, short description and the content
of search string. Afterwards, go to mapping part of the menu, clear all entries in the column “Target” and write
instead of these entries UA-B, which represents a posting rule for bank charges (please, refer to the figure
below):
In order to test your search string, enter your sampe text (note to payee from bank statement) in
the Entry text box and press the button Test. If you’ve configured search string correctly, it will return the UAB or another configured custom value. Afterwards, go to tab Search string use and add the following entry:
Please, specify on this tab for which combination of company code, house bank and account ID this
posting rule will be applicable. Afterwards, specify 110 (or another BTC code) as external transaction code,
sign of the transaction (positive or negative), as well as interpretation algorithm assigned to target posting rule
(e.g. to posting rule UA-B). In my case, we do not use any algorightms, therefore this field was left blank.
Then specify search string name and “Posting rule” in Target field column. Do not forget to activate check box
active. Leave the columns Mapping prefix and Partner ID blank.
Thus, the logic behind this search string functionality is as follows: when search string finds the word
“COMMISSION053” in the text of note to payee it identifies this transaction as payment of bank commission
and triggers posting rule UA-B that posts bank commission.
2) Identification of business parterns via tax number 2
Short intro: sometimes companies decide to use tax numbers as customers/vendors key. This approach
has its advantage, because normally there should not be another company with the same tax number 1 or 2.
Another advantage is as follows: sometime it is legally required to write your business partern tax number 1 or
2 as requisite of your payment order. For example, in Ukraine there is a legal requirement that payment order
should containt tax number 2 as mandatory requisite.
If house bank provides you with a well standardized bank statement (e.g. in MT940 format with all BTC
codes), standard interpretation algorithms work perfectly and SAP is able to post all mapped transactions
without problem. However, sometime banks apply their own rules (or dialects) that do not comply with
SWIFT MT940 format. For instance, if you analyze structured field 86 in MT940 statement (note to payee)
you should be able to find customer’s/vendor’s bank key and bank account in the subfields 30 and 31
respectively (at least in Ukraine and/or Russia):
However, sometimes banks apply their own rules and their statement look somewhat different e.g. below
you can find sample of MT940 statement from Ukrainian banks. As you can see, customer’s bank account can
be found in the subfield 33 whereas subfield 23 contains bank key and other information (MFO – local
abbreviation for bank key, EDRPOU/OKPO – local reference to tax number 2 etc).
Therefore, if you try to upload bank statement without any changes you will face the similar error:
However, the company uses tax number 2 of customers and vendors as their key. Therefore, in order to
recognize this customer key the following search string has been configured:
Afterwards, the following search string use has been configured on the tab Use of search string:
The combination of company code, house bank and account ID for which this search string will be
applicable was specified. Afterwards 110 was specified as external transaction code and + as transaction sign.
There was no interpretation algorithm assigned to posting rule associated with incoming payments, therefore
the respective column was left blank. Afterwards search string name was specified in the respective column
and “Account number” was chosen in the Target field column. Check box “Active” was activated. The
columns Mapping prefix and Partner ID were left blank.
Thus, the logic behind this search string functionality is as follows: when search string finds the
combination of words “ОКПО ########” in the text of note to payee it identifies ######## as customer key
and triggers posting rule associated with incoming payments that posts this payment directly to customer
account.
I hope this information will be useful for some of you. I also hope that I’ll be able to post another document of search
string definition in the near future. All suggestions are welcome!
Best regards,
The Wirtschaftsmann
P.S. You can find the second document on this topic under the following link: EBS: configuration of search string, part 2
EBS: configuration of search string, part 2
May 17, 2014 | 2,479 Views |
Bohdan Petrushchak
more by this author
FIN (Finance)
bank statementbtcebs;ka01mt940okb9posting rule





share 0
share 0
tweet
share 0
like0
Follow
Hello SAPers!
Here is the second document on configuration of search string functionality. The first document can be
found under this link EBS: configuration of search string, part 1. In this document, I’ll try to explain how we
can use the search string functionality to override the default account assignment of cost elements.
When you post bank commission or other similar expenses via automatic bank statement, you might want
to change the automatic account assignment for these expenses depending on some conditions. For instance, if
you’re configuring the EBS for several house banks you might want to post bank expenses using one cost
element but different cost centers for different house banks. This requirement might be useful for the tracking
of bank expenses of different house banks. Search string for EBS provides a nice functionality that enables you
to meet this requirement.
Let’s first discuss the possibilities of default account assignment for bank related expenses. The first option
is to specify the default assignment directly in master record of cost element in transaction KA01. As you can
see on the picture below, cost center 500 is specified as default cost center for cost element 479000 (“Bank
charge costs”).
Another option to configure the default account assignment is to use the transaction OKB9 e.g. as you can
see from the picture below cost center 200 is assigned to the same cost element. The settings in the transaction
OKB9 override those in the master record of cost elements.
If you configure the settings for several company codes, you can assign different cost centers to the same
cost element depending on the company code. You cannot assign several cost centers for the same cost
element in this transaction. However, you can configure the functionality of search string for EBS that will
override both settings.
Suppose you would like to specify cost center 400 for one of your company codes as default cost centers for
bank expenses. Suppose also that there is a fixed text “COMMISSION” (or some other text) in the text of note
to payee that can be used for configuration of search string. In order to meet the requirement stated above you
have to do the following configuration of search string.
Afterwards, you have to configure the use of search string on the respective tab.
The combination of company code, house bank and account ID for which this search string will be
applicable was specified. Afterwards 004 was specified as external transaction code and + as transaction sign.
There was no interpretation algorithm assigned to posting rule associated with bank charges, therefore the
respective column was left blank. Afterwards search string name was specified in the respective column and
“Cost Center” was chosen in the Target field column. Check box “Active” was activated. The columns
Mapping prefix and Partner ID were left blank.
Thus, the logic behind this search string functionality is as follows: when search string finds the fixed text
“COMMISSION” in the text of note to payee, it triggers the posting rule assigned to the business transaction
code 004 and uses cost center 400 instead of cost centers defined as default in the master record of cost
element or in the transaction OKB9 (screenshot of the financial document that was posted using this
configuration can be found below).
You can find an example of bank statement that was used for the configuration of this functionality below.
The same logic can be configured for overriding the default assignment of business areas and profit centers.
I hope this post will be useful for some of you. All suggestions are welcome.
Скачать