on 03-26-2014 8:45 PM
Is there a good document describing the syntax and functions available for writing TREX commands used in key figure calculation definitions?
Thanks for any advice on this...
Hi everyone,
You should find this HANA documentation quite useful - most if not all of the TREX commands are identical.
http://help.sap.com/saphelp_hanaplatform/helpdata/en/d7/70825bbb5710148ca7cd47cb086923/content.htm?f...
If you have any trouble with the link, just copy it and paste directly into Internet Explorer.
Regards, Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bob,
S&OP supports all SAP TREX expressions. Unfortunately the TREX expressions wiki is not available externally.If you are SAP internal, you can access the TREX wiki for a list of supported TREX expressions that can be used in calculation expressions;
http://trexweb.wdf.sap.corp:1080/wiki/index.php/TrexExpressions
In general, the following are commonly used in configuration :
Operators : + - * / > < = > = <=
Conditions : IF ISNULL ABS OR AND NOT
Aggregation: SUM, AVG, MIN, MAX
There are plenty of examples in SAP delivered SAPMODEL1 which are sufficient for most projects.
We will document these and more in detail in the Model Help section.
Hope this helps.
Thanks,
Raghav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Raghav.
HANA supports native low level language so code can be written directly in L which is part of LLVM http://www.llvm.org/docs/
Hi Raghav,
Thank you for your kindly information.
I'm extarnal too.
If we can use command increases from below at IBP5.0, please tell us.
-----------------------------------
In general, the following are commonly used in configuration :
Operators : + - * / > < = > = <=
Conditions : IF ISNULL ABS OR AND NOT
Aggregation: SUM, AVG, MIN, MAX
Best Regards,
Masao
I did not find the command list . the posted link in the blog did not work
Can someone point me to correct Help link for TREX command list ?
Are you referring to LScript/LCODE ? ....S&OP Key Figure calculation can be defined as LScript.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vikas - TREX is the 'standard language' S&OP uses in the Key Figure text box (so, different from L Script). I think Bob is asking for syntax documentation on the 'standard language'. I too would be interested in reading said documentation.
Example calling an attribute value (with spaces between single quotes to illustrate distinction from a double quote mark):
PRODID = ' '123' '
I think to call the current time period you use something like this: $$PERIODIDCU$$
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.