Archived discussions are read-only. Learn more about SAP Q&A

[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

Not what you were looking for? View more on this topic or Ask a question