on 12-07-2021 2:25 PM
Hello Experts,
I have a scenario where i need to split long text to multiple columns with respective field in Graphical Calculation views.
Ex: M-68727|Enery Fab| INDIA|Global Products(This long text is coming from STXL table).
Now i need to split like below columns
Material Name Land Business Unit
M-68727 Enery Fab INDIA Global Products
Can anyone please help to achieve this .
Thanks,
Nischal.
Hi,
You can do that by creating 2 more calculated columns (in SQL engine). Using the string functions SUBSTR_BEFORE & SUBSTR_AFTER with delimiter '|', you can derive all your desired columns from the long text as calculated columns.
Follow the steps as below : (all calculated columns should be using SQL engine & can be created in same node)
1. Create calculated column : let's say : TEXT2
SUBSTR_AFTER("STXL_FIELD",'|')
2. Create calculated column : let's say : TEXT3
SUBSTR_AFTER("TEXT2",'|')
3. Now you can create all your desired calculated columns in the same node as below :
MATERIAL :
SUBSTR_BEFORE("STXL_FIELD",'|')
NAME :
SUBSTR_BEFORE("TEXT2",'|')
LAND :
SUBSTR_BEFORE("TEXT3",'|')
BUSINESS_UNIT :
SUBSTR_AFTER("TEXT3",'|')
This will give you the desired output completely graphical way. Hope this helps 🙂
Best Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.