‎2007 Dec 20 7:53 AM
Hi Experts,
My doubt is uploading a file from the presentation server, which consists of the fields | Company code | Contract Number | Title of Note | Description |
Depending on the Company code and Contract Number, i want to upload the Title of the Note and its Description into the Transaction RECN.
I heard that there is way to upload the large volumes of Notes...by using Generic Object Services...
Please let me know how to solve this
Thanks in Advance...
Brahma
‎2007 Dec 20 11:46 AM
Hi,
You can do it thru using class CL_GOS*
SE24--> type CL_GOS*
you can find appropriate class
Here is an code for attaching url:
call function 'BDS_BUSINESSDOCUMENT_CREA_URL'
exporting
logical_system = logical_system
classname = classname_select
classtype = classtype_select
client = sy-mandt
object_key = objkey_select
tables
uris = i_uris
exceptions
error_kpro = 1
internal_error = 2
others = 3.
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
class name= BKPF
classtype = BO
object_key = <companycode><doc number><year> e.g 011000001234562007
in uris talbe pass the urls to be created.
Reward points if found helpful...
Cheers,
Chandra Sekhar.
‎2007 Dec 20 11:46 AM
Hi,
You can do it thru using class CL_GOS*
SE24--> type CL_GOS*
you can find appropriate class
Here is an code for attaching url:
call function 'BDS_BUSINESSDOCUMENT_CREA_URL'
exporting
logical_system = logical_system
classname = classname_select
classtype = classtype_select
client = sy-mandt
object_key = objkey_select
tables
uris = i_uris
exceptions
error_kpro = 1
internal_error = 2
others = 3.
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
class name= BKPF
classtype = BO
object_key = <companycode><doc number><year> e.g 011000001234562007
in uris talbe pass the urls to be created.
Reward points if found helpful...
Cheers,
Chandra Sekhar.
‎2007 Dec 20 12:24 PM
Hi chandra sekhar,
Thanks for ur valuable suggestion....
but i havent worked on the classes upto now....
but here in this case i have to upload a file from the presentation server which consists of the fileds as mentioned above....
i had gone through the url
/people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii
but i am not getting clear idea of it.....
if you have an example code.....
i will be very much thankful to you....
please help me out of this....
thanks....!
brahma
‎2008 Jan 07 6:18 PM
Hi,
your example is nice but what's the format of URIS table ?
How create a URI format with a URL ?
Thx
SP.
‎2008 Jan 08 12:05 PM
Creating of notes for me had done by using function module from function group SGOSDS.
Cheers....!
Brahma