Finding delivery documents between specific data

Hi,
    I want to find all the GI/ Material documents and their corresponding delivery documents for a particulat period. Can you please let me know how to do it. Shall I  have to use goods movement type 601 in MSEG or its not required?
Thanks and regards,
Vamsi

Hi Vamsi,
As you rightly said you can use the table MSEG to get the material document numbers. Copy these numbers and use table VBFA. Here put these Nos. in field VBELN along with VBTYP_N as "R" and VBTYP_V as "J". You will get all the delivery nos for the material document nos.
Hope this meets your requirement.
REWARD if it helps you!!
Regards,
Ajinkya

Similar Messages

  • How can I find unknown number between specific numbers?

    How can I find unknown number between specific numbers? For example I want to find the start with value from following question... How can I do that? If you run this oracle query SELECT DBMS_METADATA.GET_DDL('SEQUENCE','SEQUENCE_NAME') FROM DUAL to find out my sequence DDL you will see the similar given values that assigned to sequence DDL, and if I can find the result here I will apply same technique to my  C# code to find start with value of sequence in oracle.Thanks –
    Given Values
    Min number=20
    Max Number=500
    increment number=10
    start with=?  needs to be find.
    how many times it increments= 5
    where the cycle stopped now= 205
    Conditions;
    1. Start with number has to be either 20 or 500 or between 20-500...
    2. It always increment 5 times.For example, If the start with number is 75 than numbers goes like First cycle=(75,85,95,105,115) Second cycle=(125,135,145,155,165)...Third cycle (175,185,195,205) and it stops on 205.
    Question is If start with number not known. is there any way to find it?
    Thanks!

    DUPLICATE THREAD!
    Please do NOT keep creating duplicate threads.
    https://forums.oracle.com/thread/2578906
    https://forums.oracle.com/thread/2578830
    Your question has already been answered in your other thread. As I said in your other thread:
    The START WITH value part of the DDL for a sequence is NOT stored in the data dictionary. See the SYS.SEQ$ table for the attributes stored in the dictionary.
    What part of that are you having trouble understanding?
    There IS NO START WITH to find - it does NOT exist!
    Mark this thread ANSWERED and continue using your 2578830 thread if you intend to pursue this further.

  • How to arrange documents by specific date?

    I really want to arrange my school word documents by specific date (e.g. October 16th) rather than more vague dates (e.g. last 30 days). Any way I can do this?
    Thanks!

    I assume the documents you wish to arrange are all in one folder? If so, you can arrange them using the View -> Clean Up By / Arrange By options.

  • How can we find delivery documents which are not goods issued?

    Hi All,
    How can we find delivery documents which are not goods issued?
    Thanks in advance

    hi,
    please check in VL06O.
    there will be plenty of options on the same.
    you are requested togo for push button FOR GOODS ISSUE from there u will go to VL06G only
    your requrient will be satisfied.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:39 PM
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:40 PM

  • Find the difference between two dates for the specific month and year

    Hi,
    I have two dates, start date is 30/12/2012 and end date is 04/01/2013. Using datediff I found the difference of days between two dates. But I find the no of days in January 2013. ie output is 4 instead of 6. I input month and year to find the no of days
    for that date. In this case I input Jan 2013. How can I sql this ?

    I don't understand how most of the answers provided here not analytically solving the problem with many cases possible.
    First let me understand you:
    You have 2 dates range and you want to calculate day range for specific month and year between the original date range.
    declare @for_month int = 1 --January
    declare @for_year int = 2013
    declare @StartDate date = '2012-12-20'
    declare @EndDate date = '2013-01-04'
    SELECT
    CASE
    WHEN (DATEPART(MONTH, @StartDate) = @for_month and DATEPART(MONTH, @EndDate) = @for_month) and ((DATEPART(YEAR, @StartDate) = @for_year or DATEPART(YEAR, @EndDate) = @for_year)) THEN
    DATEDIFF(DAY, @StartDate,@EndDate)
    WHEN (@StartDate < cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (@EndDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, DATEADD(MONTH, DATEDIFF(MONTH, -1, @EndDate)-1, 0),@EndDate)
    WHEN (@EndDate > cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) and (@StartDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, @StartDate,DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, @StartDate) + 1, 0))) + 1
    WHEN ((DATEDIFF(DAY, @StartDate, cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) >= 0) and (DATEDIFF(DAY, cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date), @EndDate) >= 0)) THEN
    DATEDIFF(DAY, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime), DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime)) + 1, 0))) + 1
    ELSE
    0
    END as [DD]
    I don't know how you calculate day range between 01/01/2013 and 04/01/2013
    is 4, it is actually is 3 but if that is the case, you can add 1 from the condition.

  • Unreconciled documents at specific date

    Here's the problem: I need to show customer balance at specific date span (let say from BeginningDate to EndingDate). However for beginning balance, I must show all unreconciled documents (invoices, credit memos, incoming and outgoing payments, and direct journal entries) at BeginningDate. How can I do that? I considered using JDT1.IntrnMatch = 0 condition, however, it doesn't work for specific date. Please help. Thank you.

    Hello
    A buil in functionality supports this. Why you would like to create a new?
    open Financials->Financial Reports->Accounting->General Ledger
    Select Business Partner unselect G/L Accounts, enter posting dates required.on Display, select Not Fully Reconciled, and select Co&nsider Reconciliation Date below.
    Run
    This will display the unreconsiled transactions of your customer based on dates entered.
    Tip:
    RUN SQL profiler to get the query executed behind if you would like to built a custom application......
    Regards
    János

  • Find cleared document according entry date of clearing document.

    Hi,
    i have poor performance in this issue. I would find cleared document according clearing document. On selection screen are cpudt and cputm clearings documents and i need to find cleared document for these document.
    First statement
    select bukrs gjahr belnr into table i_bkpf from bkpf where cpudt in so_cpudt and cputm
    Second statement
    select burks gjahr belnr into table i_itab
    for all entries in i_bkpf from bsas where bukrs = i_bkpf-bukrs
    <b>and augbl = i_bkpf-belnr and augdt = i_bkpf-budat</b>
    Third stat.
    select burks gjahr belnr appending table i_itab
    for all entries in i_bkpf from bsak where bukrs = i_bkpf-bukrs
    <b>and augbl = i_bkpf-belnr and augdt = i_bkpf-budat</b>
    all is OK but condition augbl = i_bkpf-belnr and augdt = i_bkpf-budat has very poor performance!!
    How to solve it? Do you have any solution?
    Thank you very much.

    Hi Vidlak,
    If you might have noticed, BSAK has a secondary index available (number 1) with the fields :
    LIFNR
    BUKRS
    AUGDT
    AUGBL
    GJAHR
    BELNR
    BUZEI
    in the same order. Now since you cant obviously build and query on the primary key atleast try to complete the secondary index key. I can see i_bkpf has BUKRS & GJAHR key, and in the index AUGDT comes before AUGBL hence in construct your where clause for the third statement as
    WHERE BUKRS EQ I_BKPF-BUKRS AND
                 AUGDT EQ I_BKPF-BUDAT AND
    AUGBL EQ I_BKPF-BELNR AND
    GJAHR EQ I_BKPF-GJAHR.
    this should certainly help improve performance.
    Also seeing how many FOR ALL ENTRIES clauses u are using, one thing for performance improvement is ensure the table is NOT empty before using it and sort the table with its keys.
    Hope its of some help.
    Regards,
    Aditya

  • Between specific dates per month SQL

    All,
    I am creating a query that I need to pull between certain dates for each month. If this was a one time thing, I could do the simple between call, but.... What I am trying to do is have a query from our system run at the end of each month to pull the pay period dates. For example, for a pay run period between 24-JAN-2012 and 23-FEB-2012 the query would pull those dates at the end of FEB, and the same for end of MAR that would pull between 24-FEB-2012 and 23-MAR-2012,
    and so on, and so on.
    CREATE TABLE     ps_paycal
    (emplid               NUMBER (6)           PRIMARY KEY
    ,     name          VARCHAR2 (12)
    ,     frozen_dt      date
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-JAN-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-FEB-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-FEB-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-MAR-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-MAR-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-APR-2012');
    Hope this makes sense. Anyway, this is Oracle 11g.
    Thanks for the help!
    Karsten

    Karsten Hilton wrote:
    All,
    I am creating a query that I need to pull between certain dates for each month. If this was a one time thing, I could do the simple between call, but.... What I am trying to do is have a query from our system run at the end of each month to pull the pay period dates. For example, for a pay run period between 24-JAN-2012 and 23-FEB-2012 the query would pull those dates at the end of FEB, and the same for end of MAR that would pull between 24-FEB-2012 and 23-MAR-2012,
    and so on, and so on.
    CREATE TABLE     ps_paycal
    (emplid               NUMBER (6)           PRIMARY KEY
    ,     name          VARCHAR2 (12)
    ,     frozen_dt      date
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-JAN-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-FEB-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-FEB-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-MAR-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','24-MAR-2012');
    INSERT INTO ps_employees (emplid,name,date)
    VALUES          (111111,'JOHN DOE','23-APR-2012');
    Hope this makes sense. Anyway, this is Oracle 11g.
    Thanks for the help!
    KarstenWell, assuming that's a constant (the pay period start date being the 24th of the previous month) you could do something like this to get your pay period start / end dates.
    select pay_start, add_months(pay_start, 1) - 1
    from
      select to_date(to_char(add_months(sysdate, -1), 'yyyy-mm') || '-24', 'yyyy-mm-dd') as pay_start
      from dual
    )

  • How to find posted documents for Master Data in BW?

    Hello,
    We are planning to use Knowledge Warehouse to store some documents against some Master Data like 0PROJECT. The idea is to use those documents when reporting on real cost versus budget.
    We created a custom interface that we use to create new master data in BW directly, and we have an input field which precises the name of the files to be loaded. That works fine.
    However, we need now to include in that custom interface a table which will display the existing documents for the project currently displayed. We want to avoid to load a same document twice.
    I do not succeed in linking the master data values and the documents. I found the table RSODPHIOMA. It contains the key of the documents that I look for. How can I make the link between that key and my master data values?
    Regards
    Laurent

    Hi
    go to RSA1 -> Infosources ->
    Here go to top screen ...or find the control icon thru cntl +F
    here enter your infosource/infoobject name......
    Double click on the result and it will show the infosource...under that infopackage
    Assign points if useful
    Regards
    N Ganesh

  • How to find the difference between two date?

    Hi,
    I currently writing a date comparision program. Below is the idea analogy,
    Currently i need to find how many day differences between 30 July 2003 and 22 June 2004. How can i use java to code it?
    Thanks.

    there doesn't seem to be a direct way but try this:int daysBetween = 0;
    Calendar c = new GregorianCalendar(2004, Calendar.JULY, 30);
    Calendar d = new GregorianCalendar(2003, Calendar.JUNE, 22);
    while (c.get(Calendar.YEAR) != d.get(Calendar.YEAR)) {
        daysBetween += 360;
        d.add(Calendar.DAY_OF_YEAR, 360);
    daysBetween += c.get(Calendar.DAY_OF_YEAR) - d.get(Calendar.DAY_OF_YEAR);This gives the correct result of 404 (= 8 days from June 22 to June 30 + 366 days between July 1 of 2003 and 2004 + 30 days from July 1 to July 30)

  • Archiving of Delivery documents -Customer specific check

    Dear All,
                While we are trying to create a routine for customer specific check in archiving delivery docs, we encounter the following error.
    <h3>In the program SDCLVOFM, for Class RELK related to deliveries, we are trying to copy the standard routine 001 (SD_LIKP_SAP_1) for carrying out the necessary changes.</h3>
    However the system does not allow us to copy due to the fact that the routine does not have any CODE whithin the routine. This is really strange, being a standard SAP object.
    Also we cross verified this witht he report SDINVOFM for the same class and the standard routine 001. By doing so we found that he ABAP code is missing for this routine.
    Request your inputs for activating this Routine and inputing the required code / copy the routine.

    Closed by myself

  • Print Layout Designer:Due date in Delivery document

    In print layout designer in 2005 version for Delivery document when they preview the document in document printing it compute an automatic due date but if the preview was done in the delivery document itself the due date is the same as posting date.
    And as to delivery document in SAP no due date will be computed because due date will be determine upon invoice. But upon checking on their database, the same layout/template was used in the preview of the document in the delivery itself and in the document printing. The due date used in the layout was delivery due date.
    They want to apply the scenario of having automatic computation of due date in Delivery document in the print layout designer in their 2007 version. All details created in the Print layout designer in 2005 version are defined already in their 2007 version but when the document was preview in document printing no computation of due date.
    Is the layout used in the preview of delivery document itself was different when i used the document printing and select the same document and preview it? Is it possible to compute the due date in delivery document?
    Can someone help me?

    Hi Paul,
    Yes, we already informed our customer that in delivery document no due date will be computed. But my question is it is possible that the print layout used in the preview of delivery document itself was different when the preview is done in the document printing window? To preview the document in document printing, select or highlight one transactions and click preview.
    When we check the customer database and preview the delivery document itself the due date is
    the same as posting date but when i preview the document in the document printing when you check the
    field due date it was not the same as posting date.
    We check the layout and the field is Database Delivery: Due date. The layout name was also the same when we preview
    the transactions in delivery document itself and in the document printing.
    Can someone tell me if the layout was different in the document printing window under Sales A/R module?
    Thanks,
    Janice

  • Compare n kyf and m chanm of Top 10 Document-No.s between two dates

    Dear BW-Gurus,
    Our Customer want´s a query, which shows in the TOP 10 of some sales-doc´s and marks a line, if the key figures or a characteristic has changed from one date to an other date (Comparision of a sales document between two dates).
    We now created a query with all of the key figures restricted to the one date and to the compare date and to get an info, if something has changed extra key figures build by a forumular subtracting one kyf from another.
    We only want to show a TOP 10 list of the doc´s - but we have a very poor performance now.
    1) is it possible to build a kind of aggregate containing only the top10 doc´s ? - this will speed up the query enormously.
    2) We intend to compare the characterstics and kyfs by using virtual characeristic, which will do the comparison - do you think this is the right way?
    How would you solve such a problem?
    many thanks for your support.
    regards
    Jürgen

    Post Author: V361
    CA Forum: Formula
    I modified your formula and added  /0
        else (HalfDays := ((BusinessEndTime - time(FDay)) / 3600 + (time(LDay) - BusinessStartTime) / 3600);        FullDays := (FinalDays - 2) * 9;        Hours := HalfDays + FullDays /0;
    This causes the formula to fail, but in my version, it will show you the numbers it used during the calc.
    For 2007-10-01 to 2007-10-10 the variables are as below
    FDay: #2007-10-01 08:00:00#
    LDay: #2007-10-09 17:00:00#
    BusinessStartTime: #08:00:00#
    BusinessEndTime:  #17:00:00#
    BSTime : 8
    BETime: 17
    Days:9
    Weekends: 2
    FinalDays: 7
    StartDate: #2007-10-01#
    EndDate: #2007-10-09#
    HalfDays: 18
    FullDays: 45
    Hours: 0
    For 2007-10-01 to 2007-10-11 the variables are as below
    FDay: #2007-10-01 08:00:00#
    LDay: #2007-10-10 17:00:00#
    BusinessStartTime: #08:00:00#
    BusinessEndTime:  #17:00:00#
    BSTime : 8
    BETime: 17
    Days:10
    Weekends: 2
    FinalDays: 8
    StartDate: #2007-10-01#
    EndDate: #2007-10-10#
    HalfDays: 18
    FullDays: 54
    Hours: 0
    FullDays, looks wrong for sure, I assume it is supposed to be hours, but I don't think it is supposed to be subtracting 2 either.  Anyway, your hours is actually the sum of your halfdays and fulldays.
    Hope that helps,

  • Table for Stock on Specific Date in the Past.

    Hi ..,
    Please give me the Name of the Table to find the stock on Specific Date for a given material in the Past. like the T.code we use MB5B.
    regards.

    Hi
    MB5B uses a list of tables & logic to get the Stock for a particular posting date.
    if you want the stock run this report in your Z- report & export the Values to your Z-report & use them accordingly.
    Hope this helps
    Thanks & Regards
    Kishore

  • Date difference between two dates

    hi All,
    i have to right a stored proc to find the difference between two dates. 
    for example of i give
    startdate as 4/1/2015 and enddate 14/1/2015
    i should get 1 year , 10 days and 0 months .
    i have tried the DateDiff function but it does not calculate the leap year.
    please help.

    DECLARE @from datetime
    DECLARE @to   datetime
    SET @from = '20150104  8:00'
    SET @to   = '20150114  10:30'
    SELECT DATEDIFF(minute,@from, @to) % 60 as Minutes
    SELECT (DATEDIFF(minute,@from, @to) / 60) % 24 as Hours
    SELECT DATEDIFF(minute,@from, @to) / (60 * 24) as Days
    SELECT DATEDIFF(month,@from, @to) as Months
    SELECT DATEDIFF(year,@from, @to) as Year
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for