Report using either query or direct value
Hi,
I'm using Reports 6i.
I'm having a report in which most of the content is static text. only 1 or 2 values i'm fetching from database to fill up the content.
I have a requirement like, if the user directly supply this value, then i have to run this report with the provided value without querying.
In case they dont suppy the values, then the report should query and take values from the database.
Whether such a report is possible?
Thanks
Divya
Hi,
Thanks for the reply.
But if P_Param is not null then the report should take the parameter value and run the report.
Suppose my report contents is like this
This is a test report run by USERWhere user is the field.
If i supply user say as 'Divya' , then i should get the output as
This is a test report run by DivyaIf i didn supply user, and instead another parameter say id is supplied, then it should query and take the username and run
Both should happen in single report.
As you suggested, if the user param is null, then nothing comes.
This is just a sample case i told. my original req involves more than one param
Thanks
Similar Messages
-
Generating a report using ABAP query
Hi All,
I want to generate a anlytical report using ABAP query, There are 3 different transactions/steps have to be executed to get this data in an actionable form.
1. MB52 - Unrestricted Stock
2. ZCustomquery - Custom query in SAP R3
3. Combine above two in a single report.
Please suggest me how can i proceed,
1. Example i have created query name called Finalrepot
2. How can i call above zcustomquery and Transaction (MB52) in the Query.
Thanks for your help
PradeepHi,
Check below link to create ABAP query (SAP Query)
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
Best regards,
Brijesh -
Hi,
I am using WebI Report using BW Query. I don't see some Formulas in Universe which is there in BEx Query.
Did anybody face the same problem before?Hi,
I meant that you should post in the forum the calculation contained in the formula that you cannot see in your universe.
But let's start from the begining since you are new to SAP: Did you generated the universe yourself? If the formula was added in the query after the universe was created then you must refresh your universe (In the Universe designer please select the option "Refresh structure" under the "view" menu) in order to get the newly created formula (I assume we are takling about a calculate figure here) in your universe also.
Regards,
Stratos -
Development of Reports using ABAP Query
Hi
can anyone please tell me about 'Development of Reports using ABAP Query' and how to use it in real time
Thanks
jaylook here:
http://help.sap.com/saphelp_47x200/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
A. -
Created Webi report using BEx Query.
Hi All,
I am going to upgrade in BW and using BEx & Webi Report. I have created webi report using BEx query. Now I need to test data in webi report.
Can anyone tell me how to test data?
Regards,Hi,
compare the webi report data with Bex report. more you can compare webi report with SAP R3 system for random records.
Thanks,
Amit -
Executing Crystal Report using BI Query as datasource in Bobj portal
I have a Crystal report using BI query as the datasource. The BI query contains User Entry variables.
The Crystal report executes as expected except when added to the Bobj portal. From the portal, I can schedule the report and it will execute as correctly. However, if I try to execute without scheduling, I am able to enter the BI restrictions, but then am presented the following error message: "An error has occurred: For input string: "" ".
If I remove all the BI variables from the query, the report will execute from the portal with out scheduling.
Any help would be greatly appreciated.Hi,
You can set your parameters from CMC. Select the report and set parameters in to the report properties.
-SG -
XML publisher report using connected query
dear all,
I defined some XMLP reports with very similiar parameters.
I found a strange issue, all reports using query as the source, they appear in the XMLP report viewer.
But for those using the connected query, all are not able to be found in the XMLP report viewer list.
Anybody has experience on this. Did I miss anything special for the connected query type?
Many thanks.Is there anybody suffering the same issue?
I double checked the settings of two XMLP report definitions.
No difference, but the one with the connected query as the source can NOT been found. -
SSRS report using mdx query to display sales of product by yearwise
There is a requirement to create SSRS report as
Product +Calender2011 -Calender 2012 +Calender 2013
+ Calender 2014
Jan12 Feb12 Mar12...
Product 1 50 100 200 ..
Product 2 150 900 200 ..
Product 3 250 180 900 ..
Product 4 450 100 200 ..
Product 5 50 100 200 ..
Product 6 50 100 200 ..
When I click on Calender2011 corresponding all months of 2011 has to appear and likewise for Calender2012, CalenderN
The MDX query I have like as follows-
Select Non Empty{
[Measures].[Product1],
[Measures].[Product2],
[Measures].[Product3],
[Measures].[Product4],
[Measures].[Product5],
[Measures].[Product6],
[Measures].[Product7],
[Measures].[Product8],
[Measures].[Product9],
[Measures].[Product10],
[Measures].[Product11],
} ON Rows ,
Non Empty { ([Dim Calendar H].[Year Name].[Year Name] ) *([Dim Calendar H].[Month name].[Month name])
ON COLUMNS
FROM ( SELECT ( { [Dim Calendar H].[Year Name].&[Calendar 2014],
[Dim Calendar H].[Year Name].&[Calendar 2013],
[Dim Calendar H].[Year Name].&[Calendar 2012],
[Dim Calendar H].[Year Name].&[Calendar 2011] } )
ON COLUMNS
FROM [Cube])
Please help me.
Advance thanks...Hi Afans,
According to your description, you want to create a drill-down report using SQL Server Analysis Services database, right?
In this case, you need add the Year and Month fields to the column group, and set the Month column can be toogled by Year column group. I have teste it on my local environment, here is the sample query for your reference.
select [Measures].[Internet Sales Amount] on 0,
[Product].[Category].members*[Date].[Calendar].[Calendar Year].members*[Date].[Month of Year].members on 1
from
[Adventure Works]
Reference
http://popbi.wordpress.com/2012/03/02/ssrs-how-to-add-a-column-group-to-an-existing-table/
http://msdn.microsoft.com/en-IN/library/dd207042.aspx
Regards,
Charlie Liao
TechNet Community Support -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
Hello Experts,
i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
by using Following method
Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
Here is my existing CAML query.
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>Employees</ListName>
<ViewFields>
<FieldRef Name="Title" />
<FieldRef Name="FirstName" />
<FieldRef Name="LastName" />
<FieldRef Name="FullName" />
<FieldRef Name="UserName" />
<FieldRef Name="Company" />
</ViewFields>
<Query>
<Where>
<Eq>
<FieldRef Name="Title" />
<Value Type="Text">
<Parameter Name="EmployeeId"/>
</Value>
</Eq>
</Where>
</Query>
</RSSharePointList>
The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
Please suggest
Thank you
saroj
sarojYour problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
provides some examples,
http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
Dimitri Ayrapetov (MCSE: SharePoint) -
Interactive reports using ABAP query
I have developed an ABAP query which prints the sales documents in ALV list display.
In that list display I would do develop a functionality is , when ever i double click on the sales doc number it will directly go to the VA03 transaction for the corresponding VBELN.
Can anybody explain how to do this?Hi,
When you double-click on any cell of alv, use this code to fetch the data of the line that you currently clicked, its working:-
When you double click on the ALV line, you will have sy-ucomm = '&IC1'.
So when you define a i_callback_user_command for the FM reuse_alv_list_display,
i_callback_user_command = 'COMMAND' " for User-Command
and create it as:-
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA : ok_code TYPE sy-ucomm.
ok_code = ucomm.
CASE ok_code.
WHEN '&IC1'. "for double click on alv line
" your code
ENDCASE.
ENDFORM.
As you have used selfield TYPE slis_selfield, the field selfield will hold all the values.
To know on which row you have clicked and to retain that line, use code:-
Suppose you are currently displaying data from internal table itab and corresponding to it you have work area wa.
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
Now to know the field name that you clicked, use:-
selfield-fieldname " will fetch you the name of field that you clicked
Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.
Refer:-
CASE selfield-fieldname.
WHEN 'VBELN'.
SET PARAMETER ID 'AUN' FIELD <wa-vbeln>. "value for work area for vbeln
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDCASE.
Hope this helps you.
Regards,
Tarun -
Changing font color in a report using SQL query for APEX 5.0
Hello,
I am testing APEX 5.0 in my testing environment to see if I can migrate my internal apps from 4.2 to 5.0.
How can I change the font color in a field based in the SQL query? I know how to do it in 4.2 but I can't find the same in 5.0.
Thanks,Well, I used to put the html tags in the select as text getting the color value depending a CASE , then I had to change the Display attribute for the column in the report as "Display as text (espace special characters...)".
I found an old post here: https://tylermuth.wordpress.com/2007/12/01/conditional-column-formatting-in-apex/ and this method still worked for me in APEX 5.0
Thanks anyways -
SCCM 2012 R2 Report using WMI Query
I am trying to find out if I can generate a report to show which users installed what software using a report in SCCM 2012 R2 and a WMI Query.
If not using the reporting within SCCM, then:
1) is it possible to pull such data via a wmi query
2) any suggestions how to do so?
3) Desktop OS is either Windows 7 or 8 or 8.1 Enterprise x64
Thanks,
Dave
David LakeyYou Can Create Query With the Software name but you can Know Which Computer and you can add System Resource as the Last login name
This for Example:-
From monitoring--> Create New Query--> Edit Query Statement --> Show Query Language
past the following:-
select SMS_R_System.NetbiosName,
SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from
SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId =
SMS_R_System.ResourceId where
SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visio%"
After that in General you can add in Results Tap:-
System Source and the Attribute Will be last Login name -
WebI Report using BW Query (Getting Error for User Response Function)
Hello Experts,
I have created WebI Report on top of BW query. All the prompts are coming from BW query. I was trying to create user response function but it's not working. Do I need to use special function or I can't use.
Any help would be highly appreciated.
Thanks
Nisnikihi Nisniki,
take a look here:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
Ingo -
Crystal Report using BW Query that contains replacement path (control query
I have a Crystal report built on a BW query. The BW query contains a replacement path on a characteristic (as a control query). The control query has additional variables that the main query is not using. The crystal report is not recognizing any of the variables that the control query includes. How do I get the crystal report to recognize the control query variables?
Post your question BEX and B1 and/or classic SAP data source issues to the Integration Kit forum
Maybe you are looking for
-
Can't log into my main user acct! How can I fix this? Help, I'm stumped!
OK, here's the problem. While using my machine with VMware, I got the beachball of death. Nothing would respond and no keystrokes would bring up force quit. I finally had to press and hold start to shutdown. When I restarted my machine first the grey
-
How to use a function PIPELINED in Forms 10g?
Hi guys, When I tried to use a function PIPELINED in Forms, I received the message: - PL/SQL function called from SQL must return value of legal SQL Type FOR rec_dev IN (SELECT * FROM TABLE(p1196.f_executa('01-aug-2010', -- pdDataInicial '30-aug-2010
-
Illustrator CC 2014 crashes all the time after installing Yosemite 10.10 - why?
Hi there, as said above my IA crashes all the time. I am working with Creative Cloud and latest OSX version (Yosemite 10.10). A few days ago I chatted with a team member of Adobe but all recommended was to install a complete new Admin on my MacBook P
-
Good monitor to use with iPad Air
Any body have their favorite monitor to use with iPad Air?
-
Configuring startWebLogic.sh for Red Hat Linux 7.2
I was successful in configuring and executing startWeblogic.cmd, but have not been so lucky getting the equivalent to run on Red Hat 7.2 using startWebLogic.sh. For starters, even before I began editing startWeblogic.sh and just tried running I recei