SAP R3_SET_SELECT_OPTION length of parameters limited to 45 characters when combining with R3_ACTIVATE_REPORT.

Document ID : KB000087779
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

When trying to start an Advanced Business Application Programming (ABAP) job in SAP, InputFiles, responsibility, OutputFiles, and directory have to be specified.  However, the SAP R3_SET_SELECT_OPTION length of parameters is limited to 45 characters when combining with R3_ACTIVATE_REPORT.

Example

Following variants are possible examples.

1st variant:
R3_SET_SELECT_OPTION SELNAME="CALLMODE",KIND="P",LOW="B"
R3_SET_SELECT_OPTION SELNAME="DS_NAME",KIND="P",LOW="\\gate01\SERVICE$\UC4\R2_eventmgmt_tst\bi_visit_test.txt"
R3_CREATE_VARIANT REPORT="RFBIBL00",VARIANT="UC4"
R3_GET_VARIANT_CONTENTS REPORT="RFBIBL00",VARIANT="UC4"
 
2016-01-15 14:37:11 - U02004947 CALLMODE;P;;;B;
2016-01-15 14:37:11 - U02004947 DS_NAME ;P;;;\\gate01\SERVICE$\UC4\R2_eventmgmt_tst\bi_visit_test.txt;
2016-01-15 14:37:11 - U02004947 FL_CHECK;P;;;;
2016-01-15 14:37:11 - U02004947 MAX_COMM;P;;;1000;
2016-01-15 14:37:11 - U02004947 OS_XON ;P;;;;
2016-01-15 14:37:11 - U02004947 PA_XPROT;P;;;;
2016-01-15 14:37:11 - U02004947 P_IFTYPE;P;;;;
2016-01-15 14:37:11 - U02004947 P_RUN_RE;P;;;;
2016-01-15 14:37:11 - U02004947 XINF ;P;;;;
2016-01-15 14:37:11 - U02004947 XLOG ;P;;;;
2016-01-15 14:37:11 - U02004947 XNONUNIC;P;;;;
2016-01-15 14:37:11 - U02004947 XPOP ;P;;;;
2016-01-15 14:37:11 - U02004947 ANZ_MODE;P;;;N;
2016-01-15 14:37:11 - U02004947 UPDATE ;P;;;S;
 
2nd variant:
R3_SET_SELECT_OPTION SELNAME="CALLMODE",KIND="P",LOW="B"
R3_SET_SELECT_OPTION SELNAME="DS_NAME",KIND="P",LOW="\\gate01\SERVICE$\UC4\R2_eventmgmt_tst\bi_visit_test.txt"
R3_ACTIVATE_REPORT REPORT="RFBIBL00"

R3_GET_VARIANT_CONTENTS REPORT="RFBIBL00",VARIANT="UC4"
 
20160115/143711.084 - 29 BAPI_XBP_JOB_ADD_ABAP_STEP
20160115/143711.084 - 29 ABAP_PROGRAM_NAME="RFBIBL00"
20160115/143711.084 - 29 ALLPRIPAR=( PRCOP=000, PRIMM="$", PRREL="$", PRNEW="X", PEXPI=0, LINCT=0, LINSZ=0, PRSAP="$", PRREC="$", PRABT="$", ARMOD="1", PRIOT=5, PRUNX="$" )
20160115/143711.085 - 29 EXTERNAL_USER_NAME="R/3 Agent"
20160115/143711.085 - 29 table FREE_SELINFO of type RSDSRANGE_T_SSEL has 0 entries
20160115/143711.085 - 29 JOBCOUNT="14371100"
20160115/143711.085 - 29 JOBNAME="VISIT_AUSTRIA"
20160115/143711.085 - 29 LANGUAGE="D"
20160115/143711.085 - 29 PRINT_PARAMETERS=( COPIES=000, EXPIRATION=0, NUMLINES=0, NUMCOLUMNS=0 )
20160115/143711.086 - 29 SAP_USER_NAME="UC4RFC"
20160115/143711.086 - 29 table PRIPAREXT of type BAPIXMPRIPAREXT has 0 entries
20160115/143711.086 - 29 table SELINFO of type RSPARAMS has 14 entries
20160115/143711.086 - 29 SELNAME="FL_CHECK", KIND="P"
20160115/143711.086 - 29 SELNAME="OS_XON", KIND="P"
20160115/143711.086 - 29 SELNAME="XNONUNIC", KIND="P"
20160115/143711.086 - 29 SELNAME="MAX_COMM", KIND="P", LOW="1000"
20160115/143711.087 - 29 SELNAME="PA_XPROT", KIND="P"
20160115/143711.087 - 29 SELNAME="ANZ_MODE", KIND="P", LOW="N"
20160115/143711.087 - 29 SELNAME="UPDATE", KIND="P", LOW="S"
20160115/143711.087 - 29 SELNAME="XPOP", KIND="P"
20160115/143711.087 - 29 SELNAME="XLOG", KIND="P"
20160115/143711.087 - 29 SELNAME="XINF", KIND="P"
20160115/143711.087 - 29 SELNAME="P_IFTYPE", KIND="P"
20160115/143711.087 - 29 SELNAME="P_RUN_RE", KIND="P"
20160115/143711.088 - 29 SELNAME="CALLMODE", KIND="P", LOW="B"
20160115/143711.088 - 29 SELNAME="DS_NAME", KIND="P", LOW="\\gate01\SERVICE$\UC4\R2_eventmgmt_tst\bi_vis"
20160115/143711.088 - 29 table SELINFO_L of type RSPARAMSL_255 has 0 entries
 
In the 1st example, option DS_NAME is completely displayed in the new variant. In the 2nd, one line is truncated after 45 characters and therefore not displayed correctly.
 
Cause:
Cause type:
Defect
Root Cause: Opposite from BAPI_XBP_VARIANT_INFO/CHANGE the BAPI_XBP_JOB_ADD_ABAP_STEP does NOT accept values longer than 45 characters. This is published by SAP with Note #2035929. With this SAP will provide an additional Option on the Interface.
Resolution:
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: Released

Fix Version(s):
Component: Agent SAP

Automation Engine 11.2.1 - Available
Automation Engine 11.1.3 - Available
Automation Engine 10.0.8 - Available
Additional Information:
Workaround :
Use R3_SET_SELECT_OPTION with R3_CREATE_VARIANT, see example 1st Variant in the description.