场景:
GET调用接口有特殊字符,如‘,’
/sap/opu/odata/SAP/ZOD_MES_ZMARD_SRV/ZSZMARDSet(Barcode=‘779422151395947’,Gps=‘’,Imei=‘’,Iccid=‘’,Zk=‘’,Sn=‘’,Mac=‘’,Jqm=‘’,Zfddj=‘’,Zbcqc=‘,1’)?$format=json
"Error_Resolution" : {
"SAP_Transaction" : "Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details",
"SAP_Note" : "See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"
去掉特殊字符即可
处理方法可以用@符号代替特殊字符
REPLACE str1 WITH str2 INTO s_dest [LENGTH len].搜索s_dest中前len个字符中的子串str1,用str2来替换它,如果成功,SY-SUBRC返回0,否则还回非0值.