Crystal rport

select
op.DocEntry 'PO Doc Entry',
op.DocNum 'PO Doc Num',
op.CardCode 'PO Card Code',
op.CardName 'PO Card Name',
op.DocDate 'PO Doc Date',
po.ItemCode 'PO Item Code',
po.Dscription 'PO Item Des',
po.Quantity 'PO Item Qty',
po.Price 'PO Item Price',
opd.DocEntry 'GRPO Doc Entry',
opd.DocNum 'GRPO Doc Num',
pd.ItemCode 'GRPO Item Code',
pd.Dscription 'GRPO Item Name',
pd.Quantity 'GRPO Item Qty',
pd.Price 'GRPO Item Price',
opc.DocNum 'AP Inv Doc Num',
opc.DocEntry 'AP Inv Doc Entry',
pch.ItemCode 'AP Inv Item Code',
pch.Dscription ' AP Inv Item Des',
pch.Quantity 'AP Inv Quantity',
pch.Quantity 'AP Inv Item Price',
pch.DiscPrcnt 'Discount',
opc.Rounding,
opc.Address2,
opc.Address,
(select max(T5.EccNo) from CRD7 T5 where
T5.CardCode = opc.CardCode) 'Ecc No',
(select max(T22.TaxId1) from
CRD7 T22
where T22.CardCode = opc.CardCode) 'CST No',
(select max(T22.TaxId2) from
CRD7 T22
where T22.CardCode = opc.CardCode) 'LST/VAT No',
(select max(T8.ExpnsName) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 0 ) 'Freight1',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '4'), 0)'Packing Amount',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '5'), 0) 'Surcharge Amount',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '6'), 0) 'Insurance Amount',
(select sum(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 0 ) 'Freight1 amount',
(select max(T8.ExpnsName) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 1 ) 'Freight2',
(select SUM(t9.linetotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 1 ) 'Freight2 amount',
(select SUM(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum) 'total freight',
isnull(vat.taxsum,0) as 'VAT Amount',
ISNULL (vat.taxrate,0) as 'VAT Rate',
isnull(cst.taxsum,0) as 'CST Amount',
ISNULL (cst.taxrate, 0) as 'CST Rate',
excise.taxsum as 'Cenvat BED Amount',
left (excise.TaxRate, CHARINDEX('.', Excise.Taxrate)-1) as 'BED%',
cess.taxsum as 'Cess Amount',
left (cess.TaxRate, CHARINDEX('.', cess.TaxRate)-1) as 'Cess%',
Hcess.TaxSum as 'Hcess Amount',
LEFT (Hcess.TaxRate, CHARINDEX ('.', Hcess.TaxRate)-1) as 'Hcess%'
from OPOR op
inner join POR1 po on op.DocEntry = po.DocEntry
left outer join PDN1 pd
on (pd.BaseType = 22 and pd.BaseEntry = po.DocEntry and pd.BaseLine=po.LineNum)
left outer join OPDN opd on opd.DocEntry = pd.DocEntry
right outer join PCH1 pch
on (pch.BaseType = 20 and pch.BaseEntry = pd.DocEntry and pch.BaseLine = pd.LineNum)
right outer join OPCH opc on opc.DocEntry = pch.DocEntry
left outer join (select * from PCH4 where statype=1) vat on pch.linenum=vat.linenum and pch.docentry=vat.docentry
left outer join (select * from PCH4 where statype=4) cst on pch.linenum=cst.linenum and pch.docentry=cst.docentry
left outer join (select * from PCH4 where statype=-90) excise on pch.linenum=excise.linenum and pch.docentry=excise.docentry
left outer join (select * from PCH4 where statype=-60) cess on pch.linenum=cess.linenum and pch.docentry=cess.docentry
left outer join (select * from PCH4 where statype=-55) Hcess on pch.linenum=Hcess.linenum and pch.docentry=Hcess.docentry
left outer join (select * from PCH4 where statype=14) CVD on pch.linenum=Hcess.linenum and pch.docentry=CVD.docentry
left outer join (select * from PCH4 where statype=10) BCD on pch.linenum=Hcess.linenum and pch.docentry=BCD.docentry
where opc.DocNum = '12'
in this query how can i incorporate Purchase return and and AP down payment invoice...
please guide

I wanted to mean AP credit memo , AP down payment invoice, Purchase return i.e total purchase cycle
as of now for  AP crdeit memo that i have written
select
op.DocEntry 'PO Doc Entry',
op.DocNum 'PO Doc Num',
op.CardCode 'PO Card Code',
op.CardName 'PO Card Name',
op.DocDate 'PO Doc Date',
po.ItemCode 'PO Item Code',
po.Dscription 'PO Item Des',
po.Quantity 'PO Item Qty',
po.Price 'PO Item Price',
opd.DocEntry 'GRPO Doc Entry',
opd.DocNum 'GRPO Doc Num',
pd.ItemCode 'GRPO Item Code',
pd.Dscription 'GRPO Item Name',
pd.Quantity 'GRPO Item Qty',
pd.Price 'GRPO Item Price',
opc.DocNum 'AP Inv Doc Num',
opc.DocEntry 'AP Inv Doc Entry',
pch.ItemCode 'AP Inv Item Code',
pch.Dscription ' AP Inv Item Des',
pch.Quantity 'AP Inv Quantity',
pch.Quantity 'AP Inv Item Price',
pch.DiscPrcnt 'Discount',
opc.Rounding,
opc.Address2,
opc.Address,
rpc.ItemCode 'AP Crdit  Item Code',
rpc.Dscription 'AP Crdit Item Des',
rpc.Quantity 'AP crdit  Item Qty',
(select max(T5.EccNo) from CRD7 T5 where
T5.CardCode = opc.CardCode) 'Ecc No',
(select max(T22.TaxId1) from
CRD7 T22
where T22.CardCode = opc.CardCode) 'CST No',
(select max(T22.TaxId2) from
CRD7 T22
where T22.CardCode = opc.CardCode) 'LST/VAT No',
(select max(T8.ExpnsName) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 0 ) 'Freight1',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '4'), 0)'Packing Amount',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '5'), 0) 'Surcharge Amount',
ISNULL ((select max(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and
T9.DocEntry = opc.DocEntry and
T9.LineNum = pch.LineNum and
T9.ExpnsCode = '6'), 0) 'Insurance Amount',
(select sum(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 0 ) 'Freight1 amount',
(select max(T8.ExpnsName) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 1 ) 'Freight2',
(select SUM(t9.linetotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum and T9.GroupNum = 1 ) 'Freight2 amount',
(select SUM(T9.LineTotal) from OEXD T8 inner join PCH2 T9 on
T8.ExpnsCode = T9.ExpnsCode and T9.DocEntry = opc.DocEntry
and T9.LineNum = pch.LineNum) 'total freight',
isnull(vat.taxsum,0) as 'VAT Amount',
ISNULL (vat.taxrate,0) as 'VAT Rate',
isnull(cst.taxsum,0) as 'CST Amount',
ISNULL (cst.taxrate, 0) as 'CST Rate',
excise.taxsum as 'Cenvat BED Amount',
left (excise.TaxRate, CHARINDEX('.', Excise.Taxrate)-1) as 'BED%',
cess.taxsum as 'Cess Amount',
left (cess.TaxRate, CHARINDEX('.', cess.TaxRate)-1) as 'Cess%',
Hcess.TaxSum as 'Hcess Amount',
LEFT (Hcess.TaxRate, CHARINDEX ('.', Hcess.TaxRate)-1) as 'Hcess%'
from OPOR op
inner join POR1 po on op.DocEntry = po.DocEntry
left outer join PDN1 pd
on (pd.BaseType = 22 and pd.BaseEntry = po.DocEntry and pd.BaseLine=po.LineNum)
left outer join OPDN opd on opd.DocEntry = pd.DocEntry
right outer join PCH1 pch
on (pch.BaseType = 20 and pch.BaseEntry = pd.DocEntry and pch.BaseLine = pd.LineNum)
right outer join OPCH opc on opc.DocEntry = pch.DocEntry
left outer join RPC1 rpc on
(rpc.BaseType = 18 and rpc.BaseEntry = pch.DocEntry and rpc.BaseLine = pch.LineNum)
left outer join (select * from PCH4 where statype=1) vat on pch.linenum=vat.linenum and pch.docentry=vat.docentry
left outer join (select * from PCH4 where statype=4) cst on pch.linenum=cst.linenum and pch.docentry=cst.docentry
left outer join (select * from PCH4 where statype=-90) excise on pch.linenum=excise.linenum and pch.docentry=excise.docentry
left outer join (select * from PCH4 where statype=-60) cess on pch.linenum=cess.linenum and pch.docentry=cess.docentry
left outer join (select * from PCH4 where statype=-55) Hcess on pch.linenum=Hcess.linenum and pch.docentry=Hcess.docentry
left outer join (select * from PCH4 where statype=14) CVD on pch.linenum=Hcess.linenum and pch.docentry=CVD.docentry
left outer join (select * from PCH4 where statype=10) BCD on pch.linenum=Hcess.linenum and pch.docentry=BCD.docentry
where opc.DocNum = '12'
but here if i execute this, in AP inv item list it shows all the items whereas last two items are done AP credit memo

Similar Messages

  • Crystal rport loading

    Hello Expert
      i have create one crystal report of custome rlist (OHIM) and database connected by RPT.XML file and store procedure in SQL 2005
    now i want to call this crystal report on SHOW button acording to STOREprocdure of this the company database,userid and password in reportviwer in sap addon by coading. iaam newer person for it pls help me for it
                                                  thanx a lot

    From your description, I am not sure what you are asking. Are you planning to create an application in VS .NET and view the report in this application?
    Ludek

  • Crystal report Deployment error

    Post Author: jacobmk
    CA Forum: Deployment
    Hi All,
    I am using crystal rports for pdf generation in asp.net 2.0. When I installed the application on 64bit Windows server
    An error has occurred while attempting to load the Crystal Reports runtime.Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
    Description: An unhandled exception occurred during
    Please help
    regards
    Jacob

    Post Author: ejthunder
    CA Forum: Deployment
    You did not say which version of Crystal Reports you're trying to deploy.
    CR XI and CR XI Release 2 are NOT supported on 64 bit systems.  The only versions of Crystal Reports supported on 64 bit machines is the version of Crystal that bundles with VS2005 - CR.NET 2005 (v10.2).  If you upgrade your VS2005 machine by installing CR XI Developer, or CR XI R2 Developer onto your development machine you will not be able to deploy your application.  In this case the only option would be to "downgrade" back to the bundled edition that ships with VS2005.
    EJ

  • Hyperlinks in Crystal Reports

    Hi, Gurus,
    I am new to Crystal Rports and trying to create Hyperlinks from Summary to Detail report.
    I am in confusion which report is Source and Tearget (Summary or Detail) that I should copy the object and paste into Report part for Another Report Object.
    And not sure whether object refers to Column Heading or Group heading or details. I am using evaluation version 2008
    Can anyone please help me on this.
    Thanks in advance
    Sree Raj

    Hi Sree,
    As I understand you want to link your summary report to details report through hyperlink.
    In this scenario you have to create hyperlink from the source to destination i.e from summary to detail report.
    If your summary is placed in Group Footer section then Objects will be Group Footer and so on.
    Please let us know if you need any further clarification.
    Regards,
    Ankeet

  • Using Crystal Report Data Connection in Xcelcius 2008

    The documentation does not explain how data to populate row, column and details is passed to SWF.
    Can some-one please point how CR Data Connection when created in Xcelcius 2008 is used in Crystal Report Design time ? Is it through Flash variables? Basically more details are needed for "when setup properly" clause. How to map Crystal Reports Fields to Xcelcius Definitions.
    Thanks
    Harish Tejwani
    From Doc:
    "With the release of Crystal Reports 2008, it is now possible to embed an Xcelsius-generated SWF file into a Crystal Report and have the SWF consume data from that report. When set up properly, refreshing the data in your Crystal Report will update the embedded SWF.
    To configure your Xcelsius SWF to consume data from its Crystal Rport source data, you must open the Data Manager in Xcelsius and add a new Crystal Report Data Consumer connection. After adding the connection, bind the following ranges to your spreadsheet:  Row Headers, Column Headers, Data"
    "Using Crystal Reports 2008, embed the SWF file into the Crystal Report source data file. When designing your Crystal Report, you will determine what fields/data populate the Row Headers, Comumn Headers, and Data ranges that were designated in your Xcelsius SWF. When set up properly, refereshing your Crystal Report will also refresh the data being sent to and consumed by the embedded SWF. See"

    <div class="content">
    <p>
    Please check the following post to see if there is a solution to the issue you are experiencing:
    </p>
    <p>
    <a href="/node/19014"><span style="color: #0063af">http://diamond.businessobjects.com/node/19014</span></a>
    </p>
    </div>

  • I searsh support for crystal reports for VS 2005

    Post Author: wahid
    CA Forum: Crystal Reports
    Hello;
    I learn crystal rports for VS 2005, for do reporting but i can't, can you send me address web for crystal reports and programming code in crystal reports
    think you,

    Before dishing out good $$ for a phone support, have you posted your query in these forums? Have you used the search box in the top tight corner to see if there is a solution already documented?
    Just sayin...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Connection Error - Crystal Report 9 to SAP Database

    Hi Gurus,
    While connecting SAP Database (SQL Server 2005)  with Crystal Rport 9 from Client machine , showing the following message.
    logon failed
    login failed for the user <devprd>
    the user is not associated with a trusted sql server connection
    sql state 42000
    native error 18452
    pls. guide in this
    Prakash

    are you connecting through odbc?  if so check to see if you are using windows authentifiction or sql.
    make sure the user you are trying to pass has read access to the database

  • Change how paramters are chosen when running crystal on web i

    Hi there..
    i have the following problem.
    when i double click on a crystal report, in our QAS server, i get the following screen to chose parameters.
    https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/385923_10150579230068428_516188427_10979481_1660085047_n.jpg
    and when i click on the same report on the prudction server, i get it this way.
    https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/395199_10150539385573428_516188427_10793487_1411181440_n.jpg
    Where do i change it??
    both servers are the same version.. everything is the same.. just the way they are chosen that deffers..
    i want to change the production server to  be just like the QAS..
    Thanks in advance..

    Hi,
    Perhaps by changing your infoview Viewer preferences?
    or check out 1575886 - No SAP Prompt Screen in InfoView when viewing a rport based off multiple SAP data source 
    it says:
    Resolution
    To display the SAP prompt screen in InfoView for reports that are based off different SAP data source, enable the option: SAP.style.prompt.enabled, in the web.xml file of the web application. To enable the option:
    On your BusinessObjects Enterprise XI 3.1 server, go to the following folder:
    C:\Program Files\Business Objects\Tomcat55\webapps\PartnerPlatformService\WEB-INF
    Note: The beginning of the path may be different if you have chosen to install the product on a different drive or folder.
    Make a backup copy of the file: web.xml
    Edit the file: web.xml and add the following code:
       <context-param>
            <param-name>SAP.style.prompt.enabled</param-name>
            <param-value>true</param-value>
        </context-param>
    Note: You may already have the above code in the web.xml file. If it is present, it is by default commented out by being surrounded by the tags <!--  -->  If it's the case, then you simply have to remove the tags that comment out the code.
    Save the change.
    Restart the web application server ( Tomcat by default )
    Regards,
    H

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Can not see two fields in Crystal 2008 Developer explorer/designer view

    I am currently developing crystal 2008 reports against the salesforce.com database using version 12.0.0.683 CR Developer Full version. I am using an updated driver that was provided in July or Aug 08 in order to view self referencing fields. The problem is that when I try and report against one of the tables (lead history) I cannot view two of the fields (New Value and Old Value)? I can see these two field (New Value and Old Value) in the database expert as the last two fields in the actual table, but the two fields are missing when I go into the explorer/designer view. In Salesforce, these two fields can not be filtered on, but I can export all the values in this table using Salesforece Apex data loader.

    Please re-post if this is still an issue to the OnDemand Forum or purchase a case and have a dedicated support engineer work with you directly

  • Sales quote layout rows doubled in crystal report layout

    Dear All,
    Sales quote layout rows doubled in crystal report layout.
    In sales quote layout the rows are doubled. Even in the standard layout. If the quote contains only two rows. Then it is doubled as 4 rows in the crystal report layout.
    It is happening in the particular database. Other database are working fine. I request you people to help me to overcome this issue.
    Regards,
    Siva

    Hi Siva,
    If this is regarding CR in SAP B1 then please repost to the SAP Business One Application space.
    -Abhilash

  • Sale Order Query Print layout/Crystal Report Query required

    Hi Experts,
    I created a Sale Order. Items included in it are service and material.
    (I created a BOM, bound the child material item to the parent service item. Moreover child item will have unit price where as parent item will not have unit price)
    I need the report on it please let me know how i can do it.
    I tried with below query
    select a.DocEntry, a.DocNum, a.CardCode, a.CardName, b.DocEntry,b.ItemCode, b.Dscription, b.Quantity, b.Price, b.LineTotal, a.DocTotal, a.VatSum 
    from ORDR a inner join RDR1 b on a.DocEntry = b.DocEntry
    --and b.TreeType <> 'N'
    where a.docnum = '14240621'
    output of above query is
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    2493.76
    43940.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0001
    Material for PROVIDING & LAYING
    17.62
    2800
    49336
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM INCLUDING CEMENT
    10.055
    1980
    19908.9
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0002
    Material for BM CM  INCLUDING CEMENT
    10.055
    1650
    16590.75
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    116.5
    7572.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0003
    Material for P/APPLYING
    65
    65
    4225
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    31625.05
    70618.74
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0004
    Material for P& FIXING
    2.233
    44000
    98252
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    3593
    10779
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0005
    Material for PROVIDING RMC
    3
    4847
    14541
    354652
    18888.46
    and my desired output is
    Unit price of both child item and parent item should be display in single column. ie. cumulative in Unit Price Column and Linetotal respectively.
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    5293.76
    93276.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM  INCLUDING CEMENT
    10.055
    3630
    36499.65
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    181.5
    11797.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    75625.05
    168870.7
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    8440
    25320
    354652
    18888.46
    please let me know the update on this.
    with regards

    Hi Nagarajan,
    thanks for reply..
    1) Yes, i.e i have taken into BomType: Template
    2) i did not get any helpful output by using treetype by keeping 'S' and 'N', i kept in comment.
    3) Actually MT0001-05 - these are material item- unit prices are fixed. see in attached image
         for parent item, unit prices are not fixed. I give the price for them in Sale Order.
         I want unit price for parent and child should be summed/cumulative for Sale Order print.
         (in my above post, first matrix exactly same as sale order line items plz check it)
    Please help me, how i can achieve this by query(for PLd or Crystal report)
    With Regards

  • SQL Connections remain open after Crystal Report closes

    I am wirting an interface to use the crystal report viewer to print reports, connecting to a Progress Open Edge 10.1B database.  From our application we declare the application, report, exportoptions and connectionproperties objects and pass these to the crystal reports viewer.  Once the report is printed we release the objects and set their variables for null.  However we are finding that the SQL connection to the database is remaining connected and we can only release the connection by manually going in a disconnecting.
    I have read in forums that people use .dispose or .close to release the connection, however we do not have access to these methods as we do not use .NET.  Are there any methods we can use to disconnect these sql connections?

    Hi Dean,
    Moved to the Legacy Application forums. Likely using the RDC as your report engine.
    You should still be able to close and dispose of the report objects. They are not specific to .NET.
    In VB it would look something like these lines::
        crReport.Close
        Set CrystalActiveXReportViewer1.ReportSource = Nothing
        Set crReport = Nothing
    Once the report is closed it should disconnect from the DB. If you close the application does that disconnect?
    Have you looked on 4GL's site for info on how to?
    Thank you
    Don

  • Self Updating Report of Open Sales Orders (Maybe Crystal )

    I want a self updating report of Open Sales Order. I want it to refresh constantly. I know that it could be an alarm but it would be executed every # minutes and dont want to. Any ideas ? I dont know Crystal Reports enough but is it posible ?

    Hi ,
    If I were you , I will not be crazy looking at my sales order in every 1 minutes ..I would train my users to check at least 15 minutes.
    I understand what u are trying to do;you  want that customer will see the latest open SO created ..but 15 minutes is good enough time .
    I think you have to check if database size grows up big time ..so far no report has come to me from my clients for this set up .
    make sure you  are not saving an alert into database
    If you are using multiple alerts , I will atleast monitor my database for a while to see i encounter performance issue ..
    So far for one alert at every 15 minutes ..i think u should be fine ..
    Hope this helps
    Bishal

  • Dunning Letter as Crystal Report: What tables? (SAP B1 9.0)

    Dear Experts,
    I am being asked to revise the Dunning Letters for our clients.  The existing PLDs for each Dunning Letter shows most data fields as system variables.  The existing Crystal Report for Dunning Letter 1 is a conversion from the PLD and doesn't show table information for most of the report's main items.  There are tables in the report but they are standard ones (OADM, OADP, OCRD, OHEM, OSLP).  It also includes a "table" called "PLD__ITEMS" which has all the PLD system variables and no B1 table or field/column information.
    As I'm just now starting to work with dunning letters, I see that I can't even run this report in Crystal.  The PLD__Items datasource prompts me for a file path and class name.  Any ideas what one enters here to run the report outside of B1 (from the Crystal report designer)?
    The main focus of my question is: Has anyone created a Crystal Report to replicate the Dunning Letter and if so, what tables are involved and how are they connected?  If I can create a Dunning Letter entirely in Crystal, I can replicate it across all clients and get the correct fields/columns of data the clients want.  The inclusion of the PLD__Items apparently limits my ability to test the results.  I would prefer to avoid the PLD limitations.
    Thanks for any assistance.

    Thank you Nagarajan.  I have a dunning letter created in Crystal Reports for our client.  It is fairly limited in scope, it just has the customer name and address, invoice numbers and dates, amounts due and the text they wanted in it.
    I can import it into B1 9.0 and set it as the default for Dunning Letter #1 and it runs, but unlike other formats where there is a DocEntry and/or ObjectID and a ?DocKey@ or ?ObjectId@ parameter, how do I limit the report to just one customer?  Typical document layouts run for the document that's on the screen.  In the dunning process, the report runs once for every customer when the Dunning Letter Method is set to "One Letter per BP".  I have to limit the report to one customer at a time.  Right now, each dunning letter based on the Crystal report is identical and it contains all the data for every customer.
    So, does anyone have any ideas for what selection criteria needs to be included in the Crystal report to have it select just one customer from the dunning wizard tables?  Thanks.
    Michael
    Edit: I created a ?WizardID@ parameter and a ?CardCode@ parameter to limit the report to a single dunning wizard event and a single customer.  While it works fine in Crystal itself, it doesn't work in B1 at all.  I had thought that by limiting the report in this way, it would only create dunning letters for a single customer.

Maybe you are looking for