Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP DCOM Connector message wrong codepage

Former Member
0 Kudos

Hi!

I need help.

I've got RFC module that executing report through submit.

Report is generating error messages. When I'm trying to call RFC module through SAP DCOM Connector, I'm always get message text with wrong codepage. Than I'm saying wrong code page, I mean sap server iternal code page, not a windows code page. Any other data transfer works fine with correct windows code page.

SAP code page is 1500.

Windows code page is 1504.

Do you have any solutions?

7 REPLIES 7

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Vitaly!

Never done the settings, but is DCOM Connector using an own logon? Then there is a language defined, which should be identical to your other logons.

Regards,

Christian

0 Kudos

Thank you Christian, but DCOM Connector has own connection settings(so called "destinations") and there is only language setting that I can define. I just don't really understand how can RFC-client get any message that was sent with message command in FM. I think there is other mechanism(different from usual data transport) to transport error messages and no code page conversion is doing at all by default.

Maybe I'm wrong?

0 Kudos

Hi!

Currently I'm working with English / Cyrillic texts. When I display an identical text logged on in English, it's displayed with a different codepage compared with a logon with Russian.

So please ensure language is identical for RFC / DCOM / normal user, that has an influence on used codepages.

Regards,

Christian

0 Kudos

Hi, Christian!

I understand what you mean. I'm using the correct(Russian) language for all logons: RFC, DCOM and GUI. And all text data that transfers from SAP is in correct code page, so I can read it, but when I get error message text in my asp page, it is in SAP iternal code page(without convertion). All error messages generated with "message" I receive not from parameters of functional modules, but from Error array of the COM object.

Thank you again.

0 Kudos

Then maybe it's not SAP-linked. We have also different behavior depending on the Windows-default settings, so different computers (or before / after changing localization setting) use different codepages.

Do you use a Russian version of the DCOM software? Maybe 'somewhere inside' a default is set, which is wrong in your case.

0 Kudos

I'm using SAP DCOM Connector Version 6.20(english). I don't know where I can get russian version of this product. It seems there is no such one. I don't really know who wrong or right, maybe SAP or DCOM software, because in trace log of DCOM connector I've got something like this:

>>>> RFC MESSAGE/ERROR : 104

  • RFC_ERROR_SYSTEM_FAILURE

  • ³àãßßþÒþÙ ßþØáÚ ÝÕ àÐ×àÕèÕÝ.

>>>> rfccoctx:985 closing RFC connection (context 016B6708)

>>>> FREE abrfcio.c 3253 (26582468)

-{4A8EB0A1-4D42-44C0-8F2D-1B359DAE74CC}

        • Trace file opened at 20050727 132222 Russian Dayligh, SAP-REL 620,0,480 RFC-VER 3 525755 MT-SL

>>>> rfccopar:100 End Function ( Parameter FILESIZE: Type 8 Length 4 Variant 16387 Req. Vartype 16387 ).

>>>> rfccopar:100 End Function ( Parameter HTML: Type 5 Length 255 Variant 16393 Req. Vartype 9 ).

>>>> rfccopar:100 End Function ( Parameter PAR: Type 5 Length 286 Variant 9 Req. Vartype 9 ).

>>>> rfccopar:100 End Function ( Parameter PDF: Type 5 Length 134 Variant 16393 Req. Vartype 9 ).

>>>> rfccopar:100 End Function ( Parameter RETURN: Type 5 Length 548 Variant 16393 Req. Vartype 9 ).

>>>> rfccoctx:1077 SetAbort (context 016B6708)

        • sapmtx.h:1273 Error code 0x80004004 ().

>>>> rfccoctx:720 return to dispenser (context 016B6708)

>>>> rfccosrc:184 Dispenser: returning resource 016B6718 ...

>>>> rfccosrc:195 Dispenser: resource 016B670C broken ...

>>>> rfccoctx:1029 releasing resource (context 016B6708)

Text of error message we have here in wrong code page(SAP internal-1500), then other text from SAP in correct code page(1504). How to force DCOM software to use correct code page for FREE messages?

0 Kudos

So, maybe someone has docs, urls or anything else about free messages in DCOM?

Thank you!