‎2009 Apr 22 3:20 PM
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.
‎2009 Apr 22 3:48 PM
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®
‎2009 Apr 22 3:27 PM
BUS2014 is for Purchase Contract. are you checking in the same document..??
‎2009 Apr 22 3:37 PM
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
‎2009 Apr 22 3:55 PM
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
‎2009 Apr 22 4:02 PM
Thanks a lots Vijay Babu Dudla, with commit work i've solved my problem!!!
Bye,
Alex.
‎2009 Apr 22 3:48 PM
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®
‎2009 Apr 22 4:06 PM
Hi a®s ,
thanks a lots, with yuor suggest commit work i've solved my problem!!!
Bye,
Alex.