Search String for EBS (Electronics bank statement)
Search String for EBS (Electronics bank statement)
Author: N.K. Patel
Thanks to:
My Colleagues Farooq and Rafae for their valuable inputs
Search string basics
- It works only on note to payee line items of EBS statement e.g. Line 86 for MT940 format
- While defining search string leave, mapping field blank if you are using BDC fields
- It is preferable to use external transaction when using BDC fields as in some cases entry doesn’t process by system automatically and we need to do post processing.
Scenario-1: Trading partner update in Inter company GL account
- To ensure trading partner update in intercompany account we had validation, as trading partner is not available at field status level.
- We can’t use substitution as we have user updating different trading partner. We had only one trading partner to be updated for posting thru EBS, so we decide to use search string option.
Update trading partner filed using search string configuration
- Create search string name “BA_009888xxxx” (you can give any name) and in the search string field give below string.
- 009888xxxx
- Delete all mapping values from target field (this you can see in Mapping tab) and save
Go to search string use screen and give below values:
- Company code
- House bank and Account id
- External Transaction (Defined in EBS config.) – NCMZ & – sign
- Interpretation algorithm (Same algorithm which is given in Global settings for EBS configuration) used 000 in our case
- Select search string- BA_009888xxxx
- Target field- EBFKOA1 – BDC1 Account type
- Mapping prefix = 0 (For updating trading partner in First line of GL entry)
- Activate
- Target field- EBFNAM1 – BDC1 Field name
- Mapping prefix = BSEG-VBUND
- Activate
- Target field- EBFVAL1 – BDC1 Field Value
- Mapping prefix = JS1996 (Trading partner value to be updated in 1st line item)
- Activate
Go to search string use screen and give below values:
- Company code
- House bank and Account id
- External Transaction (Defined in EBS config.) – NCMZ & + sign
- Interpretation algorithm (Same algorithm which is given in Global settings for EBS configuration) used 000 in our case
- Select search string- BA_009888xxxx
- Target field- EBFKOA2 – BDC2 Account type
- Mapping prefix = 2 ((For updating trading partner in Second line of GL entry)
- Activate
- Target field- EBFNAM2 – BDC2 Field name
- Mapping prefix = BSEG-VBUND
- Activate
- Target field- EBFVAL2 – BDC2 Field Value
- Mapping prefix = JS1996 (Trading partner value to be updated in 2nd line item)
- Activate
Sample file used
:20:1205210436049763
:21:1205210436049763
:25:960001xxxx
:28C:1/1
:60F:C110928USD0,
:61:1205210711CD1265,NCMZ00098883788//IA009995999063
:86:CONTROLLED DISBURSEMENT VAN WERT FUNDING FROM 009888xxxx
:61:1205210711DD1265,NCMZ00098883788//IA009995999063
:86:CONTROLLED DISBURSEMENT VAN WERT FUNDING FROM 009888xxxx
:62F:C120521USD0,
:64:C120521USD0,
:65:C120521USD0
Scenario-2: Alternative posting rule for Interbank posting
We have several main accounts which transfer or get fund from one funding account, so we decide to use search string, to identify Account no in note to payee ( item 86 for MT940 format) and based on that system will identify posting rule to be used (each posting rule have same funding account but different main account as contra account)
Drawback of this approach:
- Need to create at least one search string and posting rule for each contra main account
Configuration of EBS Posting rule
- Changed existing posting rule 10 and removed /CONTR-DIS-DB (assigned to 11131200 account) from both rules to avoid direct posting by this rule
- Crated new rule /016 by copying earlier rule /010 and assigned /CONTR-DIS-DB to Debit side in Rule 16
- Assigned new rule /016 to search strings created
Posting rule change using search string configuration
- Create search string name “BA_RULE” (you can give any name) and in the search string field give string: 00000009888xxxx
- Delete all mapping values from target field (this you can see in Mapping tab) and specify /016 (New rule created that will be used in place of Rule /010 specified in configuration)
Go to search string use screen and give below values:
- Company code: 1101
- House bank : WFCON and Account id: DISTR (960001xxxx corresponds to house bank WFCON)
- External Transaction- NMSC & + sign as per requirement
- Interpretation algorithm (Same algorithm which is given in Global settings for EBS configuration)
- Select search string- BA_RULE
- Target field – EBVGINT posting rule
- Tick to Activate
- Mapping prefix- Leave it Blank
Sample EBS file (MT940 format) used
:20:1205030533107242
:21:1205030533107242
:25:960001xxxx
:28C:13/1
:60F:C111102USD0,
:61:1111021102CD1000,00NMSC0009888xxxx//IA009995999089
:86:CONTROLLED DISBURSEMENT VAN WERT FUNDING FROM 00000009888xxxx
:61:1111021102DD700,00NTRF00000375770//IA008589037385
:61:1111021102DD300,00NCHK00000376182//IA008524589028
:62F:C120503USD0,
:64:C120503USD0,
:65:C120503USD0,
References
- http://help.sap.com/saphelp_46c/helpdata/es/af/0a242bc925d311b60f0060b03c2bff/content.htm
- http://help.sap.com/saphelp_46c/helpdata/en/6d/0cdf4b142e11d3963800a0c9426c73/content.htm
- http://scn.sap.com/thread/1478026
- http://scn.sap.com/thread/1980335
Disclaimer:
The knowledge sharing is based on my personal experience, Author is not responsible in any manner for any error or omission, users are requested to refer SAP documentation before taking decision for their project
This is one good area to remove blocks......nice one
Thanks,
Narasimha
Thanks
Pl. share if you worked on any other scenarios
Nk
Very useful - gave me some good ideas for our issues. IThanks!
I will add to this if we have any good scenarios.
Very useful, especially deal with the auto-clearing part of bank reconciliation.
It is a nice work. This is one area where not many have worked.
Regards
Sanil
Hi Nitesh,
It is very useful one and you did a great job. Thanks for sharing your knowledge.
Regards,
Lakshmi S
Thanks Lakshmi
To make blogs Improve in quality and save others time, Appreciate if you can "Rate" every Blog you like.
We all like Movies with Good rating

Hi Nitesch!
Great work! This helps to avoid using the user exit ZXF01U01 in many cases.
Remark on customizing for Scenario-2:
As you write a little bit hidden: It only works with the same alogorithm as in the assignment of the EBS to posting rules:
Interpretation algorithm (Same algorithm which is given in Global settings for EBS configuration)
In case this does not work: Try it with 999 "all interpreation algorithm" instead of the 0 "no interpreation algorithm" as in the example.
Best regards
Stefan
Hi Stefan,
Thanks for your Kind words and Rating
I agree that Algorithm column is bit small. Don't have that system so can't edit blog.
In future will take care.
Warm Regards,
Nitesh
Helps to avoid coding in ZXF01U01! Great documentation on SAP standard, which is stronger as expected.
Good work
Thanks Sam
To make blogs Improve in quality and save others time, Appreciate if you can "Rate" every Blog you like.
Hi Nitesh,
Great Document. I was trying to use this functionality but did not know how to go about it. We use MULTICASH format and not the format that you have used in your example.
Will try to fit in my MULTICASH scenario in this. I want to pass on text supplied by bank in BRS to line item text in the GL. Lets hope I succed in this.
Regards,
Sadhana
Dear Nitesh,
many thanks for sharing this. It helped me really. I did not realize that you can fill in any field (even Z fields) in a document from a bank statement using search strings. I am having a struggle, however. I would like to ask you, whether it is possible to pick values to be filled in dynamically? Let me explain on an example:
I have a Z field "csh flow code" which is filled with values CF## (# representing numbers). Now my search string is as follow:
In note to payee there is this text: example invoice CF12text text text. The search string identifies CF12 as CF## which is correct. No I would need to tell the SAP to fill the field ZZ_FI_CF with the value found in note-to-payee. What works is this:
It means I have to specify every single cash flow code with one search string. So is it possible to somehow set up the search string so that it fills any value that represents this masking CF##??
Thanks a lot.
Regards,
Ondrej
My first screen shot was not uploaded:
Hi Ondrej,
were you able to solve this issue?
Do let me know
Regards,
Sangarsh123 at gmail.com
Hi Sangarsh,
yes I was. You need to create two search strings with the same values but different mapping as per the screenshot below:
So the first search string has no mapping and it is a reference to the field you want to populate and the second one has the mapping you want to achieve.
Regards,
Ondrej
Hi Nitesh,
Great Document. I was trying to use this functionality but did not know how to go about it. We use MT940 format too. Is there a way to identify receipts by customer name in the note to payee field on the bank statement?
Regards,
Andreea
Hi,
My scenario is, once we upload the EBS (camt 53.001.02 xml) via FF_5, accounting document should be posted for Customer payment i.e. Customer A/C Dr. to Bank Incoming A/C.
So now if Bank provide us the SAP Customer Code in the EBS file, how to pick the Customer Code? Do we need to write any search string for the same?
Thanks in advance.
Regards,
Subrata
Is it possible to configure the search string so that it picks an 8 digit or 7 digit customer number? for example there are a number of line 86 lines on the statement file and we want both to picked up and posted to. Here are same examples:
:61:2110061006C60,00NFPSNONREF //5555
:86:/CUS/12345678
:61:2110061006C60,00NFPSNONREF //5123
:86:/CUS/1234567
I have configured the search strings in transaction OTPM to /CUS/######## this works when the customer number is 8 digits but do you know how I can configure the line for both 8 or 7 digits for the customer number?