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

CALL TRANSFORMATION syntax error

Former Member
0 Likes
572

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

2 REPLIES 2
Read only

Former Member
0 Likes
433

Is the transformation itself correct in SE80 or does it give errors/warnings when you check it?

Read only

Former Member
0 Likes
433

The code that you past is syntactically correct - so the error is likely in the transformation definition - which you didn't paste...