Open Vendor Items by Date

Hi,
We want to be able to produce a list of open items that have been on order from the vendor for more than three months.
I'm trying to write a query but I'm not sure how to handle the date range. I think I have the first part correct, as it seems to be returning the proper information. Now I just need to narrow it down by date.
SELECT
T0.ItemCode,
T0.OnHand,
T0.OnOrder,
T0.CardCode,
T1.DocNum,
T1.ItemCode,
T1.OpenQty,
T1.LineStatus,
T2.DocNum
FROM OITM T0  INNER JOIN POR1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPOR T2 ON T1.DocEntry = T2.DocEntry
WHERE T1.LineStatus = 'O'
What is the easiest way to tell this query to only list items that have been open longer than 3 months?
EDIT:
I've added the following to the query WHERE
DATEDIFF(month, T2.DocDate, GETDATE()) > 3
Am I doing this properly or is the DATEDIFF function not going to return the actual number of months between dates?
Edited by: Steve Blake on Jun 24, 2008 3:30 PM
Edited by: Steve Blake on Jun 24, 2008 3:35 PM

Steve,
Using the DATEDIFF I am cheching for 90 days prior.
SELECT T0.ItemCode, T0.OnHand, T0.OnOrder, T0.CardCode, T1.OpenQty, T1.LineStatus, T2.DocNum, T2.DocDate
FROM OITM T0  INNER JOIN POR1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPOR T2 ON T1.DocEntry = T2.DocEntry
WHERE T1.LineStatus = 'O' AND  DATEDIFF(Day, T2.DocDate, GETDATE()) > 90
Suda

Similar Messages

  • Open vendor Items -Valuation Difference

    Hi,
    what is the equivalent transaction in SAP 6.0 of transaction Y_MG1_07000102 (Open vendor Items -Valuation Difference) in SAP 4.7?
    Regards,
    makrand

    If you are talking about foreign exchange valuation (open item) its: FAGL_FC_VAL
    For others:
    F107 - Further Valuations
    F107_PROV_RP - Long-Term Receivables/Payables

  • Standard LSMW for open vendor items with Withholding tax

    Hi All,
    I am searching the direct input LSMW which is having the Withholdig tax. There is a direct input program in LSMW ( RFBIBL00) but it is not uploaded the withholding tax for open vendor and open customer items.
    If anybody know which LSMW is recammanded or anthing related to BAPI or IDOC for this requirements.
    Dhiraj.

    Hi
    If you need to upload the WT tax you have to fill the structure BWITH of std BI RFBIBL00, so your LSMW project should create a file like this:
    ---> Session data
    BGR00
    ---> Document data
    BBKPF (Header data
    BBSEG (Vendor or customer item)
    BWITH (Withholding tax data)
    BBSEG (G/L item)
    Max

  • Open vendors items paid to unique alternative payee in one check

    I have the following open items for a vendor to be paid by the payment
    program, each vendor has the same alternative payee, and we need just one check is printing to the alternative payee:
    Vendor | Item |Amount   |Payment Method  | Alternative payee|
    1001   |  1     | $100      | C -  heck             |   5000               |
    1500   |  2     | $200      | C -  check           |   5000               |
    2600   |  3     | $300      | C -  check           |   5000               |
    When the payment program is executed, we need each invoice of the each vendor must be paid to the unique alternative payee in one check.
    Are there any other options available to enable these open items to be grouped together as one payment and printing in one check?
    Right now, when the payment program is executed, each invoice of each vendor is paid as a separate item, in this case, three checks are created to the same alternative payee, we want just one check to the alternative payee is printing,
    Thank you, for your help with this situation.

    Experts,
    any pointers please ..
    Thanks,
    Best regards,
    Prashant

  • Open vendor items in FBL1N but not shown in F-44 clearing vendor

    Dear SAP team,
    I have open items in FBL1n (display) but are not present in F-44 (vendor clearing).
    Therefore clearing not possible. What can be causing this issue?
    Regards
    Roger

    Hi
    Changing Payment block many times should not be problem, unless the document currently shows with payment block.
    Check corresponding entries in BSIK table for the following :
    1. Payment block is blank.
    2. Clearing document number and clearing date is blank.
    3. Special GL indicator type and special GL indicator (UMSKS & UMSKZ) is blank.
    Check in BKPF table, that the document is not having any values in reversal document number/date field.
    Also go through that other values are correct at the table level.
    Check for any BTE implementation too.
    Regards

  • Custom Layout for FBL1N (Open Vendor Items)

    Hi All,
    I would like to create a custom layout for the List Output.  Currently there is only options as to display the Standard Local currency, I would like to include the value for the Document Currency (Transaction Currency) as well.  Does anyone have come across this before?  Thanks.
    Thanks.

    Hi,
    Creating a layout for any report is very easy.
    Go to TCODE FBL1N, in the output screen, below the menu options, you will find few buttons. you will find the button select layout, click on any one layout, and then click on the button select fields and copy the hidden fields from the select fields option,  add the fields you wish to add and then save the layout with a new name. Or you can also go through menu options - Settings ==> Special Fields - Include your special fields from the available tables. (This is cross client configuraiton)
    hope this helps
    regards,
    radhika

  • Interface for open FI items to dunning agencies in ERP

    There is no SAP standard interface technology for sending out open FI items dunning data to a collection agency in normal SAP ERP solution. In standard only printing with SAPScript ( and Smartform ) is supported.
    There must be tailored 'dunning interface to collection agency' customer solutions out there even for normal ERP accounts receivable, so what was your approach? All help are appreciated, but right now I am not looking for sample code, but rather overall best practises. Also I am aware, that each collection agencies have their own interfaces, but that can be solved with many options like EAI for example. Mostly I am interested how to get the dunning data created from standard dunning procedure regardless how the receiving dunning agency finally wants to have it.
    I know that ERP-IS-Utilies has one solution, and I have even implemented that once, so you don't get points by refering to that. Unfortunately IS-U uses contract accounting and has a completely own dunning procedures (and own tables as well) compared to normal ERP dunning, thus no help for standard ERP dunning.
    Br: Kim

    crouchingchicken wrote:
    I would set the File's Owner to by view controller and then I could drop a navigation item in and connect that right away to the controller
    Yes, I agree. The nav item used to show up as an outlet of any view controller.
    When I try to load the nib at runtime I get this error:
    The problem with the doc is this line:
    To push a new view controller at runtime, _create a new instance of your custom UIViewController subclass, initialize it with the nib_ file you created for it, and push it on the navigation controller stack.
    The underlined portion can lead us to believe we can alloc and initWithNibName:bundle: as we would when File's Owner is a proxy for the controller we create in code. But that won't work in this case, since the controller we want is the one that's created from the view controller object when the nib is loaded. In other words, we don't want to alloc a new controller, we just want to grab the object made from the nib. Here's what to do:
    // RootViewController.m
    - (IBAction)nextView {
    NSLog(@"nextView");
    // SecondViewController *viewController = [[SecondViewController alloc]
    // initWithNibName:@"SecondViewController" bundle:nil];
    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"SecondViewController"
    owner:self options:nil];
    NSLog(@"nib=%@", nib);
    SecondViewController *viewController = [nib objectAtIndex:0];
    [self.navigationController pushViewController:viewController animated:YES];
    // [viewController release];
    Be sure not to release the object obtained from the nib, since we didn't alloc it. Top level objects created from a nib are autoreleased. You can put some logging into the second view controller's dealloc to verify it gets dealloced when popped:
    // SecondViewController.m
    - (void)dealloc {
    NSLog(@"dealloc: %@", self);
    [super dealloc];
    - Ray

  • Item master data cancelled

    Dear All,
    When I open a item master data, some of the data has 'cancelled' comment on the top.
    The window's title is item master data - cancelled. But I cannot find anything diff on those items.
    What changes did they made then we have a 'cancelled' on that window? Thanks.
    Regards,
    Yuka

    You are right. Right click 'cancel' with cancel the item. Then when we open it, we will see 'item master data - cancelled'
    It will not been shown in the item list when we create document. But will still in the list of items if we do a find in item master data.
    Then if we right click 'remove', the item will disappear.
    Thanks.

  • Vendor item open date

    Hi guys,
    Is there any way i can know at which date vendor item was in open state.
    Currently in the bsik table the there is 44404 records. however when i view  report FBL1N and key in open at key date 31.03.2009 i can view 44410 records. How is this possible?
    Is there any fields in table that will indicate at which date vendor item is open. thanks.

    Hi
    The system behaviour is correct. In FBL1N  you have selected the key date as 31.3.2009 Now on that date that item may not have been paid. But actually when you see the BSIK Table today, the ietm which is appearing as open on 31.3.2009 may have been paid after the key date of 31.3.2009 and moved to BSAK Table.
    Regards
    Sanil Bhandari

  • Clearing of open line items in Exchange Vendor account

    Hi Friends,
    We have an issue related with the clearing of open items from the exchange vendor account. Details of issue are as follows,
    We have two open line items in an exchange vendor account (T-code FBL1N) pertaining to the Logistics purchase invoice and a credit memo. These documents are very old documents posted in the year 2005. When user tries to clear or net these documents using T-code FB1K( using the current period), SAP generates the clearing document, i.e. it gives only a clearing document number and sends an email to user stating that update has been terminated. When we try to view the clearing document so generated using T-code FB03, system do not finds it, i.e. it is actually not in system / tables. Also most important thing these open items continues to appear in the vendor account, i.e. they are not getting cleared.
    Some of our observations about the related exchange Purchase Order is that, this PO has document date 03/31/2004 having qty. 5659 GA. The very first GR and related invoice is also having qty 5659 GA and posting date of 03/31/2004. After this user had again created above mentioned documents that are in question i.e. invoice and credit memo. These documents were posted on 04/12/2005 for the qty of 22592 GA (Even though the PO qty is 5659 GA).
    Now we would like to know what would be the probable reason for these open items not getting cleared from the vendor account. Please note user also tried to clear these documents using F-44 T-code but no luck.
    Thanks,
    Ritesh/Ninad

    Hi
    Have you tried by changing the Base line date while cleaing the vendor account. ?
    Satish

  • Report to Display Vendor Open Line Items

    is there a report out there to display Vendor Open Line Items only for Asset Puchases??
    Thank you

    Dear Expert,
    In FBL1N we can find the line items according to your requirement through the "Dynamic Selections" select the Particular vendor or Vendor Group for selecting a total group and , Document , Document Type select the AA Document type and Select the Open items Radio button and also you can select Open at key date enter the date up to which you want to view., And Execute.
    Regards,
    Shankar K B

  • Open vendor line item conversion

    i have to upload "AP-open vendor line item data"  through LSMW
    Tcode:  FB01
    is their any direct function module /BAPI available?
    Thanks & Regards.
    Avijit Khajanchi.

    We have LSMW   Direct Input method
    Object               0100   Financial documents
    Method               0000
    Program Name         RFBIBL00
    Program Type         D   Direct Input

  • Data folder can not be opened in finding " AirPort Time Capsule " The operation can not be completed because the original item for " data" does not exist .

    Hi
    I have a " AirPort Time Capsule " (firmware 7.7.3) When I try to open the data folder in "finder". Then I got the message  " The operation can not be completed because the original item for " data" does not exist". I have a lot of data and I can understand why I get this message?
    Anyone who can help? Thanks..
    Br. Bo

    Get a USB drive of 2TB or more.. assuming your TC is 2TB. Either preformatted Mac or plug into your Mac and format it standard Mac OS Extended Journaled in disk utility.
    Do a full archive of the TC. You do this using airport utility. Do not click the erase disk.. I marked in green.. just the archive.. that is to backup the internal disk to the USB disk. It is not fast.. take it that the process will go at around 40-50GB/hr.
    Once you complete the archive .. it is a direct image of the data on your TC.. you can then plug it into your computer directly.. and then try and open the files you lost.. if you cannot open them.. open disk utility and fix the permissions.
    http://osxdaily.com/2015/01/13/repair-disk-permissions-mac-os-x/
    Or try the methods apple recommends..
    OS X Yosemite: Set permissions for items on your Mac
    It is possible to fix things on the USB drive because it is locally mounted.. but you cannot fix it on TC which is network drive.

  • Clear from Vendor open line item (FBL1N).

    Dear,
    I have Posted the Invoice and cancelled the same invoice which was in the Blocked status without Release.So its showing in Vendor open line item (FBL1N).
    Now we can not release these two docs in MRBR bcz the invoice was cancelled and also it can not be cleared in F.13 bcz which was blocked for paymentu2026
    Kindly help me how can i solve this issue and my user is askinig me to clear the same from the vendor line items.
    Also suggest how the same will affect the business impact.
    regards,
    Kannan B

    Pl post it in ERP Financials,to get faster replies SAP ERP Financials

  • Vendor Open Line Item Report

    is there a report out there to display Vendor Open Line Items only for Asset Puchases??
    Thank you

    When you purchase an asset, How does your transaction look?
    Like for example, when you use transaction code F-90 with vendor accounting entry will look like
    31 (Credit Vendor) - 100USD - Account Type 'K' (Vendor)
    70 (Debit Asset) - 100 USD - Account Type 'A' (Asset)
    As you can see above, for my Vendor line item, the off-setting entry was done to a fixed asset which will have account type A. That is why I asked for entering account type "A" in your report to show up only those line items which have an offsetting entry to a fixed asset.
    So, it depends on how your acquisition transaction looks like. There has to be something field that differentiates open items related to asset transactions with other regular transactions like document type, reference, etc... which you can use to isolate asset related open items.
    Shail

Maybe you are looking for

  • Poor resolution from mini-vga to s-video adapter

    I recently bought a digital projector to watch movies on at home, and am using my 14"iBook as the video source. It works great when using a vga cable. However, i want to run the cables up through the ceiling and down through the wall to keep them out

  • XML validation against XMLSchema

    Hi! Could anybody give me a clue, where can I find a good tutorial about the topic? Is there any source code that you tried and worked? I have some problems with few examples and maybe your working code will shoot the bulls eye for me. :) Thanks in a

  • How to view videos from iPhone on a PC?

    How can I view videos that I took on my iPhone4 on a PC? Even in Quick Time, the ".mov" files show up as a single picture. Thanks a lot, Howard

  • Why am I getting java.lang.ClassCastException: weblogic.jndi.WLContext_WLStub  error?

    Hi All,           Can any body tell me what are the reasons for this error.           Thanks           Vinod           Exception given below:           Wed Feb 14 07:05:44 GMT-03:00 2001:<E> <ServletContext-Servlets>           ServletRequestImpl: Exc

  • Software Issues

    Hello there, I am not sure what is the contact email address for apple tv support!! I have an issue with mu itv ON UPDATING MY ITV GETS STUCK, BLACK SCREEN WITH APPLE LOGO AND MY ITUNES IS NOT RECOGNIZING THE DEVICE!! My itv is still under warrant bu