Creation of Outbound delivery with respect to sales order

Hi Gurus,
I am an Abaper.
I have a requirement to create outbound delivery with respect to sales order.
Currently I have the purchase order details.  
My coordinator has given me a logic.
From the Purchase order, we have to get the Purchase requisition.
From Purchase requisition, we have to get the sales order.
From the sales order, we have to create the outbound delivery.
Please explain me how to creaet the outbound delivery with respect to sales order.
Also, how to get the PR from PO and SO from PR.
Thanks in advance.
Regards,
Balaji. R

Hi balaji,
I will add the abap code since you are a ABAPER.
1. To get the Pur. Req. from PO
Note that PO_NO and PO_LINE_ITEM are variables.
       Select VEBLN VBELP  into (EBKN-VBELN,EBKN-VBELP)
       from EKPO inner join  EBKN on EKPOBANFN = EBKNBANFN
       where EKPOEBELN = PO_NO and EKPOEBELP = PO_LINE_ITEM
2. And using VL01N you can create the relevant outbound delivery. Use above sales order for this. And record a BDC and write the code.
Hope this will useful
Thanks & BR
sandun

Similar Messages

  • Create Outbound delivery with QCI from Sale order

    Dear experts!
    Now, I'm getting some issues about searching function to create outbound delivery with QCI from Sale order.
    Note: My sale order have two item (10, 20) and when i create outbound delivery I also want to create QCI for them.
    Help me, Please
    Best regards, Huy.

    What is QCI?

  • Need     RFC/BAPI    to create Delivery Order  with respect to  Sales Order

    Hi Gurus ,I'm   new  to  AB AP  Language   to be  working  in company
    so  can anyone  tel  me   FM/BAPI   to create  Delivery  order  with respect to  sales order(va01,vl01n)
    Any  sugg.. will appreciate  u.........
    Thanks in Advance...........

    Hi,
        Try this BAPI
    BAPI_SALESORDER_CONFIRMDELVRY
    Regards
    Bala Krishna

  • Creation of Sales Delivery with reference to Sales Order

    Hi SAP Team,
    I tried making a Delivery with reference to Sales Order. Though in Item Category detemination of Delivery configuration, a separate
    Item Category has been configured, but still System picks up the one in Sales Order. Is there a way to get different Item Category at Delivery level.
    Also, for Subitems a different Item Category is proposed, but still it follows the same behaviour, which is at header level.
    Is there any way to change it.
    regards

    Hi,
    Maintain the required values in the T.Code "0184".
    Or follow the path:
    SPRO>Logistics Execution>Shipping>Deliveries>Define Item Category Determination in Deliveries.
    You have maintained the similar values for your delivery type same as sales order type that were maintained in "VOV4" T.Code.
    So that it getting the item category same as the sales order.
    Change the values here,so that new item categories will be appeared in delivery.
    Regards,
    Krishna.

  • Creation of Delivery with ref to Sales order

    Hello,
       I am trying to create the Delivery with reference to Sales Order using BAPI  -  BAPI_OUTB_DELIVERY_CREATE_SLS.
    At the of execution , i am getting the error No instance of object type OutboundDelivery has been created. External reference:.
    I have entered the sales order details in table parameter SALES_ORDER_ITEMS of BAPI. (Number range for Deliveries are internal)
    Can you please suggest me what could be the reason ?
    Regards
    Narayana

    Hi,
    Yes, copy controls are maintained for sales order type and delivery type in SPRO settings. The code as below.
    loop at t_vbap into ts_vbap.
          t_order-REF_DOC         = ts_vbap-vbeln.
          t_order-REF_ITEM        = ts_vbap-posnr.
          t_order-DLV_QTY         = ts_vbap-KWMENG.
          t_order-SALES_UNIT      = ts_vbap-VRKME.
          t_order-SALES_UNIT_ISO  = ts_vbap-VRKME.
          t_order-DELIV_NUMB = '0084000156'.
          append   t_order.
    endloop.
    call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
    *DESTINATION logsys
       EXPORTING
         SHIP_POINT              = '0010'
         DUE_DATE                = DUE_DATE
        DEBUG_FLG               = 'X'
      importing
         delivery                = lf_vbeln
         num_deliveries          = lf_num
      tables
         sales_order_items  = t_order
         deliveries                = lt_deli
         created_items         = lt_itm
         return                     = lt_return
    Can you suggest me.

  • 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,

  • One Outbound delivery document per multiple sales orders

    hi,
    We are trying to acheive to create one outbound delivery document for multiple sales order with some custom logic in user exit (which exit to use).
    Is it possible? If so can you please give some inputs?
    thanks
    Manohar

    Chk out the following link for the relebant userexit.
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    Regards,
    AK

  • Goods Receipt with respect to sales order

    hi,
        goods receipt with respect to sales order ,that sales order is prepared with reference to quotation
    erroer is
    Account assignment cannot be carried out because of different origin no.
    Message no. V1134
    Diagnosis
    The sales document to which you want to refer is based on sales document 20000005 and item 000010. Therefore, the settlement and possibly inventory management are carried out using the number of the preceding document.
    System Response
    This entry is not allowed.
    Procedure
    Enter the document and the item number of the preceding sales document

    Hi,
    Refer the sales quotation number for GR instead of the sales order number.
    Regards,
    Ravi Kumar C.

  • Upgradation from CRM 4.0 to CRM 7.0 with respect to sales order.

    Hi All,
    Can you please tell me what are all the  'EEWB enchacement changes' to be carried out during upgrade from CRM 4.0 to CRM 7.0 with respect to sales order..
    Thanks & Regards
    Prasanna

    hi
    check out the upgradation Note available in the Master Lists for upgradation.

  • Pricing in outbound delivery without ref to sales order

    Hello,
    I am creating a delivery without ref to sales order. I need to do pricing in the delivery for the material sold.
    1 ) I have never done the above. can someone tell  what are the config steps for  the same and what is the t code to create condition records (is it same as VK11 ).
    2 ) secondly I need to carry the pricing in the delivery to the proform invoice created with ref to delivery. How to do the same.
    regards
    Pamela

    Hi
    1 ) I have never done the above. can someone tell what are the config steps for the same and what is the t code to create
    condition records (is it same as VK11 ).
    Yes You need to maintain Condition Records Through VK11 only
    2 ) secondly I need to carry the pricing in the delivery to the proform invoice created with ref to delivery. How to do the same.
    But i am not why you required pricing procedure in delivery , but most the cases Delivery level we required Freight Charges
    At the time of Pro-forma Invoice system will pick the pricing procedure and you can check
    if you still want pricing procedure in Delivery level , assign Pricing procedure to Delivery Type
    Menu Path: SPRO> Logistics Execution>Shipping>Basic Shipping Functions>Pricing--->Define Pricing Procedures for Delivery
    Regards,
    Prasanna

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

  • 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.

  • Create Delivery with reference to Sales Orders

    Hi All,
    I have a requirement to create a program which extracts sales orders - schedule lines and check in hand inventory for a schedule line which is due to delivery and further create a delivery and do PGI (all the activities through the program automatically).
    Challenge is that I have to check availability in batches and the batch should not be split to meet the delivery.
    My scenario is as below.
    Sales order - 01234.
        Item 1 ----> Total Ordered quantity ---> 20
            Schedule line 1 -----> Quantity -----> 10 (delivery is due today)
            Schedule line 2 -----> Quantity -----> 10 (delivery is due today)
    E.g. In hand inventory in batches:
    Batch 1 ----> 30
    Batch 2 ----> 10
    Batch 3 ----> 50
    In this case Batch 2 is meeting my requirement, so that I can proceed to deliver Schedule line 1 with Quantity 10.
    I have referred some BAPIs and FMs but none has a provision to provide batch as the input (along with sales order and Item and quantities).
    BAPI_DELIVERYPROCESSING_EXEC
    BAPI_OUTB_DELIVERY_CREATE_SLS
    RV_DELIVERY_CREATE
    Is it possible to propose batch number while creating delivery by using any BAPI / FM. Appreciate your help
    Thanks,
    Somu

    You can pass Sales Order Batch in REQUEST -BATCH Table of BAPI BAPI_DELIVERYPROCESSING_EXEC.

  • 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

  • Delivery creation with ref to sales order

    Hi,
        I found couple of BAPI's / FMs to create delivery but i could not able to pick the right one because i am not sure what are the important parameters i need to pass, could any one suggest me the correct bapi / FM with the required parameters for the below requirement.
    1) Needs to create delivery with ref to sales order.
    2) Batch field should be updated in the delivery while creating itself.
    I am just thinking about the FM - GN_DELIVERY_CREATE
    Thanks

    Use this BAPI
    BAPI_OUTB_DELIVERY_CREATE_SLS

Maybe you are looking for

  • How do I get my money back on a movie that didn't download

    How so I get my money back on a movie that I downloaded from itunes

  • MacBook Pro Retina Mountain Lion - missing keystrokes

    Intermittant missing keystrokes. Any app including TextEdit. Not keyboard (happens with attached USB keyboard). Comes in waves (sometimes seems to be ok then comes back). Happens with no WIFI and all other apps off. This thread also applies so generi

  • Doubt on Bundle IDoc in PI

    Hi , We have a IDoc to File scenario .IDoc is not coming in bundled format from ECC .Could you please let me know the steps for bundling in PI to cross check .

  • Fireworks CS6 crash when opening color palette

    Fireworks CS6 has got to be the buggiest program I have used on my Mac. The bug that is especially irritating is when I attempt to open a Color Palette, Fireworks immediately crashes ( this is before I even begin to navigate or select a color palette

  • Putting Existing Ipod on new computer, new account?

    hi, Up until now, my daugher has shared my Apple id (as she is only 11), and I have uploaded her ipod on my computer (different library , so we have our own music) She now has her own laptop, and I want to put her itunes on her computer...so 1. Can I