the situation is as follows:
Within a Workflow a SAP document needs to be released. During the Workflowprocess the Workflow executes a Business Object method to realese the document. Therefore, being processed within Workflow the UNAME in the change history (tables CDHDR and CDPOS, relevant is table CDHDR) is WF-BATCH.
But the customer would like to have the user's name here, who triggered the BO method for releasing the document.
Just change the field UNAME in table CDHDR as desired via a function module.
Now what is the problem:
Our function module is called within the Workflowprocess and nothing happens with the saved WF-BATCH in the field UNAME of table CDHDR.
But if we run the funtion module seperatly (not within Workflow but with our logged on user) the change to the above field and table works well.
We already checked for all kinds of authority problems, user WF-BATCH already has the authority rights for "SAP ALL".
Thanks in advance to everybody who has an idea for solving our problem!