#!LOGON AND LAUNCH GP
CheckActiveWin dictionary 'default' form Login window Login
MoveTo field '(L) SQL_DataSource' item 1 # 'Dynamics GP 2010'
ClickHit field '(L) SQL_DataSource' item 1 # 'Dynamics GP 2010'
MoveTo field 'User ID'
TypeTo field 'User ID' , '<USERID>'
MoveTo field Password
TypeTo field Password , '<PASSWORD>'
MoveTo field 'OK Button'
ClickHit field 'OK Button'
NewActiveWin dictionary 'default' form sheLL window sheLL
NewActiveWin dictionary 'default' form sheLL window sheLL
CommandExec dictionary 'default' form 'Command_Purchasing' command 'POP_Batch_Entry'
NewActiveWin dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
#!BATCH POSTING
NewActiveWin dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
ActivateWindow dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
TypeTo field 'Batch Number' , 'FG-130130060004'
MoveTo field Origin item 0
ClickHit field Origin item 1 # 'Receivings Trx Entry'
MoveTo field 'Batch Comment'
MoveTo field 'Post Button'
ClickHit field 'Post Button'
#!BATCH POSTING
NewActiveWin dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
ActivateWindow dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
TypeTo field 'Batch Number' , 'FG-130130080007'
MoveTo field Origin item 0
ClickHit field Origin item 1 # 'Receivings Trx Entry'
MoveTo field 'Batch Comment'
MoveTo field 'Post Button'
ClickHit field 'Post Button'
#!CLOSE AND END
NewActiveWin dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
CloseWindow dictionary 'default' form 'POP_Batch_Entry' window 'POP_Batch_Entry'
NewActiveWin dictionary 'default' form sheLL window sheLL
CommandExec form BuiLtin command cmdQuitApplication