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

URL Attachment

Former Member
0 Likes
2,765

Hi all,

i hope there is someone that can help me.

My question is: i've used in an ABAP custom program the FM SGOS_URL_CREATE_DIALOG: is this the way to create a report that may create me an URL attachment to MM document?

I ask you this because i don't able to create the URL attach in follow report:

report z_attach_url.

tables: ekko.

parameters: p_contr like ekko-ebeln.

parameters: title type sood-objdes.

data: document_id type borident-objkey.

data: is_object type borident occurs 0 with header line.

start-of-selection.

is_object-objkey = p_contr.

is_object-objtype = 'BUS2014'.

append is_object.

call function 'SGOS_URL_CREATE_DIALOG'

exporting

is_object = is_object

ip_title = title

importing

ep_url = document_id.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,340

Hi,

You are missing COMMIT WORK


eport z_attach_url.
tables: ekko.
parameters: p_contr like ekko-ebeln.
parameters: title type sood-objdes.
data: document_id type borident-objkey.
data: is_object type borident occurs 0 with header line.

start-of-selection.
is_object-objkey = p_contr.
is_object-objtype = 'BUS2014'.
append is_object.

call function 'SGOS_URL_CREATE_DIALOG'
exporting
is_object = is_object
ip_title = title
importing
ep_url = document_id.
commit work.  " <<<<<<  Give Commit here <<<<<

a®

6 REPLIES 6
Read only

Former Member
0 Likes
1,340

BUS2014 is for Purchase Contract. are you checking in the same document..??

Read only

0 Likes
1,340

Hi Vijay Babu Dudla,

yes i've to attach an URL to Purchase Contract!

Plese you, do you know how can help me?

Is there any error in my custom report?

Thanks a lots,

Alex

Read only

0 Likes
1,340

what ever you are doing is correct, Try to do a commit after the function call and see..

I am too late. sorry ignore my message

Edited by: Vijay Babu Dudla on Apr 22, 2009 10:57 AM

Read only

0 Likes
1,340

Thanks a lots Vijay Babu Dudla, with commit work i've solved my problem!!!

Bye,

Alex.

Read only

former_member194669
Active Contributor
0 Likes
1,341

Hi,

You are missing COMMIT WORK


eport z_attach_url.
tables: ekko.
parameters: p_contr like ekko-ebeln.
parameters: title type sood-objdes.
data: document_id type borident-objkey.
data: is_object type borident occurs 0 with header line.

start-of-selection.
is_object-objkey = p_contr.
is_object-objtype = 'BUS2014'.
append is_object.

call function 'SGOS_URL_CREATE_DIALOG'
exporting
is_object = is_object
ip_title = title
importing
ep_url = document_id.
commit work.  " <<<<<<  Give Commit here <<<<<

a®

Read only

0 Likes
1,340

Hi a®s ,

thanks a lots, with yuor suggest commit work i've solved my problem!!!

Bye,

Alex.