Reading order status from backend

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

If somebody else has this issue, here is the solution that helped us:
Mapping: convert multiple tables w/ common key to single one w/ that key?
http://chplanet.ca/documents/SAP/XI%20Mapping%20Flat%20to%20Nested%20Tables.pdf
Regards
Markus Armbruster

Similar Messages

  • API for Work Order status from Released to Unreleased or any user defined s

    Dear All
    Is there any API for to change work order status from Released to Unreleased or any user defined status.
    Take care
    Aamir

    Hi Ben,
    As query is resolved, you should close the Thread after rewarding to the Concerned
    Thanks,
    Manish

  • Unable to read SEARCH response from backend server

    Currently we have problem when searching huge amounts of users against new SunOne Directory Server v6.3
    in production and acceptance.
    [17:12:43] root@ecdiala03-2[!]# /opt/app/sun/ds6/bin/dsadm -V
    [dsadm]
    dsadm : 6.3 B2008.0311.0058 NAT
    [slapd 64-bit]
    Sun Microsystems, Inc.
    Sun-Java(tm)-System-Directory/6.3 B2008.0311.0058 64-bit
    ns-slapd : 6.3 B2008.0311.0058 NAT
    Slapd Library : 6.3 B2008.0311.0058
    Front-End Library : 6.3_MTR_5087249_1_20081209 B2008.1210.1821
    ==============================================================
    It’s not working while searching huge amounts of users against DPS.However, It’s working while searching huge amounts of users against DS.
    Below is the error from access log of DPS when the problem occurred.
    ==================================
    31/Mar/2009:14:08:17 +0200] - CONNECT - INFO - conn=4565433 client=153.88.247.15:2719 server=ecdiala03-1:389 protocol=LDAP
    [31/Mar/2009:14:08:17 +0200] - PROFILE - INFO - conn=4565433 assigned to connection handler cn=default connection handler, cn=connection handlers, cn=config
    [31/Mar/2009:14:08:17 +0200] - OPERATION - INFO - conn=4565433 op=0 BIND dn="uid=itimadm1,ou=system accounts,o=ericsson" method="SIMPLE" version=3
    [31/Mar/2009:14:08:17 +0200] - SERVER_OP - INFO - conn=4565433 op=0 BIND dn="uid=ITIMADM1,ou=system accounts,o=Ericsson" method="SIMPLE"" version=3 s_msgid=17 s_conn=ecditna03-2:72725
    [31/Mar/2009:14:08:17 +0200] - SERVER_OP - INFO - conn=4565433 op=0 BIND RESPONSE err=0 msg="" s_conn=ecditna03-2:72725
    [31/Mar/2009:14:08:17 +0200] - PROFILE - INFO - conn=4565433 assigned to connection handler cn=BindDone,cn=connection handlers,cn=config
    [31/Mar/2009:14:08:17 +0200] - OPERATION - INFO - conn=4565433 op=0 BIND RESPONSE err=0 msg="" etime=0
    [31/Mar/2009:14:08:17 +0200] - OPERATION - INFO - conn=4565433 op=1 msgid=2 SEARCH base="ou=External,o=Ericsson" scope=2 filter="(objectclass=inetorgperson)" attrs="*"
    [31/Mar/2009:14:08:17 +0200] - SERVER_OP - INFO - conn=4565433 op=1 SEARCH base="ou=external,o=ericsson" scope=2 filter="(objectclass=inetorgperson)" attrs="*" s_msgid=18 s_conn=ecditna03-2:72725
    [31/Mar/2009:14:12:25 +0200] - OPERATION - INFO - conn=4565433 op=1 SEARCH RESPONSE err=1 msg="Unable to read SEARCH response from backend server : Timeout when waiting to read from input stream" nentries=33959 etime=248309
    [31/Mar/2009:14:17:25 +0200] - DISCONNECT - INFO - conn=4565433 reason="other" msg="Exception caught while polling client connection LDAP.153.88.247.15.2719 -- java.io.IOException: Connection reset by peer"
    ================================
    >>
    > > [15:12:29] root@ecdiala03-1[!]# ./dpadm -V
    > >
    > > [dpadm]
    > >
    > > dpadm :
    > >
    6.3_PD_COMBO_CUMULATIVE_VIRTUAL_15112008_ED2.0+6774589+6780423+6778308+6782659_2
    > > B2008.1212.0459 NAT
    > >
    > >
    > >
    > > [DPS]
    > >
    > > Sun Microsystems, Inc.
    > >
    > >
    Sun-Java(tm)-System-Directory-Proxy-Server/6.3_PD_COMBO_CUMULATIVE_VIRTUAL_15112008_ED2.0+6774589+6780423+6778308+6782659_2
    > > B2008.1212.0436
    > >
    > > =================

    We have changed the value of data-source-read-timeout in DPS from 20s to 30m.As per application test, the "time out" error has gone, but we get a new error as following.
    ==========================
    [27/Apr/2009:05:28:36 +0200] - SERVER_OP - INFO - conn=209469 op=8 SEARCH base="ou=internal,o=ericsson" scope=2 filter="(objectclass=ericssonInternal)" attrs="EriCA-AttesterNL EriCA-EmploymentForm EriCA-KeyRecoveryNL-Auth EriCA-NL-Auth EriCA-NLOTP-Admin EriCA-NLOTP-User EriCA-accountExpires c cn departmentNumber description displayName eriCompanySynch eriCountry eriCountryCode eriEmployeeStatus eriExpired eriIsManager eriMasterDomain eriOpOrgUnitAbbreviation eriOpOrgUnitIdentifier eriOpOrgUnitName eriOperationalManager eriPartner eriPartnerTrigram eriPwSynchDate eriSignType eriSignum eriSignumStatus facsimileTelephoneNumber givenName isMemberOf l mail memberOf mobile objectClass ou sametimebrowseldap sametimehomeserver sametimeuser smChallResp smDisabled smXauthRADIUSServer sn telephoneNumber title uid uidNumber " s_msgid=27 s_conn=ecditna03-2:8645
    [27/Apr/2009:06:06:23 +0200] - SERVER_OP - INFO - conn=209469 op=8 SEARCH RESPONSE err=0 msg="" nentries=236367 s_conn=ecditna03-2:8645
    [27/Apr/2009:06:06:23 +0200] - OPERATION - INFO - conn=209469 op=8 SEARCH RESPONSE err=0 msg="" nentries=236367 etime=2266483
    [27/Apr/2009:06:11:27 +0200] - DISCONNECT - INFO - conn=209469 reason="other" msg="Exception caught while polling client connection LDAP.153.88.247.15.4862 -- java.io.IOException: Connection reset by peer"
    ================
    Each time while application client (153.88.247.15) connecting DPS to read, they will exit with “connection reset” error.
    Could you please kindly give us some suggestion if this error is realted to the DPS?

  • Mass change of Production Orders status from TECO to CLSD

    Hi All,
    I want to do mass change of Production Orders status from TECO to CLSD. could you tell me is there any t-code by which i can mass change Production orders status from TECO to CLSD. I want Production Orders to be closed, so that further confirmation shouldn't be done for these Production Orders. please let me know the solution.
    Regards,
    Ram

    Hi Girish/Dogboy,
    I can set the status 'Complete' if Order is fully confirmed/fully delivered. When ever i run COHV for partially confirmed/delivered Orders, i get error log saying 'Balance of ORD................ is not zero'. Actually we have lot of Production Orders, where there may be Production Orders released only, partially confirmed etc. so i want them to be closed once for all.
    Regards,
    Ram

  • Order status (from invoice)

    Hi experts,
    I have gone through the relevant thread in the forum but fail to solve the issue below. Plz help. Many thanks.
    Issue: Order status remains being processed even its billing document has been released to accounting.
    Request: Order status show completed when order qty has been full reference in delivery.
    Background: Order type A is  created with reference to invoice F2. "Completion Rule" in item category for A is marked B. In VTAF (from F2 to A), "Pos./neg. quantity" is marked + & "Update document flow" is marked X. In VTLA (from A to delivery), those 2 settings have been maintained as well.

    Hi Shambhu, Lakshmipathi,
    Plz let me clarify my issue. The document flow is sales order -> outbound delivery -> invoice (F2) -> returns order A -> returns delivery -> RE.
    My request is to make returns order A completed if returns delivery qty is equal to returns order qty. U know, if creating order without any reference, order status show completed when order qty is fully delivered. Thus, I could not understand what Lakshmipathi mentioned "standard hehaviour".
    By the way, the information of my system configuration can be found in my first thread, for e.g., "completion rule" B has been set in item category for returns order A.
    Looking forward to your advice.

  • Read byteArray(binary) from backend and display as pdf in flex titleWindow

    i have requirement where the pdf come as byteArray from backend, which i need to read from flex app and diaplay as pdf in the flex titleWindow or any flex popup.
    any ideas on this....,

    Hello Sandra,
    Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
    Can I just pass the pdf_fsize imported from  CONVERT_OTF which is of type i.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE    
    bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
           size           = PDF_FSIZE
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    Thanks,
    Jaya.

  • Reading Order details from buffer

    Hi all,
          I am checking the validations for both header and item level at the time of Order creation in CRM. I am using BADI, CRM_ORDERADM_H_BADI for this. And inside this, I am using CRM_ORDER_READ to read the details from Order. But it is not giving the details when I press u2018Enteru2019. When I do some more changes and press 'Enter', CRM_ORDER_READ  is giving the details. But I want to get these datails in the first hit itself. Is there any FM to read the order details from buffer?
    Regards,
    Santosh

    Dear Santosh,
    Please do try using folllowing FM's to read order from buffer:
    CRM_ORDERADM_H_READ_OW
    CRM_ORDERADM_I_READ_OW
    CRM_ORDER_READ_OW
    Hope this will help.
    Regards,
    Arjun

  • FM or BAPI for reading invoice data from backend

    Hi Experts,
    We use SRM 4.0 and need to read invoice data from Back end (creation time and number).
    Which FM I can use?
    Thanks in advance
    Evgeniy Vazhev

    Hi,
    look at the below BAPI's
    BAPI_CUSTOMER_DISPLAY
    BAPI_CUSTOMER_GETDETAIL2
    Regards
    Sudheer

  • How to get order status from co03

    Hello Gurus,
    Please tell me is there any fuction module available to get status of order from CO03
    or any link that will help to get status...
    Thanking you,
    Gaurav

    Hi Gaurav,
                  I checked few function module.And found few you can have a look at them.
    CO_61_ORDER_STATUS_CHECK
    CO_OCM_ORDER_STATUS_CHECK
    CY_ORDER_STATUS_CHANGE
    ORDER_STATUS_DETERMINE
    STATUS_TEXT_EDI and look for OBJNR.
    Hope your query resolves soon.
    Have a best day ahead.

  • ECC report for sales order status from order entry to Invoice (OTC rpt)

    Dear All.
    Looking to see if there's a standard report or transaction that we can use to review sales order line item status.
    VA05 provides a good view from sales, and VL06O provides a good view from LE, and VF05 provides a good view from billing.
    But there is there something that would list sales orders and show related quantity, open, delivered, billed all in one report?
    Many thanks!

    Thank you Shiva.
    That's what we were thinking as well.  Just wanted to make sure we didn't miss something in case SAP provided a template or customizable program for this.
    Thanks

  • Run-time reading of roles from backend system

    EP5 unification provided the ability of displaying an end-user's backend system roles in the iPanel.  This did not require importing the backend role to EP5.  This greatly reduces the maintenance of roles in EP (especially with BW!

    Hi Daniel,
    You have a possibility to upload the whole Role from R/3 to EP6 Portal. You do it the following way:
    Create system in Portal for your R/3.
    Navigation to System Administration->Transport->Role Upload. Select system that you wish to upload Role from, search for your role.
    That's it!
    All objects in uploaded role become iViews.
    Best Regards,
    Julia

  • Does anyone know how to remove read only status from html document header

    Greetings, I am trying to insert a slideshow widget inot a dreamweaver site using a dynamic web template (DWT). I get the error message unable to insert because header is read only. Any ideas of how to fix this?

    People hate it when I do this, but I'm going to get on my soap box again.
    If you are not an expert or at least highly proficient at modifying XHTML and CSS code, you should NOT be working with DWT files. Until you FULLY understand how to edit and modify nested, editable, parent and child regions, you will have nothing but trouble working with DWTs.
    I've been writing CSS, HTML and XHTML for seven years and I don't mess with DWTs because I'll admit I'm a control freak and I can't stand having any part of a web page locked up by another file.
    Use the pre-designed pages in DW, or download a layout from one of the many sites that have them, but until you are an expert at codework, stay away from templates (dwt). You'll save yourself a lot of headaches.

  • Can Disk Utility get SMART status from external drives?

    I recently updated my backup plan with a NewerTech quad-interface dock and a WD Caviar Green hd. I'm using the FW800 interface to connect to my iMac (10.6.7) Everything works perfectly, as expected. I noticed, though, that Disk Utility cannot report the SMART status on the new WD drive. DU simply says "Not Supported" under SMART Status.
    Is Disk Utility telling me that it doesn't read SMART status from external drives? Or is it telling me that the new drive doesn't support SMART (which I would find highly unusual)? And, if it's Disk Utility that can't read the status, are there any third-party apps that can report the SMART status on an external drive?
    Thanks,
    JimC

    Unfortunately I cannot speak to the NewerTech enclosure, but in principle it appears to be possible to have SMART information displayed even for external drives if the enclosure's bridge controller chip allows it.
    My experience:
    I've used two MacPower Pleiades FW800/400/USB/eSATA enclosures for several years and I've now supplemented them with two additional inXtron enclosures. They all work as expected daisy-chained to the iMac.
    The interesting thing is that the inXtron enclosures came with a CD with some software on it ("Smart AP") which is not available for download, notably a Dashboard Widget for displaying actual and maximum temperatures, total hours of operation, start/stop cycles, drive model and serial number.
    This widget is complete garbage, though – it is a nauseating nightmare of extreme over-design at the expense of even basic usability:
    http://www.inxtron.com/information-center/smart-ap-for-external-hard-drives
    To make matters even worse, it can only display the above information for the first external drive connected.
    BUT: This Widget internally calls a command line utility which does the actual parameter retrieval, and that one can be called from the terminal as well.
    So after installing the software from CD and effectively discarding the Widget, I checked out the command line utility in the Terminal and found that this utility actually reported data about ALL my enclosures, both the inXtron and the MacPower ones (there seems to be firmware compatibility across these):
    (The '$' is supposed to be Terminal's bash prompt – type in only the rest of the respective line.)
    $ /Applications/MacpowerAP/GetSMART 1
    29 50 13 8
    53 67 645 15829
    52 53 90 7105
    51 52 18 13
    Each line reports the following for one connected enclosure:
    [temp] [maxtemp] [cycles] [hours]
    The drives are reported first USB, then FireWire drives, each in the order of first connection / mounting.
    $ /Applications/MacpowerAP/GetSMART 2
    WD-WCA**************
    WDC WD30EZRX-00MMMB0
    5TE09***************
    ST31000333AS-00MMMB0
    5TE09***************
    ST31000333AS-00MMMB0
    WD-WMA**************
    WDC WD30EZRS-00J99B0
    Each drive gets two lines reported, first the drive's serial number ("***" blocking out my exact ones), then the drive model.
    $ /Applications/MacpowerAP/GetSMART 3
    29 50 13 8
    WD-WCA**************
    WDC WD30EZRX-00MMMB0
    53 67 645 15829
    5TE09***************
    ST31000333AS-00MMMB0
    52 53 90 7105
    5TE09***************
    ST31000333AS-00MMMB0
    51 52 18 13
    WD-WMA**************
    WDC WD30EZRS-00J99B0
    This combines both of the above.
    $ /Applications/MacpowerAP/GetSMART 5
    disk4
    disk1
    disk2
    disk3
    This reports the mounted disk names (referring not to the volume names but to the internal Unix names as in /dev/[drive]); Numbering is in connection / mounting order, the actual sequence is as always USB drives, then FireWire drives.
    $ /Applications/MacpowerAP/GetSMART 6
    USB
    1394
    1394
    1394
    This reports the connection interface for each drive in the same sequence as all other commands.
    $ /Applications/MacpowerAP/GetSMART 7
    MPT934DS1.20.0104.00
    MPT934DS1.20.0104.00
    This might report the firmware revision or something like that.
    These are the commands I know about, and they apply only to the "Smart AP" software supplied with current inXtron enclosures, but it may be possible that other brands use it as well.
    I have not been able to identify information about the self-test (early(?) failure warning), but it might be contained as well in the data reported above.
    As always, your mileage may vary and you should never do such experiments without FIRST making sure you've got backups of your data and that such backup is not connected during experimentation!
    Maybe this can help some people getting the information they need; And maybe there are similar capabilities with other enclosures. At the very least it demonstrates that with the proper firmware in the enclosures themselves and some software on the Mac it IS possible to get at least some of the SMART information from the drive in an external FireWire- or USB-connected enclosure.
    None of that is fed into the system's "official" SMART mechanism, though, so no luck using standard mechanisms or applications for it. It's strictly a command-line affair (deservedly disregarding the mishappen Widget).
    Good luck!

  • Production order status REL to CRTD

    Hi Gurus,
    Can we convert production order status from REL to CRTD. Please explain under what circumstances we revert the status from release to created and how?
    Regards,
    Jejesh

    HI,
    You can convert Production Order status REL to CRTD by following way:
    GO to CO02 -
    > Functions -
    > Read PP Master Data
    where you can again reread BOM & Routing
    So after doing Read PP Master Data your production order status will be CRTD from REL provided you should not have carried out any other transaction like GI, Confirmations etc.
    Hope this resolves your issue.
    Revert if any doubt and reward if useful.
    Regards,
    Tejas

  • PM order status remains as PCNF even after completion confirmation & TECO

    Hi,
    For some of the PM orders we created, the order status is till in PCNF and operation status in MCNF.
    We have done the following also
    1) Completion confirmation done for all operations
    2) "Fincal confirmation" and "No remaining work" tabs checked for all operation confirmations
    3) TECO is done
    But still the operations are in mCNF-Manual confirmation status and hence the order is is in PCNF.
    Please let me know how to change the order status from PCNF to CNF.

    Please check any Sub operation confirmation is pending or ? if so please do ( IW41 )
    Riyaj
    Edited by: riyajmaner on Feb 24, 2012 5:08 PM

Maybe you are looking for

  • Error while saving the documents in Transactions MIRO,VA02, VA01, ects

    Hi SAP Gurus, i am geting an popup error while saving or after changing the documents in MIRO VA01, VA02 transactions.. The error is  * " Condition Table Missing : Access JST1 60 ( Pricing Taxes ) " * can u please help me out. Regards Kumar m

  • Problem in adobe application manager

    After installing the Adobe Phtoshop setup, I was installing the Adobe Application Manager. It shows a problem of server not responding. what to do?

  • Upload PDF file to Webdynpro

    Hi Experts, I have read lots of posts, but any post could help me. Perhaps this post may help more people. I have to upload a PDF file to show its contents either implace or in a new window. The FileUpload UI Elements is useless because it needs the

  • I can still copy after creating a No Copy Permitted DVD...?

    I have just created a DVD and clicked No Copy Permitted under Copyright Management. Then I copied the 2 folder of this authored DVD onto the desktop cos I wana do a test to check if I can copy it. I burn a new DVD using Toast and I just found that I

  • Full depreciation for low value assets

    Hi Gurus, How to set up depreciation key of low value assets to get asset fully depreciated irrespective of depreciation start date. For example : Asset No : xxxxxxx xx APC       : 5000 INR Dep. Key : xxx (100% Depreciation) O.Dep.Start Date : 14/05/