on 2008 Jan 09 9:33 PM
My ABAP program creates a Smartform report which I convert to PDF and then use fm SO_NEW_DOCUMENT_ATT_SEND_API1 to send to the user's document folder. I use the NEW_OBJECT_ID parameter to build the object key for fm SAP_WAPI_CREATE_EVENT. Using debug, the correct object id is being passed to the fm and it matches the entry in table SOFM. The wf is started and the pdf is attached to the inbox item. But when I click on the attachment to open it, sometimes it is found, sometimes it is not found, and sometimes it opens the attachment from another wf item. Sometimes, if I close Business Workplace then start it again, the attachment will then be found - but this is not consistent either. Any suggestions? Thanks.
I once had sort of the same problem. Attached a PDF to my workitem, but it was not shown correctly in the business workplace. I manage to workaround this by creating an instance (System.GenericInstantiate) of the SOFM object in my workflow and attached this instance to the workitem.
It has indeed something to do with buffering, but by creating an instance at runtime you won't have any buffering problems.
Regards,
Joost van Poppel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the answer! In Business Workplace, under Settings, Workflow settings, Personal settings, the option "(Double)-clicking on an object displays the object in the same window" must NOT be checked on. If checked, it always redisplays the same document. If unchecked, it displays the selected documents properly.
Thanks to everyone who made suggestions to help resolve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ron,
Please specify the SAP Release you are on.
Thanks,
Ramki Maley.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that it is a intermittent issue. May be you have to refresh the buffer regularly. If it sometimes comes and sometimes does not then it is not a devt issue.
Try to run this report RHWFINDEXRESET periodically in background that refreshes the buffer.
Thanks
Arghadip
Edited by: Arghadip Kar on Jan 10, 2008 4:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
10 | |
9 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.