Create the Delivery Notes

Hi, all
The Document in oinv and inv1 with DocEntry 18 is exist,
ItemCode have not binding with batch or series,
i want create the Delivery Notes, code C#:
     SAPbobsCOM.Documents dShipment =
     (SAPbobsCOM.Documents)Sbo.Instance.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
     dShipment.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes;
     dShipment.DocDate     = DateTime.Now;
     dShipment.DocDueDate  = DateTime.Now;
     dShipment.Comments    = "";
     dShipment.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;
     dShipment.DocTotal    = 100000.00;
     dShipment.CardCode    = "ÂÅÑÊÎÐ";
     dShipment.CardName    = "";
     dShipment.Lines.ItemCode     = "FCA 3430";
     dShipment.Lines.Quantity     = 1.0;
     dShipment.Lines.Price          = 100000.00;
     dShipment.Lines.BaseType     = 13;
     dShipment.Lines.BaseEntry     = 18;
     dShipment.Lines.BaseLine     = 0;
     int nRet = dShipment.Add();
     if(nRet != 0)
     // error : , 'Error (-1004) encountered.'
Delivery Notes don't created

Hi Gennadiy,
I think the Delivery note is already closed. I did your test in my SBO and got the same error. Go into SBO and test if you can load that delivery note for that customer into an invoice.
Hope it helps,
Adele

Similar Messages

  • Not able to create the delivery document in '000' client of IDES

    Dear Experts,
                           I am facing a problem while creating an sd process flow in the client '000' of SAP IDES system. I am working over SD CIN. Previously I received an error while generating sales order. The error was stating that certain entries were missing in the table CRMPAROLTP & it was the error message number V3, 302.
    For that I went to SM30 & defined 'CRM_RELEASE' (under parameter name) & '600' (under parameter value), which solved my problem. Now I received another problem while creating the delivery document which is as follows:
    Problem :   "Message no. B2 001 : Local logical system is not defined"
    Kindly assist me in sorting out this problem. I checked the stock level at MMBE, but the stock was not reduced with the quantity as was specified under the delivery document & at the same time the document number was also not available for further processing.
    What to do?
    Thanks & regards,
    M.S.Kumar.

    Hi Prashant,
    Thank you very much for resolving my problem. Meanwhile I first went to trx. code 'BD54' &, there I defined a new logical system & ultimately assigned that logical system to client at 'SCC4' as specified by you. And my problem got resolved.
    Thank you very much once again.
    With regards,
    M.S.Kumar.

  • How to create a pop up window while creation of the delivery note.

    Hello Experts
    How to create a pop up window while creation of the delivery note.
    As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
    For e.g.
    Str. Loc     Qty      UOM
    DE01        100        KG
    DE99          50        KG

    Dear all,
    i m having two document numbers for invoic of same types such as output type print program and smartform.
    biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
    Directly the cursor comes to initial stage of vf03.
    suggest what to do
    Thanks and regarnds
    ravi

  • Error while creating the delivery for STO

    Hi,
    While creating the delivery, an error is produced when i saw the log . It was as follows
    "An Item with no delivery quantity is not permitted. Item will be deleted"
    Its related to STO,. if STO contains around  100 items and error is for any single item system is not able to create the delivery for whole PO.
    Please guide as its an vey urgent issue will reward with suitable points.
    Regards,
    Vikram

    Hi
    while creating  delivery make that particular material's delivery quantity as 0. and do not  enter any picking quantity.
    that material will not be consider while making delivery.
    Regards,
    vijay

  • Error while creating the delivery in ME2O

    Hi Gurus,
    when the shipping depeartment is trying to create the delivery in ME2o to send the components for subcontractor, we are gettign the error message
    Essential transfer parameters are missing in record:  000001
    Please heklp on this one?
    and as an ibservation i do see that this vendor is not setup as customer in vendor master in the purchasing data view of the vendor master. Is that the problem?
    thanks
    Anusha
    Edited by: anusha vemulapati on Oct 21, 2009 6:31 PM

    Yes, it might be one reason. It is mentioned in the error message (VL561).
    Please create the ship-to party, extend it to the plant's sales area and assign it to the vendor master. /plant sales area is in V_001W_IV/
    Please try it and if still you get the errors come back. (Please read the error message and check all the thing described there)
    Regards,
    Csaba

  • Error when trying to create a delivery note from a sales order -  Internal error (-2010) occurred

    Hi
    I am trying to create a delivery note form a sales order in B1 V9 PL8 and I am getting the following error -
    Internal error (-2010) occurred
    The code has been working but we seem to be getting problems now
    Can anyone suggest anything please ?
    Copy of the code attached
    Thanks
    Andy

    Hi Andrew,
    Try replacing this line:
    odel.Lines.BaseLine = lineno - 1
    with this:
    odel.Lines.BaseLine = oorder.Lines.LineNum
    Beni.

  • Item availability for selected items and directly create the delivery

    Hi All,
    For a very big sales order ..lets say having 700 line items ...is there any convenient way to create the delivery for selected items ..e.g. 30-40 line items rather going and selecting the line items then doing the item availability.
    do you have any LSMW format by which we can do the item availability for selected items and directly create the delivery.
    kindly Guide me..
    With Regards
    Azeez.Mohd

    Hi ,
    There is no stand way of doing it . You need to take help of abaper to do this :
    1. Create a t code where if you give sale order number , it displays a report with all the items with a check box near to it as we see in SE16 .
    2. This report could be best in ALV form where users can do "ctr+f" and search only the required materials then select those lines and press a button on the top of report .
    3. Once the button is pressed , program will run vL01n ( create delv in backgrnd) in a BDC form . At time of delev creating , the bdc program in backgrnd uses only those items which were selected by user and not the other items .
    4. Program will create a delv using a BDC in background and return the delv number for user to view tht.
    U can also try using FM : RV_DELIVERY_CREATE to create delv in backgrnd after user selection if BDC is getting tricky.
    Hopefully ,this shuld work and will be a easy process for the customers.
    Let us know the outcome .. .
    B O L ..
    Hope this Helps !!!

  • Passing field info from PR to PO and to the Delivery note

    Hi!
         I'm adding custom fields in Purchase requistion , purchase Order and delivery Note.
         This custom field information has to be passed from requisition to the purchase Order and also to the delivery Note.
         I need Help in doing this.
    thanks,
    Shubha

    Hi!
       I used the MM06E005 to create and populate the custom fields for PO.
       Similary i used MEREQ001 to create and populate the custom fields for PR.
      All I need is .. When I go ME21N transaction. Click on document overview select  PR and that PR i drag and drop into the shopping cart. When i do that the values from  PR should copy into PO.
    Thanks
    Shubha

  • How to put footer in the Delivery note  sap script form.

    Hi All,
      i am new to SAP SCRIPT , can any one guide us how to Create a footer in the Delivery note sap  script.
      I need to put  some message if the stock of the material is "0"(zero).
           can anyone  tell me the process to do this.
    Thanks
    Channappa Sajjanar

    Hi,
    U create a window in script (Footer), and in the Driver program call this window at last..
    eg:
    create a window in script and call it at the end in the layout..
    /E FOOTER
    P1 'Write Required text what u want to display;.
    now in print program, after printing all the line items in ur internal table call the FM write_form to print the footer...
    LOOP AT itab.
      call function 'WRITE_FORM'
        exporting
         window = 'MAIN'
        exceptions
          others = 1.
    endloop.
    now call, FM write_form to print the footer
    IF stock EQ 0.
    call function 'WRITE_FORM'
        exporting
         window = 'FOOTER'
          element = 'FOOTER'
        exceptions
           others = 1.
    endif.
    Hope it helps!!
    Rgds,
    Pavan

  • Create a delivery note after an advance invoice is paid

    Suppose that the use of an advance invoice is that you deliver items to your client only after your client has paid the price for these items in advance.
    Now assume the following situation:
    1.
    You book an advance invoice.
    2.
    You wait until the amount of this advance invoice is paid by your client, i.e. until you are informed by your bank on the receipt of a payment.
    3.
    You book the receipt of payment in SAP.
    4.
    After this the status of the advance invoice is set to closed by SAP.
    5.
    This document status makes it unpossible to create a delivery note related to the advance invoice - the only way is to create a seperate delivery note without any relation to the original advance invoice.
    My question: Did I get the situation right? In this case I would say that the behaviour of SAP is erroneous - or are there any implicite reasons for this design decision?
    Any idea to come along with this?
    Thanks for your help!
    Frank.

    My question was too hasty.
    As I wrote in step 4 of my initial message after booking of payment in SAP the advance invoice is closed - this is correct.
    But my conclusion in step 5 is not correct in total:
    It is correct that you cannot create a delivery note as a sequel document to the advance invoice using "copy to" in the advance invoice form, since the advance invoice is already closed -
    but you can create a sequel delivery note document using "copy from" in a delivery note form related to the already closed advance invoice!
    Hence my question is obsolete!

  • Create a Delivery note from a picking List and many binallocations

    Hi,
    Recently, I get how create a delivery note form a picking list with batchnumbers, but now I have the following case.
    Quantity       Product       SerialAndBatchNumbersBaseLine
    10                ID200                              0   
    5                  ID200                              1
    now I set the batchNumbers
    location    batchnumber       quantity
    02-A              XY                   10
    02-B              YY                    5    <---    this location give me error.
    now the rest of articles
    Quantity       Product       SerialAndBatchNumbersBaseLine
    10                ID200                              0   
    5                  ID200                              1
    location    batchnumber       quantity
    02-A              XY                   10
    02-B              XY                    5  
    etc.
    I get the next error:
    1470000344 - Batch "YY" of item "ID200" in bin location "3108" falls into negative inventory.
    When I find this "3108" this "select * from OBIN where AbsEntry = 3108" is the batchnumber for XY and not YY.
    so how is the way to create a delivery note with many binallocations? 
    (if required I will paste code.)
    Kind regards,
    Pablo

    Hi Pablo,
    based on the code from the other thread it should be like that for the first row:
    delivery.Lines.ItemCode = "ID200";
    delivery.Lines.Quantity = 15;
    delivery.Lines.BinAllocations.BinAbsEntry = 3107; // guessed AbsEntry
    delivery.Lines.BinAllocations.Quantity = 10;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
    delivery.Lines.BinAllocations.Add();
    delivery.Lines.BinAllocations.BinAbsEntry = 3108;
    delivery.Lines.BinAllocations.Quantity = 5;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 1;
    delivery.Lines.BatchNumbers.Location = "02-A";
    delivery.Lines.BatchNumbers.BatchNumber = "XY";
    delivery.Lines.BatchNumbers.Quantity = 10;
    delivery.Lines.BatchNumbers.Add();
    delivery.Lines.BatchNumbers.Location = "02-B";
    delivery.Lines.BatchNumbers.BatchNumber = "YY";
    delivery.Lines.BatchNumbers.Quantity = 5;  
    You got now :
    1 Delivery Row, Quantity 15
    2 BinLoc Rows, Quantity 10+5
    2 Batch Rows, Quantity 10+5
    regards,
    Maik

  • Creating a delivery note based on a sales order in SBO2005

    Hi
    I am using the diapi to create a delivery note based on a sales order. Everything works well apart from I have 3 user defined fields on the sales order lines, 2 numeric and one which is a combo box.
    The 2 numeric values as copied across ok but the combo is not.
    I don't know what the delivery number is as I guess SAP assigns that after I save the delivery note.
    Can anyone help me with this please ?
    Regards Andy

    Hi Paul & Gilbert,
    As you assumed, the docentry is created at the moment when you are saving the document.
    The docentry for the last created document can be retrieved from the Company object. There are two alternative methods for this: GetNewObjectCode and GetNewObjectKey. Please see the DI API reference for more details. These are the only reliable way to get the last created docentry. A query might work nicely in 95% of the cases, but in a multi-user environment it will sooner or later produce incorrect results.
    Henry

  • How to restrict the excess quantity delivery from the delivery note ?

    Dear All,
    As we know we make the delivery note with the reference of sales order so ordered quantity will be copied in the delivery note automatically. At the time of picking we can reduce the delivery quantity and make the partial delivery.
    But for example I have the sales order of quantity 5 and I make the delivery with refernce of same Sales order so my delivery quantity comes 5 and now if I make the quantity 7 instead of 5 in delivery note only and do the picking of 7 quantity yet system is allowing me then PGI is also possible. It means I delivering excess good than the ordered quantity. Which should not happen to make the cycle full proof.
    I dont what setting is required to avoid this major error. please Gurus Reply soon.
    regards,
    Vojas

    Hi,
    Use t-code 0VLP, select your item category which u determining in delivery >>> Go to details>>>in fron of Min/Max Qty put option B
    Check minimum qty   --- B (Situation rejected with an error message)
    Check overdelivery  --- B (Situation rejected with an error message).
    When user try to change qty,system will give error.
    Kapil
    Edited by: Kapildev Farakte on Dec 28, 2009 10:33 AM

  • How to look as to who has deleted the Delivery note

    Hi
    I have a issue from one of my customers who mentioned in his problem that he needs to find out as to who has deleted a Delivery note. He has mentioned the Delivery note number.
    I have tried looking at SM21 & tables CDHDR and CDPOS but I could not find. I tried to simulate the similar issue in my development environment by deleting one of the deliveries and checking in Transaction SM21if it displays my name, but it did not.
    Please help me in this issue or at least let me know how to approach this problem.
    Thanks

    Hi,
    You can find the Information from the CDHDR table
    Goto the table in SE16 and ehter the details for the table like
    OBJECT CLASS   As   LIEFERUNG
    OBJECT ID    As   DELIVERY DOCUMENT NUMBER ( It should be 10 digits)
    Now execute.
    It will all the information on who deleted.
    regards,
    santosh

  • BAPI or IDOC to create the Delivery in R/3 for the SaleOrder created in CRM

    Dear All,
    When ever I create a sales order and save the sales order in the crm system, an outbound delivery is created in the R/3 system.
    I have added some new fields in the tables LIKP and LIPS.(related to delivery)
    Now I have to populate data into these new fields with the CRM data.
    So can any one tell me when I create a sales order in CRM, does the system uses any BAPI or IDOC to create the Delivery in R/3.
    The BAPI name or Idoc information will be very useful.so that I can extend them
    In crm the BDOC ‘BUS_TRANSACTION_MESSAGE’ is used.
    Thanks in advance.
    Regards
    Shafath

    Hi All,
    I found a solution to my problem.
    The BAPI ‘BAPI_DELIVERYPROCESSING_EXEC’ will be enhanced to add the new fields into the BAPI structure.
    The BADI ‘/SPE/BAPI_DLVEXEC_EX’ and the user exit ‘EXIT_SAPLV50R_CREA_001’ will be used to populate the data into the new fields created in the BAPI structure and the new fields added into the tables LIKP and LIPS.
    Regards
    Shafath

Maybe you are looking for

  • PRAA - no batch input created

    Hello Experts, In ECC6.0 - transaction PRAA - we see the following error message "batch input session not created, message number 56_CORE016". This is only in our live system. In the test system, everything works correctly. So the vendor is created w

  • PDF Submit button creates winmail.dat issue...

    Hi all, I am attempting to create a fillable form (PDF) which includes a submit button, which on clicking attaches itself to an e-mail (Outlook 2013), populates the recipients, subject and body text.  I have created the document (using a submit form

  • IMac is very hot top half of machine

    I was wondering if anyone out there has a new 24" aluminum frame iMac and has noticed that the aluminum chassis gets very hot, and I do mean hot. I was wondering whether Apple intentionally went to the aluminum frame so that it would act as a heat si

  • Firmware Updates for Westell 327w Router?

    hi there! just curious if Verizon ever updates the firmware for the "Westell 327w" wireless router, and if so, where to find it.) Westell's website just says talk to Verizon about it... no big deal, just like to keep my stuff up to date.) thanks! 

  • On the game GOW HAS ANYONE HAD A PROBLEM BUYING GOLD

    Hi everyone, I've been playing the game Game of War fire age, and every time I've tried to buy gold on the game from the iTunes Store it saying can't log in purchase could not be completed, please contact iTunes Support, has anyone else encountered t