on 11-09-2020 4:15 PM
RfcSetChars(bapiCompany, cU("COMPANYID"), cU("001200"), 6, &errorInfo);
// 001200
rc = RfcInvoke(connection, bapiCompany, &errorInfo);
if (rc != RFC_OK) errorHandling(rc, cU("Error calling BAPI_COMPANY_GETDETAIL"), &errorInfo, connection);
RfcGetStructure(bapiCompany, cU("RETURN"), &returnStructure, &errorInfo);
// errorHandling(rc, cU("Error calling RfcGetStructure"), &errorInfo, connection);
if (returnStructure==NULL)
{
printf("eRROR returnStructurei is NULL\n");
}
// RfcGetString(returnStructure, cU("MESSAGE"), message, 221, &resultLen, &errorInfo);
RfcGetString(returnStructure, cU("MESSAGE"), message, 221, &resultLen, &errorInfo);
printf("strlenU(message)=%d\n",strlenU(message));
printf("resultLen=%d\n",resultLen);
/*
always:
strlenU(message)=0
*/
RfcGetStructure with augument structure of RETURN return null is correct!
if SAP fucntion occured error,the structure of RETURN will has message!
tyr let argument "RETURN" change to " COMPANY_DETAIL".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.