We have a requirement where an output type triggers an form routine which in turn calls 'VL02N' transaction to create Handling Unit and PGI.
The output type does not allow to call these transactions, so we used call function method to call these transactions.
These call function method can either be called using background task or using destination parameters.
The problems that we occur using a queue is:
1. How to capture the exception?
2. Where commit work should be provided as output type form routine doesn't allow commit work statement also.
3. When to update IDOC status as all these transactions occur sequence in a queue.
But, when used as a queue, time delay occurs and we can't be certain when the complete process of HU and PGI will occur.
Is there any other method apart from these to use call transactions.