"Document  does not exist" exception when updating a Purchase Order, Agentry

Hello Gurus,
I updated a PO in SAP by calling the Bapi. It displays the error:
com.syclo.sap.mm.steplet.POUpdateSteplet::throwExceptionToClient::1513::POUpdateSteplet - Document  does not exist |
I checked on SAP and found the PO there. And in the log file, the PONumber, Company code are sent to the server. Then  why It throws the above exception.
I spent a day but cannot find out what happen to the PO. Please help me. Thank you very much.
Edit: Even though I hard coded the PO Number, it still display the error.
JCO.Structure header = _imports.getStructure("IS_POHEADER");
  String poNumber = user.getString("transaction.PONumber");
  setValue(header, log, "PO_NUMBER", poNumber);
  String companyCode = user.getString("transaction.CompanyCode");
  setValue(header, log, "COMP_CODE", companyCode);
  String purchaseOrg = user.getString("transaction.PurchaseOrganization");
JCO.Structure headerX = _imports.getStructure("IS_POHEADERX");
setValue(headerX, log, "PO_NUMBER", poNumber);
setValue(headerX, log, "COMP_CODE", "X");

Jason,
I checked the SAP error log and found the issue in the log. I am not sure if it is the cause of "Document doesnt exists. Please help me figure it out. Thank you very much.

Similar Messages

  • Item does not exist error when updating item

    Hi,
    I have a list called "Deal" and I have a ItemUpdated event to update the item permission based on a list field "Owner".
    I find the code run well with site collection administrator account. If I use a regular user account to edit the item, it throws "Item does not exist" error after clicking save button. But the item is actually updated.
    I run the code under debug mode and it does not throw any exception. But the page shows "Item doex not exist" error.
    If I retract the solution, the item can be updated normally without any error.
    My code and the error message:
    public override void ItemUpdated(SPItemEventProperties properties)
    if (properties.ListTitle.Equals("Deal"))
    base.ItemUpdated(properties);
    try
    SPSecurity.RunWithElevatedPrivileges(delegate
    using (SPSite elevatedSite = new SPSite(properties.SiteId))
    using (SPWeb elevatedWeb = elevatedSite.OpenWeb())
    SPList elevatedList = elevatedWeb.Lists[properties.ListId];
    SPListItem elevatedListItem = elevatedList.Items.GetItemById(properties.ListItem.ID);
    // Get Lead owner
    SPFieldUserValue uValue = (SPFieldUserValue)elevatedListItem.Fields["Owner"].GetFieldValue(elevatedListItem["Owner"].ToString());
    SPUser owner = uValue.User;
    bool oldValue = elevatedWeb.AllowUnsafeUpdates;
    elevatedWeb.AllowUnsafeUpdates = true;
    elevatedListItem.ResetRoleInheritance();
    // Break inheritance and clear permissions on list item
    if (!properties.ListItem.HasUniqueRoleAssignments)
    elevatedListItem.BreakRoleInheritance(false);
    // Add permissions for current user
    this.SetPermissionsForUser(elevatedWeb, elevatedListItem, owner, "LeadsOwnerPermission");
    this.EventFiringEnabled = false;
    elevatedListItem.SystemUpdate();
    this.EventFiringEnabled = true;
    elevatedWeb.AllowUnsafeUpdates = oldValue;
    catch (Exception ex)
    COMException (0x81020016): Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.<nativehr>0x81020016</nativehr><nativestack></nativestack>]
    Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +0
    Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +256
    [SPException: Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.]
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) +24356360
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +4064980
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +378
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +24
    Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +727
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

    Can you try removing user permissions iteratively.
    The sample code will look like this.
    //get usernames
    string tempFieldValue = listItem["Assigned To"].ToString();
    string[] userNameArray = listItem["Assigned To"].ToString().Split(';');
    //remove permissions first
    web.AllowUnsafeUpdates = true;
    listItem.BreakRoleInheritance(false);
    SPRoleAssignmentCollection raCollection = listItem.RoleAssignments;
    //remove exisiting permissions one by one
    for (int a = raCollection.Count - 1; a >= 0; a--)
    raCollection.Remove(a);
    for (int i = 1; i < userNameArray.Length; i++)
    tempFieldValue = userNameArray[i].Replace("#", "");
    userName = web.AllUsers[tempFieldValue];
    toAddress = userName.Email;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    //EMAIL USER
    bool result = SPUtility.SendEmail(web, appendHtmlTag, htmlEncode, toAddress, subject, message);
    //PERMISSIONS
    //grant permissions for specific list item
    SPRoleDefinition roleDefintion = web.RoleDefinitions.GetByType(SPRoleType.Contributor);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(userName);
    roleAssignment.RoleDefinitionBindings.Add(roleDefintion);
    listItem.RoleAssignments.Add(roleAssignment);
    listItem.Update();
    i++;
    jaik

  • Error "Account assignment 00 for  purchase document does not exist " when u

    Hai,
    I am encountering the following problem when posting a PO based Invoice using BAPI_INCOMINGINVOICE_CREATE.
    The error says " account assignment 00 for purchasing document does not exist".
    The scenario is very simple.  I need to raise an Invoice against a PO. the PO has a single line item of quantity 10 net price 10.  Tax code is U2 ( 7% tax).
    I am passing the following at header level.
    Invoice_indicator ( as 'X'),company code,doc date , posting date, gross amount (107, currency USD, calc tax indicator as 'X'.
    At line item i am passing Invoice document item 000001, po number , po item number, tax code(U2) item amount (100),
    Does this error has got any thing to relate configuration matters?
    Regards,
    Upender

    Hi Upender,
    In some cases, depending on the type of PO / Posting,
    you might have to populate the accounting data itab and pass in the BAPI parameter.
    you can select the accounting data from EKKN for the PO.
    Again it depends on the PO category, wether you need to populate Qty & Unit in accounting data.
    Further, the accounting data should be exactly the same as there in EKKN ( all the fields except Qty & Unit ).
    Thanks,
    Ram

  • PO Print Preview  Error 06019 "Document  does not exist"

    Hi people , i`ve the following issue. I`ve noticed that when creating a PO if the user clicks con the "Print Preview" BEFORE Holding or Saving the document , the system will give the following error msg :
    Document  does not exist
    Message no. 06019
    And then the system will hang , you won`t be able to go back and the whole PO is lost . Does anyone knows how to solve this ? thanks a lot for any help .

    Issue already discussed in this link Re: Unable to Save RFQ and PO.

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CProjects Phase Approval : Approval Document does not exist

    Hello,
    I am trying to approve a phase in cProjects 4.0 (WD ABAP Based).
    When I goto Approval Tab --> Approval Document, it displays:
    Approval Document does not exist
    I have checked the configuration and everything looks correct.
    For Project Type I have activated the Form DPR_APPROVAL_HIER
    The ADS is configured properly.
    I also checked Note 874054 - You cannot start approval w/o approval document, and the config is as per this note.
    What else can be likely reasons for this problem.
    Any help is appreciated.
    Regards,
    Shubham

    Hi Shubham,
    As per SAP, ADS is supported by the following servers only:
    Windows server 2003 on IA32 32 bit
    Linux Suse SLES 9 on x86_64 64 bit
    Linux Red Hat EL 4 on x86_64 64 bit
    AIX 5.2, 5.3 64 bit
    HP-UX 11.11 on PA-RISC 64 bit
    HP-UX 11.23 on PA-RISC 64 bit
    Solaris 9 on SPARC 64 bit
    Solaris 10 on SPARC 64 bit
    Refer http://service.sap.com/pam - Netweaver 2004s - Additional Components.
    Check the Server on which your cProjects has been installed.
    Regards,
    Reema.

  • Billing document does not exist in VF22

    Dear Experts,
       We are working on Invoice list it gives output with LR00.
    but we have created a new output type ZPGR and assigned in
        SD>Billing>Billing document>Invoice List>Maintain Output for Invoice list
         Prgram-RLB_INVOICE and smart form ZS_INVOICE_PACK_2_GRP
    and VF21 i was able club billing documents. but in VF22 while issuing output it give error 'Billing document does not exist'
    checked and found because VBTYP in VBRK for invoice list document(LR) it is 3. but RLB_INVOICE program checking values MNOPSU56.
    any idea how to deal with, is there any other program instead of RLB_INVOICE to assign smart form
    Please suggest
    Regards
    Siva

    Hi Sunkesula,
    below is the sample Z print program.
    i copy some of the code from RLB_INVOICE and change the sapscript calling method to smartform calling method.
    REPORT Z_TEST.
    INCLUDE XXXX. "you may define any include you want
    INCLUDE XXXX. ""you may define any include you want
    *       FORM ENTRY
    FORM entry USING return_code us_screen.
      DATA: lf_retcode TYPE sy-subrc.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen
                         CHANGING lf_retcode.
      IF lf_retcode NE 0.
        return_code = 1.
      ELSE.
        return_code = 0.
      ENDIF.
    ENDFORM.                    "ENTRY
    *       FORM PROCESSING                                               *
    FORM processing USING proc_screen
                    CHANGING cf_retcode.
      DATA: lf_formname           TYPE tdsfname,
                lf_fm_name            TYPE rs38l_fnam.
    * SmartForm from customizing table TNAPR
      lf_formname = tnapr-sform.
    * determine smartform function module for invoice
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = lf_formname
    *       variant            = ' '
    *       direct_call        = ' '
          IMPORTING
            fm_name            = lf_fm_name
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        IF sy-subrc <> 0.
    *   error handling
          cf_retcode = sy-subrc.
          PERFORM protocol_update.
        ENDIF.
      ENDIF.
    "call the fm of the smartform. You may pass in any data you would like to display here
    CALL FUNCTION lf_fm_name
    ENDFORM. " processing

  • Excise Invoice creation error -Billing document does not exists

    Dear Experts,
    I have created supplementary sales order, billing with refernece through sales order by VF01.
    Now I want to create Excise Invoice but system gives error Billing Document does not exists
    I have checked billing document in VBRK table & it is showing in table.
    My item categroy is L2N -and set it to C
    I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
    Pl. guide me.
    Thanks
    Trupti

    Resolved my problem.
    Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
    outbound delivery.
    So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
    Thanks to all.
    Trupti.

  • Document does not exist (Message 06 619) in creation of PO

    Hi All
    Can any one help on this below issue:
    The error is 'Document does not exist' on each item that was on that RFQ to wrong vendor.
    That is because I sent them out on an RFQ with different vendor.
    Now I wish to process and save the PO to correct vendor.
    How do I get rid of those errors that do not allow me to save PO?
    Thanks
    Sada

    issue resolved

  • Shopping cart Document does not exist error while PO creation

    Hi Friends,
      We are in SRM 5.0 Extended Classic and ECC6.0. I am experiening a issue while sourcing. After shopping cart is created and ends up in sourcing cockpit, I try to create PO, I get the error 'Shopping cart Document does not exist'. I verified Number ranges, org structure, and config settings but unable to find a solution.
    This is at a critical stage where I am not able to create PO and hence process is not complete. I am not able to proceed further and need advise on how or where to look for possible issues. I did look at the other SDN postings but was not pertaining to mine.
    Thanks
    Rao

    hI
    Did you get below error message  **** pit.
    Data not found
    Document does not exist
    i believe the error message will not stop you to do sourcing.
    select and assigned to work area and assign source of supply and create a Purchase order.
    i also faced this error long back.
    br
    Muhtu

  • Error at the time of J1IFQ(Sub Contracting) "The Document does not exist."

    Dear All
    At time of Quantity Reconciliation for Sub-Contracting Challan (J1IFQ) i am getting the error " The Document does not exist."
    But 103 & 105 already made without any error.
    Please help me out.
    Chandrashekhar

    Hi,
    Could you please let us know process which you are following for it ?
    I hope it goes like this.
    - Create PO
    - Transfer posting goods to subcontractor
    - Create sub contracting challan
    - Receipt of goods
    - Quantity re concilliation
    - Closing the challan
    If it is with the above process..it should work..
    Thanks and Regards
    Deepak Gupta

  • 'Purchasing document does not exist' error while testing Inbound PO Idoc

    Hi experts,
    i am working on Inbound PO Idoc scenario. I am testing Idoc in WE19 with ORDRSP mesage type.
    Idoc type:ORDERS05
    Process code:ORDR
    FM:IDOC_INPUT_ORDRSP
    while trying to create PO it is giving an error 'Purchasing document does not exist' in we05.
    please suggest me how to resolve this???
    Regards,
    Bhuvan.

    Hi,
    first time i am testing this IDoc and i don't find any field in Idoc structure to provide purchase order value.
    any more inputs plz??
    regards,
    bhuvan.

  • Getting Cost Center Does not exist error when executing BAPI_ACC_GL_POSTING

    Hi Champs,
    I am getting Cost Center Does not exist error when executing BAPI_ACC_GL_POSTING_CHECK.
    But when I checked for the particular Cost center, it is mapped to the same company code the program has got executed.
    Example:
    Cost center 1000/150402 does not exist on 17.11.2009.
    Cost center 1000/150402 does not exist
    Cost center 1000/150402 does not exist on 17.11.2009.
    Cost center 1000/150402 does not exist on 17.11.2009.
    Please let me know if you have any guess on this. It is very critical issue for me.
    Thanks for all your help in advance.
    With Best Regards,
    Ravi kanth Yechuri

    Use 0000150402 not 150402 .
    Rob

  • BAPI_PO_CREATE1 document does not exist

    Hi All,
    I'm creating P/O using BAPI_PO_CREATE1.
    But, below messgae returned and not created P/O.
    Type    Message
    E     Document   does not exist
    E     No instance of object type PurchaseOrder has been created. External reference:
    W     "Latest acceptable GR" date exceeded by a schedule line
    W     Effective price is XXXXXX USD, material price is XXXXXXX USD
    W     Can delivery date be met?
    W     Can delivery date be met? (Realistic delivery date: 2010.08.02)
    W     "Latest acceptable GR" date exceeded by a schedule line

    Hi SUNGJIN LEE
    Kindly check the dates provided form ur side and the functional config for the scheduled line and for creating the PO form it .
    Error would come if u have not provided the data as per your configuration ..
    Regards
    Swapnil

  • Music does not sync properly when updated to latest version.  Can see computer but can't play from ipod

    Music does not sync properly when updated to latest version.  Can see on computer but can't play from ipod.

    Hope this helps...
    I was having the same problem where only 1.7GB of 10GB of selected music would sync so I decided to start fresh.  The following steps worked for me:
    1.  Open itunes and connect iphone 5 if not already.  Uncheck all playlists, artists, etc. till nothing is checked to sync.  Then uncheck the sync music box so that all music will be removed from the phone.  Sync iphone
    2.  Eject device. Quit itunes (don't just close). unplug iphone.
    3.  Restart imac, macbook, or PC.
    4.  Restart iphone.
    5.  Now after power up, restart itunes then plug in iphone, check sync music and select music to sync.  Sync iphone
    6.  It worked for me!!!  Good luck.

Maybe you are looking for

  • Sales orders conversion from OR(standard) type to Directshipment orders

    Hi Friends, My requirement is like that..iam working on SD automation report it will copy standard orders(OR) and will create Direct shipment orders through bapi BAPI_SALES_ORDER_CREATEFROMDAT2.upto this its working fine....Once the OR type order has

  • How do you update and back up your ipod touch 4 to ios 5?

    So I really want to update my ipod touch 4 to ios 5, as it has many new features. The problem is, i am afraid to because i am worried that all my apps, music, and pictures will get deleted. I know many people say to back it up, but when you back it u

  • Insert Filename into IPTC Title metadata

    Good Morning, I am wondering if there is a way to insert the filename of an image into the IPTC title metada. Below is an example of our file name system. (ex. YYMMDD-M-TI822-001) The only part that changes is the 3 digit number at the end. How would

  • Grant select privilege to specific columns on a table to user in Oracle 9i

    Can anyone tell me how to grant select privilege to a user for specific columns in a table? I have tried the following statement GRANT SELECT (EMP_ID) ON EMP TO USER1 But it's not working and I am getting this error "Missing ON Keyword". Please anyon

  • Static NAT with port translation

    Hello All, I have a server running web application on 443 and now I want to publish it on Internet with static nat and just for port 443,  I am thinking that following configuration should be fine, can anyone comment on it.   10.1.1.2:443         10.