05-06-2011 8:38 AM
Hallo Gurus,
I need Your help!
Is it possible to use a Gos attachment in a Module Pool?
I have an image on material master data, and I would like to show it on a dynpro (for example with cl_gui_picture).
I have read the attachment with function SO_DOCUMENT_READ_API1 but then I don't know how to use the result.
Can anybody help me?
Thank you very much indeed!
05-10-2011 4:45 AM
Hi Mike,
Can you please elaborate the question a bit more?
Is that you want to know the way a picture is displayed in a screen or is that you want to know how a GOS attachment can be read?
Regards,
Rahul Muraleedharan.
05-10-2011 4:45 AM
Hi Mike,
Can you please elaborate the question a bit more?
Is that you want to know the way a picture is displayed in a screen or is that you want to know how a GOS attachment can be read?
Regards,
Rahul Muraleedharan.
05-12-2011 11:06 AM
Mike Farina wrote:
Is it possible to use a Gos attachment in a Module Pool?
Yes, It is possible to send image as attachment. First of all you have to read image context in binay mode and can be send through the function module SO_DOCUMENT_READ_API1
05-17-2011 10:42 AM
try
CALL FUNCTION 'SO_DOCUMENT_READ_API1
EXPORTING
DOCUMENT_ID = <doc>
FILTER = FILTER
IMPORTING
DOCUMENT_DATA = <DOCUMENT_DATA>
TABLES
OBJECT_HEADER = OBJECT_HEADER
OBJECT_CONTENT = OBJECT_CONTENT
* OBJECT_PARA =
* OBJECT_PARB =
* ATTACHMENT_LIST =
* RECEIVER_LIST =
CONTENTS_HEX = CONTENTS_HEX
EXCEPTIONS
DOCUMENT_ID_NOT_EXIST = 1
OPERATION_NO_AUTHORIZATION = 2
X_ERROR = 3
OTHERS = 4