Application Development 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: 

Urgent!! Issue in using Generic Object Services (GOS)

Former Member
0 Kudos

Hello Friends,

I have created a GOS Business object and i am using this to attach documents at the selection screen of my programs.

The implementation is successfull and working fine. When i execute my program, i can see the GOS Toolbar, i am able to upload document from my PC and view in the attachment list too.

But the issue is, when i end my session, and try to see attachment list by executing the program again, it comes blank with no documents. This means, once i end the session, i am not able to see the attachments that i have created earlier.

Any helpful input will be appreciated and rewarded.

Thanks and Regards,

Vikas Bittera.

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Vikas

The document has to be uploaded to the <b>BDS </b>(Business Document Service).

I will give you an example how I did this:

1. Create business object 'ZREPORT'. " for attaching documents to reports

2. Call transaction <b>OAER </b>(Business Document Service) with the following parameters:

- Class name = 'ZREPORT' (my business object)

- Class type = 'BO' (business object)

- Objekt key = leave empty or enter name of report (if empty, a popup appears)

- Storage system = 'BDS_DB' (seemed a good choice to me)

3. Execute

4. In the BDS choose tabstrip "<b>Create</b>" (lower left part of screen). Right-click on the <i>Word document icon </i>and choose<i> Import File</i> from the context menu.

As soon as you have uploaded your Word document it is visible in your business object (attachment list). When you display the attachment list and right-click on the document you can directly open it in the BDS.

Regards

Uwe

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Vikas

The document has to be uploaded to the <b>BDS </b>(Business Document Service).

I will give you an example how I did this:

1. Create business object 'ZREPORT'. " for attaching documents to reports

2. Call transaction <b>OAER </b>(Business Document Service) with the following parameters:

- Class name = 'ZREPORT' (my business object)

- Class type = 'BO' (business object)

- Objekt key = leave empty or enter name of report (if empty, a popup appears)

- Storage system = 'BDS_DB' (seemed a good choice to me)

3. Execute

4. In the BDS choose tabstrip "<b>Create</b>" (lower left part of screen). Right-click on the <i>Word document icon </i>and choose<i> Import File</i> from the context menu.

As soon as you have uploaded your Word document it is visible in your business object (attachment list). When you display the attachment list and right-click on the document you can directly open it in the BDS.

Regards

Uwe

0 Kudos

Hi,

Thanks for your reply. But i have to give the access to the user so that they can create, change and display attachments from the selection screen itself. And everything is working as expected too..

But my problem is, the system does not save the created documents before leaving the transaction.

I checked the SAP Help too.. they also mention the same steps to be followed that i am doing.. but i dont understand what i am missing.

Please give any other info if you have.

Thanks and Best Regards,

Vikas Bittera.