on 07-11-2010 12:13 AM
Hi,
How to call GOS(Generic Object service) attachment (example BMP) into SAP script. In more detail, CAD drawings/ BMP are attached to business documents at GOS level. Actual requirement is that showing/calling drawing/BMP in SAPscript when its business document is called.
Assume each document has one BMP attached at GOS level.
is there any method to call this GOS attachment(BMP) and convert it as BMP and then store it in table STXBITMAPS?. then I can call this into SAPscript and delete it after SAPscript generated/printed.
Let me know if you need any more details..
Appreciate your help.
Thanks,
Siva
Everything is already explained in the forum, here are hints so that you can find these threads:
1) To read GOS attachments, check [Note 927407 - Determining the content of GOS and SAPoffice documents|http://service.sap.com/sap/support/notes/927407]: you must first identify the attachments of the business object using Object Relationship Service (CL_BINARY_RELATION=>READ_LINKS_OF_BINRELS), then you read them using SAP Office (SO_DOCUMENT_READ_API1 function module).
2) Download them as a file onto the application server (if your application runs in background), or on the presentation server (if your application runs in dialog)
3) Then call RSTXLDMC program to upload this file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Sandra.
I missed FM SO_DOCUMENT_READ_API1 in my program. Really it helped me to solve my problem.
I did solve in other way like creating an entry in stxbitmaps by passing binary content of image instead of storing it on Application server and again calling it to the program you mentioned.
Appreciate your prompt reply..
-Siva
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.