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

xstring query

kesavadas_thekkillath
Active Contributor
0 Likes
725

hi,

data:a type xstring.

data:b type xstring.

loop at itab into wa.

"here i have got the xstring for an id into variable "b".

"here im concatenating xtring into a variable(xstring) in byte mode.

concatenate a b into a in byte mode.

endloop.

"here the variable "a" holds the final data in xstring.

but when trying to diaply in portal in pdf format...its saying a corruption error..

should i convert it to any other format before display ?

any ideas...

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
680

no ideas

Read only

Former Member
0 Likes
680

hi,

here are some FMs just check these out....

  • Convert text to xstring.

CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'

  • Convert xstring to binary.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

.

  • Convert binary to text.

CALL FUNCTION 'SCMS_BINARY_TO_TEXT'

thanks

Ashu

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
680

Hi let me clarify a doubt..

concatenate a b into a in byte mode.

here what mode the output will be ?

is it binary ??

Edited by: Keshu Thekkillam on Aug 7, 2009 4:38 PM

Read only

0 Likes
680

Hi,

During concatenting XSTRING, you need to use BINARY mode.

Text mode is used for normal char strings.

Regards,

Ramanath.

Read only

0 Likes
680

Let me check