BAPI_SALESORDER_CREATEFROMDAT2 with auto delivery creation

HI all.
I use BAPI_SALESORDER_CREATEFROMDAT2 to create orders. When creating
rush orders the system automatically creates a corresponding delivery for the order.
After I call the commit BAPI I try to read the created delivery from VBFA. But it often happens
that the VBFA update is not done synchronously which means I cannot find my delivery in VBFA.
I do not want to do a loop and select 10 times from VBFA till the delivery can be found.
Do you know any other way of getting the delivery directly after creating the order with this BAPI?
The BAPI returns the delivery number as message variable in the return parameter. But using it does smell bad to me.
Thanks and cheers,
Sascha

Hi Michael.
Thanks but the flag is already set to X.
I get the order number and the order exists in database. What is missing is everything about the delivery ... no lips no likp no vbfa ...
Seems that the internal commit for the delievry tables is done somehow later. Could this be?
I thought when calling Bapi_Transaction_Commit everything of the actual workprocess gets committed.
Cheers,
Sascha
Edited by: Sascha Dingeldey on Jan 11, 2008 2:17 PM

Similar Messages

  • Auto delivery creation without settings!!

    Dear SD wizards,
    At my place the sales order - delivery settings are NOT for automatic delivery creation. However, in
    some cases, the delivery is getting created automatically in the background and can bee senn in the doc flow.
    Have done some introspection in these 'some' cases and found that they pertain to a few of our sales ofifces / storage locations and probably with some of our users not ALL the users.
    Would there be any settings for auto delivery creation based on storage locations / user access?
    Do advise how to go about resolving this unnecessary 'deliveries'!
    Thanks and regards,
    Tariq

    Dear Lakshmipathi,
    Thanks for the response but thats not the case. I had earlier checked the order settings and not found the "create delivery immediately" settings for the said order. However, on your advise I again went in there to find the 'tick' you said but I don't find any 'checkbox' to enter a tick, but the same drop down in the section 'Shipping' box named "Imediate delivery". the entry is blank in there, thereby signifying no automatic delivery is configured.
    Moreover, Do recall my initial point that it is for SOME of the cases only for which this is happening, doc type is common for all. What I have found is the storage location / sales office / userid as the main differentiating factors, till now.
    Any pointers anybody...??
    Regards,

  • STO Auto delivery Creation - Batch Job

    Hi Friends,
    I am facing issue related to auto delivery creation through batch Job for STO.
    I created a variant for auto Creation of delivery for batch Job using T code VL10BATCH, using the parrameter Shipping Point and Deliv. Creation date. The Batch Job is running fine, but my Client wants the delivery shoud be created from Delivery Date instead  of Deliv. Creation date.
        I tried to change the varriant , but could not find the delivery date as a parmeter to be selected.
    Is there any possible way to use delivery date for creation of Auto delivery instead of Deliv. Creation date.
    If not please tell why only deliv. creation date is given in varriant creation ,
    Regards,
    Kunal

    Hi,
    GO to VL04 there u just fill required fields and then go to menu bar program - execute in back ground then it will show u output parameters popup screen then enter. There u just give start data and time and then clikc on periodic values button there u select daily. Finally save. This will be run in back ground every day on specified time..
    Regards
    Sankar

  • Issue with Auto PO creation

    Hello Gurus,
    Kindly help me with this issue.
    I have user who is using ME59 for the auto PO creation.When he runs this transaction with the "TEST RUN" flaged,in the result screen he is able to see a mesasage as "PO creation successfull" along with the vendor number for which PO has been created.
    But along with above  message he also needs material number & quantity  for which the PO has been created.
    Kindly let me know how to proceed with this request.

    It is not possible in standard , not for test run and not for production run, not with any customizing and I have not found any OSS note that may allow that.
    For any further information in the log you have to modify the program.

  • Auto Delivery creation for sales order

    Hi All,
    We have requirement to create an outbound delivery for a sales order..
    Can you provide me the steps to follow to achieve this..
    Thanks & Regards
    Santhosh

    Hi
    Value contract is an agreement between the company and customer for a value for a time period
    For example a customer say X makes a contract with company ABC for about 1 lakh rupees between 01.01.2009 to 31.12.2009
    Then you make a value contract order type WK1 with all these  details
    The customer will not buy the whole 1 lakh in a single shot
    He may buy about Rs10000 for 10 times or as many times as he wishes till he reaches 1 lakh within this year
    The each order which he is placing for Rs 10000 is the release order which is nothing but standard order OR
    Now in SAP we make a value contract in t code VA41 with order type WK1 and note down the no
    Again we create release order in VA01 order type OR referencing the contract which we have already created(create with reference)
    This is the process
    For this to happen the copy controls should exist between WK1 to OR in VTAA
    This release order (OR) configuration you can configure (in VOV8) the immediate delivery switch which will create delivery when you save the order
    The immediate delivery switch is used only in Cash sale and rush order in standard SAP
    Regards
    Raja

  • Auto WT creation while doing partial GR in inbound delivery

    Hi All,
    We need auto WT creation once GR got completed. It is working fine using PPF if entire item GR got completed. But if we are doing partial GR , WT is not getting created.
    We do GR partially with HU and WT need to create for that HU only.
    Please help me if you have any idea about this.
    Thanks,
    Srikanth.A

    Hi experts,
    I have the same problem.
    We have deliveries with several items and we are using Tx /SCWM/GR for the partial GR (for each item).
    The partial posting to the ERP works fine.
    After the posting we want to create the putaway warehouse task only for the item for which we posted the GR. Unfortunatley the creation only starts (by PPF) if the GR is posted for whole delivery and for all items.
    Is there a way (by PPF) to initiate the creation of the WT only for the item for which the GR is posted?
    Thanks
    Ralf 

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • Auto Inbound delivery creation

    Hi Sapgurus,
    I am trying to create Inbound delivery from Outbound delivery after it has been PGI'ed. These both are related to Intracompany STO. We have WM implemented so both of these deliveries result in TO creation and can be closed only after TO confirmations. I used SAP notes which stated to use SPED output type in output determination procedure for outbound delivery and then assign output determination procedure to delivery type. But I was not successful in getting the desired results.
    Can anyone please provide me with the steps of this configuration, I may be doing wrong something somewhere.
    Appreciate the help.
    Thanks in advance
    Manav Anand

    Hi,
    I think you are talking about stock transfer between two plants. I assume your requirement is after PGI of the replenishment delivery system should create automatic inbound delivery in second warehouse,right?
    You can create inbound delivery automatically for second warehouse.I had such scenario in my previous client.I believe through some user exit you can initiate inbound delivery creation immediately.
    Please check with your technical person.
    Regards,
    PRashant

  • Issue with Message Type Triggering during Inbound Delivery Creation

    Hi Experts,
    Hi Experts, 
    Currently we are facing issue with message type triggering during inbound delivery creation:
    In NACE transaction for Inbound delivery we have 3 custom output types:
    Pricing Procedure Used is standard one -> E10001
    Z140  Inbound Delivery Create  (This should get triggered when IB delivery is created)
    Z141  Inbound Delivery Change (This should get triggered when IB Delivery is changed)
    Z142  Inbound Delivery Delete(This should get triggered when IB Delivery is deleted).
    At present if i check delivery in  VL33 -> Extras -> Delivery Output
    Both  Z140 and Z141 are being triggered during IB delivery creation. While it should be only Z140.
    Could you please suggest that are we missing any configuration in SPRO or we need to create any custom routine (requirement) to handle this?
    Thanks

    Hi,
    There is no fine-tuned control for inbound delivery messages as for Purchase order. Hence I guess to meet your above requirement, you have to go for a custom solution similar to the PO fine tune control settings.
    Thanks,

  • 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

  • BAPI_SALESORDER_CREATEFROMDAT2 with each item having diff Ship to party

    Hi Abapers,
    Can anyone guide me in this scenario:
    Creation of sales order using BAPI_SALESORDER_CREATEFROMDAT2 with each item having different ship to party.
    Ex :
             Item Material Qty Delivery date Ship to party
             10   p-100     2     24.12.2011    1020
             20   p-100     4     26.12.2011    1050.
    Can we use this bapi for the present scenario. If yes how to send the multiple ship to party. when i create sales order through VA01 its getting created but not with this bapi.
    Thanks for supporting.

    Pass Table ORDER_PARTNERS with
    PARTN_ROLE
    PARTN_NUMB
    ITM_NUMBER   = '000010'  
    PARTN_ROLE
    PARTN_NUMB
    ITM_NUMBER   = '000020' 
    and so on

  • Delivery creation

    Hi Gurus,
    I facing with a Scenario, where the deliveries are creating early than the delivery date assigned in the schedule lines of sales order. Can you guys let me know the possible reasons why the deliveries are creating early?
    Example, Order received on 20th with one line item and schedule lines allocated the delivery date as 26th. But for some reasons the deliveries are creating early on 22nd.May I know what might be the reasons.
    Thanks in advance,
    Sree

    Sreedhar A,
    Please check whether you have any Batch Jobs set up in the background.
    To do so follow the steps:
    Go to the sales order, item level, shipping --- check for what plant these deliveries are getting created...
    Go to SM37 T-code, click on "Extended Job Selection" icon....
    Input plant code in the JOB NAME section --- select _DEFAULT in the selection name field.
    Execute it. (make sure you have put * before and after the plant code )
    You will get a list of batch jobs, select one each and click on Step....
    Normally batch jobs will be named as AUTO DELIVERY GENERATE
    Check whether the program name is = RVV50R10C
    If this is set up then you need to cancel the batch job in your respective client
    Hope this will help you out !
    Regards,
    Syed Nasir

  • 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

  • [OIM] Error in Direct Provisioning (with auto save form) - GTC DB App Table

    Hi,
    I am getting an error when setting up direct provision of a GTC DB App Conn using OIM access policy (and group membership) or through manual provisioning with prepopulate and auto save form.
    Manual provisioning with prepopulate ONLY (not with auto save form) WORKS!!!
    Some information about my OIM config:
    - Prepopulate adapters are set up on both forms (parent and child)
    - "Auto prepopulate" and "Auto save form" are set up at Process Definition
    - For direct provisioning, I have created an access policy with an associated group which has a membership rule
    What it is working:
    - Provisioning manually, using prepopulate adapters only, not auto save form. Both tables are updated properly
    - All *3 tasks are called and finished with status=Completed*: "System Validation", "Create User" and "Child Table UD_<connector child table name>_US row Inserted"
    Testing direct provisioning:
    - I have tested adding the resource manually with prepopulate and autosave form configured, and also through access policy/group membership. The error is the same on both tests
    - The resource is displayed as provisioned and it is created an entry in the parent table of the resource, but not on child table
    - I also observed that only: "System Validation" and "Create User" tasks were executed (status=Completed). But it is missing the task "Child Table UD_<connector child table name>_US row Inserted"
    - The error log info displays only an error regarding to UGP table (Groups info) but I am not sure if that is the cause of entry creation on child table.
    It seems the SQL stmt tries to get ugp_name (group name) using ugp_key but that has null value.
    "SELECT ugp_name FROM ugp WHERE ugp_key=java.sql.SQLSyntaxErrorException: ORA-00936: missing expression"
    Note: When testing manually (without auto save form), I got "SELECT ugp_name FROM ugp WHERE ugp_key=1" which it is the same SQL stmt but the value is provided.
    My guess:
    - It seems that error is aborting the whole execution process so "Child Table UD_<connector child table name>_US row Inserted" task does not run, even though previous tasks are finished with the status=Completed. Consequently, the entry is not created on child table.
    Please, any guess or help would be very helpful. In case nothing works, I guess I will have to create and customize a "Update child Form" task as an workaround which would be called after "Create User" task.
    Regards,
    Hugo
    My environment:
    - Windows 2003, WebLogic 10.3.0.0, OIM 9.1.0.2 BL4, Oracle 10g, Java 1.6, DB App Table Connector 9.1.0.2 (from October 2009)
    - Target Resource: Parent and Child Table (Oracle 10g - the same OIM DB)

    An update:
    I solved that error about "ORA-00936: missing expression" applying OIM 9.1.0.2 BP05. That was not impacting my issue regarding direct provisioning with auto save form and child form.
    So please if anyone can confirm:
    - Can I set up prepopulate adapters on child forms AND also use "auto save form" on GTC DB App Table connector?
    If not, any suggestion?
    Regards
    Hugo

Maybe you are looking for

  • Unable to install CTM Client on a WIN 7 64 Bit machine

    We recently U/g a 64bit machine to Windows 7 and now we are unable to install the CTM Client. The error we get says unable to install due to machine configuration. Is there an update to the CTM Client we need. we are running 8.5.

  • Target Cost missing in some production orders

    Hi everyone I am observing target cost for few of my production orders. I have observed target cost is misisng in some production orders even they have status techo and dlv while some have staus rel and dlv and i can target cost for them. When i try

  • Re: "Fireworks can not run.The resource files are missing ordamaged"

    Hi, I had the same problem on Win XP (Home) and Firework MX after a complete reinstall of my system. There might be two triggers for the problem 1. I used my regular user account to install most of the programs and downgraded it afterwards to a limit

  • Editing Tree UI for MDM Hierarchy tables ina WDJ application

    Hi , We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application. However, tree UI is used only for the display purpose. Is there anyway or any other UI available using which we can achive edit option in the tree

  • Safari 5 closing tab - link color does not change

    When clicking a link to go to a new tab, then closing the tab, that link no longer changes color to show that it was was clicked, you have to refresh to force the color to change. (This was a problem in an early update of Safari 4, but fixed a short