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

cl_gos_manager ,attachment problem

Former Member
0 Likes
3,134

hi all,

using cl_gos_manager ,user can attach files and saving it, when execute the program again attachments are not there, what may be the problem.

hi all,

using cl_gos_manager ,user can attach files and saving it, when execute the program again attachments are not there, what may be the problem.

16 REPLIES 16
Read only

Former Member
0 Likes
2,507

Hi,

Refer to my article in this link:

[Create GOS attachement|http://www.divulgesap.com/blog.php?p=MzA=]

It has a detail procedure on how to attach documents to an Accounting document.

Hope it is useful.

Thanks.

Ravi

Read only

0 Likes
2,507

hello ravi,

1,can first clear this point, once i saved a document with a transaction , when ever i go to that transaction again, will that document attachment will be there?

2. I am doing support now , go through the whole program wil take tme, can you which part of the program responsible for saving the attachment so that it can be viewed even we came out of the transaction and execute it again.

Read only

0 Likes
2,507

Hi,

In the link I had given, BDS_BUSINESSDOCUMENT_CREATEF FM is used to attach documents.

Whenever we attach the document and come back the old documents stay and don't get deleted.

But to use this FM you need to have a business object attached.

Let me know if you need any more details.

Cheers,

Ravi

Read only

0 Likes
2,507

hi ravi,

thanks for you response, from your answer one thing is very sure, that i could save the attachment , even the user execute it again we can able to find the attachments . ( i rwd you pts for this)

i am having business object .

my question is wat kind of parameter or codings i need to set , to save the attachments so that when the user excute it again , he could able to see the attachments .

can you resolve it asap

Read only

0 Likes
2,507

ravi,

one standard program used for creating attachment , so_object upload is been used after 'SOSPLIT_FILE_AND_PATH FM

Read only

0 Likes
2,507

ravi,

create_attachment method of cl_gos_document_service is been used

Read only

0 Likes
2,507

ravi,

i want to know where gt_status table getting populated

and what are all recent notes from SAP for GOS regarding attachments

Read only

0 Likes
2,507

Hi Kiruthika,

You can use the FM BDS_BUSINESSDOCUMENT_CREATEF to create an GOS attachment.

In the link I had provided, you can see the code sample for attaching a document to an accounting document. (BO - BKPF).

Cheers,

Ravi

Read only

0 Likes
2,507

Hi Ravi,

see this is an existing program they have used create_attachment method of cl_gos_document_service , that i dont want to change . now user facing a problem that , though they are saving the attachment ,it is not available when they execute for the same object. hw to resolve it?

Read only

0 Likes
2,507

Hi kiruthika,

Please let me know if you get any solution for this: We have a simliar thing in our system: We use the GOS with own business object to store certain PDF documents as attachment. This works fine. User used the built-in functionality of adding own attachments like i.e. mail documents.

Now a bug was reported that the attachment can be added to the attachment list (visible!) but after leaving transaction it is lost. We found out that, if already an attachments exists, the new attachment does not get lost.

This looks similar to your case.

Regards,

Clemens

Read only

0 Likes
2,507

Hi all,

This is problem is solved by one my collegue , while creating the object for the class cl_gos class , one parameter is there ip_no_commit which needs to be set to 'R' previously it is 'X' .

regards

kiruthika.

Read only

OttoGold
Active Contributor
0 Likes
2,507
Read only

Former Member
0 Likes
2,507

no otto, this is not useful for me, i already read this

Read only

Former Member
0 Likes
2,507

Hi all,

This is problem is solved by one my collegue , while creating the object for the class cl_gos class , one parameter is there ip_no_commit which needs to be set to 'R' previously it is 'X' .

regards

kiruthika.

Read only

0 Likes
2,507

Hi Kirutuka,

I am also facing the same issue.Can you help me in resolving same issue. I am going through the class cl_gos_document_service, but i haven't come accross any parameter ip_no_commit.

In which method this parameter exists.

Inputs are definately rewarded.

Thanks in Advance,

Pavan

Read only

Former Member
0 Likes
2,507

Hi,

I have implemented the attachment service using the cl_gos_manager via context menu on a tree structure.

The create and view attachment works fine.

How do I take a back up of attachments. In which table is the attachment stored ?

Regards,

Nitin