Find Sales Order Item Basic Data by Elements query fails

I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
It fails giving the following errors:
(in Log.LogItem.Note variable):
<b>"Conversion failed: Invalid input format"</b>
(in Log.LogItem.TypeID variable):
<b>"701(SFB)"</b>
Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
From the ESOA site, all I could get was:
<i>----
QUOTE -
The following values are optional selection criteria for restricting the search result:
SelectionByID – Document number range
INCLUSION_EXCLUSION_CODE
INTERVAL_BOUNDARY_TYPE_CODE
LOWER_BOUNDARY_ID
Value
UPPER_BOUNDARY_ID Value
Value
UNQUOTE -
</i>
I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
            querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
            querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
            querydata.SelectionByID[0].InclusionExclusionCode = "E";
            querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
            querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
            querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
            querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
            querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

How do you test with a SOAP Client  - I am trying to use same dataset as provided?
I did with WSDL Test - SAP, SOAP Client and got the following error:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Body>
      <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
         <Log>
            <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
            <Item>
               <TypeID>701(SFB)</TypeID>
               <SeverityCode>1</SeverityCode>
               <Note>Conversion failed: Invalid input format</Note>
            </Item>
            <Item>
               <TypeID>701(SFB)</TypeID>
               <SeverityCode>1</SeverityCode>
               <Note>Conversion failed: Invalid input format</Note>
            </Item>
            <Item>
               <TypeID>701(SFB)</TypeID>
               <SeverityCode>1</SeverityCode>
               <Note>Conversion failed: Invalid input format</Note>
            </Item>
            <Item>
               <TypeID>701(SFB)</TypeID>
               <SeverityCode>1</SeverityCode>
               <Note>Conversion failed: Invalid input format</Note>
            </Item>
            <Item>
               <TypeID>701(SFB)</TypeID>
               <SeverityCode>1</SeverityCode>
               <Note>Conversion failed: Invalid input format</Note>
            </Item>
         </Log>
      </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
   </soap-env:Body>
</soap-env:Envelope>
Thanks..
Vikas

Similar Messages

  • Sales Order Item Change Date and delta flag

    is there a field for Sales Order Item Change date in MC11VAOITM?
    Also is there a flag that tell if a record is a delta or not once it is extracted to BW?

    You may be aware, any changes to a document will be recorded in CDHDR (for header changes) and CDPOS (for item changes).  You can explore these two tables.
    thanks
    G. Lakshmipathi

  • Sales order item First Date

    Hi all,
    when ever customer changes the first date they need a pop saying the date has been modified please check it.
    can any one tell me when ever SO item level first date is changed any user-exit available to POP-UP the message.
    Regards,
    Abdul gaffar.

    Hello Abdul,
    In the below sample coding we compare first date from VBEP in databse with the changed first date on screen.
    It is a better idea to put the below coding in a separate INCLUDE and include it inside the userexit_check_vbap form. That way MV45AFZB will have less coding clutter and also in future only the include needs to be changed without needing to lock MV45AFZB (so that more than one project can work on changes to MV45AFZB).
    Also remember that popups break BDC's and background jobs, so any popups that you show during sales order processing should also contain checks so that they only trigger in foreground mode with dialog users (sy-batch IS INITIAL - not background job AND sy-binpt IS INITIAL - not batch input  AND usr02-ustyp = 'A' - only dialog user AND rv45a-docnum IS INITIAL - order not created through IDoc)
      DATA: lv_edatu TYPE vbep-edatu,
            lv_ustyp TYPE usr02-ustyp.
    * Sales document is in change mode
      IF t180-trtyp = charv.
    * Get the user type
        SELECT SINGLE ustyp INTO lv_ustyp
          FROM usr02
            WHERE bname = sy-uname.
    * Trigger the popup for only dialog user during online processing
        IF sy-batch IS INITIAL AND sy-binpt IS INITIAL AND lv_ustyp = 'A' AND rv45a-docnum IS INITIAL.
    * Get first date from database
          SELECT SINGLE edatu INTO lv_edatu
          FROM vbep
             WHERE vbep~vbeln = vbap-vbeln AND
                   vbep~posnr = vbap-posnr AND
                   vbep~etenr = '0001'.
    * Retrieve the first schedule line from screen that is not deleted
          CLEAR ls_xvbep.
          LOOP AT xvbep INTO ls_xvbep
            WHERE vbeln = vbap-vbeln AND
                  posnr = vbap-posnr AND
                  etenr = '0001' AND
                  updkz NE chard.
            EXIT.
          ENDLOOP.
    * If screen first date different from first date in databse show popup
          IF lv_edatu NE ls_xvbep-edatu.
           "Show popup
          ENDIF.
        ENDIF.
      ENDIF.
    To the above poster, it is not better to user userexit_save_document_prepare as this is triggered only during save and many items may have changed. userexit_check_vbap on the other hand triggers for each item that is changed, then and there.
    Best regards,
    Vishnu Tallapragada

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • I need to add push button to last extended price unit in sale order item B

    i need to add push button to field  last extended price unit in sale order item additional data B

    i need to add push button to field  last extended price unit in sale order item additional data B

  • I cannot find purchasing group in Shopping cart item basic data in SRM 7.0

    Hi experts,
    We are using SRM 7.0 and stand alone scenario. When we are creating shopping cart, we cannot we cannot find the purchasing group field in item basic data. We have not changed any standard SC layout and I've already specified the responsibility of the purchachsing group.  Now I have no idea why the purchasing group is not visible.
    Can anybody help me on my issue?  Many thanks.
    Harry

    Hi,
       The values are getting populated in the include "LBBP_SC_UI_ITSF49"...
    set orgdata
      READ TABLE gs_sc-org WITH KEY p_guid = gs_scr_basic_i-guid
                           INTO wa_orgdata.
      IF sy-subrc = 0.
        gs_scr_basic_i-proc_group       = wa_orgdata-proc_group_ot.
        gs_scr_basic_i-proc_group+2(12) = wa_orgdata-proc_group_id.
        gs_scr_basic_i-proc_org       = wa_orgdata-proc_org_ot.
        gs_scr_basic_i-proc_org+2(12) = wa_orgdata-proc_org_id .
       read purch. group description
        CLEAR wa_orgdata_i.
        READ TABLE <item>-orgdata
             WITH KEY proc_group-otype = wa_orgdata-proc_group_ot
                      proc_group-objid = wa_orgdata-proc_group_id
             INTO wa_orgdata_i.
        gs_scr_basic_i-proc_group_text = wa_orgdata_i-description.
      ENDIF.
    Here you can make the changes in the Order of the values.
    BR,
    Disha.
    PLs reward points for helpful answers.

  • Sales Order Item level Configuration data

    I need sales order item level configuration data. I use following function modules to get, But my issue some of configuration DON"T have value only description available. I needs configuration with values or without values ( menas all)
    But function modules not giving complete results.
    CE_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION_IBASE
    VC_I_GET_CONFIGURATION
    CUD0_GET_VAL_FROM_INSTANCE
    Any info ?

    Tried could not find why the function moudle not considering entries don't have values
    But in sales order config  screen if i press page (list) its showing values that don't have values

  • Q30: Cannot find sales order for a committed stock item

    I have a few item numbers which show committed stock in item master data/stock but I cannot find an open sales order or even with an open line on a closed sales order. I have tried various query reports without success.
    Does anyone have a key to unlock this problem?
    Thanks,
    Robin

    Hi,
    Sorry but I am pretty new to SAP and on a learning curve so no idea what note 999124 is or even where/how I would use it.
    Can you explain further please?
    Robin
    Lakshmipathi     
    Posts: 17,513
    Registered: 8/9/07
    Forum Points: 34,462 
    Solved problem (10)
    Very helpful answer (6)
    Helpful answer (2)
       Re: Q30: Cannot find sales order for a committed stock item  
    Posted: Jan 12, 2011 3:18 PM    in response to: Robin Bellion           Reply 
    Check Note 999124 - Incorrect committed\On order quantity when changing orders
    thanks
    G. Lakshmipathi

  • Sales order item data & sales order schedule data

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000
    Many thanks,
    Matt

    > Hello,
    >
    > I have a Sales Orders cube which is pulling data from
    > two DSOs (one for sales order item data and the other
    > for sales order schedule data). The common fields
    > between these two DSOs is the Sales Order number but
    > in my cube I have dual entries for each Sales Order
    > document (item and schedule info).
    >
    Two previous remarks:
    1) If you need to report on very detailed data consider doing an info-set joining both datastores. 2 reasons why:
    - not a good idea to report on very detailed information (sales order, GI dates) on cube level, if you have a scenario with lots of data. You end up with big dimension tables a poor report times;
    - there are better alternatives, like drill-through from cube query to DS query with report to report interface or Datastore-based reporting...so...
    With this solution you do not need to change the data model, I think, but test to be sure. See if the reporting times are acceptable. If not...
    2) First confirm your requirements, because what you show in your example as "to-be" have details that do not make sense, probably..
    - if you have more that one schedule line for each item then you would have many times the item information like material/price;
    - if not or if you could cope with that, then you can consider:
    2.1) create a new DS that agregattes from the previous on, with the same key of sales order item; do you have schedule line kf's? if so you these KF's should be additive in DS update; But if you may have more one scheduled line for 1 item then you have to decide what to do with the GI data (keep the last one posted, use code..) and other characteristics.
    2.2) update the shedule line datasource to the sales order item DS; same comments apply.
    2.3) maintain the missing data in the cube update rules from sheduled lines DS. Using code, refer to the respective item in the order item ODS. You would have to make sure that DS's data are correctly activated before updating the infocube.
    What solutions to choose?
    2.1 is better in terms of flexibility and architecture...because you could re-arrange the new DS to answer future needs, without loosing the 1st line DS's data;
    2.2 choose if data volumes and disk space are a concern...
    or
    2.3 it's OK, but i do not like it because of what explained in point 1...
    Message was edited by:
            Miguel Costa

  • Sales Order Item Data & Sales Order Schedule Lines

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    <b>Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . .  Act GI Date</b>
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10  
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15  
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    <b>Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . .  Act GI Date</b>
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000 
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000  
    Many thanks,
    Matt

    Hi Matt,
        Its no possible If you are maintaining data at Order Level.
    Try to introduce one more ODS/DSO in between ODS's and CUBE by keeping Sales Order only key field. Load data from both DSO's in required fields only. Then PUSH delta to CUBE. In this why you can maintain 1 record. Try to compress cube(with delete Zero Record Rows) to delete unnessasary records.
    Hope it Helps
    Srini

  • In which tables can I find the sales order item texts?

    Experts,
    In SD, we have texts on sales order item level. These texts can be filled manually or automatically via access sequences. My question is very simple: in which table can I find these texts? I want to extract them for a big number of sales orders.
    Reward points if helpful answer.
    Thanks

    hi
    try in
    TVAPT     Sales document item categories: Texts               
    TVAKT     Sales Document Types: Texts
    TVAUT     Sales Documents: Order Reasons: Texts
    TVAST     Sales Document Blocking Reasons: Texts

  • How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)

    Hi all
    I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
    Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
    Many Thanks in advance
    Ishi

    Hi Hari
    Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
    It says in R/3 Start of Processing, I ticked to continue and its still running.
    In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
    Can you tell me how long it takes to fill the table?
    And the R/3 system is still running (Start of Processing)
    Thanks again
    Ishi

  • Change End date of billing plan/invoice plan in sales order item(fpla-erdat

    Hi Experts,
    Could you please help to me regarding this issue.
    I need to change  End date of billing plan/invoice plan  in sales order item  of  "billing plan" Tab.( FPLA-ERDAT) for all line items. It is not a one sales order,more than 1000 sales orders.
    How can i change those end date of billing plan for all line litems and all sales orders ( i have input file with sales orders, items, dates.)
    Thanks
    jaya

    Hi ramki,
    I tried with using  MASS  T.code ( bus2032 Object type).
    There are no field  related to Billing plan end date?.if case i done wrong ,tell me what are steps while using MASS T.code.
    now what i can do. or explain
    Thanks
    jaya

  • Change End date of billing plan/invoice plan in sales order item

    Hi Experts,
    Tell me what are tables to be updated,when i changed end date of billing plan/invoice plan ( "billing plan" Tab in sales order item).?
    Thanks
    jaya

    vbrk and vbrp

  • FM for Updating Installation date in Contracts + sales orders Item level

    Hi
    Plesae give any FM for Updating Installation date in Contracts + sales orders Item level for contracts tab.
    Thanks and Regards,
    Vishnuvardhan....

    Have used the billing transaction to set a Default Billing date at time of blling.

Maybe you are looking for

  • Photoshop Elements 6.0 Insufficient RAM

    Help! I just finished  a photo merge and received an error message stating, "Could not complete your request because there is not enough memory (RAM)".  What can I do? Please help! THANK YOU!! Cheers, Jason

  • Keynote not sending video out on my ipod touch 3gen.

    Im using the av cable. It works great with the photos app, i can see the photos slide show in the projector. But it looks like keynote is not recognizing the cable or something else, it just dont sends the video out. Is there any setup that I'm missi

  • The Customer not showed in customer form

    Dears, how are you ?? I am in a problem . I used hz_party_v2pub.update_person API to update the customer first name and last name . It updated already on table hz_parties and i checked it . But when i query it from the customer form ,it not showed me

  • Chapter ID and material

    Hi, We require a way to manually enter the commodity codes. Unfortunately, there isn't anyway from what i have tested. If anyone has any ideas let me know. The other question is can i use chater IDs as commodity codes? and if yes then what are the st

  • After 30 man hours spent on trying to get everything in sync:

    I have learned that: 1/ the data on iCloud has to be considered the data base that is in control. 2/. Shut down other devices that are using iCloud.  They will continue to sync while you are trying to clean up your calendar entries and contacts. 3. M