Problem in Creating Delivery Note using DI API

i am using DI Api with Delphi Language to Create a Sales Delivery Note based on the sales Order.
But Each time when i add, a new Record gets Created rather than the new Line.
      Document:= IDocuments(FCompany.GetBusinessObject(oDeliveryNotes));
      Document.CardCode         := 'A001'
      Document.Lines.BaseType   := 17;
      Document.Lines.BaseEntry  := 84;
      Document.Lines.BaseLine   := 4;
      Document.Lines.ItemCode := '001A';
      Document.Lines.Quantity := 10;
      Result := FODLN.Add;
In this case,new rows are added each time in the tables ODLN and RDR1.
How to avoid this.As this creates a individual Delivery Note for each time i add than to the Order Number.

HI,
The problem : Do not specify ItemCode if you specify Base document.
So
1st case
Document:= IDocuments(FCompany.GetBusinessObject(oDeliveryNotes));
Document.CardCode := 'A001'
Document.Lines.BaseType := 17;
Document.Lines.BaseEntry := 84;
Document.Lines.BaseLine := 4;
Document.Lines.Quantity := 10;
Result := FODLN.Add;
or
2nd case
Document:= IDocuments(FCompany.GetBusinessObject(oDeliveryNotes));
Document.CardCode := 'A001'
Document.Lines.ItemCode := '001A';
Document.Lines.Quantity := 10;
Result := FODLN.Add;
1st case creates delivery note with only one row with reference to Sales Order
Take care: BaseLine comes from 0
2dn case creates delivery note with only one row WITHOUT reference.
if you have more than one rows, use the
Document.Lines.Add to enter another row
Regards,
J.

Similar Messages

  • Subcontract PO error VU013 when creating delivery note using ME2o

    FYI to the forum, I had a user getting error VU 013 "Document is incomplete: You cannot save the delivery" when attempting to create a delivery note to send components to a subcontract vendor using ME2o.
    I spent quite a bit of time researching this on this site and did not find a solution to my problem. As it turns out, the issue was that this part had a serialization profile which required serial numbers to be assigned in the delivery note. Our workaround solution was to change the serialization profile to one which did not make it obligatory on the DN. We then issued the DN and manually assigned the serial number to it, then finally changed the material master back to the obligatory profile.
    Ideally, we would have liked the error message to indicate exactly what made the document incomplete (i.e. missing serial number in this case). I am not sure how to do that. Also, I found information regarding activating enhancement for serial numbers in purchasing (in EhP4). Presumably, this would allow me to specify the serial number(s) of the components to be issued to the vendor in the purchase order, and therefore automatically copy this into the subsequent DN. I activated this functionality, but did not get it to work. (Serial number maintenance was not visible in my PO.)
    If anyone has successfully dealt with either of these things (changing the error message, or activating the functionality) let me know. Otherwise, I will close the thread, as I just wanted to notify people of my findings regarding reasons for the error, and my workaround.

    I think the solution from OSS note will help to know the exact reason of the VU013 error:
    335504 - Not possible to save delivery because of VU013
    and OSS note
    1029482 - ME2O: ME 346, although serial number usage optional
    gives more insight and suppress the error message

  • How to print Warranty (Duration) on Delivery Note using PLD

    Hi,
    How can I print Warranty (No. of Months) on Delivery Note using PLD. Warranty is already defined in a service template which is assigned to Item Master record.
    when i try to print "duration" from OCTT is shows all the duration values set in all service templates with the combination of all the items in the delivery note. Please help me. I am working on SAP B1 2007 A PL47.

    Hi
    Its Very Easy just Follow the Steps:
    Create One DB field in Repetative area0 - Table -octt(contract Temp) Column- Duration(Duration of Coverage)
    Check the Item code Field or Item description field for EX( F_123), then in Duration DB field - Go to Properties -Field in that - General - Lint to - connect the  ( F_123), code Field or Item description field for EX( F_123),
    So it will show automatically Duration of the Item which was connected in master data.
    It works perfectly in 2007B PL 10.
    If issue Resolved pls close the thread
    Giri

  • When manually creating delivery notes, the Actual GI time ?

    Hello,
    When manually creating delivery notes, the Actual GI time (used for pricing determination) is set to the document creation time (CPU time) but expressed in the UserId's local time zone.
    Regards,
    Neel

    Hello Ram
    Please help me out to solve this issue
    When manually creating delivery notes, the Actual GI time (used for  pricing determination) is set to the document c
    Creation time (CPU time) but expressed in the UserId's local time zone.
    The correct Actual GI time should be the CPU time in CST time zone, independant of the user.
    The Delivery doc. was created on 04/20/2011 at 11:11:32 UserId's local time zone (CET).
    The Actual GI time was set per default to 11:12 based on CET CPU time the expected time is 04:12 CST
    Edited by: neeljasani on Apr 27, 2011 5:20 PM

  • Problem in creating delivery through VL10B

    Hi,
    While creating delivery through VL10B, i am getting error -
    An item with no delivery quantity is not permitted. Item will be deleted.
    What should be error???
    Ref. My previous Thread..
    Re: Problem in creating delivery through VL10B
    Regards...

    In MMBE transaction, there is sufficient stock.
    Please clear, if this will be allocated to other outbound deliveries..then any problem... How can I check this, that it is allocated to other outbound deliveries.
    How can we it found under the stock "Schedule for delivery"..
    Regards..

  • Not allow to create delivery note if not enough stock

    Hi
    is it possilbe not allow to create delivery note if not enough stock? how can i do it
    thanks

    In case of partial delivery, it allows creation of delivery and PGI only for the quantity of the material which is available in unrestricted stock.
    If it is complete delivery and if the stock is not available, it tells you the log saying that only X quantities of delivery is possible and it will ask you to enter the quantity you want to deliver. But as ur sales doc is marked for complete delivery, delivery wont be possible for this.
    In nutshell, if you want to deliver the quantity which is more than the available quantity in stock, delivery creation wont be possible.(Tested and confirmed)
    Rwd if this helps
    Message was edited by:
            Navaneetha Krishnan

  • How to check whether a Document in KM is classified or not using JAVA API

    Hello Everyone,
      Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
    Thanks & Regards,
    Adren D'Souza

    Hi,
    The code is as follows:
    IIndexService indexService = null;
    try {
       indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
    } catch (ResourceException e) {
       if (indexService == null) {
         log.errorT("Error on instanciating the index service");
         return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
    // get index
    IIndex index = null;
    try {
       index = indexService.getIndex("YourIndexID");
    } catch (WcmException e1) {
       log.errorT("Error when trying to get the index");
       return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
    // check if the index is a instance of AbstractClassificationIndex
    AbstractClassificationIndex classiIndex = null;
    if (index instanceof AbstractClassificationIndex) {
       classiIndex = (AbstractClassificationIndex) index;
    } else {
       log.errorT("The index " + index.getIndexName() + " is no classification index");
       return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
    //give your KM Resource here for which you want to know if it is classified or not
    boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
    Regards,
    Praveen Gudapati

  • Error while creating Delivery Note from Sales Order

    Hi,
    I am trying to create Delivery Note from Sales Order. But, I am getting one error sayin "An Item with no delivery quantity is not permitted.Item will be deleted". Hence, the delivery note was not created.
    Can you please let me know, why this error comes. And how to rectify this error.
    Please let me know, what are all checks, I need to do, to know this error.
    Thanks,
    Sandeep

    Hi
    There may be following reason :-
    Either the relevant Item Category is not relevant for Delivery, Check the Item Category in Sales Order and then check the settings of this Item Category in VOV7.
    Also check the relevant Schedule Line in VOV6, it should be relevant for Delivery.
    The Other reason may be that your schedule line in Sales Order is Not confirmed for Available Quantity so check the Sales Order> Line Item> Schedule Line.
    Regards
    Amitesh Anand

  • "Create Delivery" Not Allowed

    Hi,
    I have created an order, when I tries to do the delivery for this I
    gets the error : "Create Delivery" Not Allowed ( Sys.Status EXLS
    Object VB0000008166000010 ). If you need the screen shot, I will send that too.
    Can anybody help me on this, I am facing this issue from quite a long time.......
    Thanks in advance.

    Hi Naveen,
    Thought might help you.
    Delivery Issue
    Regards
    NP

  • Create Delivery not allowed-status

    for an SD Order (Make to Order scenario), we are getting an eror that : ""Create delivery" not allowed (Syst Status Cost, object VB001776271717).  I am unable to understand this.  Can you please guide me.

    Hi,
    I am also getting the same error and i did costing from CK51N but still the same error.
    "Create delivery" not allowed (Sys. status Cost, object VB0000060000000010)
    Message no. BS051
    Kindly advise.
    Thanks,

  • WLCS 3.5 - Creating portals not using GUI tools

    are there any docs that describe how to create portals not using the GUI,
    ie, what data gets added and where so that we could automate the creation of
    a portal if we wanted to?
    thanks
    Filip
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net

    are there any docs that describe how to create portals not using the GUI,
    ie, what data gets added and where so that we could automate the creation of
    a portal if we wanted to?
    thanks
    Filip
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net

  • Create delivery document using bapi_deliveryprocessing_exec

    Can any one send me the sample code to create delivery document using BAPI_DELIVERYPROCESSING_EXEC BAPI.

    Hi,
    Use the fm:     'SHP_VL10_DELIVERY_CREATE_PARA' for creatting the delivery.
    The below code creates the delivery document:
    *& Report  ZSTATUS
    REPORT  zstatus.
    DATA: t_vbak LIKE vbak   OCCURS 0 WITH HEADER LINE.
    DATA: t_vbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbep LIKE vbepvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbkd LIKE vbkdvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbpa LIKE vbpavb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbuk LIKE vbukvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbup LIKE vbupvb OCCURS 0 WITH HEADER LINE.
    DATA: t_vbfa LIKE vbfavb OCCURS 0 WITH HEADER LINE.
    DATA: c_vbfa LIKE vbfavb OCCURS 0 WITH HEADER LINE.
    DATA: ls_sd_keys     TYPE sales_key.
    DATA : key      TYPE shp_sales_key_t,
           sd_order TYPE shp_vl10_sd_order.
    p_vbeln(sales doc no) = '5000006100'.
      AT END OF vbeln.
        REFRESH: t_vbak, t_vbap,
                 t_vbep, t_vbkd,
                 t_vbpa, t_vbuk,
                 t_vbup.
        CLEAR : t_vbak, t_vbap,
                t_vbep, t_vbkd,
                t_vbpa, t_vbuk,
                t_vbup.
        REFRESH: key.
        ls_sd_keys-vbeln = p_vbeln.
        APPEND ls_sd_keys TO key.
        CLEAR:ls_sd_keys.
        CLEAR: sd_order.
        CALL FUNCTION 'SHP_GET_SD_DATA'
          EXPORTING
            it_vbak_key = key
          CHANGING
            cx_sd_order = sd_order.
        APPEND LINES OF sd_order-vbak TO t_vbak.
        APPEND LINES OF sd_order-vbap TO t_vbap.
        APPEND LINES OF sd_order-vbep TO t_vbep.
        APPEND LINES OF sd_order-vbuk TO t_vbuk.
        APPEND LINES OF sd_order-vbup TO t_vbup.
        APPEND LINES OF sd_order-vbkd TO t_vbkd.
        APPEND LINES OF sd_order-vbpa TO t_vbpa.
        APPEND LINES OF sd_order-vbfa TO c_vbfa.
        LOOP AT c_vbfa WHERE vbtyp_n = 'J'.
          MOVE c_vbfa TO t_vbfa.
          APPEND t_vbfa.
          CLEAR t_vbfa.
        ENDLOOP.
        CLEAR: sd_order.
        CLEAR: key.
        CALL FUNCTION 'SHP_VL10_DELIVERY_CREATE_PARA'
          EXPORTING
            if_ledat              = sy-datum
            if_nur_vorgabe_pos    = ' '
          TABLES
            it_vbak               = t_vbak
            it_vbap               = t_vbap
            it_vbep               = t_vbep
            it_vbuk               = t_vbuk
            it_vbup               = t_vbup
            it_vbkd               = t_vbkd
            it_vbpa               = t_vbpa
           it_vbfa               = t_vbfa
          EXCEPTIONS
            system_failure        = 1
            communication_failure = 2
            RESOURCE_FAILURE      = 3
            OTHERS                = 4.
        IF sy-subrc = 0.
       WRITE:/ 'delivery completed'.
        ENDIF.
      ENDAT.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • How to create RMA lines using OE_ORDER_PUB API

    Hi All,
    We are trying to create RMA lines using OE_ORDER_PUB API but every time API creating <b>Standard Order Line</b> line type in application.
    My program is creating order header as a <b>Return Order</b>, i am passing corrent line type ids (1028 - RMA Shipment, 1027 - RMA Receipt) but oracle API is creating Standard Order Lines (ID 1001).
    Can any one tell me about that?
    Thanks
    Ravi
    null

    Check the defaulting rules setup. Defaulting rule will derive the line type based on the order type and shippable flag etc.
    Also check the line flows assigned to the order type in transaction types window.
    Thanks / Bhaskar Akkala

  • SD delivery notes using adobe forms

    Dear Gurus,
    I need to pring SD delivery notes using adobe forms
    I tried to assign:
    Program: RVADDN01                               
    Routine: ENTRY
    Form: RVDELNOTE
    But it is not working....Do you have any idea?
    Regards,
    MaX

    Solved...use ENTRY_PDF

  • Creating a mapping using the API

    Hi Brian, I am curious about this use case - what's the reason you are looking to do it using the API? You can create several objects using the API and the most typical use case we have observed is where mapping developers create a pattern or what we call as a "template" - which is a mapping with various properties parameterized. For example you can create a mapping with the filter parameterized, or define a very generic mapping with source, target and the field map between those all parameterized. Once you do that, you can create a "task" for this mapping (known as Mapping Configuration Task) - that can be done using our UI or using our REST API. If you choose the latter, you can pass on parameter values as part of the API request. Suggest you to take a look at our new Developer Portal, and specifically at the sections Templates and REST API there. Feel free to post any further questions here. If you sign up to the developer program there, you will get much more direct help.https://community.informatica.com/community/technology_partner_network Amol

    I was wondering about creating a mapping using the API. It clearly states in the Dev guide that this is possible, but when I perform a get mapping request, I don't see all the information given for a certain object.  For example, I don't see an expression in the mapping object (although one exists when I view the object in Cloud).   Has anyone else done this? Is it easy to create objects via the API?  Thanks!

Maybe you are looking for

  • How to restore a Rman backup from Tape

    Hi, We need to restore the database backup taken through RMAN on 24-JUNE-2013 from tape as this backup is not currently available on disk. Can you please help me on the following, 1) how i can check if the same backup on 24-JUNE-2013 is available on

  • FTP Adapter Trigger File Configuration

    Iam using the follwing link for the Trigger File Configuration , but this does not work, Can please anybody help me. Below is my JCA Configurations in WSDl looks like for my InBound FTP . <jca:operation FileType="ascii" PhysicalDirectory="/DALV1I/inc

  • Smart Shapes flashing during effects

    I have a series of cascading animations of Smart shapes.  Let's call them one through ten. All have alpha 0% to 100% and fly-in effects applied. During the animation of shape one, shape two will appear for a brief flash and then disappear. During the

  • CCMS Alert Management

    Hi guys, I'm using a central CCMS system (based on Solution Manager - WAS 7.0) to monitor a lot of productive instance. I've also implemented note 746193 to trigger "green" alert when an odd situation recovers. However I'd like to find a way to reset

  • Sudden loss of audio in all browsers

    I've tried watching some tutorials within the last few days, and cannot hear the audio. I've tried in Safari and Firefox, both are mute when playing tutorials. This is a pretty new G5 dual-core Power PC, lots of RAM, and today I upgraded FLASH to it'