Skip to Content
author's profile photo Former Member
Former Member

GOS Image Attachment to send via EMAIL

Hi,

I have a requirement to send GOS "IMAGE" attachment uploaded via QM01/02/03 via email to vendor.

I have used FM 'SO_OBJECT_READ' and i am able to attach image in mail and send.

But my when i open attachment in SOST and via MAIL it is showing No Preview Available.

Please help me here.

I have a urgent requirement.

Thanks,

Riya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Dec 04, 2013 at 03:33 PM

    Hi Riya,

    When do you attach a file using GOS, this file is save on table SRGBTBREL.

    You can use the method DISPLAY_ATTACHMENT of cl_gos_document_service class for display the attached file on GOS.

    Do you can get this file using the method:

    Use this method and FM

    call method cl_binary_relation=>read_links

    exporting

    is_object = gs_lpor

    it_relation_options = lt_relat

    importing

    et_links = t_links.

    MOVE s_links-instid_b TO lv_document_id.

    * Read the data

    CALL FUNCTION 'SO_DOCUMENT_READ_API1'

    EXPORTING

    document_id = lv_document_id

    IMPORTING

    document_data = lwa_document_data

    TABLES

    contents_hex = lt_hex

    object_content = lt_content

    EXCEPTIONS

    document_id_not_exist = 1

    operation_no_authorization = 2

    x_error = 3

    OTHERS = 4.

    Use class for send the email with your attachment(doc, xls, jpeg, etc.)

    cl_document_bcs, cl_bcs,

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2013 at 12:52 PM

    hi riya ,

    Try this link Image in Mail body in ABAP

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2013 at 12:54 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2013 at 12:59 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2013 at 02:45 PM

    Hi,

    I dont want to add image in mail body, rather i want to sent images as attachment via email.

    Can anyone let me know is SO_OBJECT_READ can read image?

    Or do any other FM reads images from Generic Object Services(GOS)?

    Please help here.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2013 at 04:10 PM

    Plase See if this link help.

    http://scn.sap.com/thread/418363

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.