Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

Comparing only CST or VAT number(fetched from scanned INVOICE) with CST or VAT number present in SAP any format.

$
0
0

Hi Experts,

 

We are having a tool open text where we scan invoices and fetch the invoice details.

 

now i have to compare the CST/TIN number with CST/TIN number of SAP system.

 

CST/TIN number can be in any format, it can be with w.e.f date or with out w.e.f date in the table field the only thing which can be common between sap and fetched data is the numeric value of CST number...

 

for example...

 

CST or TIN no  in SAP can be like this

DATA: lv_string2 TYPE string VALUE 'TIN NO.12345678910 w.e.f 20.10.2016'. it can be in any format..


and CST/TIN no  fetched from invoice using scanner  can be like this


DATA: lv_string1 TYPE string VALUE 'TIN NO. 12345678910 '.


or


DATA: lv_string1 TYPE string VALUE '12345678910 '.



my requirement is to check the number highlighted as bold is present in the string or field of sap or not.


i tried string operations but not able to find any feasible solution as scanned data can come in any format and sap table can also have data related to CST no and VAT no in any format. The only thing that can be common  between two is the highlighted bold part i.e 12345678910.


so let me know how can i compare the highlighted part.


thank you!!




Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>