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

Create attachment for an Object

0 Likes
1,500

Hello everybody,

in the Transaction AS01 (AS02) there is a button called 'Services for Object". At this place i can create an attachment for an asset in the "Online Mode".

Now i need to create attachments for assets in the <i><b>Background mode</b></i>. There is a 1:1 mapping between filename and asset number. Does anyone have an Idea how this can be done? Any function modules or similar...

Thank you very much in advance

Andrey

5 REPLIES 5
Read only

0 Likes
854

ok, i know a little bit more know...

with this small coding i can create an attachment now in online mode....

DATA: my_object TYPE REF TO cl_gos_manager,

ls_container TYPE REF TO cl_gui_custom_container,

ls_object TYPE borident occurs 0 with header line.

CREATE OBJECT my_object.

ls_object-objkey = '80000000100000010000'.

ls_object-objtype = 'BUS1022'.

append ls_object.

CALL METHOD my_object->start_service_direct

EXPORTING

ip_service = 'PCATTA_CREA'

is_object = ls_object

io_container = ls_container.

commit work.

what i need know is the possibility to set the filename without any dialog.

Any idea?

Read only

0 Likes
854

How does it work without any Dialog?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
854

Look at this sdn blog [Generic object services (GOS) - in Background|/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background]

Regards,

Raymond

Read only

0 Likes
854

But the File attachment is not explained in this Blog.

Read only

0 Likes
854

Experts,

Can you suggest how to set a printer and allow printing of one document at a time . I have documents attached using services for objects.

Awaiting for earliest response

Thanks

Banu