Open GRPO run time correct report

Query expert,
We are using SAP B1 9.0
We need Open GRPO Report run time query
Example - We made GRPO on 01/09/14 with 5 line items after that we made A/P Invoice on 05/09/14 with 3 line items
If we generate open GRPO report as on 05/09/14 than GRPO showing Open for 2 line item but next date we made again rest 2 line item A/P Invoice
on 08/09/14
Finally after few date we want to generate how many open GRPO as on 05/09/14 than 2 line item data not showing in Open GRPO list but actual 2 line item closes on 08/09/14.
Please help how to made such run time query so that we get correct open GRPO report from SAP.
Thanks
Regards
Mukesh Singh

Hi,
Try this,
/*select from opch a */
Declare @tilldat Datetime
/* where */
set @tilldat=/* a.Docdate  */'[%0]'
SELECT A.DocNum,A.DocDate,B.ItemCode,B.Dscription,B.Quantity,
CASE WHEN B.Quantity - ISNULL(C.Qty,0)=0 THEN 'Closed' else 'Open' End LineStatus,c.Docdate 'InvoiceDat'
FROM OPDN A INNER JOIN PDN1 B ON A.DocEntry=B.DocEntry
LEFT OUTER JOIN
(SELECT SUM(B.Quantity) Qty,B.BaseEntry,B.BaseLine,Max(A.DocDate) Docdate
FROM OPCH A INNER JOIN PCH1 B ON A.DocEntry=B.DocEntry WHERE A.DocType='I' AND B.BaseType='20'
GROUP BY B.BaseEntry,B.BaseLine) C ON C.BaseEntry=B.DocEntry AND C.BaseLine=B.LineNum
WHERE A.DocType='I' AND ISNULL(C.Docdate,@tilldat)<=@tilldat
Thanks & Regards,
Silambu

Similar Messages

  • Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please help

    Hi,
    Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please help

    Hi Shilpa ,
    Please refer to the following link and see if that helps you out.
    https://helpx.adobe.com/acrobat/kb/runtime-error-roaming-profile-workflows.html
    Are you trying to access the PDF with Acrobat or Adobe Reader?
    Regards
    Sukrit Dhingra

  • When opening PT Assembler, Windows tries & fails to open NI Run-Time engine

    I am using PT Assembler, a front-end for the Panorama Tools software bundle, to stitch microscope images taken by LabVIEW using the QCam Suite.  Whenever I attempt to open PT Assembler, Windows informs me that it needs to configure the NI LabVIEW Run-Time Engine 7.1.1, which it cannot as it is not installed.  After cancelling the configuration 4-5 times, my program opens and runs without errors.
    PT Assembler has absolutely nothing to do with with NI or Labview as far as I can determine, so why does Windows try to open it with the run-time engine?   I attempted to install the 7.1.1 engine from ni.com but was informed that it was unavailable.  Is there any way I can keep Windows from attempting to use the engine?  I could install a later version of the engine and hope it works, but I am a bit leery about how it might affect my program.

    Hi rhazelton,
    If this program hasn't been created in LabVIEW, then I'm not sure why it would be doing this..  However, you should be able to download the 7.1.1 run-time here.  Give it a try and see what happens!
    Regards, 
    Brian A.
    National Instruments
    Applications Engineer

  • Run time for Report saved in local machine and Database

    Hello,
    I have a report that runs in 5 seconds in Discoverer Desktop. When I saved the same report in database(File->Save As - in Database) it takes more than 40 mins. I haven't made a single change to the report before saving to Database. Has anybody come across this? Please help me find the problem.
    Thanks.

    Hi,
    this is just how the Internet works and also how file displays work. Everything you view, listen to etc. in your browser gets saved as a temporary file on your computer. You can't even view a simple html page without having it saved on your computer for a short time. I can't think of anything to prevent this from happening.
    Also, if you generated the file yourself, how is that a security threat to your client? He should be sure the file is safe.
    Best regards!

  • App store won't open after running time machine reinstall

    my HD crashed last week, got it replaced and just got my iMac back (20" intel). I ran a restore from my Time Machine backup from before the crash (took forever, but finished).
    All looked fine but I found two problems...
    1) Safari would crash without opening. I fixed that by just downloading and reinstalling Safari.
    2) the App store does the same thing. the icon jumps a few times and then just stops and won't open. Unfortunately, it's part of the OS and it doesn't seem Apple allows direct downloads of the App Store app. I'm current on my OS so I'm not sure how to fix this problem.
    Again, summary, restore from Time Machine, App Store won't open, OS is up-to-date. Any suggestions?

    Hi,
    Install the v10.6.6 combo update available here. It's ok to do this even though you are already running v10.6.6. The combo includes fixes that were not included in the original update.
    http://support.apple.com/kb/DL1349
    Restart your Mac and try the MAS again.
    You can download apps directly from the MAS once you have it running.
    Considering the TM backup took so long, make sure there's enough space on your Mac startup disk.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 15% free disk space.*
    Carolyn

  • Run time errors Reports 3.0

    When using the output viewer at runtime I get R30run32 performed illegal operation when I try to print or use printer setup. If I try to output to a PDF file, I get an error that say's that one of my column formulas has no PL/SQL. Neither of errors occurs in the development environment. Is there an update that I can download? Am I doing something wrong or missing something?
    Thank you in advance. Ed

    For anyone experiencing same problem:
    Make a call to R30RUN32.EXE with parameters
    MODULE=report object.RDF USERID=username/password@instance
    BATCH=YES
    DESFORMAT=PDF
    DESTYPE=FILE
    DESNAME=output path.pdf
    null

  • Adding new coloumns at run time in report

    hi friends,
    i wan to knw, how to add coloumns at runtime in the report.
    the requirement is like,,the user wll enter the cost center group in selection screen n i have to show all the cost elements in tht cost elements group as different coluomn, with the name of the costelement as the coloumn header.
    so it is not fixed tht how many coloumn wll be there in report.
    so plz help me out.
    good points wll be rewarded for helpful ans....
    thankx
    brij

    Hi John,
       I dont think, you can find any method for that,
    one way what I can suggest is
    Get the selected row index.
    Insert the blank row in your internal table at this index
    Refresh the container.
    Hope  this will help.
    Thanks,
    Anmol.

  • Run time column attach to apex report

    Hello everyone,
    can it be possible to make a function in a apex which will return a column value in report, like wise we use in report builder. I know we can do this directly in report query... however i want to make a some process may be, through which i can get a column value.
    My requirement is.... i am having a PO report where columns are Header_id, Segment1, Vendor_id, Vendor_site n Amount.
    I can have every column data from PO_header_all except amount for which i need to use.. PO_lines_all whose would be depend on header_id.
    Now.. i can do this directly in query.. but here i don't want to.. use a po_lines_all in report query. I want to call the Amount column attach at run time to report.
    Pls tell me how can i do this??
    I don't know whether it is possible or not... if it is then how can i do this.
    Regards,
    UKJ

    Hi,
    Do you mean something like:
    SELECT H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITE, SUM(A.AMOUNT) TOTAL_AMOUNT
    FROM PO_HEADER_ALL H
    LEFT OUTER JOIN PO_LINES_ALL A ON H.HEADER_ID = A.HEADER_ID
    GROUP BY H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITEThis will return the header_id, segment1, vendor_id and vendor_site values from po_header_all and a total of amount from po_lines_all
    Andy

  • How to get report (SQL Query) generating Run Time

    There is a Standard report of Payroll which show employee transfer information on the bases of location, grade job or organization, now to get actual query which is generated by run time in report builder including whether single column parameter or lexical parameter " because currently the query in not complicate but the parameter and lexical parameter is much more due to this not quite easy to under stand just copy past it into toad or pl/sql developer,
    Kindly share your experience to get such kind of query in you working time.
    thanks

    Here i try to explain contain of query.
    Parameter
    P_DEPTNO = 10
    P_WHERE_CLAUSE := ' AND EMPNO IS NOT NULL AND SALARY > 100'
    SELECT * FROM EMP
    WHERE DEPTNO = P_DEPTNO
    &P_WHERE_CLAUSE
    REPROT WILL GENERATE QUERY AT RUN TIME IS LIKE THAT
    SELECT * FROM EMP
    WHERE DEPTNO = 10
    AND EMPNO IS NOT NULL AND SALARY > 100
    Now i want to get this query out(Run time) by doing any oracle database feature or sth similar.
    thanks

  • Run time from database

    Post Author: bwrobel
    CA Forum: Administration
    Hello,Does anybody  know how to check run time of reports (CE10) directly from database?I can do it using Instance Manager, but when you have 400 reports running recursively it is difficult to have statistics for each of them. Thanks in advance!bwrobel

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • Run Time Audit

    After encountering several errors in execution of a mapping I open the Run Time Audit Viewer to view them. Rather than displaying the column values of the offending source records, the column names are displayed in the value column. Has anyone seen this happen? Any Suggestions?
    Thanks,
    Chris Busch
    [email protected]

    Chris,
    Can you give more information on your configuration (OWB version etc.). Also, which kind of errors were you inspecting - is it constraint violations or something else? I need this info to reproduce your problem.
    Regards:
    Igor

  • Can we change [maximum number of records per page] property at run time

    can we change [maximum number of records per page] property at run time in report 6i

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

  • Preserving run time menus

    The problem is that applications do not preserve custom run time menus applied to graphs or controls once the executable is run on another machine, or an installation is built and installed on another machine. I have tried advice from this board about saving .rtm to alternate llb's, to the same destination/support, opening from within development vi and saving to the same path as development vi.
    Surely the concept that you want to define a custom menu for a control and have your customer see this one when he installs is not a foreign concept within Labview. How can this be done?

    Here's how the two workarounds would play out in this situation:
    In the first workaround, you'd have to open the run-time menu editor for each control individually and choose to save the run-time menu to the control instead of the file. I don't think this is a very risky procedure, but it would be tedious. One thing to keep in mind is that in order to get the prompt to save the menu to the control or to a file, you'll need to make some small change to the menu. For instance, you could press the add button to add a temporary item and then the delete button to delete it. Then when you close the menu you'll see the option to save the menu to a control. I suppose this step is the only real risk in the process
    In the second workaround, you'd have to create 3 or 4 new event structure cases, one for each of the different run-time menus you want to display. Then you'd have to register each separate event for all the controls that correspond to that particular menu. This seems a little more risky, because the new code might induce bugs into your system, or you might forget to register the event for a control, or register the wrong event for a control.
    Jarrod S.
    National Instruments

  • XL Reporter Run time error.

    Hi Experts,
    while changing the row level into colum level in XL Reporter (Composer)there is an error occuring that is called as ' Run time Error ' then its become hanged..
    For examble in Parameter: Purchase order,GRPO , AP-Invoice. based on this am composing the report with some added item such as Doc number, item code, Item Description,price,Qty.e.t.c...its executing in row level correctly but while trying to change as colum it becomes hanged. then i need to restart the XL Reporter.can any one give me the solution based on this issue..
    Karthi.

    Hi
    To reinstall the XLR please backup any useful information you could perform
    the following steps:
    1. Un-register all addons from Business One> Add On Administration.
    2. Log into the company again to refresh it,unistall process will
       continue.
    3. Close Business One, check from Add Remove Programs, if XLR is still
       shown, delete it.
    4. Open SQL EnterPrise Manager, Delete Database IXMetaDataSBO.
    5. Open tables of company database, delete following tables one by one.
    -ixtDbVersion
    -ixtRepObjects
    -ixtRepRelations
    -ixtRepXML
    -ixtRepXls
    6. click windows Start> Run> type '%temp%', rename SM_OBS_DLL folder.
       for example 'SM_OBS_DLLOld' or delete it.
    7. In C/Programs/SAP Manage: delete folder:AddOnsLocalRegistration.sbo
       AddOnsInstall.sbo
    8. Open Register, delete XLR foler if it exists under
       HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAP Manage\SAP Business One\AddOn\
    9. Delete folder iLytix from  HKEY_LOCAL_MACHINE\SOFTWARE.
    10.Delete all Addon related folder from Installation path.
    11. Please reinstall XLR again. make sure that you have full
        authorization on your computer and install XLR with 'manager'.

  • Error involving Report Generation Toolkit and Labview Run Time Engine

    Developed an application using LabVIEW 6.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1. From there, tried to build a shared application for use with the LabVIEW Run Time Engine. The Run Time version functions properly until "New Report.vi" is called and then an error is generated, code 7, calling out "Open VI Reference in New Report.vi" could not be found. When building the application, I did include the "NI Reports Support" in the advanced installer options. The machine used for original development and application build is running Windows XP Pro and Office XP. Any suggestions??

    I am having the exact same problem but with LV 6.1 and M/S WORD 2000. It appears that the "New Report.vi" is trying to open "C:\APP.DIR\Word_Open.vi" and "C:\APP.Dir\Word_Open_Document.vi" by reference. The "OFFICE 2000.TXT" says that "_exclsub.llb and _wordsub.llb must be added as support files when building an application or a dynamic link library with the application builder." I added them as Support Files and I copied them to the "C:\TESTER\" where the TESTER.EXE is and I still get ERROR 7 in "NEW REPORT.VI" at VI OPEN REFERENCE.
    Do I need to make a "C:\TESTER\DATA\" sub-dir and put the support files there?
    I am building on MY COMPUTER on F: Drive on a network and transporting files to the real Tester.
    I displayed my App.Property of APP.DI
    R at start up and it is C:\TESTER\ ! How would my application know that "Word_Open.vi" and "Word_Open_Document.vi" are actually inside the _wordsub.llb?
    Any ideas ?
    Greg Klocek

Maybe you are looking for

  • I cant restore my HP G62 notebook PC to factory setting as i get the message boot manager missing

    I having trouble when i try to restore my laptop to factory setting, it tells me the Bootmanager is missing, this also happens with system restore. It very slow, and restoring it to factory worked once upon a time, and my laptop was great after that.

  • My "About" button is not working HELP

    Hello fellow BB owners ive been tweaking and updating my new 8330 and it seems that now my about button does not respond.All the other menus and places work fine but when i click on the about button it just does not respond. thanks in advance Jason S

  • Air update - initial content not found

    I had a working AIR-Project using this configuration: Win 7 64 bit Flex SDK 4.0.0 AIR 1.5.3 However, I needed to include a C++ library in the project and therefore update to AIR 2.0 or newer (at least I was told AIR 1.5 does not support calling nativ

  • Mail in mavericks ole when i transfer a mail to another map on my iphone its copies 100 times

    Hi, When i transfer a mail on my imac to another folder on my iphone there are 100 copies of the transfered mail? They aren't going away. I am very frustrated to delete 100 faulty mail copies  one by one Its all working in icloud. On my imac i thankf

  • Spectral Measurements (FFT Module)

    Hi ... I cam currently developing an application which uses the FFT Module to display frequency domain data in a waveform graph. This works as expected. When I try to output the data with the Write Labview Measurement File Express VI, I get strange d