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: 

How to get the content of the GOS attachment in R/3

Former Member
0 Kudos

Hi All,

How to get the content of the GOS attachment in R/3.Please give me the reply as early as possible.

Thanks

7 REPLIES 7

former_member194669
Active Contributor
0 Kudos

Check for class CL_GOS* there you can find lot of classes for your needs.

aRs

0 Kudos

Hi,

I didn't find any method for getting the content of the GOS attachment in binary format.

Please give me the method name or function module name.

In which tables Gos attachments details are stored.

Thanks.

0 Kudos

you can also use FM

BDS_BUSINESSDOCUMENT_GET_TAB

Regards

Raja

former_member194669
Active Contributor
0 Kudos

Saritha,

Please check the following method to get binary data from GOS


is_object-instid = v_bo_id.
is_object-typeid = v_botype.
is_object-catid = 'BO'.

try.
call method cl_binary_relation=>read_links_of_binrel
exporting
is_object = is_object
ip_relation = 'NOTE'                " << select you type may be MESSAGE 
importing
et_links = et_links.


then use

call function 'SREL_GET_NEXT_RELATIONS'
  exporting
    object               = lo_is_object_a
     ROLETYPE             =
      relationtype         = p_reltyp
     MAX_HOPS             = 1
     INCL_APPLRELS        = ' '
     EXCL_ROLES           =
     EXCL_RELATIONS       =
    tables
      links                = lt_links
     ROLES                =
     APPLLINKS            =
   exceptions
     internal_error       = 1
     no_logsys            = 2
     others               = 3


aRs

0 Kudos

Thabks u for response.

I didn't get the binary content of the GOS attachment by using that methods and function modules.

0 Kudos

Thank u for ur response.

I didn't get the binary content of the GOS attachment by using that methods and function modules.

Former Member
0 Kudos

Hi,

Check this link

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-SendingGOSattachmentstoanemailaddress&

Thanks,

Naren