Skip to Content
0
Former Member
Feb 19, 2009 at 12:57 PM

Need to GUID(byte[]) to String

389 Views

Hi All,

I'm working on a webdynpro application for CRM2007 backend.

In my application, I execute a BAPI(to get a list of orders) and display it in a table. Now, on lead selection, I need to take the GUID of the selected order and give it as an input to another BAPI to get the details of the orders.

Now, the problem I'm facing is:

The GUID I obtain from the output of the first BAPI is of the format "byte[]".

The second BAPI accepts GUID in the format "String".

Please help me converting the GUID in byte[] to String.

I tried using the functions

1. Byte.toString(byte)

2.Using simple concatenation with an empty String. (b + "")

3. String s = new String(new byte[] )

none of them gave me the desired result.

I would be grateful if anybody could help me in this.

Thanks and Regards,

Sunil