cancel
Showing results for 
Search instead for 
Did you mean: 

RFC, SAP_BASIS 620

Former Member
0 Kudos

Hi,

i’m working with an application using following code:

RfcRc = RfcCall(hRfc, "Z_PMOPEN_RECEIVE", Exporting, Tables);

switch (RfcRc)

{

case RFC_OK :

{

// define import params

Importing[0].name = "OUT_STORED_RECS";

Importing[0].nlen = 15;

Importing[0].type = TYPNUM;

Importing[0].leng = sizeof(ZPM_INPUT_TAID);

Importing[0].addr = iOutStoredRecs;

Importing[1].name = "OUT_TAID";

Importing[1].nlen = 8;

Importing[1].type = TYPNUM;

Importing[1].leng = sizeof(ZPM_INPUT_TAID);

Importing[1].addr = iOutTaid;

Importing[2].name = NULL;

// receive results

RfcRc = RfcReceive(hRfc, Importing, Tables, &RfcException);

All worked fine with the releases 4.5 and 4.6 but now I’m trying to make it with SAP_BASIS 620 an always get an RFC_SYS_EXCEPTION with RfcReceive (also with RfcCallReceive and ..Ex ).

Can anyone help me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You'd be better to post this perhaps under the ABAP forum.

What language are you using to contect? Does the Z_PMOPEN_RECEIVE work if you call it in SE37?

Former Member
0 Kudos

Thank you for the quick reply.

> What language are you using to contect? C++ / de

> Does the Z_PMOPEN_RECEIVE work if you call it in SE37?

Unfortunately no. I only tested the RFC-Destination with sm59 that works fine.

Former Member
0 Kudos

…and also

RfcRc = RfcCallReceive(m_hRfc, cU("RFC_PING"), NULL, NULL,Tables, &RfcException);

returns with RFC_SYS_EXCEPTION

Former Member
0 Kudos

Do you get any short dumps in transaction ST22 for the problem?

What version of libraries are you using? Or is just the libraries from the SAP Gui, if so please note you require at least the 620 SAP GUI to connect to a 620 system and that GUI will also connect to all the other older versions.

Former Member
0 Kudos

>Do you get any short dumps in transaction ST22 for the problem?

Yes and I’m just trying to understand what it means (I didn’t write the functions on my own, I’m a c developer ).

>What version of libraries are you using?

The libraries from the 620 SAP GUI comp.24 08/03

Former Member
0 Kudos

Does your C program successfully connect to the system?

If it does then you'll need to check the function out.

Former Member
0 Kudos

It’s done!

Beside using a newer library version

I located a problem with case sensitive parameters at the RfcOpen function (e.g. language).

At first I couldn’t believe that this can cause such a problem (you remember RfcCallReceive(m_hRfc, cU("RFC_PING"), NULL, NULL,Tables, &RfcException); returns with RFC_SYS_EXCEPTION).

But it’s true!

Thank’s a lot for the help.

Former Member
0 Kudos

Normally the language is an optial parameter.

Gald it's working for you though!

Former Member
0 Kudos

Ralph:

Can you summarize the error in DUMP. I am facing a similar problem while using JCA. In R/3 I've a TIMEOUT dump.

Answers (0)