Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

How to run a Transaction and pass data from excel file

$
0
0

hello everbody

I want to access to CV01N to upload a file in SAP. but I want to do it by a VBS and put all the necessary data in excel file and run this VBS to read the Excel file and do this Transaction.

As you know in this transaction first it has a initiation. so in first page I can pass data from Excel to SAP by passing data like : name , type , 000, revision

but in the second page of this transaction it ask a description(I am ok with it) and then ask path and name of the file to upload. this make a problem

I have to open a dialog box and find manually the file to upload . I would like to add the path and file name like: c:/data /myfile.txt and put it the same as other data in excel . here is the line related :

session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSMAIN/ssubSCR_MAIN:SAPLCV110:0102/btnPB_FILE_CREATE").press

 

is there any body who know how to change this line to be like:    session. ......= "c:/data /myfile.txt"

Thank you in advance

Mitra


Viewing all articles
Browse latest Browse all 8338

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>