Dokumentation zu: GB_SAPIntegration_2017_01 (C)addPLM J.Feuerstein 

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

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

# Parameter:                       #Example:               #Doc: Description
JobManagerCmdTools.exe 
 -Action                           "GB_SAPIntegration_2017_01" 
 -SubAction                        "GB_SAPUnlock,GB_SAPExpo,GB_SAPNxCBProcessVari1,GB_SAPNxCBProcessVari2,GB_SAPNxCBProcessVari3,GB_SAPPartUpdateWithNxCBProcessVari4,GB_SAPPartUpdateWithNxCBProcessVari5,GB_SAPPartUpdateProcessVari6"
 -JobRoot_DP                       "C:\Temp\Job001"        #Doc: Root.Verzeichniss in dem die JobDaten liegen
 -NXVer							   "NX2212"                #Doc: defines NX Main version (#New:12.01.2017;J.Fes)
 -PUProg_DPNE                      "%UGII_ROOT_DIR%\PartUpdate_part.exe"                
                                                           #Doc: full path to NX PartUpdate program
 -PUParam                          "-r -convert_line_widths" 
                                                           #Doc: additional PartUpdate Options for -PUProg_DPNE
 -UGII_LOAD_OPTIONS_DPNE 								   #Doc: full path to NX load_options.def
                                                           #Exa: "#JobRoot_DP#\startup\load_options_PartUpdate_load_AsSaved.def"
 -PuEnv_JobMgr_NXcash_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

 -GB_SAPJobMgr_Connector_AdditionalParams                  #Doc: additional Parameter's that are used when excuting GB_SAPJobMgr_Connector.exe 
                                                           #Exa: " -current_used_nx_main_ver ''V2212'' -ExamplePara=''#HasDebug Value''" 

 -logon_to_sap_DPNE				   "%JobRoot_DP%\..\BinL\logon_to_SAP.xml" 
                                                           #Doc: full path to logon_to_SAP.xml									    
 -CheckInAdditionalPartUpdatedParts                            #Doc: if Option set then also additional refied parts will be checked in 
 -PUNXcashUpdate                                           #Doc: if Option is set then succesfull PartUpdated NX.Parts will be 
                                                                 copyed to dir of paramter: PuEnv_JobMgr_NXcash_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 PartUpdate Prozess durch JMCmdTools gesetzt
set JobMgr_01_PartUpdateLogs_DP       = %JobRoot_DP%\JobMgr_01_PartUpdateLogs_DP    
set JobMgr_02_NxDataToProcess_DP      = %JobRoot_DP%\JobMgr_02_NxDataToProcess_DP   
set JobMgr_03_NxDataProcessed_DP      = %JobRoot_DP%\JobMgr_03_NxDataProcessed_DP   
set JobMgr_04_NxDataNotToProcess_DP   = %JobRoot_DP%\JobMgr_04_NxDataNotToProcess_DP
set JobMgr_05_NXcash_DP               = %JobRoot_DP%\JobMgr_05_NXcash_DP            
Diese Environvariablen können in load_options.def genutzt werden
#Exa: LoadOptions_SearchPaths: ${JobMgr_03_NxDataProcessed_DP} ${JobMgr_05_NXcash_DP} ${JobMgr_02_NxDataToProcess_DP} ${JobMgr_04_NxDataNotToProcess_DP}


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

Standard Dir's of Job
------------------------
#JobRoot_DP#
  \01_PartUpdateLogs      Contains all Job LogFiles SAP-Action.xml NXRf.Syslog  --> Environvariable: %JobMgr_01_PartUpdateLogs_DP%          
  \02_NxDataToProcess     Contains Partfiles not PartUpdated		                --> Environvariable: %JobMgr_02_NxDataToProcess_DP%
  \03_NxDataProcessed     Contains Partfiles that are PartUpdated	                --> Environvariable: %JobMgr_03_NxDataProcessed_DP% 
  \04_NxDataNotToProcess  Contains Partfiles that are not to PartUpdate             --> Environvariable: %JobMgr_04_NxDataNotToProcess_DP%

Directory on JobClient: 
#-RfEnv_JobMgr_nPUNXcash_DP# 
                    Contains Partfiles of NXcash               --> Environvariable: %JobMgr_05_NXcash_DP%	value are from paramter -RfEnv_JobMgr_nPUNXcash_DP

---------------------------------------------------------------------------------------------------------------------------------
Edit on next Update: 05.07.2023

#CheckSetting  

- Update EnviVars
- Update Parameter  
  -PUProg_DPNE
  -PUParam
  -NXcash_DP
  -PUNXcashUpdate
  -PuEnv_JobMgr_NXcash_DP

Edit on next Update: 06.07.2023
 -GB_SAPJobMgr_Connector_AdditionalParams
 -SubAction -> GB_SAPPartUpdateWithNxCBProcessVari4

Notes for Update: see ..\GB_SAPIntegration_2017_01_41_NXDataProcess_cls.vb
    With Me.PResToSAP_ResultSecs
        .ResultSec_Objs.Clear()
        '-- #Doc: add result sections to PResToSAP_ResultSecs
        '' ApplDokuIntern: 3.1408;19.05.2017;J.Fes;#Doc:Me.RSec20_CB1 und Me.RSec20_CB2 entfernt da in SAP für INFO JobMgr CheckBox 30 Zeichen zur verfügung stehen
        '.AddResultSection(Me.RSec20_CB1)
        '.AddResultSection(Me.RSec20_CB2)
        '.ResultSec_Objs.Add(Me.RSec20_CBc12)
        '.ResultSec_Objs.Add(Me.RSec30_PU)
        .AddResultSectionByRef(Me.RSec20_CBc12)
        .AddResultSectionByRef(Me.RSec30_PU)
    End With
  

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

Examples: Update 03.07.2023 -------------------
---------
-xJobRoot_DP "V:\CustomersDataL\GB\2021-07-13-ExampleData\GQ1_Rf92_PVari4_Master_TCoCiY_00031_GB" 
-xJobRoot_DP "V:\CustomersDataL\GB\2023-07-05-ExampleData\GQ1_PU92_PVari4_Master_TCoCiY_00106_GB" 

#New: 3.1800;04.07.2023;J.Fes #TestExample: !!- CI Returns Err -!!
-Action "GB_SAPIntegration_2017_01" 
-SubAction "GB_SAPPartUpdateWithNxCBProcessVari4" 
-JobRoot_DP "V:\CustomersDataL\GB\2023-07-05-ExampleData\GQ1_PU92_PVari4_Master_TCoCiY_00109_GB" 
-GB_SAPJobMgr_Connector_exe_DPNE  "%JobRoot_DP%\..\BinL\GB_SAPJobMgr_Connector_exe" 
-GB_SAPJobMgr_Connector_AdditionalParams " -current_used_nx_main_ver ''V2212'' -ExamplePara=''#HasDebug Value''"  
-logon_to_SAP_DPNE "%BinL_DP%\%GB_SAPLogon_xml_NE%" 
-NXVer "2212" 
-PUProg_DPNE "%UGII_BASE_DIR%\nxbin\part_utility.exe" 
-PUParam "''-managed_mode=no -y -r -convert_line_widths''" 
-UGII_LOAD_OPTIONS_DPNE "#JobRoot_DP#\startup\load_options_PartUpdate_load_AsSaved.def" 
-NXcash_DP "%JobRoot_DP%\..\..\#1#NXcash" 
-PUNXcashUpdate 
-PuEnv_JobMgr_NXcash_DP "%JobRoot_DP%\..\..\NXcash" 
-JobMgrDataOrg_Root_DP "V:\CustomersDataL\GB\JobManager\90-DATA\12-Data\JobMgrData" 
-CBConfigXML "V:\CustomersDataL\GB\2023-01-01-Tech\02-BinClient.Custom\CBMgrConfig_CustomGB_PUNX2212.xml" 
-CBConfig23Xml "V:\CustomersDataL\GB\2023-01-01-Tech\02-BinClient.Custom\CBMgrConfig_CustomGB_PUNX2212_CB23.xml"
-CheckBox_CustomStart_DPNE "#JobRoot_DP#\CheckBoxSAP_CustomRun_test.cmd" 
-COLocCiMode "ActiveMode"
-Test
-xTestDebug1DisableCB 
-xTestDebug2DisablePU
-JobData1ToProcessDoPrint 
-JobData2ResultsDoPrint 
-PauseOnEnd -xverbose -xPause



