How to use Report Parameter on Data Template
Hello All ,
I 've tried to create a Report using Data template and Report Parameter. I create a report using data template and I also created a parameter (P_company_name).
Data Template :
<dataTemplate name="test_Data_template" description="test" dataSourceRef="test">
<parameters>
<parameter name="company_name" dataType="character" include_in_output="false" defaultValue= *** HOW TO DEFINE THE REPORT PARAMETER (P_Company_name) HERE ** />
</parameters>
<dataQuery><sqlStatement name="Q1"> <![CDATA[SELECT customer_no,Company_name, from customers where acquisition_id = :company_name ]]>
</sqlStatement>
Report Parameter
Identifier : P_Company_name
Data Type : String
Default Value : Test
Parameter Type : Text
When the endusers run the Report they will provide the Company name through the report parameter.
I have tried to use the same approach that I used to pass the Parameter to SqlQuery on data Template but it is not working . XML Publisher cannot define the parameter.
How can I do that ?
If you have any suggestion or document I will really appreciate.
Thanks,
Robson
use this <parameter name="P_Company_name" dataType="character" include_in_output="false" defaultValue= 'Test Value' />and in the querySELECT customer_no,Company_name, from customers where acquisition_id = :P_Company_namehttp://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T434255.htm
Just keep the parameter name in datatemplate and the definition same.
Similar Messages
-
Using report parameter in data set filter expression with an SSAS data source
I have an SSRS report with an SSAS data source.
Report parameters:
Param1 - text, single select
Param2 - text, multi-select
Dataset:
In Query Designer, I want to include Param1 as a filter expression so I can have "Dimension1 Begins with @Param2". I'm not sure the exact syntax to make param2 work in this.
The point is to filter my data set on param1. If A is selected for param1, I want the data set to have the filter saying "Dimension1 begins with A"
Anyone know how to use a report parameter in the dataset filter expression for an ssas data source?hi,
try this maybe the dates you are comparing are not in the same format.
I test data template in EBS but not with dates.
to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'dd/mm/YY') and to_date(:p_to_date ,'dd/mm/YY')
if dont works try to put values insted of your parameter like :
to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'10/01/07') and to_date(:p_to_date ,'01/12/07') ... put dates where u can have some values in report...
if dont work then try to print the values of the 2 parameters and the date of the select somwhere in ur report to see what you have in it..
hope it helps..
Regards Joe. -
How to pass the parameter in "Data Template"
Hi,
Can any one please help me out to sort the problem, "Passing Parameter and checking condition for the parameters in the "data template".
And also please tell me how to link the multiple query in "Data template", as per the user guide i have it says to use link tag. But its not working with my "Data template".
Please check the data template given below and help me out to sort the problem.
And one more thing is in table the data type for number and name is varchar. I dono weather i can use that data type in "Data template", please let me know if i can.
<?xml version="1.0"?>
<dataTemplate name="VENODR_DETAILS">
<parameters>
<parameter name="VENDOR_NUM" dataType="number"/>
<parameter name="VENDOR_NAME" dataType="char"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT pv.segment1 ven_num,
pv.vendor_name vname,
pvs.vendor_site_code VEN_SIT_CODE,
pvs.purchasing_site_flag PURCH_SIT_FLG,
pvs.pay_site_flag PAY_SIT_FLG,
pv.vendor_name VENDOR_ADDR_NAME,
pvs.address_line1 VENDOR_ADDR1,
pvs.address_line2 VENDOR_ADDR2,
pvs.city VENDOR_CITY,
pvs.state VENDOR_STATE,
pvs.zip VENDOR_ZIP
FROM vendors pv,supplier_info pvi,vendor_sites_all pvs
where pv.segment1 = pvi.vendor_id(+)
and pv.vendor_id = pvs.vendor_id
and (pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
]]>
</sqlStatement>
<sqlStatement name="Q2">
<![CDATA[select pvc.area_code||'-'||pvc.phone Contact_Phone,
pvc.last_name||' '||pvc.first_name||' '||pvc.middle_name cname
from vendor_contacts pvc,vendor_sites_all pvs,vendors pv
where pvs.vendor_site_id = pvc.vendor_site_id
and pv.vendor_id = pvs.vendor_id
and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="VENDOR" source="Q1">
<element name="VENDOR_NUMBER" value="ven_num"/>
<element name="VENDOR_NAME" value="vname"/>
<element name="CATEGORY" value="VENDOR_CAT"/>
<element name="UPDATE_DATE" value="UPDATE_DT"/>
<group name="VENDOR_SITE" source="Q1">
<element name="VEN_SIT_CODE" value="VEN_SIT_CODE"/>
<element name="PURCH_SIT_FLG" value="PURCH_SIT_FLG"/>
<element name="PAY_SIT_FLG" value="PAY_SIT_FLG"/>
<element name="VENDOR_ADDR1" value="VENDOR_ADDR1"/>
<element name="VENDOR_ADDR2" value="VENDOR_ADDR2"/>
<element name="VENDOR_CITY" value="VENDOR_CITY"/>
<element name="VENDOR_STATE" value="VENDOR_STATE"/>
<element name="VENDOR_ZIP" value="VENDOR_ZIP"/>
</group>
</group>
<group name="VENDOR_CONTACT" source="Q2">
<element name="Contact_Phone" value="Contact_Phone"/>
<element name="cname" value="cname"/>
</group>
</dataStructure>
</dataTemplate>
Thanks in advance.
Regards,
SPHi Rani,
I see one issue in the Q2 with the where statement:
and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
the right one should be
and pv.vendor_id = :VEN_VENDOR_ID
the variable VEN_VENDOR_ID you have to select from the first query Q1. Add here after select
pv.vendor_id VEN_VENDOR_ID,
Regarding the other question about the data types, well, number and varchar2 is fine, perhaps char also, but go with varchar2 instead.
One last note: you should not mix uppercase and lowercase, keep it clear and structured, check your element names and values.
Best Regards
Volker -
How to use a parameter of a report program from selection screen in a dialog program
how to use a parameter value(entered ) of a report program from a selection screen in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
How to use a parameter of a report program in a dialog program
how to use a parameter of a report program in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
How to use a parameter in a report program in a dialog program
how to use a parameter in a report program in a dialog program
Hi Shaikh,
Post it in http://scn.sap.com/community/abap
"ABAP Development".
sree -
How to use dynamic parameter when a report is created using Stored Procedures
Hi all,
any one have the idea of how to use dynamic parameter in crystal report XI R2
when report is created using Stored Procedure.
Regards
shashi kant chauhanHi
You can create an SQL command in Database Expert > Expand your datasource > Add command
Then enter the SQL query that will create the list of values to supply to the user
eg select field1,field2 from table
Then edit the parameter of the report. These will be the SP parameters adn can be seen in field explorer.
Change the parameter type to Dynamic
Under the word Value click on Click here to add item
Scroll down to your Command and select one of the values that you want to appear in the list
e.g field1
Then click on the Parameters field - this is essential to create the param
You can edit other options as required
That should do it for you.
I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
Best of luck -
How to use shared parameter on request set
Hi
I have a request set with two stages
First stage contains From Date and To date where i have named the shared parameter as StartSP and EndSP
i have to use these shared parameter in one of the query in next stage where my Type is SQL Statment and i have these two date fields From date and To date in next stage as well where i am able to retirve the values from previous stage
based on these values i need to get the name in next parameter where my Type is SQL Statment
select name from tablename where '02-MAR-09' > =start_Date and '29-MAR-09' <=end_Date
I have written SQL as
select name from tablename where StartSP > =start_Date and EndSP <=end_Date but it throws an error.
I need the values of 02-Mar-09 and 29-Mar-09 from StartSP and EndSP
Appreciate if any one has idea about this.hi user;
please check:
http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/repset04.htm
http://download-east.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/10gch609.htm
Also you can check this search:http://www.google.com.tr/search?hl=tr&source=hp&q=How+to+use+shared+parameter+on+request+set+&meta=&aq=f&oq=
Hope it helps
Regard
Helios -
Hello ! pls give some ti[ps how to use bapi's for data uploading?
hello !
pls give some ti[ps how to use bapi's for data uploading?
regards,
ArjunHi,
See the below report extract:
where it_data is having uploaded data.
LOOP AT<b> it_data</b> INTO wa_data.
line_count = sy-tabix.
"Date Validation
CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
INTO wa_data-uplft_date.
"READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
APPEND wa_ekko TO it_ekko.
ENDIF.
ENDLOOP.
"IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
LOOP AT it_ekko INTO wa_ekko.
wa_data_header-pstng_date = wa_data-uplft_date.
wa_data_header-doc_date = sy-datum.
wa_data_header-bill_of_lading = wa_data-bill_of_lad.
wa_data_header-ref_doc_no = wa_data-del_no.
CONCATENATE wa_data-header_text1 '-'
wa_data-header_text2 '-'
wa_data-header_text3 '-'
wa_data-header_text4
into wa_data_header-HEADER_TXT.
IF wa_data-indicator = 'Y'.
wa_data_item-material = '000000000000200568'.
ELSE.
wa_data_item-material = '000000000000200566'.
ENDIF.
LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
"Collect Item Level Data
wa_data_item-plant = '1000'.
wa_data_item-stge_loc = '1001'.
wa_data_item-move_type = '101'.
wa_data_item-vendor = wa_data-vendor.
wa_data-qnty = wa_data-qnty / 1000.
wa_data_item-entry_qnt = wa_data-qnty.
wa_data_item-po_pr_qnt = wa_data-qnty.
wa_data_item-entry_uom = 'KL'.
wa_data_item-entry_uom_iso = 'KL'.
wa_data_item-orderpr_un = 'KL'.
wa_data_item-orderpr_un_iso = 'KL'.
wa_data_item-no_more_gr = 'X'.
wa_data_item-po_number = wa_ekpo-ebeln.
wa_data_item-po_item = wa_ekpo-ebelp.
wa_data_item-unload_pt = wa_data-unload_pt.
wa_data_item-mvt_ind = 'B'.
APPEND wa_data_item TO it_data_item.
CLEAR wa_data_item.
ENDLOOP.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_data_header
goodsmvt_code = goodsmvt_code
testrun = 'X'
TABLES
goodsmvt_item = it_data_item
return = return.
READ TABLE return INTO wa_return WITH KEY type = 'S'.
IF sy-subrc <> 0.
DESCRIBE TABLE return LINES sy-tfill.
IF sy-tfill = 0.
CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>
EXPORTING
goodsmvt_header = wa_data_header
goodsmvt_code = goodsmvt_code
testrun = ' '
TABLES
goodsmvt_item = it_data_item
return = return.
CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ENDIF.
ENDIF.
LOOP AT return INTO wa_return.
WRITE: 'Messsage TYPE ', wa_return-type,
/,'ID ', wa_return-id,
/, 'Number ', wa_return-number,
/, 'Message ', wa_return-message,
/, 'Long Text ', wa_return-message_v1,
wa_return-message_v2,
wa_return-message_v3,
wa_return-message_v4,
/, 'Failed at line', line_count.
ENDLOOP.
CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
ENDLOOP.
Reward if useful! -
How to use report designer in bex analyser ,quary designer, wad give scree
how to use report designer in bex analyser ,quary designer, wad give screeeenshots detail
Hi,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/910aa7a7-0b01-0010-97a5-f28be23697d3
http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4487dd91-0b01-0010-eba1-bcd6419
/people/michael.eacrett/blog/2006/06/07/whats-new-in-sap-netweaver-702004s--an-introduction-to-the-functionality-deltas-and-major-changes
http://searchsap.techtarget.com/cgi-bin/rd.pl/ftID-1121728-ctID-1064004?//expert/KnowledgebaseAnswer/0,289625,sid21_gci1064004,00.html
http://help.sap.com/saphelp_nw04s/helpdata/en/9d/24ff4009b8f223e10000000a155106/content.htm
WAD
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cea68c65-0901-0010-f5a4-fd34189d8078
http://help.sap.com/saphelp_nw04s/helpdata/en/a9/71563c3f65b318e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/a9/71563c3f65b318e10000000a114084/frameset.htm
/people/prakash.darji/blog/2006/07/16/bim253-at-teched--query-report-and-web-application-design-with-the-sap-business-explorer-suite
http://help.sap.com/saphelp_sem40bw/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
GTR -
How to use TRUNC function with dates in Expression Builder in OBIEE.
Hi There,
How to use TRUNC function with dates in Expression Builder in OBIEE.
TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
Thanks in advanceuse this instead:
TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE) -
How to use clob or blob data type in OWB
how to use clob or blob data type in OWB?
if OWB not surport these data type,how can i extract the large data type from data sourceThe same question was asked just two days ago No Data Found: ORA-22992
Nikolai Rochnik -
How to use report designer using bex analyser give screenshots details
how to use report designer using bex analyser give screenshots details
Hi,
As per my understanding you want to see Query Designer when you execute the query in BEx Analyzer.
When you launch BEx analyzer,you should be able to see new tab of "Business Explorer" in your Toolbar.
So,when you execute the query in BEx analyzer,in order to goto query designer screen,click on Tab "Business Explorer",select option "Change Query" and then select the option "ChangeQuery (Global Definition)".
It will open the query designer in which you can modify the query and save it.
Regards,
Nilima -
How to use report designer using bex analyser ineed screeenshots steps
how to use report designer using bex analyser ineed screeenshots steps
Please try to search and stop asking for all types of screen shots. Thanks!
-
Problem in using relational operators in Data Templates
Hi All,
I have a query like following in data template type of Data set but I am not getting any data if I use simple < operator. Same query shows data in the database. Is there any other specific way of using relational operators in Data templates ? Please help in this regard
<dataTemplate name="REVIEW_DATE" dataSourceRef="MY_DB">
<dataQuery>
<sqlStatement name="REVIEW_DATE">
<![CDATA[
SELECT
TABLE1.REVIEW_DATE
FROM TABLE1 TABLE1 , TABLE2 TABLE2
WHERE
TABLE1.COLUMN1 = TABLE2.COLUMN2
AND TABLE1.REVIEW_DATE < TABLE2.CURRENT_DATE]]></sqlStatement>
</dataQuery>
<dataStructure>
<group name="REVIEW_DATE" source="REVIEW_DATE">
<element name="REVIEW_DATE" value="REVIEW_DATE"/>
</group>
</dataStructure>
</dataTemplate>Thanks a lot !
-Sookiesolved after watching www.youtube.com/watch?v=FCujba8euWc
thanks to all
Maybe you are looking for
-
Hello. I'm currently learning forms and reports in 9.0.4 on a standalone pc. I have created a simple report in report builder that runs fine there. I believe I have correctly set up the button to run the report from a form in form builder. But when I
-
Unable to print to Epson SP870
I upgraded yesterday from iPhoto 4.0.3 to iPhoto 6.0.6 on my Powerbook running OS X 10.3.9. Nothing else changed on my computer except, of course, the simultaneous installation of the other iLife 06 applications (which I don't use; in fact I immediat
-
Hello. I am on ios 8.1.3 and I can not figure out how to do a manual backup. I go to settings --> icloud--> Storage--> Manage Storage. I can not find the "Backup Now" button anywhere. Did they get rid of this?? It says my last backup was yesterday bu
-
Wacom Mouse and CS4 Incompatibilities
Hi all, I'm a CS3 user, but just downloaded CS4 for trial. Unfortunately based on my experience so far it's unuseable. The problem is that Clone, Healing, Brush tools do not respond to my Wacom Mouse (I can move brushes around, but can not apply an
-
T510 Screen resolutions error?
To my knowledge, the screen resolution of 15,6" models should be as follows: HD: 1366 x 768 HD+: 1600 x 900 FHD: 1920 x 1080 Then why on European Lenovo websites all T510 models are listed as 15.6 " HD+ AntiGlare 1366x768 ?? Here is Italy, Germany an