Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Convert a Call Function parameter into Non-unicode

$
0
0

Hello Team,

 

I am currently working on an upgrade where a "fully specific add-on" was developped in 46C to interface data with an external system.

Now that we upgraded to ECC6 Unicode, some functionalities are not working anymore such as below one that seems tricky :

 

      CALL FUNCTION 'SendToMQ'
      DESTINATION ZU150S-RFCDEST
      EXPORTING
        QUEUEMGR          = L_QMGR
        QUEUE                 = L_QUEUE
        COMMIT                = L_COMMIT
      IMPORTING
        RETURN                = L_RC                       

        COMPCODE              = L_COMPCODE
        REASONCODE            = L_REASONCODE
      TABLES
        MESSAGES              = LT_MSGS                    

        MSGIDS                = LT_INIDS                   

        MQMDS                 = LT_MQMD                    

        MQPMOS                = LT_MQPMO                   

      EXCEPTIONS
        SYSTEM_FAILURE        = MESSAGE L_MSG
        COMMUNICATION_FAILURE = MESSAGE L_MSG
        OTHERS                = 9.

 

This call, which is supposed to send data contained in [TABLES] to the external system MQSeries, fails because parameter QUEUE is not correctly understood by the external system.

In ECC6 release, L_QUEUE = AQ.SEND.LU.JOB01.DATAGRAM but in hexadecimal, L_QUEUE = 00410051002E00530045004E0044002E......

In 46C release, L_QUEUE in hexadecimal = 41512E53454E442E....

 

We think what could fix the problem is to translate L_QUEUE ECC6 into an L_QUEUE non-unicode in order to allow the external system to read it correctly.

 

Do you know how to make such a conversion ? Have you ever experienced similar case ?

Could you please help ?

 

Thanks a lot,

 

Dominique


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>