cancel
Showing results for 
Search instead for 
Did you mean: 

how to create dynamic XML to post data on some url

Former Member
0 Kudos

Hey all,

Can anyone please tell me.. how can I build XML structure using javascript or any thing which will work on SAP MII(12.1.8), data genrating through  UI by user.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hey All, thanks for your responses

Actually I have to post some data on illuminator service in XML format, So I got one tricky and easy way of doing it.

I have taken a variable of string type.. and concatenate that variable with xml body and dynamic value's elements and posted that string variable using simple "window.open()".. and it works..

Former Member
0 Kudos

Hi Naina,

Is SAP MII XML structure acceptable for your requirement?

The structure for MII standard XML is like that,

<Rowsets/>

     <Rowset/>

          <colume/>

          <Row/>

If it is acceptable to you then use simple BLS logic using SAP MII XML Output actions and you can add the user inputs in the value of the rows.

If you need details about it, please tell me.

Regard,

Suman

rdiger_plantiko2
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Naina,

There is a DOM known as XMLObject in javascript which can be used to generate dynamic XML in js.Please go through its web tutorial.

Sometime back, I also had a similar requirement but didnt have much time to dig into this. Rather I did that in the BLS by passing different values from the UI as comma separated lists.

Regards,

Anuj