Bp aging statement - sap b1 default crystal report

hi all
I am trying to modify SAP's default sap crystal report for aging. and I am having a lot of difficulties!
how do I modify this layout to serve my purposes? i am not able to add any table to this report. all values on this layout come from a table called pld_items. where does this table come from?
does anyone know how to modify this? is there any instructions anyplace? help!
prem

Hi Prem
Aging report in sap b1 as an system report we can't change any thng in system default reports basically locked for change but you may create your own aging report through crystal report or XLR .
I HOPE BELOW QUERY SOLVE YOUR PROBLEM .
select T1.cardcode 'Bp Code',T1.cardname 'Name',sysdeb 'Debit Amount',syscred 'Credit Amount', (sysdeb - syscred) as 'Balance Due',
case T0.transtype
when '13' then 'INV'
when '14' then 'AR CN'
when '24' then 'INCOMING'
else 'Other'
end 'Type',
Ref1,
fccurrency 'BP Currency',
CONVERT(VARCHAR(10), refdate, 103) 'Posting Date',
CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "0-30 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 30
and (datediff(dd,refdate,current_timestamp))+1< 61)
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "31 to 60 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 60
and (datediff(dd,refdate,current_timestamp))+1< 91)
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "61 to 90 days",
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
then
case
when syscred= 0 then sysdeb
when sysdeb= 0 then -syscred
end
end "90 + days"
from dbo.JDT1 T0
INNER JOIN dbo.OCRD T1 ON T0.shortname = T1.cardcode and T1.cardtype = 'c'
where T0.intrnmatch = '0' and T0.BALDUEDEB != T0.BALDUECRED
ORDER BY T1.CARDCODE, T0.taxdate
REGARDS
RAMANDEEP

Similar Messages

  • Error encountered during generation of default Crystal Report Layout

    Hi Experts,
    I am currently encountering an error on a particular workstation during generation of a default crystal report layout. Is there any SAP note for this or did someone encountered this error already?
    Details:
    SAP B1 8.81 PL:06 (I think its not a patch issue since the error is occurring on a particular workstation)
    Windows OS: Windows 7
    Actions Taken:
    Run CRRedist2005_x86
    Run CRNET11WIN_EN_200403
    Run crnet11win_en_sp1
    Run crnet11win_en_sp2
    Regards,
    Zeus

    Hi,
    Check SAP note regardless of version and PL.
    1529682 - Crystal report not displayed in Windows 7 OS
    1668274 - Print Draft with Crystal Layout
    Thanks & Regards,
    Nagarajan

  • No SAP Datasources or SAP Toolbar in Crystal Reports 2008

    I cannot see the SAP toolbar or SAP datasources under "Create New Connection" in Crystal Reports 2008 SP1.
    After reading many threads on SDN and reistalling Crystal Reports 2008 SP1 and the BOBJ SAP Integration Kit many times I have not been able to get this to work. I have installed the following in order:
    - SAP GUI for Windows
    Release: 710
    Build: 1046700
    Patch Level: 12
    includes the BW 3.5 AddOn and BI 7 AddOn
    Crystall Reports 2008 SP1 which I installed all components except Legacy XML Export.
    Business Objects XI Integration Kit XI 3.1 for SAP which I installed all desktop components and all server components excluding web content and SDK. This was a local install on my PC.
    I have ensured that I have only one instance of SAPLOGON.ini on my PC.
    I have not applied the transports yet because I want to see the SAP datasources and SAP toolbar in Crystal Reports before I progress.
    We do not have Business Objects Enterprise and I'm not sure what "BOE 3.1 Client Tools" is referred to earlier in this thread. My understanding is that in addition to SAP and BW we just need Crystal Reports 2008 and the SAP integration kit.
    We are on ECC6 and BW 3.5.
    I hope someone can help.

    Hi Stratos,
    Thanks for your response. I finally got this working. My issue was that I originally used the Crystal Reports 2008 and BOBJ Int Kit downloads from the SAP support portal. I checked with another SDN user Steven Dierick - thanks Steven - for the version of Crystal Reports 2008 he was using (version 12.0.0.683).
    I downloaded Crystal Reports 2008 version 12.0.0.683 and the BOBJ Int Kit from the downloads section of sdn and it works!! SAP Toolbar, datasources and everything.
    Considering I'm using Crystal Reports 2008 SP0 are there any disadvantages of not using Crystal Reports 2008 SP1?
    If I'm better off using SP1 where should I download Crystal Reports 2008 SP1 and the appropriate BOBJ SAP Integration Kit?
    cheers,
    John

  • Error While connecting  to SAP R3 from crystal reports

    Hi Experts,
    I am trying to connect to a SAP R3 from crystal reports, it gives below mentioned error.
    Logon failed.
    Details: CMALLC: rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_PM GWHOST=10.11.12.13, GWSERV=SAPGW12, SYSNR= 12
    Location SAP-gateway on host xyz/sapgw12
    Error timeout during allocate
    TIME Wed Nov 18..
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1872
    Detail no connect of TP sapdb12 from host 10.11.12.13 after 20 sec
    COUNTER 6
    Please help me to solve this error.
    Regards,
    Ganesh

    Hi
    please ask your network admins if there is a firewall between your CR Designer installation and your SAP R/3 system.
    I assume that you have imported the necessary trsansports in your SAP R/3 system.
    Which kind of driver do you use for the connection to SAP R/3?
    Regards,
    Stratos

  • Set As Default Crystal Report Layout in SAP B1 8.8 PL13

    Hi,
    I want to Set As Default a Crystal Report Layout. I know you can do that in Layout Desginer - Selection Criteria, but SAP B1 8.8 PL 13 has only a Manage Layout button in the Layout Desginer window which links to the Report and Layout Manager. There is no Set As Default button.
    Where can you select which layout to be default in PL13?
    Thanks!
    Cristina

    Hi
    If you want to Set as Default particular PLD then Open that Form
    For. Example
    Sales Ar > A/R Invocies (Item) document
    Then Click on PLD icon ans select your crystal report as Default by Set as Defaul button.
    Thanks
    King Kevin

  • SAP BW and Crystal Reports XI R2 Parameter list problem??

    Hello Experts,
    I facing a problem.
    I have a crystal report based on a BW Query. It has one parameter called Country.
    Eg:
    Until now, in BW query country variable has the following values.
    USA
    JAPAN
    GERMANY
    Now, from this fiscal year we have the following values for country variable
    USA
    JAPAN
    INDIA
    GERMANY
    UK
    I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
    THE VARIABLE IS A HIERARCHY VARIABLE.
    Can any one Please help.!!
    Regards
    NMU
    Edited by: Mohammad Usama on Oct 20, 2008 4:26 PM

    You said that you are using version XI R2 SP2 (for BO Enterprise)  - do you have any FixPacks on this codeline? (FP2.x)
    Question: If YES to above, have you made use of the equivalent FixPack for Integration Kit?  (known as "Partners Fix Pack 2.x ")
    There are a few fixes in this area, I was thinking like:
    ADAPT00716808 -  When scheduling a report from SAP Business Information Warehouse (BW) that contains parameters from a hierarchy or a hierarchy node variable, the default values fail to be displayed from InfoView. >>
    ADAPT00894127 -  When users enter date parameters in the Calendar dialog box in SAP InfoView, the dates entered fail to appear in the corresponding field.
    Good luck,
    Henry

  • BusinessObject 4.0 API to get SQL statement from webi or crystal report

    Hello,
    Need your help.... could you confirm whether BusinessObjects 4.0 provides any SDK, API or Web Service to get physical SQL statement from the webi or crystal reports file?
    If so, could you provide name of package, class and method?
    If I am not wrong, there is an SDK in v3.0 that allows to extract the SQL. But I am reading a lot on these forums that lot of SDK classes and functions are deprecated / removed in v4.0.
    Thanks for your help.
    Omer

    For Crystal Reports in BI 4.0 to retrieve the SQL query you can use Report Application Server SDK. Here is a code snippet that retrieves the SQL statement.
    //oInfoObjectReport is of type IInfoObject corresponding to the crystal report.
    ReportClientDocument reportClientDoc = reportAppFactory.openDocument(oInfoObjectReport, 0, Locale.ENGLISH);
            //for all crystal reports
            GroupPath grpPath = new GroupPath();
            //get CR SQL query string
            String reportSQL=reportClientDoc.getRowsetController().getSQLStatement(grpPath,null);
            System.out.println("report SQL String: "+reportSQL);
            //for report whose datasource is command object:
            Tables tables = reportClientDoc.getDatabaseController().getDatabase().getTables();
            for (int i = 0; i < tables.size(); i++)
             ITable table = tables.getTable(i);
             ICommandTable ic= (ICommandTable) table;
             //Command can be obtained from the report using getCommandObject() method
             //get CR SQL query string
             String SQLText=ic.getCommandText();
             System.out.println("SQLText_"+i+": "+SQLText);
    Here are useful links for BI 4.0
    [RAS API Specification|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_rasjava_apiRef_en.zip]
    [RAS Developer Guide|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_rasjava_dg_en.zip]

  • I dont see the SAP toolbar in Crystal Reports XI

    I installed crystal reports XI (I only have one CD) and Business Objects Enterprise. I also installed Business objects integration kit for SAP, after I opened the crystal reports from the start menu I don't see any SAP BW Add On. I don’t know why this happened. Please guide through this.
    Lulú McDonald

    the add ons installed are:
    SAP GUI:
         SAP GUI with SAP Logon
         SAP GUI with SAP Logon Pad
    BW Add-on:
         Business Explorer (SAP BW 3.x)
         OLE DB for OLAP Provider
         Merchandise an Assortment Planning
    Lulu

  • SAP 8.8 Crystal Report Layout problem in client workstation

    Hi Experts,
    We have import crystal report to SAP Business One as Form Layout or AP Invoice. We have already created the token DocKey@ so it would automatically be printed and will not ask for the document number. The layout works fine using the server workstation but in the client workstation we cannot proceed with the printing because when we click on the preview button, a login window appears with this details:
    Database Login
    Server Name : gray out or not active
    Database: gray out or not active
    Login ID: active
    Password: active
    We tried to enter the SQL login but fails.
    Is there any components that we need to install in the workstation before it could function the same way as PLD?
    Thanks,
    Janice

    You can try creating the ODBC connection, which is the same as on the server.
    Assuming this is the scenario:
    1. You write the invoice using crystal report on the server
    2. On the server, Control Panel--> ODBC, you have created an ODBC link eg; SAPB1.
    3. The report is connecting to ODBC link and pointing to database OECUS
    On the client workstation, you need to create:
    1. Control Panel--> ODBC, you need to create an ODBC link as on the server.

  • SAP tab in Crystal Reports 2013 issue

    We are using SAP Crystal Reports 2013 SP3 to build reports on BEX queries (BW 7.2). Creating a report via 'File' --> New connection --> BW MDX driver works fine, I can select bex queries & cubes and see the data. However SAP provided tab 'SAP' does not work as expected. When adding a new bex query using SAP--> Create new report from a query, I can see the list of queries and select one but it does not open and throws the following error -
    "An error occurred while generating a new report templete.
    No error"
    Using the "File" option any change to the .rpt file forces BO admin to update "DB logon" information in CMC (currently i cannot save .rpt file directly on enterprise from Crystal client due to some issue)  and we want to avoid this kind of maintainence using SAP authentication provided by using SAP tab, also the Crysal report prompts when run from BI launch pad request for prompt values twice (once for the report and once to pull list of values for each prompt) which can be avoided using SAP tab. I thought access to dev BW server is fine since the "File" tab works fine. Our BASIS team confirmed BOBJ dev servers have access to BW gateway. Am I missing something here, please help me with your experience and ideas to troubleshoot this as the only solution i could google was from a 2012 SAP recommended article to fix reginfo configuration files on SAP server
    I reinstalled Crystal Reports client twice to make sure intallation was not the issue.
    Thanks
    GORO.

    Hi Abhilash,
    Thanks for your response.
    Yes reports are working in CR 2013 designer.
    Getting Alignment and long spaces between the paragraphs issues even though report has properly designed on designer.
    After exporting to pdf getting above errors...
    -Srinivas

  • SAP 8.8 Crystal Report layout templates

    I have installed SAP 8.8 this is working fine apart from one thing i don't understand..  maybe i am just being stupid..
    But there are no Crystal report layouts in the system.  Do we have to download these.. surely we don't have to write them all from scratch ???

    Dear Rabie,
    Without the User ID  On Cannot Access the Portal and Cannot Download the Files.
    Regards,
    Vamsi

  • SAP NetWeaver Portal Crystal Reports PDF Export Problem

    Hallo all,
    We are working with BO Edge XI 3.1 with integration on SAP Netweaver Portal. The problem is that integrated in SAP Portal CR reports cannot be exported to PDF or printed out.
    I am using an URL iview with the parameter sOutputFormat=P to run the report.
    When I want to print out the report I get the warning message from Internet Explorer "The download of files from this page is for security reasons blocked. Click here..." --> Download the file. By clicking on the u201CDownload this fileu201D the report starts to run again. PDF export doesnu2019t happen.
    Did somebody have the same problem?
    Thanks a lot in advance!

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Drill Down Report in SAP B1 through Crystal Reports

    Hi Gurus,
    Is it possible to make a reports through Crystal Reports in SAP B1 ....
    Please help or give some examples if you can ....
    Thanx SK

    Hi,
    You can enable Drill Down function by right clicking Section Name and choose
    Drilldown OK.
    Refer to the link for the complete details.
    http://crystal-reports.blogs.webucator.com/2010/05/28/crystal-reports-drill-down/
    Thanks.
    Clint

  • SAP username in Crystal Report

    Hey,
    i want to display the sap username in a crystal report. I'am using SAP BI 7.0, Crystal Reports 2008 and the Integration Kit. It's possible?
    Greetz
    Tim

    Post your question to the Business Object Integration Kits forum

  • Problem Change SAP Query in Crystal Reports

    Hi,
    i have a problem with changing a SAP Query in an Crystal Reports.
    I build a Report with a Query(1) and Design the Report complet everything works fine.
    I make a new Query(2) and if i make a new Crystal Report with this new Query everything works fine.
    Now my problem is i would like to use the design of the first report. Therefore i open the first report and save it under a new name. Delete all Database fields and delete the database connection.
    Now i gave in the new database connection to the new query(2) and in the Database fields i see a lot of Fields but not the right ones. Its completly wrong. Is there anybody how know this problem?????

    Hi i solved my problem by myself.
    I have to set Query as external available and have to use the MDX Query.
    Its strange because if i build a new report the query dont have to be set as external available.

Maybe you are looking for

  • Itunes 10.5.2 will not launch a second time.

    If I reboot win7 or win xp, itunes runs once with no problems, but if closed it will not launch again. What is the problem?

  • Withholding tax code in line item text field

    Dear All, Please suggest me on the below matter, When we will pass a vendor invoice through FB60 we will mention the Withholding tax type and tax code for withholding tax deduction from vendor . Then withholding tax line item will generate automateca

  • HP flat panel monitor - does it need a driver?

    Can I just check if it is necessary to install a different driver for a HP flat panel monitor, as I tried to connect a HP 19 inch display and the display looked a little fuzzy, certainly not as clear as when it had been displaying from the old PC. Th

  • Sync problem with Outlook 2010 and BBStorm - no times transfer to Outlook

    Everything seems to sync find except the calendar.  It duplicates appointments on the phone, probably because all appointments it puts on Outlook turn into all day events without times or subjects.  I mean, it's good to know I have something on the c

  • Using RTPConnector and RTPManager in Relay server

    Hi Reposting it as suggested: If I pass RTPConnector object in RTPManager then api discourages using addTarget. So in this case my questions are: 1. Do I have to create multiple OutputDataStreams or mange with single OutputDataStream. 2. When does ge