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 link

Former Member
0 Kudos

Hi,

My Problem is i have two different GOS for two object.

I want to attach all attachment of one GOS to another GOS.

Itried this code but not working.

  • GOS1

wa_obj-objtype = 'BUS2001'. " Ordem de manutenção

wa_obj-objkey = g_OBJ-OBJKEY.

*GOS2

wa_doc-objtype = 'ZGOS'.

wa_doc-objkey = 'Manish'.

G_relationtype = 'ATTA'.

CALL FUNCTION 'BINARY_RELATION_CREATE'

EXPORTING

obj_rolea = wa_doc

obj_roleb = wa_obj

relationtype = G_relationtype

EXCEPTIONS

no_model = 1

internal_error = 2

unknown = 3

OTHERS = 4.

i want to see all attachment of GOS1 to GOS2.

thanks

5 REPLIES 5

0 Kudos

Hi,

This is not solving my problem.

I have created two different GOS for Two different users.

Now i want to merge Attachments added by one user in others..

thanks pls reply......

former_member189059
Active Contributor
0 Kudos

Try using BINARY_RELATION_CREATE_COMMIT instead of BINARY_RELATION_CREATE

0 Kudos

Kris,

You are great.Check the date of thread when it was last updated?

0 Kudos

Thanks..

But there could be others facing the same problem who will find the link next year

Besides.. 2 months ain't that long