avatar image
Former Member

How to open a file "into SAP"

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

SAP-CV01N.png (24.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 27, 2013 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 05, 2013 at 12:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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


Skip to Content