cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Files to SAP Attachment Folder using SDK

Former Member
0 Kudos

Hello Experts,

I have a requirement of copying the selected file attachment to SAP Attcahment Folder.

Firstly,user will browse and select the File to be attahched and after the file is attached the file path is copied to the text box and then i need to copy that file to the SAP Attachment folder.

How to do this ????

Copying and saving the file to SAP Attachment Folder ?????.

Looking forward for a quick reply.

Thanks

Amit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amit,

If you need it one by one, that is a standard procedure for all attachments under activity. What is your question?

Thanks,

Gordon

Former Member
0 Kudos

Hello Gordon,

My question is that i have created a Customised form their a browse button on click of which i am able to select any document like .txt,.xlsx and the path of the selected file is copied to a textbox and while adding i want to add that sleected file to

get saved in any SAP Attachment Folder like WORDDOCS,EXCELDOC etc.folder .

My main requirement is how to save that selected file to any folder through SDK.

Thanks ,

Amit

Former Member
0 Kudos

You don't need SDK, just use the System.IO library of .NET

File.Copy, File.Move, File.Save,File.Delete - this are the methods you need to use.

You can get the attachment path from the SDK, but other than that you just need to use windows libraries.

Former Member
0 Kudos

One way to get the SAP attachment path is declaring an CompanyService object, e.g.:


SAPbobsCOM.CompanyService ComService = SBO_Company.GetCompanyService();
SAPbobsCOM.PathAdmin oPathAdmin = ComService.GetPathAdmin();

string path = oPathAdmin.AttachmentsFolderPath;

Answers (0)