Sales order delivery creation in background

Hi,
my requirement is i want to create create sales order delivery creation  in background . how to do it.
any sample code plz .
with regards
sri.

hi,
use this function module.
WS_DELIVERY_UPDATE_TO_CREATE

Similar Messages

  • 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

  • User exits for route determination in Sales order & Deliver creation

    Hi Gurus,
    I need to do some change in the route determination for both sales order & Delivery creation.
    Can anyone suggest me which user exit I have to use.
    Appropriate answers will be awarded.

    Hi,
    You can use the following exit for route determination - EXIT_SAPL0VRF_001.
    The FM documentation is below. Check the functionality:
    "The customer exit can be used for customer-specific route determination or to modify the inbound data for the company's own route determination.
    The following data is transferred to support customer-specific route determination:
    I_VBAK current order header (for route determination in sales order)
    I_VBKD order business data (for route determination in sales order)
    I_VBAP current order item (for route determination in sales order)
    I_VBPA current sales partner
    I_LIKP current delivery header (for route determination in delivery)
    The following data can be modified and transferred back to the standard route determination or used for a specific route determination:
    C_ALAND Country of departure
    C_AZONE Departure zone
    C_LLAND Destination country
    C_LZONE Receiving zone
    C_VSBED Shipping condition
    C_TRAGR Transportation group
    C_GRULG Weight group
    C_FLAG_GEN_VT Flag: Route determination with generic shipping
    requirements/transportation group.
    C_FLAG_INCR_GRULG Flag: Increase weight group if no route
    If you want to use a standard route determination with different parameters, trigger the exception 'CONTINUE_WITH_STANDARD'.
    In the log table C_PROT, the log data from the customer-specific route determination can be transferred back. In this case, the log entries always refer to customer-specific messages. To add a message to the log table, the function module SD_ROUTE_DET_LOG can be used (see below).
    If a route is determined in the customer-specific route-determination, it can be transferred back in the E_ROUTE field. If no route was found, the exception 'NO_ROUTE_FOUND' is to be triggered."
    Thanks.

  • Sales order, Delivery and Billing document creation

    Hello Experts,
    I am working on credit management and am in need of creating sales order, delivery and billing document.
    Can some one send me the screen shots or any doc which outlines order,delivery and billing document creation.
    Will award points definitely.
    Also what are the t.codes for these creation?
    Regards,
    Sriram

    Order Create:
    Transaction VA01
    Give the order type , If standard order use OR or ZOR, which ever is maintained
    Then give the sold to and press enter
    In the Items screen Give the material and quantity and press enter. This should be enough to create an order, if u need u can give order reasons...etc. Then save the Order. Note down the order number.
    Go to VL01N-
    and give the above order for which u are doing delivery, In the pick quantity enter the amount in the order and press enter. and make sure the delievry date should be the same in the Sales Order Schedule line- REquested delivery date. Save the document.Note down the document number
    Go to VL02N - Open the above delivery document and click on PGI - done
    Now go to VF01 and this should bring up the delivery document number., If it doesnt , give the delivery document number and hit enter. then save the document. Billing is done.
    Regards
    Sai

  • Factory Calendar issue in creation of Sales Order/ Delivery Order

    Hi all,
    There is one issue. Our user is not able to create Sales Order/ delivery order as he is getting the below error message u201CDate 2010-12-27 lies after the end of Factory calendar F1u201D. But when I checked the plant in customization, the Factory calendar assigned is u201CKRu201D and not u201CF1u201D. So I donu2019t understand why this error message is appearing. But when I checked Factory calendar u201CF1u201D, it was valid only up to 2010 and there are special rules also set. Only few days in the year are working days. Factory Calendar u201CF1u201D description says u201CKOR customers billed on the 25th of every monthu201D
    Please advice.
    Regards,
    Brijesh

    Dear
    If F1 is the correct calander , then goto OP03-Calander Maintenece -select the Holoiday Caleneder  and extende the Valaidity till 2020 and also Select the Factory Calander  do the same till 2020 .Now Goback to main screen of OP03-Plant asisngement -re-assing the same F1 calaneder .
    Secondly check the factory calender of the plant in OX10.Then in SPRO > enterprise structure >Definition > logistic execution>define shipping point .Select you shipping point and assgin the proper factory calender
    .Goto OVX5 , choose your sales organization, click on details, Detailed information tab - Sales Org Calendar (maintain your factory calendar here not Sale Org Calander )
    .Check in VOV8, use the "Propose delivery date" and "Lead time in Days" options to default today's date as the requested delivery date.
    Refer : Public holiday dates issue
    Regards
    JH

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

  • Create Sales Order / Delivery with BAPI

    Hi,
    I want to create a sales order and the its delivery using BAPI. Is there such BAPI or should i use two different BAPI functions.
    I also need to post goods issue after the completition of the delivery. Which BAPI is the most appropriate for my pupose?
    thanks for your help,
    - ferudun

    Hi,
    Check this example of creating a sales order and for creating delivery...and PGI
    ************SALES ORDER INPUT CREATION.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    PARAMETERS: p_spart TYPE vtweg OBLIGATORY.
    PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
    PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
    *ITEM
    PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
    PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    PARAMETERS: p_itcat TYPE pstyv   OBLIGATORY.
    DATA DECLARATIONS.
    DATA: v_vbeln LIKE vbak-vbeln.
    DATA: header LIKE bapisdhead1.
    DATA: headerx LIKE bapisdhead1x.
    DATA: item    LIKE bapisditem OCCURS 0 WITH HEADER LINE.
    DATA: itemx   LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return  LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    HEADER DATA
    header-doc_type = p_auart.
    headerx-doc_type = 'X'.
    header-sales_org = p_vkorg.
    headerx-sales_org = 'X'.
    header-distr_chan  = p_vtweg.
    headerx-distr_chan = 'X'.
    header-division = p_spart.
    headerx-division = 'X'.
    headerx-updateflag = 'I'.
    PARTNER DATA
    partner-partn_role = 'AG'.
    partner-partn_numb = p_sold.
    APPEND partner.
    partner-partn_role = 'WE'.
    partner-partn_numb = p_ship.
    APPEND partner.
    ITEM DATA
    itemx-updateflag = 'I'.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    item-material = p_matnr.
    itemx-material = 'X'.
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    item-target_qu = 'EA'.
    itemx-target_qu = 'X'.
    item-item_categ = p_itcat.
    itemx-item_categ = 'X'.
    APPEND item.
    APPEND itemx.
      Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000010'.
    lt_schedules_inx-sched_line  = '0001'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
    Call the BAPI
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
         EXPORTING
              sales_header_in     = header
              sales_header_inx    = headerx
         IMPORTING
              salesdocument_ex    = v_vbeln
         TABLES
              return              = return
              sales_items_in      = item
              sales_items_inx     = itemx
              sales_schedules_in  = lt_schedules_in
              sales_schedules_inx = lt_schedules_inx
              sales_partners      = partner.
    Check the return table.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
      EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
      WRITE: / 'Error in creating document'.
    ELSE.
      COMMIT WORK AND WAIT.
      WRITE: / 'Document ', v_vbeln, ' created'.
    ENDIF.
    ************DELIVERY CREATION.
    DATA: BEGIN OF t_vbap OCCURS 0,
            vbeln LIKE vbap-vbeln,
            posnr LIKE vbap-posnr,
            zmeng  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 zmeng matnr werks
           INTO TABLE t_vbap
           FROM vbap
           WHERE vbeln = v_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-zmeng.
      t_request-quantity_base__uom  = t_vbap-zmeng.
      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.
    ************Post goods issue.
    READ TABLE t_created INDEX 1.
    DATA: vbkok_wa TYPE vbkok.
    vbkok_wa-vbeln_vl = t_created-document_numb.
    vbkok_wa-wabuc = 'X'.
    DATA: v_error.
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
         EXPORTING
              vbkok_wa                  = vbkok_wa
              delivery                  = t_created-document_numb
         IMPORTING
              ef_error_in_goods_issue_0 = v_error.
    COMMIT WORK.
    Thanks,
    Naren

  • Initiate Sales Order IDOC creation

    I configured Message Control for sending IDOC on Sales Orders create / change in VA01 / VA02. It works.
    IDOC type: ORDERS05
    FM: IDOC_OUTPUT_ORDRSP
    2 questions:
    1) How can i send the same IDOC from my program whenever i want. In other words - initiate Sales Order IDOC creation.
    2) Will be IDOC sent when Sales Order status is changed:
    - Delivery in VL01N
    - Sales Order is canceled

    Hi,
    Please clarify if you want to send all the sales order by a report or sales order for specified condition. If you are able to find a standard program that populates ORDERS05 idoc type and send it is well and good. other wise you need to fill these segments by custom select statement and send it.
    Thanks & Regards
    Ramachandran Babu

  • Address not copied from Sales order/Delivery to Shipment Document

    Hello Experts,
    I need your help on Addrss of ship to in shipment document.
    Sales Order[VA01] >> Delivery [Vl01N]>> Shipment [VT01N].
    User changed the Address of ship to party (Header level) in Sales Order and It reflected to delivery as well and I believe It should also update the address in Shipment document.
    But when I checked the Address of the Customer/Unloading point in Shipment Document [VT03N] (as below) I found It was not updated It was same as Customer Master Record and I believe It directly copied from Customer Master Record.
    BUT While creating the Shipment system is copying the data from Customer master Record not from Sales Order /Delivery. Logically system should copy the updated address from Order/Delivery BUT It is directly copying from Customer Master i don't know where is the setting of this ??
    Can anybody help me on this ? How system takes the customer (ship to party) address in shipment ? Where are the setting of these.
    What I need to do so system take the updated address from Sales Order/Delivery not from Customer Master Record (Ship to party).
    Can I change the address of customer in shipment document ??
    Awaiting your precious reply.
    Thanks,

    Hello Samir,
    Thanks for your response.
    I think you get my question in wrong way.
    I am sayingCustomer master data was not changed.
    User just changed the Address in Order (Order > Header >> Partner tab >> Change ship to address/overwrite ship to address).
    Overwritten Address / Updated address are copying in Delivery BUT not in Shipment document.
    What I need to do?  system should copy the updated address from Sales Order/Delivery BUT it is copying from Ship to party.
    I hope this time i am clear to explain my issue.
    Thanks,

  • KPIs for SD:Sales Orders & Delivery

    Hi Experts,
    Could some one please help me out to find out different KPIs for SD : Sales Orders & Delivery.
    Am trying to create a BEx report for SD mofule using custom list of KPIs.
    Any source where i could find the KPIs for SD module.
    Thanks in advance.
    Best Regards,
    Krishna.

    Krishna,
    ???? There is no list of 'KPIs for SD module'.  KPIs differ for every company.  Perhaps you should first ask your business users what THEY think the KPIs should be.
    A few KPIs related to SD I have seen:
    Forecasted/Budgeted vs Actual - Bookings
    Forecasted/Budgeted vs Actual - Backlog
    Forecasted/Budgeted vs Actual - Billings
    Current backlog late to Requested date
    Current backlog late to Confirmed date
    Historical Requested vs Confirmed vs Actual (Shipment) date
    Historical/Current Pricing and Pricing trends
    Historical/Current Price vs cost
    ....but don't start work on ANY KPI until you get confirmation from your users that the KPIs have merit TO THEM.
    Best Regards,
    DB49

  • Goods issue dates are different in sales order & delivery

    Hi,
    We have a situation where in sales order schedule line tab goods issue date is 21.30.2011
    but in delivery the planned GI date is 28.03.2011.
    There are two line item in the sales order & in both the line items all the dates are same.
    Same route is there in sales order & delivery.
    In delivery Item category avalability check Off is Y(Do not check avail. when reporting results of pick.request)
    All the dates(delivery,loading,Transportation planning) are different .
    waiting for responce.
    Thanks In advence
    Susrikant

    goods issue date is 21.30.2011
    What was the Actual GI date in delivery??  This should be the same as schedule line date.
    thanks
    G. Lakshmipathi

  • How to converting other language in sales order delivery instructions

    How to convert Language from english to german maintained in sales order delivery instructions while it is executing the function module in se37.

    Hi,
    Use this link.
    Create sales order with billing plan via LSMW and BAPI BUS2032
    BAPI or Function to update Billing Plan in Sales Order Items
    Hope this will help you.
    Regards,
    Vijay

  • Sales Order/Delivery for particular customer From his Reserve stock?

    Dear Couleague,
    There is one scenario that faulty material from customer Co. get back by
    Return Order (RE), Then return Delivery --& post goods receipt, Of the sold material,
    Now co. (PP/QM) do rework Process (assemble, dismantle ...... whatever on the basis of return order) & make perfect material ok
    Now this stock PP/QM people put under RESERVE STOCK because it belongs to that particular customer
    Now I want to deliver that stock to that Particular customer,
    1) HOW CAN I DO?
    2) HOW CAN I PICK UP THAT ReserveMaterial while doing Sales Order/ delivery?
    Even though I maintain copy control from RE to OR & AvailabilityCheck?                                                                               
    Thanks
    Suresh

    Hi Suresh,
    As and when you get a return order for repair, then you do the PGR and place that stock into a different storage location and you get that repaired and when you are doing PGI then fetch the stock from the same storage where you have placed the stock when you did the PGR.
    If you are having serial number concept that will help you to give the same piece which you have collected from the customer to return the same piece.
    We have implemented the system in the same way in our previous implementation.
    Thanks,
    Mahesh.

  • Sales Order / Delivery Document Report

    Hi,
    I currently am in search of a delivery report that will tell me the following:
    Sales Order
    Delivery #
    Deilivery Item # and Material Number
    Delivery Item Qty
    Delivery Pick Qty and DAte
    Delivery Actual Pick Qty and Date
    Delivery Goods Issue Qty and Date
    Delivery Actual Goods Issue Qty and Date
    All i can find are txns VL06O and VL06F, but it doesn't show the actual pick and goods issue qty's. I'm only able to get the processing status on whether the goods issue has been processed, what i actually need is the qty's and their associated dates. Also, the sales order is not on this report. I basically need a report to show me what is in the pipeline for deliveries and what deliveries have been shipped (complete or partial) and processing status.  Many thanks for your help. Best, Erik
    Edited by: Erik Kraus on Sep 15, 2010 1:56 AM

    Hi,
    You have to make use of the tables VBAK, VBAP, LIKP, LIPS, VBFA, VBUK, VBUP tables to create a Z report for ur rqmt. There is no standard requirement which meets ur reqmt.
    You can have a selection screen where you can select the sales order numbers or sales order status and so on. Based on that input, you can get the following data as output.
    Sales order number -VBAK-VBELN
    Delivery number - LIKP-VBELN found out using VBFA table by giving VBAK-VBELN value as VBFA-VBELV and getting VBFA-VBELN.
    Delivery item/material : LIPS-POSNR and LIPS-MATNR
    Qnty : LIPS-LFIMG
    Unit of Measure - LIPS-VRKME
    Goods issue date : Check LIPS-WADAT

  • Change Sales Order, Delivery, Billings Reports

    Hi Gurus,
    Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
    Billings & Change report of Customer & Material,
    Regards,
    Sai

    Hi,
    There are no standard reports to display the changes made in the Sales orders and the details you had asked.
    But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
    Or Based on your requirement you can go for a Customized Report
    rgds
    psk

Maybe you are looking for

  • Can someone tell me where my code is going wrong

    Hi I am trying to save the information in a jtextfield and then reopen that data at a later date in the same jtextfield. I have put the code in and it runs but when I try to save the jtextfield it does not create a file so when I try to reopen it the

  • IWeb 08 and Aperture 3.0.3

    I have been building websites for my photo classes with iWeb 08 and accessing images from my Aperture library for some time. I am now using 10.6.3, and Aperture 3.0.3 and all I see in my media panel under photos is iphoto. Is this a bug, or do I have

  • Application dock and multiple monitors

    I'm moving my MacBook around quite a bit and hence connect it to a few different monitors. My preferred setup is then to extend the desktop to cover both monitors, and have the external monitor configured in OSX as it is physically placed at the desk

  • Application language don't translate templates ?

    Hi, I use APEX 4.0, Oracle 10g, Windows XP Pro SP3. We need 2 languages for our application (fr and en). I do the following : - Download translatable text to translation file (XLIFF FILE) - Modify it - Apply XLIFF translation file - Publish Translate

  • How to import page content similar to importing products?

    Hi, I have built a sample page for my site. There are another 30 website pages using the same structure but with different content I need to build. Instead of copying and pasting the same page and replace with different data, is there a way that I ca