BAPI or FM to create direct delivery from special stock

I am looking for a BAPI or FM for creating Delivery automatically base on special stock.
In specail stock we have goods with sales order.
let me have your advice soon.
Thanks.

Hello ,
Check the following FM.
BAPI_OUTB_DELIVERY_CONFIRM_DEC
Thanks,
Krishnakumar

Similar Messages

  • 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

  • Create outbound delivery from IDOC

    i want to create outboud delivery from incomming idoc..is DELVRY02 idoc type and shpcom message type will do this ..after crating the delivery i aslo need to do PGI..
    please tell me this idopc type and message type will do this or not?
    Thanks,

    Hi,
    I also have the same issue - I would like to be able to create an outbound delivery via IDOC/BAPI although cannot find the means to accomplish this.  Is there a standard process available to generate an outbound delivery without reference (VL01NO)?  I would like to avoid writing custom code if possible.
    Thanks!

  • BAPI or IDOC to create the Delivery in R/3 for the SaleOrder created in CRM

    Dear All,
    When ever I create a sales order and save the sales order in the crm system, an outbound delivery is created in the R/3 system.
    I have added some new fields in the tables LIKP and LIPS.(related to delivery)
    Now I have to populate data into these new fields with the CRM data.
    So can any one tell me when I create a sales order in CRM, does the system uses any BAPI or IDOC to create the Delivery in R/3.
    The BAPI name or Idoc information will be very useful.so that I can extend them
    In crm the BDOC ‘BUS_TRANSACTION_MESSAGE’ is used.
    Thanks in advance.
    Regards
    Shafath

    Hi All,
    I found a solution to my problem.
    The BAPI ‘BAPI_DELIVERYPROCESSING_EXEC’ will be enhanced to add the new fields into the BAPI structure.
    The BADI ‘/SPE/BAPI_DLVEXEC_EX’ and the user exit ‘EXIT_SAPLV50R_CREA_001’ will be used to populate the data into the new fields created in the BAPI structure and the new fields added into the tables LIKP and LIPS.
    Regards
    Shafath

  • Problems for creating a delivery from a order with less items

    hye, I have created a delivery from a sales order and all is ok. So, If I put less quantity in severals items, the delivery is generated ok and the sales order is OPEN status.
    Now , I want to generate a delivery from sales order, but I don´t want to include in my delivery all sales order's items. For example, if I have in my sales order four items (Itm1,Itm2,Itm3,Itm4) with theirs quantity, by SDK I want to generate the Delivery with Itm2 and Itm3 only. I can't do that. I hate It,jajajajajaja.
    With the next FOR, I get do it with all Items but I don´t know to say it that when status = 0 "jump" this item.
             delivery.CardCode = Order.CardCode
             delivery.DocDueDate = Order.DocDueDate
             delivery.DocDate = Order.DocDate
             For i = 0 To Order.Lines.Count - 1
                 delivery.Lines.BaseType = 17
                 delivery.Lines.BaseEntry = Order.DocEntry
                 Status = 1
                  If Status <> 0 Then
                       delivery.Lines.BaseLine = place
                       If i <> Order.Lines.Count - 1 Then
                          delivery.Lines.Add
                          place = place + 1
                       End If
                  End If
              Next
         retval = delivery.Add
    Thanks and I hope to get a solution.

    What is "it" that you cannot do (+ hate)???
    What is "status"? LineStatus???
    What is your problem when you try to skip an item?
    PS: You should always use enums instead of hard-coded values e.g.: Use the BoAPARDocumentTypes Enumeration for delivery.Lines.BaseType

  • Can't create a delivery order for stock transfer #

    Hi All
    I stuck with one ticket ...
    Can't create a delivery order for stock transfer #
    Kindly provide input to resolve this.
    Thanks

    Hi,
    Can you tell us as to what is the issue here? What transaction are you using?
    Anyways, check below things:
    1. Check for the inputs which must be relevant for the delivery creation
    2. Check if table VETVG is updated with the STO number.
    Please revert back with more inputs if problem still persists?
    Regards
    SD

  • Create Inbound Delivery from Outbound Delivery create

    Hi,
    This is what I am trying to do...
    1. Create PO (me21n)
    2. Create Outbound Delivery based on PO (VL10g)
    3. PGI (this creates a DELVRY03 IDoc)
    (IDoc is created at this step, no issues so far)
    4. Based on the Outbound DELVRY03 IDoc I want to create Inbound Delivery. Inbound IDoc is created, but not posted to Application. It gives me the following error...
    "Item 00000 of purchasing document does not exist".
    Please help me resolve this error message.
    Regards,
    Sneha

    Hello Sneha,
    Outbound delivery cannot be created against the purchase order. In a third party scenario where in we receive the shipping Notification(SN) from the vendor, it comes as Delvry02 IDOC to our system. The IDOC gets posted as Inbound delivery for which Goods Recipt happens against the Purchase order using the transaction MIGO. This updates the vendor confirmation table EKES. If you see the Confirmations tab in purchase order you will see the Inbound delivery number and external delivery number.
    Outbound delivery gets created against the sales order and uses the stock posted by the goods receipt to issue the goods. The ASN signals(DelVRY03) gets created after PGI happens in the Outbound delivery.
    The Process is like
    Purchase Order(ORDERS05) goes to vendor --- > Vendor Manufactures the goods sends back Ship notifcation(SN) -> SN posts the goods Inbound Delvery is created and GR happens.-> Outbound delivery gets created and ASN signals go to the forwarder.
    Do revert to me for any further clarification.

  • Unable to create Vendor return delivery from blocked stock

    Hello,
    Would like to know how to enable delivery picking from blocked stock.
    Some back ground : I am using Delivery type RL (Vendor returns). Required config is done in IMG.
    In our process we move defective material to blocked stock. Next create a Return PO to pick material from blocked stock.
    Next use VL10b to create delivery document against this PO.  We are able to create delivery & PGI from blocked stock.
    All above steps are executing seamlessly without any issue In our QA system.
    However in PROduction system delivery document does not find any qty in blocked stock inspite of being in the blocked stock.
    Please let me know where I could find the setting to enable delivery shipping/ PGI from blocked stock.
    Look forward to some good responses.
    Thanks,
    Ram

    Prerequisites
    When you enter a return delivery, you should reference the purchase order or the material document, so that the system can:
    Suggest data to simplify data input (for example, the storage location)
    Check that the returned quantity does not exceed the delivered quantity
    Reduce the quantity delivered to date
    Reverse other updates that occurred (for example, for a goods receipt into consumption) when the goods receipt was entered
    Before you enter a return delivery with reference to a purchase order, you have to determine whether the goods were posted to stock or to consumption, or whether they were posted into goods receipt blocked stock. If you posted the goods to a particular stock type at goods receipt (for example, quality inspection stock), you have to return them from the same stock type.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/a5/63351643a211d189410000e829fbbd/frameset.htm

  • Goods Issue against outbound delivery from blocked stock

    Dear All
    I want to do goods issue against outbound delivery created without any reference from blocked stock of my storage location. Is there any way I can achieve this? I know normally SAP allows goods issue from unrestricted stock but my business scenario requires goods issue to be done from blocked stock against outbound delivery.
    Please let me know any solution for this.
    Thanks and Regards
    Satish Kumar

    Hi
    Check this link where similar issue has discussed and its resolved as well. Please try this and update the findings. If possible could you share the background of this strange requirement.
    http://scn.sap.com/thread/1541911
    Thank$

  • Delivery from project stock

    hello!
    i have following requirement
    - sales order -> creates a requirement to unrestricted stock
    - delivery -> creates a requirement to unrestricted stock
    during delivery processing the materials are booked manually to project stock.
    - at goods issue i want to book automatically from project stock
    as i do not want to create requirements for project stocks, i cannot use a matching requirement class.
    can someone think of a solution?
    thanks!
    matthias

    Hi Fortain ,
    I did bit of analysis to track it down and i noticed that when you run availability, system check for Checking Rule "B".  I think if we want to enable WBS element field, it should be "BQ". I am trying to figure out. But no clue.
    Let us keep trying.
    Regards
    Vinu

  • Delivery from special order stcok

    Hi ,
    I've created a sale order , the stock is transferred to sales order stock from unresticted use, while i create a delivery can i issue goods from sales order stock.
    Please clarify.

    Hi Devi,
             As per my understanding about your thread
    --> when you create sales order the unrestricted stock got reserved for that sales order so it has been to as sales order stock.
    -->When you create delivery for that sales order the system will convert that stock as delivery(It reserved for that delivery) stock if you do the PGI for that delivery the stock will not visable no more in the stock over view.
    -->Finally When you do the PGI system will take the stock from the delivery stock only, it will happen in the background we no need to specify whether that PGI from Sales order stock or delivery stock.
    --->Based on the storage location it will be happen.
    I hope it will clear for you,
    Regards,
    Murali.

  • Obtain right price from special stock

    Hi everyone, I face the following problem. In a retail business
    I can have my own stock as also the stock from special orders.
    The problem is when a customer returns a product which was issued.
    In this case the product doesn't take the net price which purchased from the vendor
    but takes the Moving Average Price.
    The question is:
    How can I obtain the right price. I there any transaction?

    Hi,
    You might have set price control as 'V' (moving average price) for this material.The MAP  will be added to material cost and keeps on changing with market trend. When ever the transactions executed the MAP keeps on changing. In case of standard price the constant and the net price will come when you receiving return goods from customer or procuring material from vendor. There is no transaction to get the right price or same price in GI and returning transactions in case of MAP. Its a standard behaviour. Thanking you.

  • Create Outbound Delivery from STO/PO

    Hi,
    I need to create a Outbound Delivery with respect to STO. Did anybody worked on this, Please pass which FM/BAPI used?
    Thanks in advance,

    try BAPI_OUTB_DELIVERY_CREATE_STO.
    anya

  • Error while creating a delivery from a sales order

    Hi Folks,
    when i try to create delivery of a sales order, i am getting following error:
    " Item 000030: delivery split due to conflicting header data (FKARV: ZF2C <-> F8) "
    please help me in correcting this error.
    thanks in advance.

    Hi,
    The field FKARV is for Proposed billing type for a delivery-related billing doc.
    Now here in your case billing document if ZF2C and another is F8 so it is splitting, check this
    Kapil

  • Create one delivery from two Purchase orders

    Hello All,
    We are looking for a way to combine two Stock Transport Orders with similar data into a single delivery.
    Has anyone worked on this scenario before? Any guidelines will eb appreciated.
    Dev

    Have a look at the following note:-
    Note 386340 - Grouping purchase orders into one delivery using Vl10*
    G. Lakshmipathi

Maybe you are looking for

  • Regarding Internal Exception: java.sql.SQLException

    While deploying the application we are encounter a following error, Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: FATAL: sorry, too many clients already Error Code: 0 De

  • Help with isolating voice in recorded conversation

    Any suggestions on removing a single voice from a two-person conversation?   I have a short recorded conversation where I need to isolate a single sentence from one of the speakers.  The problem is, however, another person is speaking over the target

  • Why is consistency check warning [39054] raised?

    Hi, Today I migrated a 10g repository to 11g. After the upgrade I was checking the global consistency and the following warning is occuring several times WARNINGS: BUSINESS MODEL Declaraties: [39054] Fact table "[fact table 1]" is not joined to logic

  • Ipod mini randomly turning itself on

    ok so that probably sounds weird. but i'll turn my mini off using the standard method (Hold the play/pause key til it switches off) and it'll go off so i put hold on for safe measure. a few hours later (this is between 2 and 12 hours) i'll randomly r

  • Why are songs greyed-out in my iPhone's sync queue?

    I fired up iTunes for the first time on a new computer and plugged-in a 2 week-old iPhone 4s to sync about 250 or so songs that were pre-existing on the computer. The music is not purchased through iTunes; merely ripped from CDs ages ago. It's music