Outbound delivery with reference to STO

Hi all,
When i run the Functionmodule   BAPI_OUTB_DELIVERY_CREATE_STO in SE37. It is creating delivery but the generated delivery number is not available in LIKP or LIPS. Please tell how can this generated delivery be available in LIPS or LIKP.
input for the function module -
STO number.
Thanks in advance
VK

Diwakar, Thanks for your reply. Actually we are trying to create outbound delivery ( OBD ) for the Stock transfer order (STO)
in background. As of now i am using VL10B to create outbound delivery, but this works fine in foreground but cannot work in background. I have tried with bapi BAPI_OUTB_DELIVERY_CREATE_STO this is creating deliveries but generated deliveries are not been commited in database. I am using Commit work ,  but this is of no use. Please find the code
    LOOP AT IT_EBELN INTO WA_EBELN.
      LS_ORDER-REF_DOC = WA_EBELN-EBELN.
      APPEND LS_ORDER TO LT_ORDER.
ExtensionIn
LS_EXT = 'My additional input'.
APPEND LS_EXT TO LT_EXTIN.
LOGSYS = 'NONE'.
VSTEL = 'HW01'.
Synchronous RFC
*at last.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATE_STO'
   DESTINATION LOGSYS
    EXPORTING
      SHIP_POINT              = 'HW01'
    DUE_DATE                =
    DEBUG_FLG               =
  IMPORTING
    DELIVERY                = LF_VBELN
    NUM_DELIVERIES          = LF_NUM
  TABLES
    STOCK_TRANS_ITEMS       = LT_ORDER
    EXTENSION_IN            = LT_EXTIN
    DELIVERIES              = LT_DELI
    CREATED_ITEMS           = LT_ITM
    EXTENSION_OUT           = LT_EXTOUT
    RETURN                  = LT_RETURN.
*refresh lt_return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'
IMPORTING
   RETURN        = LT_RET.
      COMMIT WORK.
   REFRESH LT_ORDER[].
*ENDIF.
REFRESH LT_RETURN.
REFRESH bdcdata.
CLEAR LT_RET.
endloop.
Hear the requirement is to create OBD in background.
Thanks in Advance.
VK

Similar Messages

  • Can we create outbound delivery with reference of purchase order

    Hi All,
    can we create outbound delivery with reference of purchase order?

    dear friend,
    as far as i know you can create it with the following references:
    -to sales order;
    -to STO;
    -to subcontract order;
    -to project;
    -without any ref
    are you talking about stock transport order ?
    regards,

  • Error while creating delivery with reference to STO

    Hi,
    I am getting the following error while creating the delivery with reference to STO
    Document is incomplete: You cannot save the delivery
    Diagnosis:
    When the system checked whether saving delivery was
    permitted, it determined that the requirements stored in
    Define Incompletion Procedures for this document do not
    allow this subsequent function.
    I have checked the following already:
    1. Maintained shipping data for both the supplying and receiving plants.
    2. Shipping tab exists in the PO
    3. Shipping point determination is checked.
    4. Customer masters created for both supplying plants and receiving plant for the sales area created for STO
    5. Material master is available in both receiving and supplying plants.
    It is working fine in one client. and giving a problem only in the other.not able to figure out where the error is. appreciate your suggestions
    regards
    joe

    Hi Joseph,
                     First go to transaction "VUA4" and see what is the incompletion procedure asigned to your delivery type. Then go to
    "OVA2" and see what are the fileds maintained in incompletion procedure of the delivery type and the status groups assigned to them. Now you go to "OVA0(ZERO) and see whether the status group allows to save the delivery. If it doesn't you can untick that check box. But if this is a live system , i doubt if you would be bale to do that. Any way one of the possible causes is storgae location missing. Kindly pelase let me know If you need any more infromation on this.
    Regards,
    Ram Pedarla

  • I faile to create outbound delivery with reference to scheduling agreement by using BAPI_OUTB_DELIVERY_CREATE_SLS.

    Dear Team,
    Can you please help me by providing the BAPI name for creating the outbound delivery for Scheduling Agreement in SAP SD .
    I faile to create outbound delivery with reference to scheduling agreement by using BAPI_OUTB_DELIVERY_CREATE_SLS.
    The system says "missing data in the BAPI interface: VBAK VBTYP E". It seems another FM should be used for scheduling agreement only.
    Thank you for your help in this regard .

    Hi Raghu.
    As much as I don't want to do this but just to resolve this error I created an enhancement implementation in include LV50R_CREACSV form routine dcs_check_so_vs_interface and modified VBTYP to blank to avoid that error message.
    Got the tip from this thread http://scn.sap.com/thread/1972059
    Unless... anybody has a brighter idea (without modifying the standards)?

  • Create an outbound delivery with reference to a purchase order

    Hi folks, would you tell me if I can create an outbound delivery with reference to a purchase order?
    I tried to use the transaction VL10B but after I run there is no data is selected. Should I set up anything else for that?
    Thanks in advanced.

    Hi,
    Yes, you can create outbound delivery with reference to a PO.
    In transaction VL10B, if you are not sure about the shipping point leave it blank. ALso, you can check the shipping point from the shipping data and enter it here.
    Leave the field Condition rule to create delivery blank so that it will consider PO with delivery date falling within one year.
    In the Purchase order tab, enter the PO number.
    Execute.  It should fetch you the PO list due for delivery.
    Before doing the above, make sure PO is not subjected to release strategy. Check the quantity in the PO due for delivery.
    Thanks and Regards,
    Maheshwari

  • Creating outbound delivery with reference to inbound delivery

    Dear all,
    My requirement is as follows:
    I get an inbound delivery from my vendor for the our sales orders. (For n number of sales orders having same shipping point, shipto party ad sold to party, we get one inbound delivery) As of now we are using that inbound delivery and read data from LIPK and LIPS and using 'BAPI_DELIVERYPROCESSING_EXEC' to create outbound delivery.
    But, it is creating one delivery each for every sales order. What we require is to create only one outbound delivery.
    I have searched in forums and tried to use VL10A, VL10C but since the delivery dates of each order are different I cant use those transactions.
    Now I have two options:
    1) Take inbound delivery as reference and create outbound delivery. Are there any FM's or BAPI's for this which will create 1 outbound for each inbound?
    2) Can we combine multiple sales orders into a single delivery when the delivery dates are different.
    Could you please help me.
    Thanks in advance,
    Aravind

    Hi Aravind,
    I am facing some issues while creating Outbound delivery using the BAPI 'BAPI_DELIVERYPROCESSING_EXEC'. I am getting the error message in return parameter as "No instance of object type OutboundDelivery has been created. External reference:"
    If you are successful in creating Outbound delivery, please suggest what may be the issue for this message. Iam passing the exact sales order no and item no., quantty and unit of quantity. Also manual creation of Delivery using VL01N is successful but using the BAPI it is unsuccessful. Please suggest with your valuable points on this.
    Regards,
    Vimala P

  • Unable to create delivery with reference to STO

    Hi,
    Facing this error while creating del with ref to the STO.
    Configured the following:
    maintained shipping data for both receiving and supplying plants
    shipping point dertermination
    material extended to the sales area
    Document is incomplete: You cannot save the delivery
    When the system checked whether saving delivery was permitted, it determined that the requirements stored in Define Incompletion Procedures for this document do not allow this subsequent function.
    Please suggest
    regards
    Joseph

    Hi,
    Please check for master data - Vendor master of supplying plant for receving plants purchasing organisation and also supplying plant in additional data in purchasing tab in vendor master
    Customer master for supplier's sales organisation
    Check if shipping point, ship to party / customer, delivery type picked in sto properly
    Check for the STO set up in SPRO
    Delivery type assignment for supplying plant
    if everything is ok, Create delivery in VL10B for sto, if it errors, check for log clicking on log icon
    give error description
    Regds

  • Create outbound delivery with reference to purchase order

    Hi,
    I've created new plant and when i make purchase order i cant see the PO in VL10B, and there for i cant create outbound delivery.
    In the PO in Item Detail there is no shipping category.
    What i need to do ?
    Thank you.

    Step1: In SPRO - Materials Management - Purchasing - Purchase Order - Set up Stock Transport Order - Define Shipping Data for Plants.
    Define the Customer number, Sales Org, Distribution channel and Division for the Plant.
    The Customer you are assigning for the Plant has to be created in the System to create the outbound delivery.
    Step2: In SPRO - Materials Management - Purchasing - Purchase Order - Set up Stock Transport Order - Assign Delivery Type and Checking Rule.
        Then Assign the PO type and the supplying plant to the Delivery Type which is NL (for inter company) and Checking Rule.

  • Delivery with reference to PO

    Hi all,
    Can we create Outbound Delivery with reference to the Purchase Order from customer directly?
    If yes what is the procedure.
    Regards,
    Bhaskar.K

    Hi Vijay,
    You can do it using VL10B. GIve shipping POint, Go to Purchase orders and give the PO number and execute, delivery will be created. The go to Vl02n and chcek the delivery.
    Reward if it helps
    Regards
    Srini

  • Goods Receipt using Inbound Delivery with reference to Outbound Delivery

    Here is our scenario that we need help finding a solution:
    1.  Multiple Intracompany POs created
    2.  On the confirmations tab of the POs, we have u201CInbound Deliveryu201D Selected because the items need to be received in with Handling Unit management.
    3.  We have the Order Combination box checked on the shipping tab to allow 1 delivery to be created for multiple purchase orders.
    4.  We create only 1 Outbound Delivery for only available items on various purchase orders.
    5.  Due to being handling unit managed, we need to receive the items using an inbound delivery.
    Problem:  We need to find a solution to easily enter an outbound delivery number which will allow us to receive only the parts that were shipped (issued), via the inbound delivery process. 
    If we remove the confirmation control key, we can complete a Goods Receipt for Outbound Delivery in MIGO u2013 but is there a way to complete a goods receipt using an inbound delivery with reference to an Outbound Delivery?
    Thank you for the help.

    Hi,
    You can work with Inbound delivery created via IDOC Triggered from Outbound Delivery, this will carry the HU Data as well. Please refer this wonderful note, which will explain you a lot of things,  Note 1119073 - FAQ: Automatic inbound delivery creation for stock transfers
    There are other notes also available for Inbound delivery creation with HU in STO, please browse the notes, if you find any difficulty.
    Regards
    Chandra Shekhar

  • Problem in Outbound delivery with order reference

    Hi,
    I am facing problem with creation of outbound delivery with order reference from transaction VL01N. When i enter into the transaction with order key in, but in the tab Picking there is one column Pick quantity which is showing as grey field with zero value(Grey field don't allow to change the quantity). This Pick quantity is always allow to put us required quantity but i come across this kind of scenario very first time. Can you please help.
    Thank you.

    Hi,
    Your combination of Plant+Storage location is enabled for warehouse management. So directly putting the picking value is not possible. You have two options now.
    1. If you know howto put pickign through transfer orders, do it through LT03 and confirm teh TO for picking quantity to be updated in delivery. You have to find out teh stock in the source bin and use it in transfer order. You may get in touch with WM consultant, if you dont know how to do it.
    2. If you are ok with just doing picking without WM, then you can change the storage location in delivery and then try picking in delivery itself. The storage location should not be enabled for WM for the plant.

  • Vendor subcontracting with outbound delivery without reference

    Hi Experts,
    please do you know if it is possible to manage subcontracting movement (541) using an Outbound Delivery without reference to any Sales Order nor Purchase Order?
    Can you send me please the detailed description of settings in master data and customizing?
    Thank you very much
    Kind Regards
    Andrea
    Edited by: Andrea on Jul 21, 2008 12:46 PM

    Hi,
    With ME2O, it's necessary to have a subcontracting PO in selection for your materials. From this selection, you have the requirement and the vendor stock for these materials.
    If the stock is negative, you can create a outbound delivery.
    For your information, this outbound delivery is as a delivery without reference. But, with ME2O, it's necessary to have PO in selection.
    Then, another solution is to update vendor stock with MB1B but not connection with LE.
    But, i tried to add item category LBN for LO delivery type.
    But, i have a error message during the GI (message M7 071).
    I'm not on real test environment.
    Can you try ?
    Regards,
    Lionel

  • FM for create outbound delivery with order reference

    Hi,
      Can u pls tell me the function module name for create outbound delivery with order reference.
    regards,
    Mahi.

    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: /  t_created-document_numb.
    Thanks
    Naren

  • Create Inbound Delivery with reference to Outbound Delivery

    Hi Team,
    Can anybody describe the process needed to be able to Create an Inbound Delivery with reference to an Outbound Delivery.
    Also, can the whole inbound delivery creation process be automated?
    Thanks.

    Inbound Delivery can be created wrt :
    Purchase order
    Shipping notification
    Customer return
    and
    Outbound Delivery can be created wrt:
    Goods shipment based on a sales order
    Stock transfer order
    Goods return (to the vendor)

  • CREATE OUTBOUND DELIVERY WITH ORDER REFERENCE

    Hi All,
    I am working on VL01N Tcode for "CREATE OUTBOUND DELIVERY WITH ORDER REFERENCE", where Return Check serial number of incoming material in case of sales return and compare against serial number in outgoing delivery. If the serial number doesnu2019t match then it should throw an error.
    For the same when serial number is entered after selecting, EXTRAS-> Serial Number. If it does not match with Return Check serial number of incoming material in case of sales return and compare against serial number in outgoing delivery, for the same i am using a BADI  LE_SHP_DELIVERY_PROC and method DELIVERY_FINAL_CHECK, i am not able to find where this value entered is stored.
    Please help.
    Regards,
    Nagesh

    Hi Venkat,
    Thanx for the reply, but ANZSN field only mentions Number of serial numbers, but my query is to check Serial Number GERNR entered when selecting item number and selecting EXTRAS->SERIAL NUMBER and entered serial number with Check serial number of incoming material in case of sales return and compare against serial number in outgoing delivery.
    Please let me know.
    Nagesh

Maybe you are looking for