‎2008 Jun 17 7:21 AM
HI,
Can anybody tell me how can i assign structures with different fields in unicode enabled system.
‎2008 Jun 17 7:24 AM
Hi Bhagyashree,
In Unicode system, you need to define the total length of the string. Simply providing the starting point doesnt work.
* ASSIGN STXT_LOC+1 TO <B>. " In non-unicode system
ASSIGN STXT_LOC+1(*) TO <B>. " In unicode system
ASSIGN STXT_LOC+1(10) TO <B>. " In unicode systemBest regards,
Prashant
‎2008 Jun 17 7:24 AM
Hi Bhagyashree,
In Unicode system, you need to define the total length of the string. Simply providing the starting point doesnt work.
* ASSIGN STXT_LOC+1 TO <B>. " In non-unicode system
ASSIGN STXT_LOC+1(*) TO <B>. " In unicode system
ASSIGN STXT_LOC+1(10) TO <B>. " In unicode systemBest regards,
Prashant
‎2008 Jun 17 7:33 AM
Hi,
Refer to following
Error:
ASSIGN H-TEXT+SY-INDEX TO <F1>.
SOLUTION:
ASSIGN H-TEXT+SY-INDEX(*) TO <F1>.
Reward pts if helpfull.
Regards,
Dhan
‎2008 Jun 17 11:20 AM
Hello
You could use the static methods of CL_ABAP_CONTAINER_UTILITIES:
1.) READ_CONTAINER_C: read structure A into (unstructured) string Z
2.) FILL_CONTAINER_C: shuffle string Z into structure B
Result corresponds to: structure_B = structure_A (possible on non-Unicode)
Regards
Uwe