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

Generic Object Services

Former Member
0 Likes
690

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
577

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.

4 REPLIES 4
Read only

Former Member
0 Likes
578

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.

Read only

0 Likes
577

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

Read only

0 Likes
577

Hi,

your example is nice but what's the format of URIS table ?

How create a URI format with a URL ?

Thx

SP.

Read only

Former Member
0 Likes
577

Creating of notes for me had done by using function module from function group SGOSDS.

Cheers....!

Brahma