Application Development and Automation 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: 
Read only

Attach Documents to Custom Program Using Generic Object Services

Former Member
0 Likes
1,523

Hi There,

I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.

But When I use that program next time that document attached is not available.

Is there any separate save Class or FM available for saving the document to the specified custom program.

I am using following code in the program,

CLEAR obj.

  • SET OBJECT TYPE TO 'ZGOS'

obj-objtype = objtype.

  • SET OBJECT KEY = REPORT NAME

SELECT SINGLE name

FROM trdir

INTO obj-objkey

WHERE name = sy-repid.

  • CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)

CREATE OBJECT manager

EXPORTING

is_object = obj

EXCEPTIONS

OTHERS = 1.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
722

Check the Naimesh Patel Blog he explain very well

http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

Read only

Former Member
0 Likes
722

Thank you Naimesh,

Using the link provided by you, i explored the solution for the problem.