Hi All,
we have some questions about global variable as below:
Please help us to resolve these doubts regards production connector. quick response will be appreciated.
Regards,
Ankit Gupta
Request clarification before answering.
Hi,
there are two straightforward ways to empty a Global Variable in SAP Digital Manufacturing:
Option 1: Script Task
Add a Script Task to your production process and assign an empty value matching the variable's data type:
Note: Global Variables do not support expressions directly — the reset must be done inside a Script Task, not in a condition expression field.
Option 2: Write Global Variable Service Step
In the Production Process Designer, add a Write Global Variable service step to your automation sequence and set the value to "" (empty string) or 0 depending on the variable's data type. No scripting needed.
A few things to keep in mind:
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You delete a global variable from within the Production Process Designer (the app where you manage your production process design). Here’s how:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @MikeS67 ,
Thanks for response, however the question is once the global variable is defined and it contains the values then how we can empty the global variable without deleting it.
is there any function where we can reset/empty the global variable.
Regards,
Ankit Gupta
You delete a global variable from within the Production Process Designer (the app where you manage your production process design). Here’s how:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.