cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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"

SAP SCRIPT CODE:

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

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_brutigam2
Active Participant
0 Kudos

Hi shyha777

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

greets

Thomas Br

Former Member
0 Kudos

hmm....are you sure that is Windows dialog? It has SAP gui colours.

Look: [SAP script dialog|http://opener.cal.pl/sapscript.jpg]

Any workaround for that? My script is much longer and there are a lot of file imports like that 😕

script_man
Active Contributor
0 Kudos

Hi shyha777,

maybe it helps you if you look at the following link:

Regards,

ScriptMan

Former Member
0 Kudos

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