Problem in Delivery Creation

Hi All,
I have a requirement to create a delivery from sale order. Iam using BAPI_DELIVERYPROCESSING_EXEC bapi to create sale order. I have passed the data as below.
The below code is creating delivery in my ECC 6.0(Sand Box) but my client system is 4.7.
In this 4.7 system delivery not creating and not even giving any error. Please suggest how to resolve this.
tbl_request-document_numb = st_vbap-vbeln. "ZBAGDOCS-DOCUMENT_NUMBER
  tbl_request-document_item = st_vbap-posnr.
  tbl_request-ship_to = st_vbak-kunnr.  "ZBAGMAST-CUSTOMER_ACCOUNT
  tbl_request-sold_to = st_vbak-kunnr.  "ZBAGMAST-CUSTOMER_ACCOUNT
  tbl_request-sales_organisation = st_vbak-vkorg.  "Vbak
  tbl_request-distribution_channel = st_vbak-vtweg.  "Vbak
  tbl_request-division = st_vbak-spart.     "Vbak
  tbl_request-plant = st_vbap-werks.      "Vbak
  tbl_request-quantity_sales_uom = '1'.   "
  tbl_request-sales_unit = st_vbap-vrkme.
  tbl_request-base_uom = st_vbap-meins.
  tbl_request-material = st_vbap-matnr.
  tbl_request-delivery_date = st_vbak-bstdk.
  tbl_request-delivery_time = '160000'.
  tbl_request-transp_plan_date = st_vbak-bstdk.
  tbl_request-loading_date = st_vbak-bstdk.
  tbl_request-goods_issue_date = st_vbak-bstdk.
  tbl_request-extdelv_no = '98765'.
  tbl_request-document_type = 'A'. "Delivery
  tbl_request-document_type_predecessor = 'A'. "Sales Ord
  tbl_request-document_type_delivery = 'LF'.
  APPEND tbl_request.
  CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
      request      = tbl_request
      createditems = tbl_items
      return       = tbl_return.
  IF sy-subrc = 0.
    MESSAGE ID 'ID' TYPE 'I' NUMBER '899'  WITH 'Delivery Number' tbl_items-document_numb 'Created Successfully'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
  ELSE.
    LOOP AT tbl_return.
      WRITE:/ tbl_return-type,
      tbl_return-id,
      tbl_return-number,
      tbl_return-message.
    ENDLOOP.
Many Thanks In Advance

From FM documentation:
This Business Application Interface (BAPI) is for internal communication
between Advanced Planner and Optimizer (APO) and
the SAP Logistics Execution System (LES).
It has not been released for external use.
We reserve the right to change the interface and
the functions in the interface without prior notification.
But you can use FMs for Outbound delv: RV_DELIVERY_CREATE or RV_DELIVERY_CREATE_SINGLE.
for Inbound delv: BBP_INB_DELIVERY_CREATE

Similar Messages

  • Problem in delivery creation against stock transfer PO

    Hi,
    Scenario: -
    We have 5 material and make the PO for stock transfer yesterday. After that we made the delivery against that PO.
    Problem it this....today we need to make the another PO related to last one (all same material number's) but diff. qty.
    We make the PO but when we want to make the delivery against today's PO, delivery make only for 2 material's, not for all 5 material's.
    what should be the problem here???
    plz guide.....

    Thanks for reply dear...
    1. check against the the line items that delivery completed indicator has been ticked or not in the STO
    There is no TICK on delivery completed indicator (not on any single line item).
    2. check the delivery date against the line items in the STO
    Delivery date is 26.04.2010 in 2 line items and 26.03.2010 in balance line items (whom delivery not made)
    3. check the purchase order history tab for the line items in the STO
    PO History tab is in only 2 line items, which made delivery earlier but in 3 line items, no delivery tab exist.
    4.remove all the dates and calc rule in the t code VL10 d & VL10 b while creatin g delivery
    check after confirm above point by you.
    Plz guide..

  • Budget exceeded error during delivery creation

    Dear All,
    We are facing a problem during delivery creation. Our business scenario is engineered to order and every customer order is created as a Project in PS module. the sales order is linked to the  WBS element. While creating an outbound delivery for the sales order the system gives error message that "Budget exceeded for the WBS." This is for first time such error has occurred during the delivery creation. Logically delivery creation and PGI indicates negative incurrence on the WBS elements so even if the budget is not there or exhausted still then system should allow to create the delivery.
    Please let me know if anybody has face this problem and solved it.
    regards'
    Preetam

    Preetam,
    What you are saying is correct. Delivery creation and PGI indicates negative incurrence on the WBS elements, the system should not check budget of the WBS.
    Just for checking manually, read the details of the error and note the amount. Check budget availability of wbse and compare this amount with available budget.
    Regards,
    Amol Sarode

  • Problem related to Outbound Delivery creation via Background Job

    Hi ,
    We are using the program RVV50R10C for creating OBD incase of STO .
    Z variant is created to take care of selection parameters which inlcudes Shipping Point , Delivery creation date , Calc Rule, Delivery priority and shipping conditions.
    The job is scheduled to run for every 10 minutes .
    As planned the job is running for every 10 minutes but the OBD are created after 1 hour .
    What are possible causes of this error.?
    Please note that there exists enough stock.
    Regards
    Ramesh Ch

    I think you will have the same problem when doing it manually with VL10B.
    The creation is based on entries in an index. there is a userexit where you can influence how and when an entry goes into the index.  E.g. you can speed up the overall performance if you do not update the index all the time, instead you are doing this with a background job from time to time.
    Check if this is the case in your system.
    this note may give you some hints:
    Note 356061 - Incorrect index compilation caused by own checks

  • Problem in delivery for sto

    Dear all
    i have createde a sto with 03 line items when i go for vl10b 02 items get populated in delivery but the system is not picking the third item it is saying
    5500000010 000010 Only 0 NOS of material 410000010 available
    5500000010 000010 An item with no delivery quantity is not permitted. Item will be deleted.
    however material is in stock and is available on that particular date
    while extending the material for the sto division i did n't selected the valuation type for this particular material is the problem has something to do with this
    also when i am looking in the shipping tab in PO delivery creation date  is showing for this particular material after creating delivery whereas for others its not showing
    kindly help

    Hi,
    Check on it:-
    problem in STO delivery
    STO Delivery problem with VL10B.
    Re: STO Error In Delivery-Unexpected issue of error message ,messege No VR555
    pherasath

  • Incorrect delivery creation date in stock transport order

    Hi,
    I've checked SAP notes and forums but no answers to this one....hope you can help.
    I have 2 plants, in separate company codes.  One orders from the other using a full inter-company process.
    The issue is, when i raise a PO the delivery date (shipping tab) is updated correctly, using the agreed lead time (planned delivery days)
    However, the Delivery Creation Date is usually updated with 'todays' date.  It's as though the planned delivery days on the material master or PIR is being interpreted as a transit time between the plants.
    This has 2 undesirable effects:
    1.  The supplying plant has no notice, requirement date is NOW
    2.  Delivery creation batch jobs create deliveries which aren't really due yet
    I really need the Delivery creation date to be a true material availability date  ie the date the goods are required to be available in the supplying plant.  For us this would be 3 days (transit time between plants) before the delivery date. 
    Any help greatly appreciated.
    Regards
    Guy

    Guy,
    true lead time.
    is a bit ambiguous.  The system does exactly what you tell it to do.  'True Lead time" is not defined in SAP.  What do you mean by this term?  Are you talking about "Total replenishment lead time" in the material master?
    Anyhow, you are telling me you want the delivery creation date to be "three days prior to Delivery date".  No problem, set PDT to 3 days.  So, if you today created an STO with a delivery date of July 30, and the PDT was 3 days, the delivery creation date would be July 27.  If you also want cushion, then today convert the STPRs with a delivery date of July 30.  Don't wait until July 27 to convert these PRs.
    How are you creating STOs today?  You mentioned delivery dates being populated by the system.  How? What transaction/what program?  If your current process is to automatically convert all existing STPRs into STOs, then you probably need to consider adding some time to Purchase Req processing time.  OMEW in config.
    Rgds,
    DB49

  • Delivery creation/change triggers heuristic run

    Hi all
    We use planning procedure '3' "Cover Dependent Requirements Immediately" for finished goods in our distribuition centers. In the event: "Create or Change a Sales Order", we have the action: "Start Product Heuristic Immediately" which leads to my two questions:
    1. When a sales order delivery is created/changed, heuristic is also triggered. Is there anyway to avoid this for deliveries (should still work for sales orders)?
    2. When heuristic is triggered due to sales order creation/changes, new stock transport requisitions created by heuristics are automatically ATP checked and confirmed in the supplying plant. When heuristic is triggered due to sales order delivery creation/change, new stock transport requisitions are not ATP checked... How come?
    Thank you in advance for your help.
    Best regards,
    Dan

    Hi Dan,
    If you are using MTS scenario, then Sales Order is business event "A" while Delivery is business event "B". In case of MTO, these will be AE and BE. For check instruction of your Check mode and Business event for delivery (B or BE), remove production. Use option "Availability check only, No Production" in Check Instruction.
    This will solve your first problem.
    Again, for solving 2nd issue, check Product Availability Check for ATP group and business event for Delivery. Check Control and Scope of check decide which receipts and requirements should be considered.
    Both these settings are in GATP customizing.
    Regards,
    Bipin

  • Help required regarding the outbound delivery creation by batch job

    Hi Gurus,
    We are facing one problem in the outbound delivery creation.
    The deliveries will be created automatically (using program RVV50R10C) from the existing open sales orders through the run of a batch program for every 5 minutes.
    The program RVV50R10C is scheduled to run for every 5 minutes, which picks up all the open sales orders and creates outbound deliveries. However, during one run we have found an error.
    The error had message class V50R, message no: 024 and message type : I. The error message reads as follows : u201CAt least one order was blocked and could not be deliveredu201D.
    When we have checked the VBFS table, it showed the sales document line items with the Message type : E, Message no: 24 and message id : V50R.
    Can anybody decipher what could be the reason why this error message is appearing?
    Thanks in advance,
    Krishna

    Hi Friend,
    to clearly identify the issue,
    Goto SE38 and give the program which you are using as Back ground job to create the deliveries and  give the sales order number as mltiple entries and execute the program in back ground.
    In most of the cases we can identify the issue behind the job while doing this.
    please revert me if you need more clarification
    regards,
    santosh

  • Delivery Creation using Batch Jobs

    Hi,
    I have set up automatic delivery creation using a batch job ( vl10batch). The program selects all sales orders in the last 3 days and creates delivery.
    The problem is if in a sales order there are multiple line items each with a different delivery date.
    If the delivert dates for all the line items fall within last 3 days the program selects all 3 line items and ceates 1 single delivery.
    We would like to see a different delivery getting created for each line item.
    Example: Sales order has 3 line items
    Item A ( Del Date: 4/2/2010)
    Item B ( Del Date: 4/5/2010)
    Item C ( Del Date: 4/6/2010)
    The batch program runs and created 1 single delivery followed by 1 TO.
    Is there anyway we can seperate the deliveries based on date in the batch job?

    Hello,
    check sales order is not signed as "Complete delivery", register "shipping". On item level you can set "fixed date and quantity" in register "schedule lines".
    Best Regards, Dirk

  • 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

  • How planned delivery time effects delivery creation?

    Dear All,
    Some time before, while placing order thro' CRM, we came across a typical error (hard error).
    "date (11/12/2011) lies afterthe end of validity calendar". 
    we could not place order in CRM but in SAP we could create save the order despite of same error but soft. However system didn't allow to create delivery for same order & same error message populated"
    Later it was found that it is because for material  " Planned Deliv. Time  maintained for say "X "days in material master MRP2 view" & was corrected.
    How planned delivery time effects delivery creation?
    For material even though planned delivery time was maintained as say for 500 days, sales order requested delivery date & delivery date in order schedule line got determined as order date (Considering avaliability of funds & material).
    i.e order date/req. delivery date/delivery date in schedule line are same as date on which order is placed.
    Regards
    Suhas W

    Hi,
    Extended your factory calender in SCA3.
    Regards,

  • Outbound delivery creation with inbound IDOC transfer from Java system

    Dear Experts,
           The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
    The scenario is,
                   After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
                 Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
    Now Query is,
                   1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
                   2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
                   3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
    Thanks in advance for the replies I am going to get
    Regards,
    VEL

    Didn't get any feedback from experts for long time. So we are closing the question

  • Inbound delivery creation using VL31N

    Hi All,
    I could find that the message type DESADV, IDoc type DELVRY01 and process code DELS is used for creation of this.
    Let me know if this is correct. When i checked in my system I could not find process code DELS. Do i need to do some additional settings to get this.
    What is difference between IDOC type DELVRY01 and DELVRY03. Which one should be used.
    Here the ASN received is triggering inbound delivery creation.
    Please let me know on this.
    Regards,
    Shahu

    Hi,
    Where did you check that process code in WE64?
    Check in the correct set(Inbound messages).
    DELVRY03 is the latest one. You should use it only.
    Regards,
    Ravi

  • Check amount of transition stock during inbound delivery creation

    I want to move stock between plans, therefore I have the following steps:
    1. Stock Transfer Order (STO), e.g. 500 pieces
    2. Sending plant: MIGO (GI for STO) with MT 351 to post to transition stock,  e.g. 100 pieces
    3. Receiving plant: Inbound Delivery with reference to STO VL31N
    4. process Inbound delivery in warehouse (SAP-WM)
    The question is:
    During step 3, when accessing VL31N the system proposes the full order quantity (e.g. 500 pc.)
    I can change the amount to any amount I like, e.g 240 pieces.
    How can I tell SAP, that Inbound delivery creation is only possible for the amount
    which has been posted to stock in transition (100 pieces)
    I want an error/warning message in case user wants to create Inbound delivery quantity higher than the amount that has been posted to transition stock.
    Any ideas?

    MIGO in sending Plant?
    How it is possible? MIGO means, Goods receipt. This should be in Receiving plant.
    Sending plant should do the PGI
    MIRO in receiving plant
    Billing in sending plant
    Payment from Receiving palnt and clearing in sending plant
    Correct me if i am wrong
    Thanks

  • The userexit is not working in integration scenario- inb. delivery creation

    Hi Experts please help,
    We know that vl31n is for inbound delivery creation.
    in one of the userexits of vl31n, I did code ( shifting the batch to vendor batch )...
    So,the user enters batch number under batch field and
    fill all other required information and saves to create inbound delivery.
    Whilw inbound delivery creation my coding in user exit gets executed and shifts the batch number to Vendor batch field.
    This we observed when we check in vl32n or vl33n, the batch entered shifted to Vendor batch field() batch field is space.
    This is working fine with vl31n inb. delivery creation.
    But in integration testing it failed.
    In Integration, what is happening the other system called "ICH" is creating ASN (shipping note) with the batch number, which inturn created the inbound delivery in R/3 via XI as shown like below.
    Integration scenario :
    ICH System (ASN)   --> XI -->  R/3 System (Inb. delivery creation)
    So when "ICH" triggers ASN to R/3 the inbound delivery creation is happening but the batch number is not shifting to vendor batch field.
    when we open the inbound delivery in vl32n, the batch number is under batch field only...it should be under vendor batch field.
    My understanding is my user exit coding of vl31n not getting executed in the integration process.
    Kindly help me what can I do to shift the batch sending from ICH to shift to vendor batch field.
    Please let me know if I could not explain the scenario.
    THANKS IN advance.
    YOUR HELP WILL BE GREATLY APPRECIATED.

    the ASN from ICH, it uses a standard idoc function module IDOC_INPUT_DESADV1 and there is one user exit EXIT_SAPLV55K_012 which calls ZXTRKU07
    need to code there.
    solved by meetings with some other experts.
    THANKS.

Maybe you are looking for