‎2010 Sep 10 11:26 AM
Hi,
Please see the below code and check it once, I am getting syntax problem, and how we need to solve it.
TYPES: BEGIN OF l_typ_test,
chars(10) TYPE c,
string TYPE string,
numc(5) TYPE n,
packed(4) TYPE p DECIMALS 2,
float TYPE f,
date TYPE d,
time TYPE t,
xstring TYPE xstring,
END OF l_typ_test.
DATA: l_str_test TYPE l_typ_test,
root type l_typ_test,
l_var_output TYPE string.
l_str_test-chars = ' ABC '.
l_str_test-string = ' ABC '.
l_str_test-numc = '01234'.
l_str_test-packed = '123.45'.
l_str_test-float = '123.45'.
l_str_test-date = '20060614'.
l_str_test-time = '1201'.
l_str_test-xstring = 'ABCDEFG'.
CALL TRANSFORMATION id
SOURCE root = l_str_test
RESULT XML l_var_output.
HERE I GOT ERROR LIKE "id...FILED"......expected after root"
Thank you,
Madhu.
Edited by: vvv.madhu on Sep 10, 2010 12:38 PM
‎2010 Sep 10 1:16 PM
Is the transformation itself correct in SE80 or does it give errors/warnings when you check it?
‎2010 Sep 10 2:24 PM
The code that you past is syntactically correct - so the error is likely in the transformation definition - which you didn't paste...