I'm creating an instance of CL_GOS_MANAGER and afterwards calling START_SERVICE_DIRECT requesting the attachment list (VIEW_ATTA), in order to create attachments in a custom program. So far so good.
The problem lies in that, when shown inside a container (CL_GUI_CONTAINER subclasses), the behaviour is not entirely correct. Particularily:
- The IP_NO_COMMIT parameter has no effect; although I want the service to handle commits itself (IP_NO_COMMIT = space), it doesn't happen (attachments are lost unless I commit myself).
- The Delete function (trash can button) does not refresh the files list: the deleted file row is not removed. Although the file is indeed deleted because when trying to open by double click it shows a corresponding message. Also on manual refresh, the deleted file is gone. But since the list is not automatically refreshed and not even a message is shown, it would be confusing to the user.
I couldn't replicate those problems when NOT using a container. Since I have yet to see usage with container on standard transactions, I suppose SAP doesn't really use it this way, so this option may have errors.
Did anyone else have the same problems (and possibly found a solution / workaround)?
Thanks!