‎2009 Aug 03 7:47 AM
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...
‎2009 Aug 04 6:28 AM
‎2009 Aug 04 6:46 AM
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
‎2009 Aug 07 12:04 PM
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
‎2009 Aug 07 1:12 PM
Hi,
During concatenting XSTRING, you need to use BINARY mode.
Text mode is used for normal char strings.
Regards,
Ramanath.
‎2009 Aug 07 1:51 PM