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) | Sequence | Operator | Account Ref. |
---|---|---|---|
100101 | 1 | START | 30101 |
100101 | 2 | PLUS | 30102 |
100101 | 3 | MINUS | 30103 |
100101 | 4 | PLUS | 30104 |
100101 | 5 | END |
and we have transaction data (from other table - table name: Transaction Data table):
Account | Year | Amount |
---|---|---|
30101 | 2016 | 10 |
30102 | 2016 | 5 |
30103 | 2016 | 20 |
30104 | 2016 | 30 |
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