‎2007 Oct 22 3:35 PM
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.
‎2007 Oct 22 3:42 PM
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
‎2007 Oct 22 3:42 PM
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
‎2007 Oct 22 3:47 PM
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.
‎2007 Dec 28 7:44 PM
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
‎2007 Dec 29 5:48 AM
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
‎2015 Nov 24 2:37 PM
You may view the code of Transformation "id" (or any other Transformation) in transaction "/nstrans".
Akhil