SAS数据集成:SAP表提取错误

SAS数据集成:SAP表提取错误,sas,data-integration,sap-erp,sap-r3,Sas,Data Integration,Sap Erp,Sap R3,这是错误代码: Line 115: ERROR: RFC_ERROR_SYSTEM_FAILURE Error in module RSQL of the database interface. NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements. ` 错误日志: NOTE: Libref SAPENG was successfully assigned as follo

这是错误代码:

Line 115: ERROR: RFC_ERROR_SYSTEM_FAILURE Error in module RSQL of the database interface.    NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements. `
错误日志:

NOTE: Libref SAPENG was successfully assigned as follows: 
  Engine:        R3 
  Physical Name: PRORELOC
101        %rcSet(&syslibrc);
102        
103        %let etls_recnt = 0;
104        %macro etls_recordCheck;
105           %let etls_recCheckExist = %eval(%sysfunc(exist(SAPEng.CDPOS, DATA)) or
106                 %sysfunc(exist(SAPEng.CDPOS, VIEW)));
107        
108           %if (&etls_recCheckExist) %then
109           %do;
110              proc sql noprint;
111                 select count(*) into :etls_recnt from SAPEng.CDPOS;
112              quit;
113           %end;
114        %mend etls_recordCheck;
115        %etls_recordCheck;
MPRINT(ETLS_RECORDCHECK):   proc sql noprint;
MPRINT(ETLS_RECORDCHECK):   select count(*) into :etls_recnt from SAPEng.CDPOS;
ERROR: RFC_ERROR_SYSTEM_FAILURE
Error in module RSQL of the database interface.
知道为什么会这样吗?
我试图提取的表称为CDPOS。其他SAP表上没有错误

RFC\u错误\u系统\u故障意味着RFC调用出错,通常会产生一个短转储(事务ST22)和/或系统日志条目(SM21)。检查这些日志,找出到底出了什么问题。

Gensius,SAS代码似乎没有问题,但您可能在尝试使用INTO时遇到连接问题:创建宏变量ETL\u RECNT。如果是这样,请更改SQL代码以创建一个具有单列ETLS RECNT和单行count的表,然后在数据步骤中使用call symput创建宏变量。