cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Attaching document via script

0 Likes
4,241

Related to my last question...

We attach scanned images to many of our SAP documents via a script.  We know the path name and the filename of the attachment, but we still have to manually find the document in a browse window and confirm it.  Is it possible to have the script attach the scanned image to a given SAP document directly in the script with no user interaction?

Also, is it possible to download all the attachments from a given SAP document to our file server without user interaction?

We are using VBA scripting in Excel for these scripts.

Thanks,

Tyler

View Entire Topic
0 Likes

Hello everyone, I found several and different ways for attach a file using VBA, I looked it for inside sap and also in gpt, in all of them I get stuck in this line:

session.FindById("wnd[0]/shellcont/shell").SelectContextMenuItem "PCATTA_CREA"

And this error message:

Runtime error 619 has occurred:

The Control could not be found by id.

Any ideas? Thanks in advance