cancel
Showing results for 
Search instead for 
Did you mean: 

Reading order status from backend

Former Member
0 Kudos

Hello,

we're facing some issues with our WebService for a simple order status. It should be possible to get the status of more than 1 order, so the Export-DT should look something like this:

<order vbeln="123">
   <status>C</status>
   <positions>
      <pos nr="010">
          <matnr="9876" />
          <maktx="ProdName" />
      </pos>
   </positions>
</order>
<order vbeln="456">
   <status>C</status>
   <positions>
      <pos nr="010">
          <matnr="9876" />
          <maktx="ProdName" />
      </pos>
      <pos nr="020">
          <matnr="456" />
          <maktx="ProdName2" />
      </pos>
   </positions>
</order>

As you can see there are n>1 orders and n>=1 positions per order. So each position should be a nested table within the order table. But this is actually not allowed to be defined within an BAPI. We only can get the positions and orders in separate tables. Is there a possibilty to match this together?

I hope I described it understandable and any help will be appriciated.

Many thanks and regards

Markus Armbruster

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If somebody else has this issue, here is the solution that helped us:

http://chplanet.ca/documents/SAP/XI%20Mapping%20Flat%20to%20Nested%20Tables.pdf

Regards

Markus Armbruster