01-19-2022 10:32 AM - edited 02-04-2024 3:16 AM
Hello!!
We need to create a substitution to replace the value reported in the "Functional Area" field of the Order request.
The derivation is based on the ledger account and the completion of the Cost Center. For example:
Is there any way to add in the logic of the substitution that the termination of the Cost Center is reviewed?
I've tried using *0, but it doesn't work. From SAP they recommended to use the logic [[:digit:]]*0, but what operator should I use? equal to, coincidences,...? None of them work.
Thanks a lot,
Regards.
Hi Alberto,
Check out the matches operator. Find the syntax rules in this link
Matches Operator - SAP Help Portal
Hope it helps,
Regards,
Javier del Peso
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Javier,
Thank you very much for your help. However, our intention is to check only the last digit of the Cost Center, that is, if the Cost Center ID is "XX45364750", we want to check that the Cost Center ends in "0". With the range you mentioned, I understand that it checks "XX4536475", which is useless.
Is there any other alternative?
Thanks,
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Javier,
Finally we have solved it in the following way:
Thank you very much for your assistance.
Regards.
Hi Javier,
Thank you very much for your comments again.
I have tried it and it does not work either, since it checks the entire interval from 0 to 9999999999. In our case we want only the last digit of the cost center to be checked. With the range 0 - 9999999999 all would enter, even those ending in 1, 2, etc.
Thank you very much for your help.
All the best.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alberto,
Not exactly, I will suggest you try with [0-999999999]. The numbers in the brackets represents a range so the expression will check any number between the given range. [0-9] will only check 1 single digit between 0 and 9.
Regards,
Javier del Peso
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alberto,
See this in the help for Ranges in a Self-Defined Set for Single Characters :
I think the right expression would be [0-9999999] for the digits range that you want to check depending on the length of you CC. Replace the number of "9" digits for the actual ones that include your digits excluding the last one.
Regards,
Javier del Peso
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.