Delivery without sale order

How can we stop standalone delivery document. In other words, I do not want a delivery document to be raised unless there is a sale order attached. Similarly, a GRPO should not be raised unless there is a PO.

Hi Krishna Chaitanya,
I have a query to you.
IF @object_type = '15' AND @transaction_type IN (N'A',N'U')
BEGIN
          IF (SELECT ISNULL(T0.BaseEntry,0)
          FROM dbo.DLN1 T0 WITH(NOLOCK)
          WHERE T0.DocEntry = @list_of_cols_val_tab_del) = 0
          BEGIN
                    SET @error = -1
                    SET @error_message = N'Delivery is not base on Sale Order'
          END
END
I hope to help you.

Similar Messages

  • Delivery without Sales order? If yes,how can we track those materials?

    Hi all,
    We have some functional requirement.
    While delivering the cool drinks to customers by the truck driver as per the ordered quantity,the truck driver carries some more cases extra (Say 10 cases of cool drinks) without any sales order by the customers.
    How can we give the goods to truck driver without PGI?
    As per my client requirement,while delivering the goods to customers, some customers may request some cases extra.The truck driver delivers 4 cases to X customer,3 cases to Y customer and remaining 3 cases returned to company .(out of total 10 cases, remaining are 3 cases not requested by any customers)
    How can we see those material in the sap for the total 10 cases?
    How can we configure this in the sap?Can we configure this creating delivery without reference to sales order using LO document type?
    Thanks in advance,
    Regards....VM
    Edited by: vm on Mar 8, 2009 3:47 PM

    Hi Raja,
    Your reply
    In-img-sd-basic functions-set up partner determination---set up partner determination for customer master
    In that fouth activity on left hand side that is PARTNER FUNCTIONS
    Here you can assign for partner function SH the partner type can be changed to PE(personnel no)Usually it will be KU ( customer )
    But the implications of this i dont know
    You need maintain many things like Employee master record etc
    My Question is...
    Tracking of the information,yes your suggestion will be help ful.I need some clarification.But how can you send without any delivery note to outside? There may be checking while transport then??
    For you present reply,you are  changing the standard partner type.By assigning PE in the partner fucntion,can we use the same employee as ship to party.Ie The employee should play a role of ship to party and employee.
    If employee becomes a ship to party,then we can create a delivery note without ref sales order.So that it can be solved.
    How can we send the goods without delivery note? or Is there any way to send like taking dummy type of delivery note?
    Business has the requirement that extra material is given to truck driver.These are not placed by any customer.In case climatic conditions favours,customers may request the truck driver to deliver the goods on the spot without any sales order or delivery.So how this will be possible.This is actually wholesale distribution scenario.
    Any ideas please??
    Regards....VM
    Edited by: vm on Mar 12, 2009 3:58 PM

  • Billing document from Delivery without Sales order creation

    Hi,
    I want to know that is it possible to create a billing document from a delivery document but without a sales document?
    If yes what settings can be done in the system to achieve it?

    Hi,
    Yes. It is possible.
    Delivery type LO is delivery without reference.(No preceding document required to create delivery)
    Go to T-code VTFL. Select delivery type  LO as source doc and target doc. would be your billing type. Go to item level.
    Maintain copying requirement - 019.
    Billing quantity- B
    Pricing type -  B
    Pos/Neg quantity - + sign
    thanks,
    Vrajesh

  • Without sale order Delivery creation

    Hi,
         I  want some help to make the delivery creation without sale order.This is my scenario
    ->>>Two RAW material(ROH) then make the PO and GRN.
    ->>>Then Created the Finished Material(FERT)
    ->>>Production order creation
    ->>>Production order Confirmation(261,531movement)
    ->>>Stock received(Finished Material)
    ->>>Make the delivery without  order ref
    ->>>Delivery type(LO-Delivery w/o ref)
    ->>>Ship to party(Here only we are mentioned the Customer)
    ->>> save the delivery
    When i make the POST GOODS ISSUE (PGI) the following error appear
    Message no. NA  KI235
    Account 315002   requires an assignment to a CO object
    You have not defined a CO account assignment for an account that is relevant to cost accounting.
    System Response
    Account 315002  is defined as a cost element.
    This means that you must always specify a CO account assignment.
    Procedure
    Enter one of the following CO account assignments
    Order
    Cost center / cost center/ activity type
    Sales order item (for a project or cost relevant)
    Project / WBS element
    Cost object (Process manufacturing)
    Network/ Network activities
    Business process
    Profitability segment
    Real estate object
    The posting row affected is 000, account 315002
    Kindly help in getting resolve of this error.
    Regards,
    T.Murugu

    Hi Murugu,
    Please go through the link given below. Hope it helps,
    http://www.sap-img.com/financial/requires-an-assignment-to-a-co-object.htm
    Regards
    MT

  • Billing document creation without Sales order

    Hi everybody,
    We need to create a Billing document without reference to Sales order.
    Is it possible? We would use the BAPI "BAPI_BILLINGDOC_CREATEMULTIPLE".
    Thank you in advance for your help!
    Regards,
    Gianmario

    Thanks to all for your help,
    Finally I solved the problem. You can create an invoice document without reference to a Delivery or Sales Order by using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Document  type FP and item category DLN.
    Regards,
    Gianmario

  • Partial delivery of sales order with some line items

    Hi all,
    Please help me in the issue i want to create delivery against sales order partially for some line items of the sales order . Can any one suggest me the procedure how to do it through programing .
    Thanks in advance,

    Hi,
    You have several methods of doing same.
    Method 1
    Go to VL01N, and given your sales order number.
    Without giving the line item, just press Enter
    Now inside the delivery, you can delete unwanted line items, and you can adjust quantities under Item overview tab.
    After that do picking and PGI.
    Method 2
    Go to VL10E,
    Give your sales order number and execute.
    Mark relevant schedule lines only and press execute,
    then those line items with marked schedule lines will copied to the delivery document.
    Best regards,
    Anupa

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Delivery from Sale Order for Inquiry stock

    Dear All,
    We have unique requirement from client mentioned below, any help would be greatly appreciated.
    This is a trading sale which is initiated from inquiry.
    1. Inquiry is created in SD, which in turn triggers Purchase Requisition.
    2. PR is converted to RFQ.
    3. Based on RFQ prices are negotiated with vendors, then Quotation is sent to Customer from VA21 which is created against inquiry.
    4. Now when the PO is created w.r.t RFQ, then GR is done , Stock will be lying against inquiry.
    5. But i want to do delivery from sales order for stock lying against inquiry.
    we are looking for a workaround solution.
    Note:
    1. Client has disagreed with Stock Movement from Inquiry to quotation using MB1B, as it becomes manual transaction.
    2. PR triggering has to be @ Inquiry, as sale order will not be created until quotation is approved.
    Looking forward for valuable inputs.
    Thanks in advance
    Best Regards,
    Chaithru

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Forbid partial delivery of item, but allow partial delivery of sales order

    HI,
    have someone faced situation when it is required to allow partial delivery for sales order with restriction that item in sales order should be delivered fully. For example:
    SO has following items:
    Item1     MAT1     10 un
    Item2     MAT2     10 un
    Item3     MAT3     10 un
    Material MAT3 only 5 un available in storage. MAT1 and MAT2 are available.
    The system should create delivery for Items 1 and 2, but not for 3. Next time when creating delivery from SO and MAT3 is available, delivery is created por item3.
    I have found Partial delivery indicator on client data. This allows partial delivery.  Then I have found partial delivery indicator on sales order item data (Shipping).
    Is it possible to combine those two indicators to ensure client request?
    Can this requirement be covered in another way?
    Thanx in advance!
    Brucke

    You can achieve the requirment using customer-material information record.
    In t.code VD51, maintain customer-material information record. Here you can find a field called partial delivery/item field. Here you maintain value C- Only complete delivery allowed. Leave the max.Par.deliveries field blank.
    This will make sure that the partial deliveries are NOT allowed for a particular customer/material combination. If you maintain this setting at customer master level (t.code VD02), then this will apply for all materials.
    Regards,

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

    Look at VBFA Table
    goto VBFA table ,enter order number number vbelv ,vbtyp_n is C,then VBELN is the delivery
    if you enter delivery number in vbelv ,vbtyp_n is J,then vbeln is Invoice.
    here VBTYP_N is the import.
    VBFA is the sales document flow table,and very important table
    Thanks
    seshu

  • 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.

  • How to create Delivery with sales order FM/BAPI

    Hi Gurus,I'm new to  SAP  platform
    I have created sales order ,
    with this i need to create Delivery(vl01n)
    so i need to give 'Shipping Point','Selection Date','SD Number'
    so could any one tel me which FM/BAPI is suitable to create
    Outbound delivery with 'sales order number', 'Selection date' and
    "Plant or Shipping Point'.
    With these Import parameters i need  FM/BAPI .
    Thanks  in Advance
    Siva Kumar kasa.

    I   have created delivery  with  that  BAPI 
    giving   'batch number'  but  it was  not  updated,so  can u tel me
    any related field  which need give to change batch field  also.

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • BAPI or FM to create outbound delivery from Sales order

    Hello All,
    My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
    For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
    The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
    I should not use two FM.
    Could you please tell me some FM which does both in one go?
    Thanks and Regards,
    Rahul Sinha

    Hi
    Hi,
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: / 'Delivery ', t_created-document_numb.
    Regards,
    Sreeram

  • Goods issue without sales order

    Hello experts,
                       1)  Goods issue without sales order (movt type 251) in T.code "MB1A"*
                               Accounting entry:- Change in stock of Fin. Goods A/c    Dr.
                                                                          To Stock of Fin. Goods A/c
                       2) Customer Invoice through T.code "FB70"
                             Accounting entry:-     Customer A/c   Dr.
                                                                 To Sales of Fin. Goods A/c.
    We are temporarily not implementing SD module, i am entering Sales transaction data. Are the above two accounting entries correct in respect to "Goods Issue" and "Customer Invoice" ?
    Regards
    Ashwin

    Thanks a lot, but if you could please tell me what impact will on the balance sheet? will the stock be reduced after goods issue
    For eg;
             Change in stock of F.G A/c Dr.    200
                           To Stock of F.G A/c               200
             Customer A/c Dr.     200
                     To Sales of F.G       200.
    Is this correct? and i have assigned cost center to "Change in stock of Fin. Goods.
    Ashwin

Maybe you are looking for

  • Stuck on few CSS issues mid-build

    Hi all, Spend the last week making some good progress with a website build, but I’ve hit a few stumbling blocks I hoped the CSS pros out there might be able to help with please! <div id="body_container"> I’ve tried setting this div’s height to 100% s

  • How do I visually monitor instrumental plug-ins from the SAME computer??

    Hello - My set-up is noted below. Please note that my audio device for my main computer (the Mac Pro) is the _Motu 2408 MK3_. For larger sequencing projects, I use up to a choice of three slave computers (an aging Dell Precision Workstation, a Recept

  • KeyExpansionR3 - can't get the fields of BAPI

    Hello, i use a R3 Key Expansion in my Scenario. It does work so far but i have a problem to geht these informations in my Idoc to fill my fields in ObjectRole 'R'. Here you can see my Idoc: - <b1im:B1IMessage ..."> + <b1im:Header> - <b1im:Body> + <b1

  • Applet-Servlet or RMI - which is better

    We are in the process of developing a swing-applet based system that requires regular interaction with multiple databases residing on more than one database server. The options available before us, as we evaluate are: a. Use "signed" applets ( as thi

  • Getting the express error

    Hi, I am S&D consultant when ever i am doing some changes & saving, it ts not getting saved .Getting error like  Express document "Update was terminated" received from author "XXX" . Can any body help me in this. Regards, pavan.