Job fails if R3_MODIFY_VARIANT with KIND "S" is first command

Document ID : KB000087308
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
U02004121 SELNAME='XYZ' with KIND='S' invalid

When executing a simple SAP Job with the function R3_MODIFY_VARIANT with the parameter KIND = "S" in first position, the job will fail with the above error message.

Example: 

Job that fails:
R3_MODIFY_VARIANT KIND="S",LOW="ABAS",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="XYZ" 
R3_MODIFY_VARIANT KIND="P",LOW="4",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_ANZAHL" 
R3_MODIFY_VARIANT KIND="P",LOW="ZPROV1",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_APPL" 
R3_MODIFY_VARIANT KIND="P",LOW="00000000",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_DATE" 
R3_MODIFY_VARIANT KIND="P",LOW="",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_TEST" 
R3_MODIFY_VARIANT KIND="P",LOW="60",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_WARTEZ" 





 
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: The checking of the SELNAME and KIND parameters of the R3_MODIFY_VARIANT command do not work properly.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Component(s): Agent SAP

Automation Engine 12.1.0 – Available
Automation Engine 12.0.2 – Available
Automation Engine 11.2.5 – Available
Additional Information:
Workaround :
Put KIND='S' in the last line of your SAP job.

Example:
 
R3_MODIFY_VARIANT KIND="P",LOW="4",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_ANZAHL" 
R3_MODIFY_VARIANT KIND="P",LOW="ZPROV1",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_APPL" 
R3_MODIFY_VARIANT KIND="P",LOW="00000000",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_DATE" 
R3_MODIFY_VARIANT KIND="P",LOW="",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_TEST" 
R3_MODIFY_VARIANT KIND="P",LOW="60",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="P_WARTEZ" 
R3_MODIFY_VARIANT KIND="S",LOW="ABAS",VARIANT="EP1_PARALLEL_F",REPORT="ZZCS_SETTLEMENT_PARALLEL",SELNAME="XYZ"