Delivery number finding

Hi,
How to find the Delivery number based on Return sales order number?
right now i am following the process
Sales order->Delivery->Shipping-->PGI>client requirement is to create return sales order here-->Invoice.
now i have the Return Sales Order number by using this how to find the Delivery number.
Thanks,
Sreeram.

Hi,
i have only Return sales order number with me, by using this i need to find out the Delivery number.
please give me ur suggestion.
Thanks & Regards,
Sreeram.

Similar Messages

  • How to find out the Group Delivery Number from STO

    User performed WA08 to create Vendor PO and STO for stores.
    When GR was carried out on the Vendor PO, multiple Delivery Order were auto-generated.
    Now, is there a place whereby User could identified the Group Delivery Number which
    links all the DOs generated based on either
    a. The STO number  OR
    b. The vendor PO number OR
    c. the allocation table.
    Can some assist?

    Hi,
    Please check these tables
    LIPS...
    VBELN: for Delivery Number
    VGBEL: for STO Number
    with the above chk this.
    VBSS...
    SAMMG: Group Number
    VBELN: Sales and Distribution Document Number
    Regards
    GK.

  • ABAP query to find delivery number of a sales document

    Hi Gurus,
    Can anyone help me how can i create an ABAP query to fetch the delivery number of a sales order. What are the tables to be joined.
    Through tables I got the solution. From VBAP table I fetched the sales order numbers. I copied the sales order numbers and opened VBFA table. In the preceding documents field I had pasted those sales orders numbers. Then I've selected subsequent document category 'J' to get the deliveries.
    But now how to write an ABAP query for this.
    regards
    rama krishna

    Hi,
    Try to use join query like:
    Select vbfa~VBTYP_N  INTO CORRESPONDING FIELDS OF TABLE itab from VBFA inner join VBAP
      where vbapvbeln = VBFAVBELN.
    Regards
    Mudit

  • How to find country code based on delivery number

    HI Folks,
    plz suggest which table is having country code(ship-to party) based on delivery number.this should be storage location country.
    Thanks,
    Ritesh.
    Message was edited by:
            Ritesh Shrivastava

    Hi,
    You can also get it from the table VBPA..
    SELECT SINGLE * FROM VBPA
                  WHERE VBELN = 'DELIVERY NUMBER'
                  AND       PARVW = 'WE'.   "SHIP TO PARTY.
    VBAP-LAND1 will be the country code..
    Thanks,
    Naren

  • How to look for sales order number if I know outbound delivery number?

    How to look for sales order number if I know outbound delivery number?

    Hi ,
        If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
    for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
    You will get a window,there you can see the Sales order Number before your outbound delivery Number
    With Thanks and Regards,
    Priya

  • How to trace sales order number from delivery number, when batch is split

    Hi All,
    I have created a Sales Order and a Outbound Delivery against the sales order.
    While creating the Outbound delivery, I have split the qty in two batches.
    Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
    Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
    Immediate help would be appreciated.
    Thanks in Advance.
    Ankush

    Hi,
    I have created delivery against sales order.
    While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
    Sales order (SO1) - Material (Mat1) - qty (15 ea)
    Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                         batch2 - 5 ea
    In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
       del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
    1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
    2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
    Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
    I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
    Hope this clarifies the issue faced.
    Regards,
    Ankush

  • Report with Delivery number and header text as output

    Hello all,
    I need to create a "quick and dirty" report that which will give me every delivery number, and the corresponding header text, in the month of July for given shipping points.  I am having trouble figuring out how to get the header text for the deliveries.  I have searched and searched but the solutions given just don't make sense to me.
    Regards,
    Davis

    Hi,
    You need to use the function module READ_TEXT to read delivery header text.
    Please go to transaction SE75 and use VBBK as the OBJECT to find the specific ID which is required.
    Regards,
    Ferry Lianto

  • Delivery Number and EKBE table

    I have  a requirement to find out and print Delivery number all I have is PO number.
    and I was told that In EKBE if the PO history cat is "L" then fetch the Delivery Number.
    My question is from which table and which field i need to pull if the PO history category is L in EKBE table.
    Thanks in advance,,

    Here is the Link
    Get all the PO's From EKBE-BEWTP  " PO history cat is "L"
    Equal to 'L'.
    select * from ekbe
    into table it_ekbe
    where BEWTP = 'L'.
    if sy-subrc eq 0.
    select * from LIPS
       into table it_lip
       for all entries in it_ekbe
       where vgbel = it_ekbe-ebeln and
                vgpos = it_ekbe-ebelp.
    "This will give all the Deliveries realted to PO histort cat " L"
    endif.

  • Steps to perform MT 605 with delivery number

    Hello all
    we have some stocks hanging in "stock in transit" for material.
    these where getting moved from plant to plant.
    i see a 603 Movement type done and from UNR of plant 1 to stock in transit of plant 2 has happened.
    i guess to complete the steps we need to do 605 Movement type.
    also, this particular item is not on any PO. it does have delivery number.
    wherever i read, it just says do 605 in "SHIPPING".
    but i am not able to find, how to really do this.
    what transaction to use to do 605 in shipping?
    i tried general ones, mb1b, searched in MIGO, but i didnt find any option
    in Mb1b it gave me an error "Good movement not possible with this MT"
    Basically i want to do GR without PO  but with delivery may be, to take stocks away from "stocks in transit" column and move to appropriate column like UNR.
      also if you can tell me what happens at FI ( accounting ) end, it would solve all my problems.
    Thanks
    Kavana

    solved! used 305 MT. i guess 605 happens at back end.

  • Saving Delivery text without the delivery number

    Hi,
    during delivery creation I need to create a standard item text. I did this using SAVE_TEXT in userexit_save_document and it works fine on the central system. But, the delivery is replicated to our decentral system and the text value is not there. The reason it fails is that the function SHP_BAPI_DELIVERY_REPLICA is called before the COMMIT so the new text is not saved yet.
    I cannot find any userexit before the SHP_BAPI_DELIVERY_REPLICA where the delivery number exists - the number is '$        1'. 
    So...._is it possible to create a text where the delivery number is not generated yet?_
    This is what I have tried with VBELN = '$        1'  and  'XXXXXXXXXX':
            CONCATENATE lips-vbeln lips-posnr INTO l_textname.
            l_headertext-tdobject = l_stxh-tdobject.
            l_headertext-tdname   = l_textname.
            l_headertext-tdid     = l_stxh-tdid.
            l_headertext-tdspras  = l_stxh-tdspras.
            CALL FUNCTION 'SAVE_TEXT'
                 EXPORTING
                      header          = l_headertext
                      savemode_direct = 'X'
                 TABLES
                      lines           = lx_lines
                 EXCEPTIONS
                      id              = 1
                      language        = 2
                      name            = 3
                      object          = 4
                      OTHERS          = 5.
    Any ideas?
    Thanks.

    Hi,
    Try calling the function module SAVE_TEXT with parameter
    insert  = 'X'
    fin orm routine 'USEREXIT_SAVE_DOCUMENT_PREPARE" ,user exit 'MV50AFZ1'.
    Regards
    Vinod

  • Tables-Delivery Number

    Hi experts,
    In which table i can find the Delivery Number, Invoice number and Invoice price.?
    Thanks
    SP

    Check VBRP table..you would get the required information
    So for an invoice.
    VBRP would contain the invoice line details.
    VBRP-VBELN  - Invoice number
    VBRP-POSNR  - Invoice Line
    VBRP-NETWR  - Net Price
    VBRP-VGBEL - Delivery note
    VBRP-VGPOS - Delivery line
    VBRP-AUBEL - Sales order
    VBRP-AUPOS - Sales order line
    Message was edited by: Anurag Bankley

  • How to get the last 3 digits of a Delivery Number

    Hi All,
    On the Transfer Order Collective form, the Delivery Number is printed. But I need to capture the last 3 digits of that delivery number and make the 3 digits to be printed on the same form with bigger font size. I would like to know how to capture the last 3 digits.

    If so, your form(subroutine) can look like this.
    form  get_last_3_digits tables co_sym_using   structure itcsy
                                   co_set_symbols structure itcsy.
      data: xvbeln type likp-vbeln.
    * Get the USING Values
      read table co_sym_using with key name = 'LIKP-VBELN'.
      check sy-subrc eq 0.
      shift co_sym_using-value left deleting leading space.
      xvbeln  = co_sym_using-value.
    * make sure it is internal format
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = xvbeln
           importing
                output = xvbeln.
    * Update the value
      read table co_set_symbols index 1.
      co_set_symbols-value = xvbeln+7(3).
      modify co_set_symbols index 1.
    endform.
    Regards,
    Rich Heilman

  • Assign external delivery number using BAPI_DELIVERYPROCESSING_EXEC

    Hi Experts,
    How to assign the external delivery number using "BAPI_DELIVERYPROCESSING_EXEC?
    For internal no, the BAPI works and I try to pass the parameters "tbl_request-EXTDELV_NO = XXX" to the BAPI , it prompt an error "Unexpected issue of error message (output NR 751)"
    Thanks

    Hi,
    Please check the external number which you are giving is within the number  Range defined  in Configuration  .
    regards
    Deepak.

  • Delivery number for a material document posted

    Hi experts,
    I need to delivery number for the material document number posted,
    I tried to use the field XBLNR from the table MKPF
    but i see that the feild is empty in the case of inbound delivery
    why is it so.
    How ever i can get the data from VBFA ,but can any one tell me the reason why XBLNR is empty in case of inbound delivery.
    Thanks a lot in Advance.

    Hi,
    If you do GR w.r.t. Inbound Delivery No in MIGO then it will not update "Reference" field i.e. XBLNR.
    To update same with Inbound Delivery No, you have to do "Post Goods Receipt" from Inbound Delivery Document itself in VL31N or VL32N.

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

Maybe you are looking for

  • Error while inserting data

    Hi, I am trying to eliminate the usage of Object id classes in my application. Instead I am trying to use the sequence number generated in the JDO_SEQUENCE table. But I am facing a problem. This is the error message i got. I am attaching the .jdo fil

  • Migration project: FI/CO/SD/MM/PS/RE (4.6c R/3 - ERP6 with unicode)

    Hi, Before getting to my question I have for you let me explain you some background: As project manager, I am involved in a pre-study of a project for migrating an existing non-hrm solution (FI/CO/SD/MM/PS/RE/Workflow) from a local 4.6c R/3 landscape

  • Using Facebook Comments for iWeb Blog (non mobile me domain)

    Upon moving from a mobileme hosted iWeb created blog to a personal domain, I obviously lost ability to use iWeb commenting. That in-of-itself was frustrating, so I've been scouting out new possibilities. Some have recommended IntenseDebate and others

  • I Have a SOUND Problem after installing 10.4.6, anyone else?

    I updated to Tiger 10.4.6 and Now I have a problem with the output sound. It is less than 2/3's of what it was in Panther, and it is raspy. As I have been looking for an answer to the problem, I discovered that this update also updates the firmware.

  • Problems using 488.2 commands with Agilent 82357 interface

    Hi, I need to send a large file to an instrument in chunks using the 488.2 commands sendsetup and senddatabytes. When I try to use these commands I just get an error saying 'NI-488: Error connecting to driver or device'. The interface works fine usin