Selection parameters
Hi All,
I have to assign default values to selection screen parameters based on tcode,
How can i do that.
Hi
Declare the parameters:
p_field like vbak-vbeln.
in the start-of-selection
assign the default values based on the Tcode
if sy-tcode = 'VA01'.
p_field = <default value>
elseif sy-tcode = 'VA02'.
p_field = <default value>
endif.
And use this field parameter in the where condn of the select Statement
Reward points if useful
Regards
Anji
Similar Messages
-
Drill-Down Report Printing Problem for Selection Parameters
Dear Experts,
Have tried to configure Drill-Down Report for Vendor Balances,
Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
Input Parameter Screen
Report Output Screen
Print Preview Screen (First Page - Selection Parameters)
Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
Thanks
Regards
PHello Ms. Preeti,
Thanks for your reply, Have designed the report through FKI0 (FKI*)
Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
Thanks for your help
Kind Regards
P -
How to use multiple selection parameters in the data model
Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
My data template is the following (it's very simple...I am just testing how the parameters work):
<dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
<parameters>
<parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
<parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
</parameters>
<dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
<dataQuery>
<sqlStatement name="Q2">
<![CDATA[
select deptno, dname,loc
from dept
&p_where_clause
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_DEPT" source="Q2">
<element name="deptno" value="deptno"/>
<element name="dname" value="dname"/>
<element name="loc" value="loc"/>
</group>
</dataStructure>
</dataTemplate>
The 2 parameters are based on these LOV:
1) select distinct dname from dept (p_dep_2_param)
2) select distinct loc from dept (p_loc_1_param)
and both of them have checked the "Multiple selection" and "Can select all" boxes
The package I created, in order to use the lexical refence is:
CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
as
p_dep_2_param varchar2(14);
p_loc_1_param varchar2(20);
p_where_clause varchar2(100);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
then
p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
else
p_where_clause := 'where 1=1';
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
it works perfectly....
Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
So my questions are these:
1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
Thanks in advance for any suggestion
AlexAlex,
the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
So change your package to (you need to expand your variables)
create or replace package bip_departments_2_parameters
as
p_dep_2_param varchar2(1000);
p_loc_1_param varchar2(1000);
p_where_clause varchar2(1000);
function beforereporttrigger
return boolean;
end bip_departments_2_parameters;
create or replace package body bip_departments_2_parameters
as
function beforereporttrigger
return boolean
is
l_return boolean := true;
begin
p_where_clause := ' ';
if p_dep_2_param is not null then
if instr(p_dep_2_param,',')>0 then
p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
else
p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
end if;
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
end if;
end if;
else
if p_loc_1_param is not null then
if instr(p_loc_1_param,',')>0 then
p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
else
p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
end if;
end if;
end if;
return (l_return);
end beforereporttrigger;
end bip_departments_2_parameters;
I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
Regards
Rainer -
How to get the selection parameters from logical database into one of the t
Hi Sap ABAP Champians,
How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
Please help me for this
Thanks
BasuHi
Thanks, that will work, but then I'll have to insert code into all my reports.
I can see that "Application Server Control Console" is able to rerun a report.
This must mean that the Report Server has access to the runtime parameters.
But how?
Cheers
Nils Peter -
BI: Virtual Provider for ECC Report with same selection parameters
Dear all,
I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
Please mention if i miss any point in explaining problem.
Feel free to ask for any query.
Many thanks.
Hoping for positive and quick responses.please create 2 reports as given below.-
REPORT ZSZP_00007.
parameters a(5) .
parameters b(5) .
parameters c(5) .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'A' or screen-name = 'B' .
get parameter id 'aaaaaaaaaaa' field a.
get parameter id 'bbbbbbbbbbb' field B.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
start-of-selection.
your logic
REPORT zszp_00005.
PARAMETERS a(5).
PARAMETERS b(5).
START-OF-SELECTION.
SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
your logic
SUBMIT zszp_00007 VIA SELECTION-SCREEN.
i hope this approach will solve your problem.
thanks
Swanand -
How to identify the selection parameters of already executed transactions
Hi,
I like to identify the selection parameter of already executed transaction.
SM20 shows me which transaction was executed on which day and by whom.
But it does not give me it is executed with which kind of selection parameters.
For example, MD02/03 was executed many times, I like to know who execute it with parameter "2" for "create purchase req.".
How can I know it?
Regards,
Kenichi KanedaHi,
I don't think so that SAP stores this information anywhere. -
How to give Selection Parameters text in Standard SAP reports?
Hi,
I am enhancing one of the standard reports, J_3RF_TAX_EXECUTE_CHAIN. Added few parameters to selection screen.
But I am not able to give text to the selection parameters.
I checked with Modification overview, its not allowing me to put text to custom Selection screen parameters.
Regards
Mohinder Singh ChauhanHi Friends,
I had created a dynamic selection text for a select-option created using Implicit Enhancements.
The select-option field is for MARA-MTART and the dynamic text i had given in the code is "Material Type".
But my client wants it to refer to the data dictionary reference so that it will print the labels given there and especially in the logon language.
Generally it can be done by selecting the checkbox next to the select-option, available in the Text Elements/Selection Texts Screen of the ABAP Editor.
So how to check that box(i.e., how to refer the data dictionary reference) dynamically? -
Changing generic selection parameters for Payment advice notes
Hi,
I want to add few more generic selection parameters for Automatic Payment advice notes generation on the seletion screen(f110 - rffoavis_fpaym). Please let me know the config settings for doing this.Hi Pradeep,
you can change the sender, when you change the system-field SY-UNAME before calling FM SO_NEW_DOCUMENT_ATT_SEND_API1.
REPORT Z_TEST_SEND_MAIL.
h_uname must be a SAP-UserId.
sy-uname = h_uname.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
I tried it and it was successfull. -
BOXI 3.0 Selecting "parameters" when rescheduling returns error in InfoView
All,
Fresh installation of BOXI 3.0 and application of FP2. SQL Server Express 2005 BOXI database. Default TomCat web.
Installation had no problems. Used the import wizard to import a couple of reports from previous BOXIR1 system.
I go into InfoView and "schedule" a report. I set the parameters (static, from a combobox) etc... the report runs fine. I can open the report. Everything seems normal and functional to this point.
Then I select the report again, and opt to "reschedule" from the list of actions. This opens the "Instance Title" screen as it should. However, when I then select "parameters" I get the following error :
"An error has occurred: $Proxy4"
This is our second installation of BOXI 3.0 - the first acted the same but resulted in a $Proxy5 error.
What does this mean?
Thanks!
RobADAPT01113079
In Infoview schedule the report to pdf format, and once it goes to success.
Click on the reschedule option and then click on the parameter option.
The error "An error has occurred:$Proxy4" will be thrown.
Target Fix: XI 3.0 FP1
Workaround: No
There was a bug in 3.0 that was fixed in FP1 that seems to match your symptoms. You can try installing FP1. If that doesn't resolve then I'd suggest openinjg a message with support so they can verify your workflow.
Regards,
Tim -
Executing Report Painter Report in Loop With Different Selection Parameters
Hello all,
I have to execute a report painter report about 300 times, allways with a different set of selection parameters and allwasy send the result to a different person via mail.
Has someone an idea how to to this work in an automatic loop.
Thanks.HI,
My suggestion is to discuss this with your technical team (ABAP). A Good idea would be to create a wrapper program (small program based on your report painted report code) that contains email functionality. You can then save your 300 variants and then schedule a background job for the same using transaction code SM36.
Regards -
Only 'EQ' and 'I' allowed for selection parameters
Hi!
We are generating the list of POs with open GR thru ME2M with selection parameters of WE101 and WE107, however, we encountered an error which states "Only 'EQ' and 'I' allowed for selection parameters."
What shall we do?Hi,
This error will have nothing to do with the selection parameter setting but the variant you are defining for your ME2M transaction. Can you therefore provide detailed info on how you set it up in your system?
Cheers,
HT -
Adding selection Parameters to the POP-UP Screen
Hi my requirement is i need to add all the line items netweight and gross weight and need to show the total line items in a pop up window when i press enter after entering the line items in ME21N.
Here iam using the user exit : EXIT_sapmm06e_016 .
It is working fine But now i need to add selection parameters in this pop up window.
The two selection parametes are Shipping Point and Shipping Condition.
So how to add selection parameters in POP UP Screen and how it will be updated in ME21N Line items,.in ur custom defined screen, you can add the selection parameter which wouldbe called within ZXM06U41.
Validate ur entries.. and you can make use of BAPI/ BDC to update those details in ME21N -
Dear experts,
For fiscal constraints, we need to change the "document date" when runing and posting documents in MR11, but in the selection parameter, we can define manually only the "posting date".I see that for some MM reports we can add and change some selection parameters.
Is it possible to add "document date" to the selection parameters in MR11, so that we can define it manually as we do for the posting date?
Thanks for your help.
HoudaDear Preeti,
My problem is not related to a number ranges, but i need to define the document date manually instead of automatically by the system, like when we are booking FB01, we can define manually the document and the posting date.
To solve my issue , i think about a standard setting that may add the document date field in the selection criteria so that we can change define it manually (same as the posting date field)...
I already search in the forum but unforunately i didn't find an answer to my question.
Do you have any idea?
thanks
Houda -
GR55 Report Selection Parameters
Hi,
I want to add company code as one of the selection parameters. When I run the report group company code is not showing up as the selection parameter.
Please let me know if someone knows how to do that.
ThanksGR52 enter the report group name. Click on Report.
If it is an SAP standard report, you won't be permitted to change. However you can copy that standard report to your own report (give a name to it).
Then, in GRR2, you can call the characteristics under the Edit>general data selection and include the company code.
Click on the second check box, meant for variable. Choose one from the drop down. Select a default company code variable (e.g 8A-bukrs for profit center related report under table GLPCT) for the table you are dealing with . Save and generate. and then include the report under a report group to run. -
Changing selection parameteres of Std. datasources ( 0FI_GL_4 )
Dear All
I want to change and add HKONT in the seletion of the Datasource 0FI_GL_4 . But when opened with T-code RSA6, the HKNOT is not hylighted and hence I can't tick the selection. Can we change the selection parameters for data loading of Std. Datasources ?
Dinesh sharmaHello Dinesh,
I recommend to post this query to the [Integration Kits - SAP|BusinessObjects Integration Kits; forum.
This forum is dedicated to topics related to the BusinessObjects Integration Kit for SAP.
It is monitored by qualified technicians and you will get a faster response there.
Also, all SAP Kit queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
ME2N Selection parameters WE101 and WE103
Hi ,
In tcode ME2N , selection parameter field i see there two options : WE101 and WE103 .Is there any difference between these two ? In case they are same why two diffrent options r there for the same thing ??
Please help.
Regards,
SauravHi,
WE101 & WE103 selection parameters available, which would decide the output of the report based several critirea like " Specifies that deleted or blocked items are to be included in list displays generated with this selection parameter"
which can be customized as per our requirement. This may be set in the following path
SPRO - Materials Management - Purchasing - Reporting - Maintain Purchasing Lists - Define Selection Parameters.
Hope this clarifies your query
Thanks,
Murthy
Maybe you are looking for
-
Certain keys on my keyboard no longer work as intended
All of a sudden my keyboard isnt working as it used to. Certain keys dont work. I attempted to trouble shoot, but I also had trouble with the steps listed. I didnt have the places that it said to go to in my system preferences. I dont have univer
-
My Hp truevision webcam couldn't be detected by cyberlink youcam the 3rd virsion software that i installed from hp support, indeed i have done all their suggetions from reinstall that software to forced reset, but i dont want to get a back up for my
-
"This Word document may look different"
Virtually every time I open a Word document in Pages (version 5.2) I get a box saying: "This Word document may look different. Here's a list of what changed when you opened it in Pages." That line is followed by something like "The font Calibri isn't
-
Primavera P6 Web Access: You do not have a license ...
Hi, I've just installed Primavera P6 Project Portfolio Management primaveraweb and progress reporter on an EL5U5 Linux machine. When I try to add some users who are not Administrators and try to log in to primaveraweb on the http://hostname:7001/prim
-
Since install of version 3.6.8, every link I click on opens a new window instead of the current or new tab. No changes in my settings were made. I had no problems until the 3.6.8 was installed.