Auto-forwarding of LROE records
The automatic batch creation and dispatch uses the same configuration as the LROE monitor, the report /EDGE/RP_TB_LROE_AUTO_ENVIO is provided to launch it. This program supports variants and it is recommended that it is launched in the background as there may be a large number of documents and timeout problems if it is launched online.
To launch it in the background there are two options. The most recommended option is to generate a job with the appropriate variant indicating the ranges of the desired selection fields and have this job run the report in the background.
A second option is to directly execute the report /EDGE/RP_TB_LROE_AUTO_ENVIO from the SE38 or SE80 in the background. To do so, when executing it, the desired ranges and values must be indicated in the selection screen to carry out the execution (this is equivalent to the variant to be used in the job):
We access the selection screen and fill in the following data
Company - Company or range of companies for which to run the report.
Annotation creation date - Date or range of dates on which the annotation was created.
Annotation type - Select between issued or received.
Type of remittance - Select between registration or cancellation.
Subsequently, the report is run in the background
The output device is chosen
Then you have to select when you want to run it. If you want to run the process in the background at the moment, press the button immediately.
Press save.
This generates a job that can be viewed on the SM37:
Once the job is finished, if you access the LROE monitor you will see the annotations in the batches created with their corresponding status after having been sent to the Provincial TAX Agency.
NOTES
The statuses of the annotations that are taken into account to auto-generate batches and send are:
Created - Will include and send the annotations that are in this status in batches of discharge or cancellation.
Included in batch - It will send the annotations that are in this status.
Corrected - Shall include and send the annotations in this status in batches for modification or cancellation.
The batch statuses taken into account for auto-sending are as follows
Batch created - will send those batches in this status whose annotations comply with the creation date selected in the report.
Failed to send - Will resend the batches in this status whose annotations comply with the creation date selected in the report.
The fields in the selection screen refer to the annotations
There is no BAdI to extend the selection screen, therefore no further fields can be added. In case you have this requirement you could create a Z report copy of the standard one and adapt it as you wish.
In the job log you can see whether the execution of the report via the job was successful. However, to see if the batches have been processed, you have to go to transaction SLG1.
Avvale 2024