cancel
Showing results for 
Search instead for 
Did you mean: 

how to load attachment via scripting in sap excel vba?

0 Kudos

criar-anexo.jpg Guys, with loading files in a certain SAP transaction, example ME23N or ME53N ??? Whenever I try, the windows screen appears in the lines below. session.findById("wnd[0]/titl/shellcont/shell").pressContextButton "%GOS_TOOLBOX" session.findById("wnd[0]/titl/shellcont/shell").selectContextMenuItem "%GOS_PCATTA_CREA" Is there a way around it?

Pessoal, com carregar auquivos em uma determinha transação SAP, exemplo ME23N ou ME53N ??? Sempre que tento surge a tela do windows na linhas abaixo. session.findById("wnd[0]/titl/shellcont/shell").pressContextButton "%GOS_TOOLBOX" session.findById("wnd[0]/titl/shellcont/shell").selectContextMenuItem "%GOS_PCATTA_CREA" Tem como contornar isso?

Sandra_Rossi
Active Contributor
0 Kudos

Please edit your question and format your code with button [CODE], like that:

session.findById("wnd[0]/titl/shellcont/shell").pressContextButton "%GOS_TOOLBOX"
session.findById("wnd[0]/titl/shellcont/shell").selectContextMenuItem "%GOS_PCATTA_CREA"

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

Automating "Windows windows" is not part of SAP GUI Scripting unfortunately. You have to use Windows specific API. You can find solutions in Stack Overflow (indicate your language):

automate key input VBS site:stackoverflow.com

Answers (1)

Answers (1)

0 Kudos

Sandra Rossi, qual seria a solução para este caso poderia ajudar? tem a referencia de algum artigo?