Often we come across customizations where I wanted to use to create the bulk transaction. But while we were doing this we found that the standard function generates and displays the log after each record processing, while we were looking to display the log at the end of all record processing.
New Stuff: Integrate a specific local menu while Patching
After some R&D I got the solution to suppress the log file display. We all know the processes which get executed in the batch does not show the log file generated. GSERVEUR is the global variable that is used in the batch task to suppress the log file display. Thus this can be used to suppress the log file display while using standard functions. Please refer to the below details.
Global Variable: GSERVEUR
Values:
0: Interactive Mode
1: Batch Mode
We just need to set the value of the GSERVEUR variable to 1 in order to the process will be carried out in batch mode and it will not show any generated log file. Kindly refer to below snippet of code.
Note: Don’t forget to set the GSERVEUR variable value to 0 once the execution get finished.
Also Read:
1) How to generate a Log File
2) Transaction Generation – Validate your changes in Sage X3
3) Purging and Archiving data in Sage ERP X3
4) Add Multiple Web service for same X3 folder
5) Data Integration In X3