‎2008 Feb 20 9:18 AM
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
‎2008 Feb 20 9:23 AM
‎2008 Feb 20 9:27 AM
‎2008 Feb 20 10:24 AM
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