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

Adding attachments

bhargava_dns
Participant
0 Likes
1,084

Hi everyone,

I am new to the ABAP,

my requirement is to upload a pdf file, review the file and delete the file if a new version of the file is available.

please let me know how to approach this requirement.

1 ACCEPTED SOLUTION
Read only

bastinvinoth
Contributor
0 Likes
1,032

Hi bhargava dns

In which SAP transaction would you like to add attachments

Regards,

Bastin.G

9 REPLIES 9
Read only

FredericGirod
Active Contributor
0 Likes
1,032

Hi,

customizing DMS

regards

Fred

ps: if you explain where you would like to put your file, that could be more simple

Read only

0 Likes
1,032

i am currently using this SO_WIND_ATTACHMENT_CREATE_API1  to attach the documents

but the problem with the API is once the documents are uploaded they cannot be deleted.

The documents are getting stored in the DMS

Read only

bastinvinoth
Contributor
0 Likes
1,033

Hi bhargava dns

In which SAP transaction would you like to add attachments

Regards,

Bastin.G

Read only

0 Likes
1,032

its a custom z txn.

Read only

0 Likes
1,032

Hi,

have a look to this documentation, it explains how to use the GOS for a specific program.

http://scn.sap.com/docs/DOC-10131

regards

Fred


Read only

0 Likes
1,032

The above link has solved my purpose.

But in the above mentioned document, for module pool programing for attaching the file a function

create_attach function is mentioned instead of that we have to mention PCATTA_CREA which will solve the purpose.

Read only

Former Member
0 Likes
1,032

Have you tried GOS. Check if it fulfills your requirements. If so, the below link might be of some help to you:

http://scn.sap.com/docs/DOC-33485

Read only

0 Likes
1,032

As i go through the link posted above, it says that the GOS is only available for certain SAP objects,

can i use GOS for my custom Z developments.

Read only

0 Likes
1,032

You could create as many objects as you want ... read the doc http://scn.sap.com/docs/DOC-33485

regards

Fred