
CONTENTS
- Overview
- Example of Use
- Schedule Register
- Records Processing
- Tables
- Related Topics
01. OVERVIEW
This routine processes all Sales Orders integrated through TOTVS Sales Management and must be previously registered in the Protheus' Schedule.
02. EXAMPLES OF USE
None.
03. SCHEDULE REGISTER
Configurator (SIGACFG) > Environment > Schedule > Schedule
For the integration between TOTVS Sales Management and the Protheus server to occur correctly, you must first register the TGVA002JOB schedule. This JOB is responsible for all processes in the Integrations Processing queue.

04. RECORDS PROCESSING
- When you register the JOB TGVA002JOB in the schedule routine, its processing starts in accordance with the set recurrence term. All records of table Processing Queue Control with Status (Z1_STATUS) equal to zero (waiting for processing).
- When you start processing a record, its status automatically changes to 1 - Processing. If the record is successfully processed, its status changes to 2 - Finished or, in case of error, to 3 - Error.
- When you finish processing the record, a Notification is added for the sales representative entered in the Sales Order.
- The records are prioritized on Date and Time of Receipt.
05. TABLES