cancel
Showing results for 
Search instead for 
Did you mean: 

sapnwrfc problem with RfcOpenConnection

ron_mitton
Explorer
0 Kudos

I am trying to run the RFC server programing example that begins on page 44 of the SAP NetWeaver RFC SDK - Release 7.1. I am using MS VS 2005

This line appears to be the problem:

repoHandle = RfcOpenConnection (repoCon, 8, &errorInfo);

repoHandle is not null, but the handle field within it is.

Then when I get to RfcGetFunctionDesc:

stfcDeepTableDesc = RfcGetFunctionDesc(repoHandle, cU("STFC_DEEP_TABLE"), &errorInfo);

I get this error:

RFC_INVALID_PARAMETER: inconsistence in description detected: non-unicode length is too small

I have tried different users and different function modules with no luck.

Any suggestions ?

Accepted Solutions (0)

Answers (2)

Answers (2)

ron_mitton
Explorer
0 Kudos

Thanks Satish

I had read that before but I reread it after your post and it led me to the problem.

The problem is RfcGetFunctionDesc cannot read a function that imports or exports a structure.

For my case I can get by with simple types.

Some system details:

Kernel: 640 NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10

Patch Level: 175

SAP_BASIS 620 0051 SAPKB62051

Former Member
0 Kudos

Hello Ron,

Please go through the following Blog which says SAP NetWeaver RFC SDK

Hope it helps.

Cheers,

Satish.