Properly Creating a Report to Get Data
Post Author: KArias
CA Forum: General
I'm not sure if this question belongs under General or Formulas, so I apologize if it's improperly posted!
I am using Crystal Reports 9 in conjunction with GoldMine to write a report that lists all records designated as a Sales Lead and then underneath, lists all completed activity performed by specific users. If a company has had no activity by these specific users, nothing would be listed underneath.
On my first report attempt, I did the following:
*Under Selection Formulas->Record, I asked for all records that are designated as a Sales Lead.
*Under Selection Formulas->Group, I listed all the "specific users" whose activity I wanted to monitor.
*In Group Header #1, I listed all the static info that I want to show up for every single record that's a Sales Lead
*In Details, I listed all of the activity info I want to see underneath each record.
The problem with this is that it only lists a record if a specific user has completed an activity. If there's no activity by a specific user, the record doesn't show up at all. On my second report attempt, I did the following:
*Under Selection Formulas->Record, I asked for all records that are designated as a Sales Lead.
*Under Section Expert for the Details section, I asked to suppress activity for people outside of my "specific user" list.
*In Group Header #1, I listed all the static info that I want to show up for every single record that's a Sales Lead.
*In Details, I listed all of the activity info I want to see underneath each record.
The problem with this is that is still keeps a blank line where the "undesirable" user's activity should have been, making the report look clunky.
Where do I need to put the specific users, so that the report only lists their activity (not the "undesirable" ones), yet keeps a record on the report even if there isn't any activity to go with it?
Post Author: sharonmtowler
CA Forum: General
if you are using multiple tables you need to use outter joins
Similar Messages
-
How to create a report using XML data source from Crystal Report Designer
Hi,
Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
Thank you in advance.
Regards,
Chanaka
XML
<?xml version="1.0" encoding="UTF-8"?>
<CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
<CUSTOMER_ORDER_CONF_REP>
<ORDER_NO>D555809</ORDER_NO>
<PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
<AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
<CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
<CUST_NAME>Mr.Johan Matts</CUST_NAME>
<SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
<SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
<SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
<SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
<BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
<BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
<BILL_ADDR_3>Watthala</BILL_ADDR_3>
<BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
<CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
<CUSTOMER_FAX>112984639</CUSTOMER_FAX>
<CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
<ORDER_LINES>
<ORDER_LINE>
<LINE_NO>1</LINE_NO>
<CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
<PRICE_TOTAL>1200</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID xsi:nil="1"/>
<CHARACTERISTIC_VALUE xsi:nil="1"/>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>2</LINE_NO>
<CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1500</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>3</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>3</LINE_NO>
<CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
<PRICE_TOTAL>1000</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>4</LINE_NO>
<CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1350</PRICE_TOTAL>
<DISCOUNT>10</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>5</LINE_NO>
<CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
<PRICE_TOTAL>400</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>2</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
</ORDER_LINES>
</CUSTOMER_ORDER_CONF_REP>
</CUSTOMER_ORDER_CONF_REP_REQUEST>
XSD
<?xml version="1.0" encoding="UTF-8"?>
<?report module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
<xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="CUSTOMER_ORDER_CONF_REP">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="50">
<xs:element name="ORDER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
<xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUST_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="ORDER_LINE">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="39">
<xs:element name="LINE_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="CHARACTERISTIC_ITEM">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="6">
<xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>Hi Sourashree,
Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
1. New Report
2. From Create New Connection-> XML
3. Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
4. Provide the u201CLocal Schema Fileu201D -> Finish
Then I can see the following under XML
+ CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
And from here if I add the following three I can get all the fields I need to the report
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
Date
Order number Authorized code
Customer No
Name
Phone
Fax email
Shipping address 1 Billing Address 1
Shipping address 2 Billing Address 2
Shipping address 3 Billing Address 3
Shipping address 4 Billing Address 4
Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026 LINE_NO CUSTOMER_PART_NO CUSTOMER_PART_DESC SALE_UNIT_PRICE PRICE_QTY DISCOUNT PRICE_TOTAL
Characteristic details belonging to Order line 1 CHARACTERISTIC_ID 1 CHARACTERISTIC_VALUE1
CHARACTERISTIC_ID 2 CHARACTERISTIC_VALUE2
CHARACTERISTIC_ID 3 CHARACTERISTIC_VALUE3
Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 2
Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 3
Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 4
Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 5
How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
Regards,
Chanaka -
How to create a report with survey data
Hi All,
I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
SwapnaHi Swapna,
According to your description, you want to create a report with survey data and display the summary.
Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
How to create a report without any data
HI All, <BR> Can anyone help me in writing a report without any data. I want to create a report with list of memebers from a dimension where UDA is "My UDA". I wrote a report "<UDA(CHANNEL,'My UDA')" but this fetches me data too in the report. How to eliminate the data in the report. <BR><BR>Thanks<BR>Murali
Hi<BR><BR>Assuming you are using the essbase report writer the following script will work: <BR><BR>{ SUPPAGEHEADING }<BR>{ SUPCOLHEADING }<BR>{ SUPFORMATS }<BR>{ SUPFEED }<BR>{ NOINDENTGEN }<BR>{ FIXCOLUMNS 1 }<BR> <ROW("Dimension") <BR> <UDA(Dimension,MyUDA)<BR>!<BR><BR>the fixcolumns 1 will ensure that you only get the UDA without it you will get the variable followed by the corrosponding value.<BR>
-
in SSRS 2008 2 years ago created Commission with sub reports added, it was working fine, some how started to get error
message when we entered some invoice # see below screen shot of error message
but same time if I enter different invoice # it process the report without any error message , donot understand the problem
what's causing this issue, I have looked each sub report,
can some one suggest any idea,
I have spent hrs to figure it out, no luck so far.
thanks in advance
see the 2nd screen shot with report process
any help will be greatly appreciatedHi Wendy
thanks for your reply
I tried creating new report , I have 1 main report and 3 sub report on this
on main report when I enter some invoice# and accountnum data shows up with no problem,
but same time if I enter different invoice# and accountnum , there is no data return on same query, I have checked my query so many times, donot understand this issue, what's causing this problem, since all the data pulling from same tables, why its
not pulling for some invoices,
other strange thing , I created this report , year ago, there was no problem until now,
all of the sudden this problem just shows up,'
I am not that expert in sql , can I really use advise
see below by query , if you can tell me what's wrong with my query I will be really greatfull I have spend so much time to figure it out, but so far no luck
SELECT VENDTRANS.DATAAREAID, SALESTABLE.SALESID, VENDTRANS.VOUCHER, SALESTABLE.SALESTYPE, SALESTABLE.SALESSTATUS, VENDTRANS.TRANSDATE,
CUSTINVOICEJOUR.INVOICEAMOUNT, VENDTRANS.INVOICE, VENDTRANS.PAYMMODE, VENDTRANS.ACCOUNTNUM, VENDTRANS.TRANSTYPE,
VENDTRANS.LASTSETTLEVOUCHER, VENDTRANS.TXT, CUSTINVOICEJOUR.INVOICEACCOUNT, CUSTINVOICEJOUR.INVOICINGNAME,
VENDTRANS.LASTSETTLEDATE, LEDGERJOURNALTRANS.ACCOUNTTYPE, LEDGERJOURNALTRANS.AMOUNTCURCREDIT, LEDGERJOURNALTRANS.LINENUM,
CUSTINVOICETRANS.INVOICEDATE
FROM SALESTABLE INNER JOIN
CUSTINVOICETRANS ON SALESTABLE.DATAAREAID = CUSTINVOICETRANS.DATAAREAID AND SALESTABLE.SALESID = CUSTINVOICETRANS.SALESID
INNER JOIN
CUSTINVOICEJOUR ON CUSTINVOICETRANS.INVOICEID = CUSTINVOICEJOUR.INVOICEID AND CUSTINVOICETRANS.SALESID = CUSTINVOICEJOUR.SALESID
AND
CUSTINVOICETRANS.INVOICEDATE = CUSTINVOICEJOUR.INVOICEDATE INNER JOIN
VENDTRANS ON CUSTINVOICETRANS.INVOICEID = VENDTRANS.INVOICE AND CUSTINVOICETRANS.DATAAREAID = VENDTRANS.DATAAREAID
AND
CUSTINVOICEJOUR.DATAAREAID = VENDTRANS.DATAAREAID AND CUSTINVOICEJOUR.INVOICEDATE = VENDTRANS.TRANSDATE INNER JOIN
LEDGERJOURNALTRANS ON VENDTRANS.DATAAREAID = LEDGERJOURNALTRANS.DATAAREAID AND
VENDTRANS.ACCOUNTNUM = LEDGERJOURNALTRANS.ACCOUNTNUM AND CUSTINVOICETRANS.LINENUM = LEDGERJOURNALTRANS.LINENUM AND
VENDTRANS.INVOICE = LEDGERJOURNALTRANS.INVOICE AND VENDTRANS.VOUCHER = LEDGERJOURNALTRANS.VOUCHER AND
VENDTRANS.PAYMMODE = LEDGERJOURNALTRANS.PAYMMODE AND VENDTRANS.TRANSDATE = LEDGERJOURNALTRANS.TRANSDATE
WHERE (VENDTRANS.DATAAREAID = N'AR1') AND (SALESTABLE.SALESTYPE = 3) AND (SALESTABLE.SALESSTATUS = 3) AND (VENDTRANS.ACCOUNTNUM = @Accountnum)
AND (VENDTRANS.INVOICE = @Invoice) AND (LEDGERJOURNALTRANS.ACCOUNTTYPE = 2) -
Want to create RFC FM for Getting data in CRM from R/3
Hi,
I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
Thanks
BobbyDear Bobby,
You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
Select matnr werks LGORT LGPBE
from MARD
into ET_MARD
where matnr = i_matnr
and werks = i_werks.
Note:
matnr is material number
werks is plant
LGORT is storage location
LGPBE is storage bin
Hope this will help.
Regards,
Naveen. -
Financial Report to get data of previous 2 months
Hi,
I got a requirement to create a report to show the data of previous 2 months based on the prompted month and year. Suppose if user selects March and year as *2009* then my report should show data for Mar followed by Feb and Jan of *2009*. I am able to create that correctly for the current year if the prompted month is from March to December.
But if user prompts Jan and Year as *2009* then I should retrieve the report of data*Jan* of *2009* followed by Dec and Nov of previous year that is *2008*. Similarly if user prompts Feb then my report should show the data of Jan of this year 2009 and Dec of *2008*. I have YEAR and PERIOD dimensions in the Column. Could anybody please help me how can I provide such functionality. Thanks in advance.
Regards,
SravanHi Sravan,
Check the below thread...hope it will help you.
Very Urgent FR Report
Regards,
Mars -
Report to get data for current_week+1 till 13th week
Hi Friends,
I have two tables
BACKLOG_WEEK_AFTER_ATP (LE)
BACKLOG_ATP_GT_CW (RE)
** First I have to query whats the current week and year and it should come in this format ---- 2011-WK30
columns in table BACKLOG_WEEK_AFTER_ATP are:
ITEM_NUMBER QUANTITY
1N5418 20
1N5614 30
1N5806SM 10
1N5811 0
2PFF6 60columns in table BACKLOG_ATP_GT_CW are:
ITEM_NUMBER QUANTITY YEAR_WEEK
1N5418 30 2011-WK30
1N5418 5 2011-WK31
1N5614 30 2011-WK32
1N5806SM 30 2011-WK33
1N5811 20 2011-WK32
3EX473K1 20 2011-WK30My report should look like
ITEM_NUMBER 2011-WK30 2011-WK31 2011-WK32 2011-WK33 ...............till 13th week
1N5418 10 -5 -5 -5 ...............till 13t week
1N5614 30 30 0 0 ................till 13th week
1N5806SM 10 10 10 20 ................till 13th week
1N5811 0 0 20 20 ................till 13th week
2PFF6 60 60 60 60 ................till 13th week
3EX473K1 20 20 20 20 ................till 13th weekTo get this report i have these conditions to keep in mind.
1) If item_number not present in LE table and present in RE table then repeat what it is in RE table till 13th week
2) If item_number not present in RE table and present in LE table then repeat what it is in LE table till 13th week
3) If item_number present in LE and also present in RE table then do subtraction for RE - LE for that particular item_number till 13th week.
4) If item_number is there in LE table but not present in RE table for current_week+1(today week comes as 29th week) then repeat the same which is there in LE table. If item is found in RE table for (example 32th week) then subtract RE -LE for that particular item_number
Thanks in advance.
RegardsUser_Apex wrote:
Hi Friends,
I have two tables
BACKLOG_WEEK_AFTER_ATP (LE)
BACKLOG_ATP_GT_CW (RE)
** First I have to query whats the current week and year and it should come in this format ---- 2011-WK30
columns in table BACKLOG_WEEK_AFTER_ATP are:
ITEM_NUMBER QUANTITY
1N5418 20
1N5614 30
1N5806SM 10
1N5811 0
2PFF6 60columns in table BACKLOG_ATP_GT_CW are:
ITEM_NUMBER QUANTITY YEAR_WEEK
1N5418 30 2011-WK30
1N5418 5 2011-WK31
1N5614 30 2011-WK32
1N5806SM 30 2011-WK33
1N5811 20 2011-WK32
3EX473K1 20 2011-WK30My report should look like
ITEM_NUMBER 2011-WK30 2011-WK31 2011-WK32 2011-WK33 ------ till 13th week
1N5418 10 -5 -5 -5 ...............till 13t week
1N5614 30 30 0 0 ................till 13th week
1N5806SM 10 10 10 20 ................till 13th week
1N5811 0 0 20 20 ................till 13th week
2PFF6 60 60 60 60 ................till 13th week
3EX473K1 20 20 20 20 ................till 13th weekTo get this report i have these conditions to keep in mind.
1) If item_number not present in LE table and present in RE table then repeat what it is in RE table till 13th week
2) If item_number not present in RE table and present in LE table then repeat what it is in LE table till 13th week
3) If item_number present in LE and also present in RE table then do subtraction for RE - LE for that particular item_number till 13th week.
4) If item_number is there in LE table but not present in RE table for current_week+1(today week comes as 29th week) then repeat the same which is there in LE table. If item is found in RE table for (example 32th week) then subtract RE -LE for that particular item_numberNot an APEX question: use {forum:id=75} forum.
Query to get data for current week+13 -
I want to create a report based on date ranges...
I have surfed the forum and seen all of the responses and can't get anything to work.
This is where I am:
select OBJECT_ID,
EVENT_CATEGORY,
EVENTS_TITLE,
EVENTS_DATE,
OBJECT_ID "Click Icon For More Info"
from EVENTS
where EVENT_CATEGORY = :P3_EVENT_CATEGORY and EVENTS_DATE between to_date(:P3_START_DATE,'DD-MON-RR HH:MI') and to_date(:P3_END_DATE,'DD-MON-RR HH:MI');
When I input actual data for my querry:
select OBJECT_ID,
EVENT_CATEGORY,
EVENTS_TITLE,
EVENTS_DATE,
OBJECT_ID "Click Icon For More Info"
from EVENTS
where EVENT_CATEGORY = 'Category 1' and EVENTS_DATE between '04-MAY-06 10:57 AM' and '12-MAY-06 02:27 PM'
It works!
Please helpEither
1. Make sure the page is submitted so that those 2 items (P3_START_DATE and P3_END_DATE) get saved into session state and can be used by the report
or
2. Make sure both the items have the apppropriate Source or Default values defined so that the initial run of the page will display the report properly
or
3. Put a condition on the report region to not display until 1 (or both) of those 2 items have a non-null value.
Hope this helps. -
Creating a report having Multiple Data Models...
Using BI publisher for Word 10.1.3.4
I am attempting to create a template in MS Word with the report settings I have created in BI Publisher.
I've created two data models, both referencing different tables that I will need on the report itself. The issue I have having is whenever I use the table wizard, the rowset is grayed out and only the default data model (sql query) can be used.
I looked around and was unable to find a solution to this.I have done this and it worked.
However I created an additional data model (I need 3 total) and only 2 of them are showing up.
I tried logging in and out of BI Publisher, setting the main data model to the new one and then back to the concatenated data source and nothing seems to work.
Whenever I got back into BI Publisher, I attempted to run the table wizard and got the following error:
"The table wizard can't handle this data xml."
Please advise. -
Creating sales report from AR Data
Hello,
I'm Willie Owens. The company that I work for is currently in the process of implementing Oracle 11i applications. However, I have recently learned that when we first go-live with our system, we won't have the business intelligence system up. Therefore, I am going to have to create most of the views used for our sales reports from "scratch". Has anyone every used the RA_Customer_TRX_All and RA_Customer_TRX_Lines_All tables under the AR schema to accurately reflect sales information? If so, I could appreciate any input or suggestions that are offered.
Thanks,
WillieHello Mark,
Perhaps I should begin by describing some of the reports. One of the reports shows the sales by salesrep. These are the fields that are going to be used:sales amount, percent of sales, cost of sales, profit, percent of profit, and margin percent.
I have some ideas but I'm just not certain. For the For example, to compute the sales amount would I use the UNIT_SELLING_PRICE * QUANTITY_INVOICED or UNIT_SELLING_PRICE * QUANTITY_ORDERED?
Also, to calculate the cost of sales, do I use the UNIT_STANDARD_PRICE * QUANTITY_INVOICED(or QUANTITY_ORDERED)?
I understand that my profit would be the difference between these two previously calculated amounts. I also need the user to be able to enter a period ending date value. The Discoverer report should then capture all of the sales up to this entered date.
Then to further complicate things, I have to be able to calculate all of these values for the Period To Date(which means that it will capture all of the sales info from the 1ST day of the current month up until the Period Ending Date);a Year To Date Line will also show these values from January 1st of the current year up until the Period Ending Date. -
Hi ,
we create plan for the forecast by mass uploading program under the version 001, but some times they will change the forecast manually using MC94 Is there any report which gives values of changes(forecast ) i mean forecast values before and forecast values after change.
Thanks for you help
RegardsHi,
To my understanding , there is no such report.
However, it can be achieved by if you design your PLanning table diffrently.
Have 3 key figures for Forcast values.
Forecast for Uploaded value
manual adjustment -- for manual additions.
Adjusted Forecast-- For the Final forecast value.
this way the infostructure report itself gives the manual adjustments values also.
Regards
Ratan -
Not getting data from newly created dashboards
Hi,
I have created new Dashboard like "Server Health Status" not getting any data, whatever i have created earlier dashboards all getting data without any issue but if i create the same new dashboard im getting any data, please find the below error,
Can you please help me n this issue anyone. I'm Using SCOM 2012 SP1 with SQL Server 2008 R2.
Microsoft.EnterpriseManagement.Presentation.DataAccess.DataAccessDataNotFoundException: Exception reading objects ---> Microsoft.EnterpriseManagement.Common.UnknownDatabaseException: The query processor ran out of internal resources and could not produce
a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support
Services for more information.
at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
at Microsoft.EnterpriseManagement.Common.Internal.EntityObjectsServiceProxy.GetRelatedManagedEntitiesByManagedEntityTypesAndCriteriaWithInstanceQueryOptions(IList`1 parentManagedEntityIds, Boolean recurse, IList`1 managedEntityTypeIds, IList`1
managedEntityBaseTypeIds, IList`1 criterias, String languageCode, InstanceQueryOptions instanceQueryOptions)
at Microsoft.EnterpriseManagement.InstancesManagement.GetRelatedObjectsInternal[T](ICollection`1 instanceIds, ICollection`1 criteriaCollection, TraversalDepth traversalDepth, ObjectQueryOptions queryOptions)
at Microsoft.EnterpriseManagement.Management.DataProviders.ManagedEntityProvider.GetContainedManagedEntities(IDataObjectCollection targetEntities, ICollection`1 recursionTypeNames, ICollection`1 baseTypeNames, String criteriaString, List`1 valueDefinitions,
List`1 sortValueDefinitions, String typePropertyName, String typeWithIconPropertyName, Boolean propertyCollectionRequested)
--- End of inner exception stack trace ---
at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethodInvoker.Invoke()
at Microsoft.EnterpriseManagement.Monitoring.DataProviders.RetryCommandExecutionStrategy.Invoke(IDataProviderCommandMethodInvoker invoker)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway gateWay, DataCommand command)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.ExecuteInternal[TResult](DataCommand command)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.<ExecuteAsync>b__0[TResult](<>f__AnonymousType0`1 data)
Thanks
Raja R
Raja RHi,
Please try the Update Rollup 2 for System Center 2012 Service Pack 1
http://support.microsoft.com/kb/2802159
It fixes the issue “Query processor runs out of internal resources and cannot produce a query plan when you open Dashboard views”.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
How to create a report of users in ucm about their roles and permission
Hi All ,
I need to create a report and it should contain all the users in ucm as well as their roles and permissions. Basically the report would be for the admin who can see all the users in a single report and can know about the roles and access of each and every users.
How to create such report ?? I have tried from web layuot editor but the default report template i.e stdUserReport in user datasource does not contain more than three fields..Is there any method to get such kind of report???
Please suggest!!There was an example component to demonstrate this kind of function. Under Stellent in version 7.5
I do not know if they hand it out anymore but it is not on the standard samples page for Oracle. You may want to open a Support SR to ask for it. It should still be around in their servers if they can get permission to hand it out as a sample again.
Sample CustomReports component to demonstrate how to create customized reports
CustomReportsBundle.zip
Date: October 30, 2006
Sample Version: version=2006_10_20 (build 1)
Product and Version: Content Server
Sample Status: This is a Stellent Sample. Stellent Samples are free and include non-supported add-ons, utilities, tutorials or programming examples. It may require additional configuration or security auditing for maximum effect. It is not supported by Stellent without a consulting engagement. -
How to create a report from multiple dynamic XMLs
Hi,
I'm trying to build a consolidated report that gets data from multiple XML files and each XML file is different. Although the presentation of the data will be similar, the contents of the XMLs will vary and the number of XMLs to merge will also vary.
What I would like to understand is the following:
* Is it possible to generate a report template based on dynamic columns where the column names, their format and number is different for each business object?
* Is it required to generate an XML with the entire data or can the template read information from different XML files? and if so how it can be done. Please notice that the formatting of each XML may be different.
* Is it possible to use the services to generate the reports directly? Something around these lines was mentioned in one of the sessions but it was also mentioned that it's still WIP.
I've been using the standalone version and although I can get the desired result, I couldn't merge data from multiple XMLs.
Is the new BIP version available, or an enterprise version that I can use?
Thanks in advance,Hi Rich,
Even i had a similar kind of problem. I wanted to fetch data from BI through the XMLA Connector which are created in Query Designer and then i wanted to fetch these fields and rearrange them and put it in a report format by colouring certain fields. Can the same can be done in WebDynpro.
Maybe you are looking for
-
We have a SQL Server 2012 R2 SP2 environment and Transactional Replication configured with 1 instance publishing all tables in a database via a single publication (circa 150 articles in the one publication). We have a separate distribution instance,
-
What is maximum column name length?
What is the maximum column name length in Oracle (XE) ? Peter
-
BI 7.0 Workbook excel 2003 formula for comparision
Hello Friends I have a requirement to create a workbook in BI where I have 7 columns on left side of excel workbook and 7 columns on right side of excel workbook in the same sheet of workbook. so Requirement is to put the Code 0, 1, 2, 3,4,5,6 if col
-
How are imported albums organised?
I have imported all my photos from iPhoto into Photos. When viewing my previous albums from iPhoto in Photos the albums are no longer in the original order or anything reasonable. It is possible to organise the albums by title, but this is not very u
-
Bridge CC で「ファイル」→「Camera Rawで開く」がグレーアウトしていて使用できません.ショートカットの「command + R」でも反応せず.原因と解決方法をお願いします.気になる動作として.起動時に毎回起動時に「キャッシュのクリアにしっぱ...」とポップアップが出ます.キャッシュをクリア.アンインス トール後再度インストールしても解決せず.