[59425] in SAPr3-news
Re: remote RFC on I5/Iseries
daemon@ATHENA.MIT.EDU (reader)
Sun May 27 04:02:07 2007
To: sapr3-news@mit.edu
Date: Sun, 27 May 2007 10:00:44 +0200
From: reader <ben@namar.nl>
Message-ID: <46593AAC.7010605@namar.nl>
Markus Döhr schreef:
> reader wrote:
>> Hello All,
>>
>> Is there anyone out here familiar with programming remote RFC's in RPGLE
>> to a non-OS400 SAP system. The most difficult problem I encounter on the
>> moment is the automatic conversion of Im-, export parameters and
>> "tables" containing BCD fields.
>> The automatic conversion converts "tables" from EBCDIC to ASCII and vica
>> versa, resulting decimal data errors.
>
> Which RFC-SDK are you using on that non-OS400 host?
>
>
Markus,
I am not familiar with SAP. I can sign on to a SAP server if you can
tell me where to check for the RFC SDK.I think it is 6.40 that is at
least waht the Netweaver version says.
On the moment I think my problem would be solved when I know how to
define the prototypes in RPGLE for RfcConvertE2A and RfcConvertA2E and
how to use these functions.I can not fin any documentation for these
functions.
In my RfcCallReceive command I do not have im- nor export paramters but
I use 2 tables. 1 for import and one for export. The import table is
defined as type TYPC (type charachter). I have defined the export table
as TYPP (packed) so no translation occurs. The BCD numerics in the table
are returned perfectly but the alfa fields are in ascii code and I can
translate them using the QDCXLATE api on the AS400 but there is no
guarantee extra ordinairy charachters like U-umlaut are translated
correctly. What I have red about the RfcConvertX2X functions there
should be no problem because they now which codepages should be used
because the client and the server exchange this kind of information
during the connect operation.
Do you know how to define and use the RfcConvertX2X functions in RPGLE?
Kind regards
Ben Thijssen.