cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a file "into SAP"

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

holger_khn
Contributor
0 Kudos

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

Former Member
0 Kudos

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


Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Andrea,

good point about the default folder. I will check if this can be activated as temp-setting by a script.

Much more I like your point to add a button to the GUI to do the job.

But I have no idea how this can be done by scripts.

(My scripts are excetuted as EXCEL-VBA)

best regards, Franz

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Np@all

have a nice day

a