Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

gos attachment on a dynpro

Former Member
0 Kudos

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!

1 ACCEPTED SOLUTION

rahul_mb
Active Participant
0 Kudos

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.

3 REPLIES 3

rahul_mb
Active Participant
0 Kudos

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.

ravi_lanjewar
Contributor
0 Kudos

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

koolspy_ultimate
Active Contributor
0 Kudos

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