changed FTP server IP for QA environment
This commit is contained in:
@ -601,6 +601,7 @@ Service GetScrapeServerPort()
|
|||||||
|
|
||||||
end service
|
end service
|
||||||
|
|
||||||
|
|
||||||
Service GetTextDataBackupRootDir()
|
Service GetTextDataBackupRootDir()
|
||||||
|
|
||||||
Machine = Environment_Services('GetServer')
|
Machine = Environment_Services('GetServer')
|
||||||
@ -621,8 +622,42 @@ Service GetTextDataBackupRootDir()
|
|||||||
|
|
||||||
end service
|
end service
|
||||||
|
|
||||||
|
|
||||||
|
Service GetSapFtpServerIP()
|
||||||
|
|
||||||
|
If Environment_Services('IsProd') then
|
||||||
|
Response = '172.23.28.185'
|
||||||
|
end else
|
||||||
|
Response = '172.28.127.107'
|
||||||
|
end
|
||||||
|
|
||||||
|
end service
|
||||||
|
|
||||||
|
|
||||||
|
Service GetSapFtpServerUser()
|
||||||
|
|
||||||
|
If Environment_Services('IsProd') then
|
||||||
|
Response = 'prdopeni'
|
||||||
|
end else
|
||||||
|
Response = 'qasopeni'
|
||||||
|
end
|
||||||
|
|
||||||
|
end service
|
||||||
|
|
||||||
|
|
||||||
|
Service GetSapFtpServerPassword()
|
||||||
|
|
||||||
|
If Environment_Services('IsProd') then
|
||||||
|
Response = 'sapprdopeni'
|
||||||
|
end else
|
||||||
|
Response = 'sapqasopeni'
|
||||||
|
end
|
||||||
|
|
||||||
|
end service
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Internal GoSubs
|
// Internal GoSubs
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -76,32 +76,30 @@ end
|
|||||||
|
|
||||||
Main:
|
Main:
|
||||||
|
|
||||||
RepoID = ''
|
RepoID = ''
|
||||||
SAPEnviron = Environment_Services('GetSAPPath')
|
SAPEnviron = Environment_Services('GetSAPPath')
|
||||||
|
FTPServerIP = Environment_Services('GetSapFtpServerIP')
|
||||||
|
FTPUser = Environment_Services('GetSapFtpServerUser')
|
||||||
|
FTPPassWord = Environment_Services('GetSapFtpServerPassword')
|
||||||
|
FTPCapturePath = Environment_Services('GetApplicationRootPath') : '\SAP\FTPFiles\'
|
||||||
|
|
||||||
BEGIN CASE
|
Begin case
|
||||||
CASE SAPEnviron = 'PRD'
|
|
||||||
TransFilePathIn = Environment_Services('GetFTPRootPath') : '\FTP_IN'
|
Case SAPEnviron = 'PRD'
|
||||||
TransFilePathOut = Environment_Services('GetFTPRootPath') : '\FTP_OUT'
|
TransFilePathIn = Environment_Services('GetFTPRootPath') : '\FTP_IN'
|
||||||
FTPScriptPath = Environment_Services('GetFTPRootPath') : '\FTPScript\'
|
TransFilePathOut = Environment_Services('GetFTPRootPath') : '\FTP_OUT'
|
||||||
FTPServerIP = '172.23.28.185' ;* This is the new EU server (sappnfs.eu.infineon.com)
|
FTPScriptPath = Environment_Services('GetFTPRootPath') : '\FTPScript\'
|
||||||
FTPUser = 'prdopeni'
|
|
||||||
FTPPassWord = 'sapprdopeni'
|
|
||||||
FTPCapturePath = Environment_Services('GetApplicationRootPath') : '\SAP\FTPFiles\'
|
|
||||||
|
|
||||||
CASE SAPEnviron = 'QA'
|
Case SAPEnviron = 'QA'
|
||||||
TransFilePathIn = Environment_Services('GetFTPRootPath') : '\FTP_IN_TEST'
|
TransFilePathIn = Environment_Services('GetFTPRootPath') : '\FTP_IN_TEST'
|
||||||
TransFilePathOut = Environment_Services('GetFTPRootPath') : '\FTP_OUT_TEST'
|
TransFilePathOut = Environment_Services('GetFTPRootPath') : '\FTP_OUT_TEST'
|
||||||
FTPScriptPath = Environment_Services('GetFTPRootPath') : '\FTPScript_Test\'
|
FTPScriptPath = Environment_Services('GetFTPRootPath') : '\FTPScript_Test\'
|
||||||
FTPServerIP = '172.28.150.80' ;* IFX EU FTP Server IP address or URL
|
|
||||||
FTPUser = 'qasopeni'
|
|
||||||
FTPPassWord = 'sapqasopeni'
|
|
||||||
FTPCapturePath = Environment_Services('GetApplicationRootPath') : '\SAP\FTPFiles\'
|
|
||||||
|
|
||||||
CASE 1
|
Case Otherwise$
|
||||||
ErrMsg('Invalid SAPEnviron variable in obj_SAP')
|
ErrMsg('Invalid SAPEnviron variable in obj_SAP')
|
||||||
RETURN
|
return
|
||||||
END CASE
|
|
||||||
|
End case
|
||||||
|
|
||||||
BaseFromSAPScript = 'lcd ':TransFilePathIn:CRLF$ ;* Change local directory to C:\FTP_IN
|
BaseFromSAPScript = 'lcd ':TransFilePathIn:CRLF$ ;* Change local directory to C:\FTP_IN
|
||||||
|
|
||||||
@ -130,7 +128,7 @@ Main:
|
|||||||
CASE Method = 'SendOutbound' ; GOSUB SendOutbound
|
CASE Method = 'SendOutbound' ; GOSUB SendOutbound
|
||||||
CASE Method = 'SendReconcile' ; GOSUB SendReconcile
|
CASE Method = 'SendReconcile' ; GOSUB SendReconcile
|
||||||
|
|
||||||
CASE 1
|
CASE Otherwise$
|
||||||
ErrorMsg = 'Unknown Method ':QUOTE(Method):' passed to routine.'
|
ErrorMsg = 'Unknown Method ':QUOTE(Method):' passed to routine.'
|
||||||
|
|
||||||
END CASE
|
END CASE
|
||||||
@ -1504,4 +1502,3 @@ CheckForErrors:
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user