Dokumentation zu: RefileNative_2016_02 (C) J.Feuerstein 

Erstellt: 22.11.2016    J.Fes
LUP.....: 12.01.2017    J.Fes
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description:
------------
Refiles Parts and evaluates Results with Groz Beckert SAPConnector integration

     
CommandLineArguments:
---------------------

# Parameter:                       #Example:               #Doc: Description
JobManagerCmdTools.exe 
 -Action                           "GB_SAPIntegration_2017_01" 
 -SubAction                        "GB_SAPRefile"
 -JobRoot_DP                       "C:\Temp\Job001"        #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -NXVer							   11                      #Doc: defines NX Main version (#New:12.01.2017;J.Fes)
 -RfProg_DPNE                      "%UGII_ROOT_DIR%\refile_part.exe"                
                                                           #Doc: full path to NX Refile program
 -RfParam                          "-r -convert_line_widths" 
                                                           #Doc: additional Refile Options for -RfProg_DPNE
 -UGII_LOAD_OPTIONS_DPNE 								   #Doc: full path to NX load_options.def
                                                           #Exa: "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def"
 -RfEnv_JobMgr_nRfNXcash_DP        "D:\NxCash"             #Doc: path to NXCash Dir #Doc:  
                                                           #Doc: if Value = "" then cash is disabled 
 -GB_SAPJobMgr_Connector_exe_DPNE  "%JobRoot_DP%\..\BinL\GB_SAPJobMgr_Connector_exe" 
                                                           #Doc: full path to GB_SAPJobMgr_Connector_exe
 -logon_to_sap_DPNE				   "%JobRoot_DP%\..\BinL\logon_to_SAP.xml" 
                                                           #Doc: full path to logon_to_SAP.xml									    
 -CheckInAdditionalRefiledParts                            #Doc: if Option set then also additional refied parts will be checked in 
 -RfNXcashUpdate                                           #Doc: if Option is set then succesfull refiled NX.Parts will be 
                                                                 copyed to dir of paramter: RfEnv_JobMgr_nRfNXcash_DP  
 -JobMgrDataOrg_Root_DP            "S:\JobMgrData"         #Doc: Root Dir to store JobMgr Archiv data
 -COLocCiMode                      "TestMode/ActiveMode"   #Doc: defines if COLocCI is in TestMode or in ActiveMode

---------------------------------------------------------------------------------------------------------------------------------

Standard Environvariablen:
-------------------------
Die nachfogenden Environvariablen werden beim Refile Prozess durch JMCmdTools gesetzt
set JobMgr_nRfSource_DP=#JobRoot_DP#\02-RfNONE
set JobMgr_nRfTarget_DP=#JobRoot_DP#\03-RfDONE
set JobMgr_nRfDoNotRefile_DP=#JobRoot_DP#\04-RfDoNotRefile
set JobMgr_nRfNXcash_DP=D:\NXCacheGQ1

Diese Environvariablen können in load_options.def genutzt werden
#Exa: LoadOptions_SearchPaths: ${JobMgr_nRfTarget_DP} ${JobMgr_nRfNXcash_DP} ${JobMgr_nRfSource_DP} ${JobMgr_nRfDoNotRefile_DP}

---------------------------------------------------------------------------------------------------------------------------------

Standard Dir's of Job
------------------------
#JobRoot_DP#
  \01-JobLog        Contains all Job LogFiles SAP-Action.xml NXRf.Syslog           
  \02-RfNONE        Contains Partfiles not refiled		       --> Environvariable: %JobMgr_nRfSource_DP%
  \03-RfDONE        Contains Partfiles that are refiled	       --> Environvariable: %JobMgr_nRfTarget_DP% 
  \04-RfDoNotRefile Contains Partfiles that are not to refile  --> Environvariable: %JobMgr_nRfDoNotRefile_DP%
 
#-RfEnv_JobMgr_nRfNXcash_DP# 
                    Contains Partfiles of NXcash               --> Environvariable: %JobMgr_nRfNXcash_DP%	value are from paramter -RfEnv_JobMgr_nRfNXcash_DP

---------------------------------------------------------------------------------------------------------------------------------
Edit on next Update: 09.05.2017

#CheckSetting  

#Need to generate .cgm?
#Update Parameter: -COCiMode to -COLocCiMode  

---------------------------------------------------------------------------------------------------------------------------------

Examples:
---------



-----------------	 ' -SubAction "GB_SAPNxCBProcessVari1" '--------------
#New: 3.1490;06.11.2019;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari1" -JobRoot_DP "V:\CustomersDataL\GB\2019-11-06-ExampleData\GQ1_NXDataCheck_CBPVari1_T_00002_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXcash_DP "#JobRoot_DP#\90-JobNXcash" -CBConfig12Xml "CBMgrConfig_CustomGBNXChk.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_addPLM.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose

#New: 3.1490;07.11.2019;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari1" -JobRoot_DP "V:\CustomersDataL\GB\2019-11-07-ExampleData\GQ1_NXDataCheck_CBPVari1_T_00003_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXcash_DP "#JobRoot_DP#\90-JobNXcash" -CBConfig12Xml "CBMgrConfig_CustomGBNXChk.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_addPLM.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose
#New: 3.1490;13.11.2019;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari1" -JobRoot_DP "V:\CustomersDataL\GB\2019-11-07-ExampleData\GQ1_NXDataCheck_CBPVari1_T_00004_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -CBConfig12Xml "CBMgrConfig_CustomGBNXChk.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_addPLM.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose



-----------------	 ' -SubAction "GB_SAPNxCBProcessVari3" '--------------
#New: 3.1312;30.03.2017;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari3" -JobRoot_DP "V:\CustomersDataL\GB\2017-02-10-ExampleData\GQ1_SAP_ExpoIncComp_T_00003_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXcash_DP "#JobRoot_DP#\90-JobNXcash" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBox_CustomStart_GBSAP.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose

#New: 3.1402;26.04.2017;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari3" -JobRoot_DP "V:\CustomersDataL\GB\2017-04-26-ExampleData\GQ1_CB21_SAP_ProcessVari3_T_00023_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXcash_DP "#JobRoot_DP#\90-JobNXcash" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP2_CustomRun.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose

-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPNxCBProcessVari3" -JobRoot_DP "V:\CustomersDataL\GB\2017-04-27-ExampleData\GQ1_CB21_SAP_ProcessVari3_M_00001_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXcash_DP "#JobRoot_DP#\90-JobNXcash" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose




-----------------	 ' -SubAction "GB_SAPNxCBProcessVari4" '--------------
#New: 3.1289;18.01.2017;J.Fes 
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-05-02-ExampleData\GQ1_Rf11_SAP_T_00148_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1408;19.05.2017;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-05-19-ExampleData\GQ1_Rf92_PVari4_TCoCiY_00001_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1434;13.10.2017;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-05-19-ExampleData\GQ1_Rf92_PVari4_TCoCiY_00001_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1434;16.10.2017;J.Fes
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-10-16-ExampleData\GPR_Rf23_SP_PVari4_RUNCoCiY_113120_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause
#Doc: Example 10-SAPJobProcessCheckIn did not processed 
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-10-16-ExampleData\GPR_Rf23_SP_PVari4_RUNCoCiY_113155_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1435;07.11.2017;J.Fes #TestExample: !! Test Already in NX11	!!
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-10-26-ExampleData\GPR_Rf23_SP_PVari4_RUNCoCiY_113982_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-11-07-ExampleData\GPR_Rf23_SP_PVari4_RUNCoCiY_114832_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1435;08.11.2017;J.Fes #TestExample: !! -COLocCiMode "TestMode" !!
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-11-08-ExampleData\GPR_Rf14_AP_PVari4_RUNCoCiN_00212_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "TestMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1435;08.11.2017;J.Fes #TestExample: !!- CI not DONE -!!
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-11-08-ExampleData\GQ1_Rf23_SP_PVari4_RUNCoCiY_36603_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause

#New: 3.1442;06.12.2017;J.Fes #TestExample: !!- CI Returns Err -!!
-Action "GB_SAPIntegration_2017_01" -SubAction "GB_SAPRefileWithNxCBProcessVari4" -JobRoot_DP "V:\CustomersDataL\GB\2017-12-06-ExampleData\GPR_Rf24_AP_PVari4_RUNCoCiY_08296_GB" -logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" -NXVer "11.0" -RfProg_DPNE "%UGII_BASE_DIR%\nxbin\refile_part.exe" -RfParam " -y -r -convert_line_widths" -UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_refile_load_AsSaved.def" -RfEnv_JobMgr_nRfNXcash_DP "#JobRoot_DP#\NXCacheGQ1" -xCheckInAdditionalRefiledParts -RfNXcashUpdate -JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\2017-01-01-NXData\12-Data\JobMgrData" -CBConfigXML "CBMgrConfig_CustomGBRf.xml" -CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" -COLocCiMode "ActiveMode" -JobData1ToProcessDoPrint -JobData2ResultsDoPrint -Test -PauseOnEnd -verbose -xPause


 