Application Development and Automation 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: 
Read only

How to convert C type variable to array of bytes?

peter_jarsunek
Participant
0 Likes
564

Hi guys, any idea?

I need the array of bytes as parameter for calling COM object..

Thanx for answer!

peter

hI,

you can declare it directly as type C,

i mean if we want a internal table of type c, then we can declare it as

Data: ITAB type C occurs o with header line.

Regards

Sudheer

4 REPLIES 4
Read only

Former Member
0 Likes
518

hI,

you can declare it directly as type C,

i mean if we want a internal table of type c, then we can declare it as

Data: ITAB type C occurs o with header line.

Regards

Sudheer

Read only

0 Likes
518

hi sudheer,

I'm not ABAP specialist, but your solution is internal table of C type.. i meant something like XSTRING? I don't know, how it worx.. What I know is, I need to send array of bytes with my HTTP POST request.. I don't know, how to create array of bytes in ABAP. Is it the XSTRING type? How to convert string to xstring?

Peter

Read only

Former Member
0 Likes
518

hi,

CHAR C array of c_ubyte left-aligned string filled with spaces string only

Read only

0 Likes
518

Hi Warunkumar!

Sorry , but.. I'm not abap expert.. what did u send me?

can u provide pls a longer code sample?

like

data: cData(10) type C, bData type XSTRING

.... some conversion... or...

Thank you!

Peter