on 11-27-2013 7:40 AM
Hello,
I have to import files into SAP "data storage" (cv01n).
One step is to select the file.
In script it looks like this:
'Open Browser to select the requested file
Session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSFILES/ssubSCR_MAIN:SAPLCV110:0103/btnPB_FILE_BROWSER").press
'Check in File
Session.findById("wnd[0]/usr/tabsTAB_MAIN/tabpTSFILES/ssubSCR_MAIN:SAPLCV110:0103/btnPB_CHECKIN").press
My questions are:
Is it possible to define the path which the <FILE_BROWSER> will open?
Is there a possibility to define even the filename in advance or even "complete the open command" automatically?
In my script I have all the information available, but the user must navigate in the dialog to the right file and confirm it.
For better comfort, I look for a solution to overcome that.
Is there a "HELP", where I could find something about this topis?
Thanks for reading and thinking, Franz
Hello Franz.
I will check if I can reproduce this sceario in my sandbox System. If yes, then I can send you some USER32 API-coding which can control this FileOpen-dialog.
Have a good day
Holger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I have read your reply in below topic and it's very interesting. I need to help via scripting in my bussines but i'm not so familiar to scripting in shell windows.
I need to add multiple files it can be in loop, but via attached window.
Can you please share code that you mention in last reply, it is probalby what I need.
Thanks,
BR,
Grzegorz
Hi Franz
im not a scripting expert but i give u my view
you can default the folder where you desire configuring the sapgui parameters (of course this will be for everything and not only that transaction...)
and if i would be you, i would enhance that dynpro adding a button linked to a custom transaction that upload automatically the file from the path you want
hope this help
regards
a
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Franz
sorry for the late reply
What i was suggesting it's not a something to be done by scripts but i dirty customization of the dynpro of your standard transaction. (there could be also an enhancement for this that its more sap standard but i have to seek for it...)
Let me know if you want try this path
cheers
a
Hi Andrea,
I think your reply is more in time as I could expect.
I do not have access to dynpro customization.
For me, the only way to improve interaction between user and SAP is the use of scripts.
I appreciate your offer to search for other solutions, but if you didn´t use scripting so far and you do not have a good information source, we should close this topic by now for you. It will cost probably more time for you as you would like to invest and the outcome is quite open.
Thanks a lot for your time, Franz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.