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

0 Likes
2,318

Hi,

I have a basic question regarding the syntax of CALL TRANSFORMATION.

CALL TRANSFORMATION ID SOURCE XML xml_string RESULT node = ls_struct.

In this example xml_string is a variable that has the source xml and ls_struct is structure to which the structure would be populated. But

<b>

What is ID and what is its significance?</b>

Thanks in advance.

Sham.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,579

If you see the syntax,

CALL TRANSFORMATION {trans|(name)}

[PARAMETERS {p1 = e1 p2 = e2 ...}|(ptab)]

[OBJECTS {o1 = e1 o2 = e2 ...}|(otab)]

[OPTIONS a1 = e1 a2 = e2 ...]

SOURCE {XML sxml}

| {{bn1 = e1 bn2 = e2 ...}|(stab)}

RESULT {XML rxml}

| {{bn1 = f1 bn2 = f2 ...}|(rtab)}.

ID is just passed as TRANS / NAME.

It is the name name of the transformation which can be specified either directly as trans or as content of a character-type data object name in braces. The specified transformation must exist as a XSLT program or as a simple transformation in the Repository.

Hope this helps.

ashish

5 REPLIES 5
Read only

Former Member
0 Likes
1,580

If you see the syntax,

CALL TRANSFORMATION {trans|(name)}

[PARAMETERS {p1 = e1 p2 = e2 ...}|(ptab)]

[OBJECTS {o1 = e1 o2 = e2 ...}|(otab)]

[OPTIONS a1 = e1 a2 = e2 ...]

SOURCE {XML sxml}

| {{bn1 = e1 bn2 = e2 ...}|(stab)}

RESULT {XML rxml}

| {{bn1 = f1 bn2 = f2 ...}|(rtab)}.

ID is just passed as TRANS / NAME.

It is the name name of the transformation which can be specified either directly as trans or as content of a character-type data object name in braces. The specified transformation must exist as a XSLT program or as a simple transformation in the Repository.

Hope this helps.

ashish

Read only

0 Likes
1,579

Hi,

You mean to say that ID is a transformaiton that is already existing. If that is the case. My next question would be is there any way to know the already existing transformations in the system?

Thanks in advance,

Sham.

Read only

0 Likes
1,579

Hi Sham,

How did you solve this? I have same question. We also want to use Call transformation to extract from XML string.

please reply.

thanks

Sudhir

Read only

0 Likes
1,579

ID is the transformation program which you can find from SE80.

go to se80->click edit boject button and in the resulting pop up choose more tab and choose transformation radio button.

Raja

Read only

akhil_agarwal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,579

You may view the code of Transformation "id" (or any other Transformation) in transaction "/nstrans".

Akhil