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

convert wa to string

Former Member
0 Likes
589

hi to alll

CONSTANTS: BEGIN OF c_emptycell,

menge(12) TYPE c VALUE 0,

sep1 TYPE x VALUE '09',

fixkz LIKE eket-fixkz VALUE IS INITIAL,

sep2 TYPE x VALUE '09',

END OF c_emptycell.

i want to convert this one into string.

is it possible

can any one help me.

regards

raadha

3 REPLIES 3
Read only

Former Member
Read only

Former Member
0 Likes
474

use concatenate

Read only

Former Member
0 Likes
474

Hi there

C'mon guys use OO.

Given the growth of IT in certain parts of the world you guys above all should not still be using "Dinosaur Technology"

Forget the old Classic Abap methods as these won't work reliably (if at all) on Unicode systems anyway.

Ist method converts structure to a string

2nd converts string to structure.


CALL METHOD cl_abap_container_utilities=>fill_container_c

CALL METHOD cl_abap_container_utilities=>read_container_c

The SPLIT command is quite useful to break your string up if you have delimited the fields say with tab chars.

Note that your type X value '09' will also give problems on a unicode systeem

You'll need to use the attributes in cl_abap_utilities.

There's equivalent values you can use. (SE24)

Advantage here is that this also works on a Unicode system.

Cheers

Jimbo