Function to retrieve Open Deliveries

Hi,
Is there any SAP function to read the open deliveries. I found a function RV_DELIVERY_VIEW_2 but the only information I have for passing is sold-to party based on which I need the open deliveries.
Thanks in Advance
regards,
Satya

Check in TBTCP and TBTCO Table there in some field it i s mentioned..
TBTCP and TBTCO is the table which stores job details ..

Similar Messages

  • Function module for Open Sales Orders.

    Can u any one tell me is there any standard function module to
    retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
    Thanks in advance,
    Sanjay.

    hi
      you can get open sales orders from vbuk and vbup
        SELECT
             A~VBELN
             A~GBSTK
             B~GBSTA FROM VBUK AS A
             INNER JOIN VBUP AS B
             ON AVBELN = BVBELN  INTO TABLE T_OPENS
             FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
            AND  A~GBSTK IN ('A','B')
             AND B~GBSTA IN ('A','B').
    in t_vebeln table is haveing sales orders by user selection you can get it like this
    regards,
    varma

  • Function to retrieve all days of the previous month.

    Hi,
    Yes, it's a monthly report i've been given the task to achieve.
    So, all I need is all days of previous month (even if there is no data for this day)
    I've been instructed to use the following code, but it does not return any value:
    DECLARE
       CURSOR CUR_LAST_DAY IS
          SELECT TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, -1) ), 'DD')
            FROM DUAL;
       VVA_LAST_DAY   VARCHAR2 (2);
       VNU_JOUR       NUMBER       := 0;
    BEGIN
       OPEN CUR_LAST_DAY;
       FETCH CUR_LAST_DAY
        INTO VVA_LAST_DAY;
       CLOSE CUR_LAST_DAY;
       WHILE VNU_JOUR <= TO_NUMBER (VVA_LAST_DAY) - 1
       LOOP
          VNU_JOUR := VNU_JOUR + 1;
       END LOOP;
    END;
    --CLOSE CUR_LAST_DAY
    --DEALLOCATE CUR_LAST_DAY-----
    On the other end, i've developped this code:
    SELECT TO_CHAR(SYSDATE,'dd')
    FROM DUAL
    WHERE TO_CHAR(SYSDATE,'dd') >= to_char(to_date(to_char(ADD_MONTHS(SYSDATE, -1),'yyyy-mm')||'-01'),'yyyy-mm-dd')
    AND TO_CHAR(SYSDATE,'dd') < to_char(LAST_DAY(to_date(to_date(to_char(ADD_MONTHS(SYSDATE, -1),'yyyy-mm')||'-01'),'yyyy-mm-dd')));Which is returning a null value. :(
    Regards

    Hello,
    You want to retrieve complete days of last month from one query...so here it is..
    SELECT
    TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY') COMP_DATE,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'DD') ONLY_DD,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'MM') ONLY_MM,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'YY') ONLY_YY
    FROM DUAL
    CONNECT BY LEVEL <= TO_NUMBER(TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-1)),'DD'))I am not at database machine so therefore not tested.
    But one thing keep in mind that this forum only for reports there is separate forum for sql and pl/sql.
    Function to retrieve all days of the previous month.
    -Ammad
    Edited by: Ammad Ahmed on Apr 22, 2010 10:53 PM
    Spelling Mistake

  • LSMW on Open Deliveries in SD module

    Hi
    I am stuck in building LSMW on
    Open Deliveries in SD module.
    The required fields are
    shipping point-VSTEL
    ship to party -KUNNR
    Document date -BLDAT
    Planned GI date-WADAT
    Article no-MATNR
    Qty -LFIMG
    Kindly let me know the TCode and also the process for the same, as i am new to ABAP and there is no
    functional people in my project.
    Regards
    Madhumita

    plz close the all th eopen deliveries
    before u implemntn Or upload the master data
    otherwsie
    u wil get stock related problem

  • LSMW for Open Deliveries in Sales & Distribution Module

    Hi
    I am stuck in building LSMW on
    Open Deliveries in SD module.
    The required fields are
    shipping point-VSTEL
    ship to party -KUNNR
    Document date -BLDAT
    Planned GI date-WADAT
    Article no-MATNR
    Qty -LFIMG
    Kindly let me know the TCode and also the process for the same, as i am new to ABAP and there is no
    functional people in my project.
    Regards
    Madhumita

    Hi...
    U go to LSMW and give Project name and subproject name..
    After u selact Batchinput recoeding method a.d give ur tcode for ur recording..
    Once finished ur recording u save and come nack.
    After u can follow LSMW step.
    (if u want more info u go throuh ****************.There how 2 do LSMW step by step s there..U can easily understand)
    Regards:
    Prabu

  • Open sales orders and open deliveries and open billing doc to sap from legesy

    Dear all
    i have some open sales orders and open deliveries and open billing doc are there in the legesy system
    so i want to know how to transfer the doc to sap by using lsmw plz tell me

    Hi Amith,
    it is always good to search in Google before posting .LSMW is very old topic and i am sure you will get lots of Documents on this .Please go through the below link .you will get some idea on this.
    http://scn.sap.com/thread/1012472
    there are 14 steps in LSMW and it is same for all (master data and Transaction Data)
    Pls practice this in your sand box or quality system before working it in the client requirement.
    Hope this helps to you
    Regards
    Sundar

  • How to find open orders with amount and open deliveries?

    Hi All,
    I want to find out the open orders with open amount and open deliveries for a particular customer.
    We need this for credit check purpose.
    Kindly guide us for this.
    Regards,
    Satish.

    Hi,
    To find out open order:
    data: c_bef_pgi(1) TYPE c VALUE 'A',
    RANGES: rg_wbstk FOR vbuk-wbstk."range for wbstk
      rg_wbstk-sign = 'I'.
      rg_wbstk-option = 'EQ'.
      rg_wbstk-low = 'C'.
      APPEND rg_wbstk.
      rg_wbstk-low = 'A'.
      APPEND rg_wbstk.
    1.first put query on vbak table
    2.Put query on vbuk table as
          SELECT vbeln bestk lfstk gbstk FROM vbuk
                  INTO TABLE it_vbuk_open
                  FOR ALL ENTRIES IN it_vbak
                  WHERE vbeln = it_vbak-vbeln AND
                        bestk IN rg_wbstk AND
                        lfstk = c_bef_pgi.
    so this wil give u open orders.
    3. Then according to vbuk, get the details from vbap.
    To find open delivery
    1. First put query on vbak table
    2. Put query on vbfa as
      SELECT vbelv posnv vbeln posnn vbtyp_n vbtyp_v FROM vbfa
                 INTO TABLE it_vbfa
                 FOR ALL ENTRIES IN it_vbak
                 WHERE vbelv = it_vbak-vbeln AND
                       vbtyp_n = 'J' AND
                       vbtyp_v = 'C'.
    3.Then from VBfa,get the details from LIkp
    4.Then put entry on vbuk as
    *entries from vbuk
          SELECT vbeln wbstk fkstk gbstk FROM vbuk
                 INTO TABLE it_vbuk_del
                 FOR ALL ENTRIES IN it_likp
                 WHERE vbeln = it_likp-vbeln AND
                       wbstk IN rg_wbstk AND
                       fkstk = c_bef_pgi.
    Thanks & Regards,
    Anagha Deshmukh

  • Open orders,open deliveries againist material-urgent

    Hi
        My requirement is to find out open orders,open deliveries againist a material for a specific time period.
    wat is the process to get this data.
    and later on the quantity we get from open ordes,open deliveries should be deducted from total stock (as of today)
    So can anybody explain where and how this rqt can be achieved?
    Thanks in Advance
    Arpitha

    Dear arpita
    run T.Codes VA05 or VA05N and execute.  You will get order quantity and also open order quantity during that period. For open deliveries, run T.Code VL06 or VL06G
    Alternatively, you can also generate via SE16 and tables like VBBE, S001, S004 etc., for open quantity.
    thanks
    G. Lakshmipathi

  • SD Reports for checking open deliveries, incomplete sales orders?

    Hi guys,
    I am searching for the following reports/ or  tables with SQVI  in the sap for SD Module:
    a) If there are Deliveries exist in the system for which invoicing have not been done. There are two types of cases:
    • Delivery created but PGI not done
    • PGI done but invoicing not done
    b)     Are incomplete Sales documents present? To look at the list of partially delivered sales orders in the system.
    c)     Sales orders against which there are over deliveries in the system?
    d)     Any exception reports related to the Credit management SD Module? What reports to look at to see if the companies credit management is working fine.
    e)      Any standard user exit to check for duplicate customers when creatring?
    Thanks

    Open Orders - VA05
    Open Deliveries - VL06O
    PGI done, but Billing Due - VF04
    Billing Document not posted to Accounting - VFX3
    Regards,
    Rajesh Banka
    Reward points if helpful

  • Open deliveries in the credit management

    ++Hello,++
    ++We can see from the FD33 transaction that there is a particular customer, who has lot of credit exposure, as well as credit limit used is 89.43%.++
    ++I can find from a Z report that there are lot of open deliveries. I can see the total value / amount of open Delivery, but cannot find out any such delivery in a list or number of deliveries cannot be found.But I have used the reorganisation program RVKRED07, where I find the list of open sales orders but not deliveries.++
    ++Can you please help or advise what needs to be done in order to see the list of open deliveries, any report or program or transaction code?++
    ++Thanks++
    ++Sen++
    ++09831005007++

    Open Deliveries are the deliveries that are not billed so far.
    Use VF04 (the billing due list), select only the 'Delivery' indicator, remove all date ranges and you will get a list of open deliveries.
    Also, in VL06O, choose "list Outbound deliveries'. In the selection screen, scroll down to the lower portion into the section 'Status Outbound delivery'.  MArk the Billing status as A to B.
    You will get the list of open deliveries.

  • Unable to Close open Deliveries

    Hi all,
    We are trying to close open Deliveries, we get following error message :
    This entry already exists in the following tables " (ADO4) (ODBC - 2035) [Message 131-183]
    Please assist.
    Thanks and Regards,
    Pritesh Shah

    Hi
    As a general rule, whenever you got this kind of message:" This entry already exists in the following tables ", you have no other choice but log a support ticket. It seems as a database inconsistency.
    Also refer these note:1359365,1254435 might be helpful.
    I request you to raise a support ticket in SAP support portal inorder to clarify whether its a bug.
    Giri

  • How to get  shipped orders, unshipped orders and orders with open deliverie

    Hi
    how to get  shipped orders, unshipped orders and orders with open deliveries
    can anybody answer this.
    points would be rewrded
    Thanks

    Hi,
    You can check in the VBUK table for the status of an order. If you do a Query on VBUK table to get all the orders whose delivery status is not 'C' or the total goods movement status is not 'C' you get to know the orders not yet shipped.
    Hope this helps. Reqard points if useful.
    David.

  • Open Deliveries

    We want a query of open deliveries with similar information that is on Open Items List - Deliveries. The reason we want query is to be able to auto email to persons using alerts.
    Does anyone have a query or can tell me what fields signify it is shipped but not yet invoiced
    Thanks in advance

    Hi Keith ,
    Try this
    SELECT T0.[DocNum], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T0.[DocDueDate], T0.[DocTotal],(T0.[DocTotal]- T0.[VatSum]) As Net,T0.[VatSum],T0.[DocDate] FROM ODLN T0  INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry WHERE Docstatus ='o' or T1.[TrgetEntry] = 0
    My records are matching what I have in open delivery ..I have tested in demo environment
    Thank you
    Bishal

  • Open deliveries.   urgent

    Hi folks,
    while checking for open deliveries with Tc like VL06G, Vl06C, VLO6IG,  there is no field for the Customer .
    There is one field as "Partner data : Forwarding Agent".
    Is this the option for the customer ??
    how to check the open deliveries w.r.t a customer using these Tcs...
    because, while checking,  it is not showing any deliveries even though there are open deliveries w.r.t a customer..
    It is urgent
    thanx in advance.
    sourav
    sourav

    Hi,
    I do not think this can be accomodated in the std tcodes as there is no option of dynamic selections too. You can create reports using sq01 and tables VBUK , VBUP ( use doc type and doc and item status) LIKP, LIPS.
    Regards,
    Saurabh Diwakar

  • Checking open deliveries in system.

    Hi Experts,
    Can any one tell me that , is there any T-code or any procedure by which I can check open deliveries for a particular material in system???
    Thanks & regards,
    Rupam.

    Hi ,
    Pls check the below T Codes.
    Delivery due list                                                    :VL06F
    List of out bound deliveries due for goods issue : VL06G
    List of outbound deliveries due for picking        : VL06P
    Regards,
    Sash.

Maybe you are looking for

  • I downloaded the newest iOS 7.1 and safari no longer works on ipad2

    I postponed downloading the newest iOS 7.1 for my ipad2 because it seems whenever I update the software something inevitably crashes.  I went ahead and downloaded iOS 7.1 and now Safari does not work at all.  I've had to breakdown and use google chro

  • SUBMIT AS FDF DOESN'T WORK IN READER X

    I have a number of pdfs that were created in Acrobat 6.0.  They have submit buttons that permit the data to be e-mailed via a FDF.  All previously worked without difficulty.  Today I updated to Reader X.  I discovered that when completing the pdf in

  • How to use a Iphone 4 in other country?

    Hi, When I live in US, I buy my iphone 4 (without contract) i paid full price in AppleStore in Briarwood ... but never realise that the iphone i lock to the at&t, because i already have sim card from this operator . I understand that, when i moved to

  • IPod 5G Stuck in recovery mode

    Where do I begin... I have a backup of my iPod 5g which is running an OS version of 7.1, and has all my apps, and data, and stuff. One night my friend decided it would be funny to factory restore it, which set the iOS to 7.1.1, and deleted everything

  • How to setup a static ip address and DNS on airport extreme using the iOS Airport Utility?

    I am at a location that only has wired ethernet.  The ethernet connection has a specific  Static IP address, subnet, gateway, and DNS setting.  I cannot seem to find how to enter DNS settings using the Apple Utility on an iPad. HELP!!!