Skip to Content

Move GOS attachment from one object to another object.

Hi everyone,

I need to move GOS attatchments from customer object KNA1 general area to sales area (object KNVV) via background ABAP program and there are thousands of them. Here is my strategy:

1) Locate the attachment of object a via cl_binary_relation=>read_link( ) for object a (KNA1).

2) Create attachment to object b (KNVV) in the background.

3) Delete object a via cl_gos_document_services->delete_attachment method.

Only for step 2 to create attachment to object b, can I use cl_binary_relation=>create_link? like this:


call method cl_binary_relation=>create_link


is_object_a = i_object_a

  • ip_logsys_a =

is_object_b = i_object_b

  • ip_logsys_b =

ip_reltype = i_reltype

  • ip_propnam =

  • i_property =


  • ep_link_id =

  • eo_property =



If the answer yes, what is the value of i_object_a, i_object_b, i_reltype to pass to this method?

There is a discussion about link the relationship between 2 objects where i_reltype = 'ASGN'

How to create a relationship between 2 GOS objects


my situation is to move, not to create another link so I do not know if this aproach works.

There is method add_attachment in cl_gos_document_service but it prompt you to upload the file in the foreground and I do not have the file.

Your guidance will be appreciated.

Edited by: Akinosora on Feb 23, 2011 11:12 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Mar 04, 2011 at 05:30 AM

    Problem solved. Thread closed.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 16, 2014 at 01:42 PM

    Hi valerie lee,

    i have a similar requirement to attach refereed PR attachments to PO , while creation in ME21N,but the actual requirement is , the attachment should be shown before save, i.e

    while i press on check do attain it, i am feeling difficult as it doesn't generate PO no before save .

    help required.



    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.