Posted on 2010-01-22 02:17:00.683714-08 by hesc
Communication between perl and SAP-Unicode-System
Hi,

we use the perl module "sapnwrfc" together with nwrfcsdk of SAP to read out some user details. The SAP system is installed as a unicode system. We have a problem of setting the import parameter USERNAME in BAPI_USER_GET_DETAIL correctly. The program works fine for the value "MUELLER". An error occured when we call the bapi with german umlaut.

Here is an example:

... use sapnwrfc; $Username = "MUELLER"; $Rcb = $Rfc->function_lookup( "BAPI_USER_GET_DETAIL" ); $Iface = $Rcb->create_function_call; $Iface->USERNAME( $Username ); $Iface->invoke; ...

Notice:
- script is running successfully with value MUELLER
- script never ends with value MÜLLER ($Iface->invoke loops)

Can anybody help us?

We have no problems in communication with non-unicode-systems.

Thanks

Helmut

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.