Skip to Content
author's profile photo Former Member
Former Member

[SAP Script] Recorder doesn't record "import from file - btn[23]" step


I'm a total newbie in SAP script language.

Iu2019m looking for some solution to import txt file with btn[23]. Whole procedure should look like this:

006 click IMPORT FROM FILE u2013 btn[23]

007 paste into textbox filepath "C:\Program lojalnosciowy\klienci.txt" and click OPEN

008 click CONFIRM & LOAD - btn[8]

Recorder doesnu2019t record step 007. Do you know how to fix it? Iu2019ve tried to add this line but I assume that ctxtDY_FILENAME is the wrong textbox name:

007 MySession.findById("wnd[2]/usr/ctxtDY_FILENAME").text = "C:\Program lojalnosciowy\klienci.txt"


IsInput	ID	ScriptCode
START	001	
	002	MySession.findById("wnd[0]/tbar[0]/okcd").text = "ZFOVERDUE"
	003	MySession.findById("wnd[0]").sendVKey 0
	004	MySession.findById("wnd[0]/usr/btn%_DD_KUNNR_%_APP_%-VALU_PUSH").press
	005	MySession.findById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA").select
	006	MySession.findById("wnd[1]/tbar[0]/btn[23]").press
	008	MySession.findById("wnd[1]/tbar[0]/btn[8]").press

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 19, 2011 at 05:00 PM

    Hi shyha777

    are you trying to "Script - Record" a Windows-Dialog ?


    Thomas Br

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Script Man

      Thank you for the link. As I mentioned before - I'm a total newbie. I'm not shure what I should insert in the code? VBS script?

      P.S. Could you recommend me some literature, e-books or online tutorials regarding SAP script?

      Edited by: shyha777 on Aug 20, 2011 9:21 PM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.