Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

How to compute/calculate based on String?

$
0
0

Hi All -

 

I am working for BPC Embedded Planning BW 7.5.

 

We have z-table having formula maintained (table name: Formula Builder)

Account (Output)SequenceOperatorAccount Ref.
1001011START30101
1001012PLUS30102
1001013MINUS30103
1001014PLUS30104
1001015END

 

and we have transaction data (from other table - table name: Transaction Data table):

AccountYearAmount
30101201610
3010220165
30103201620
30104201630

 

The requirement is to have AMDP with SQL Script to compute Account: 100101 transaction data based on Formula Builder table.

 

And, I have a plan : to create 1 string, and put all the amount including with the arithmetic (plus, minus, multiply, bracket, etc) into the string, and let standard SQL Function to compute, or handle it.

 

e.g. the Account 100101 will be computed: 

100101 = 10 + 5 - 20  + 30

100101 = 25

 

The question is what the standard Function Module, or SQL Command/Syntax to do the computation based on string that I can use in AMDP?

 

Kindly please ask your thought, and advice,

 

Many thanks,
Niel


Viewing all articles
Browse latest Browse all 831

Trending Articles



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