cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments workitem to GOS object

b_deterd2
Active Contributor
0 Kudos

Hi,

I want to copy the attachments in the workflow to the generic object service.

My question is how to go forward. Are there any methods to do this? any FM's?

Any help will be appreciated.

Regards,

Bert

Accepted Solutions (1)

Accepted Solutions (1)

imthiaz_ahmed
Active Contributor
0 Kudos

Use FM SO_OBJECT_READ

Regards, IA

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello friend,

Your answer is a great help in getting a sloution for our client requirement.

can you provide me with another solution. Is it possible to attach list of files in the backgroung mode. Means I will give the file path in the program and it should attach automaticall in the GOS. I dont want to attach manually by clicking Create Attachment ---> then giving the file name in the popup window. If you can provide me this solution That would be a great help for me my dear friend.

Thanks in advance.

Regards

Vara

Former Member
0 Kudos

Hope this hepls you

DATA : manager TYPE REF TO cl_gos_manager,

obj TYPE borident.

obj-objtype = objtype.

obj-objkey = <fs_viqmel>-qmnum.

CREATE OBJECT manager

EXPORTING

IS_OBJECT = obj.

  • IP_NO_COMMIT = 'R'

  • EXCEPTIONS

  • OTHERS = 1.

CALL METHOD manager->START_SERVICE_DIRECT

EXPORTING

IP_SERVICE = 'VIEW_ATTA'

IS_OBJECT = obj

EXCEPTIONS

NO_OBJECT = 1

OBJECT_INVALID = 2

EXECUTION_FAILED = 3

OTHERS = 4.

or use this FM 'GOS_ATTACHMENT_LIST_POPUP'

martin_nooteboom
Active Contributor
0 Kudos

Hi Bert,

If the attachments are SOFM objects you can use FM BINARY_RELATION_CREATE.

Regards,

Martin