Default Values in an ABAP selection criteria
Hi SAP Experts,
I've created a info set(SQ02) and a query(SQ01) to generate a report on purchase orders.
I want to default the purchase order type to NB in the selection screen(In order to retrieve the purchase orders with type NB only)
Can someone pls guide me to do that?
Thanks in advance.
Regards,
Randi
Hi,
Thanks for replying and for your valuable input.
But my requirement is a bit different i guess.
I'm building a SAP query using transaction SQ01. The info set was developed using SQ02.
My requirement is to filter the output without the use of a variant(probably making a change in the infoset).
eg: I'm building a query to retrieve purchase order details with PO type NB
How can i change my infoset or query to only retrieve purchase orders with type NB only?
Regards,
Randi
Similar Messages
-
Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
I visited.
I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
Add another Value Below and set the Default Value for this field to setup multiple default values.
However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
Please let me know if you need more info. Appreciate your help.
Thanks!Hi redhotc,
According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
was fine.Please have a try as the below link:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Default values in SE16 table selection screen
Hi,
when we open SE16 along with table name , In the selection screen of that table i want some default values apper for one particular field.
How can i do that???HI.
STEPS:
1. Go to SE16.
2. Enter a table name.
3. In the selection screen of the table enter values
for the fields that you want to set as default values also called variants.
4. Then click on Goto --> Variant --> Save as Variant
5. Enter the variant name and short text for the same.
6. Then click on save on top of the page.
Steps To retrieve the variant.
1. go to se16.
2. Enter table name.
3. Click on "Get Varian" icon or press "Shift + F5".
4. Choose the desired variant.
Thus you will be able to set default values in SE16
table selection screen.
Hope this is useful
Cheers!!!
Rajesh. -
Multiple Default Values in a Multi-Select LOV Parameter?
Hi,
I have a report in BI Publisher standalone version 10.1.3.4. The report has a list of values called org_lov. This lov is attached to a multi-selection p_org_code parameter from which it is desirable to also have multiple default values.
For example, if org_lov has the following values:
100
101
102
103
104
105
106
I would like to have 3 default values and have 100, 101,105 as the defaults if the user doesn't specifically select anything from the LOV. So far my testing has only allowed a single default value.
Here are my settings:
Data type = string
Multiple Selection = checked
Can select All = checked (all values passed)
On the Default Value field, I have tried the following:
1. 100, 101,105
2. [100, 101,105]
3. '100', '101','105'
4. (100, 101,105)
5. ['100', '101','105']
6. ('100', '101','105')
I don't need these default values highlighted in the LOV, I just need it passed correctly to the query (a data template).
Thank you in advance for any input.Hi,
Sorry for the delayed reply. I tried what you suggested but the problem is that by having the "Multiple Selection" property of the parameter unchecked, the result is that it allows the user to only have a single value passed. The user wants the option to select multiple values AND also have the multiple default values.
Thanks anyway. -
Set Radio Group Default Value Based on a Select List Change Event
Apex 4.2
I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
SELECT type d, code r FROM vw_lov_depot
WHERE svc_name = :P320_DEPOT
ORDER BY 1
The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
I am trying to set the radio group to default to this value Miv it would use the statement
SELECT type d, code r FROM vw_lov_depot
WHERE svc_name = :P320_DEPOT
and type ='Miv'
ORDER BY 1
I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
Thanks
I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?Hi,
Could you please create example to apex.oracle.com?
Regards,
Jari -
How to pass the default value to search help selection screen
Hi
I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
Could you please let me know how can we do this?
When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this default value based on condition.
Regards
AnilHi Arun
I'm using SE11 search help.I'm giving you my code for your reference here.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lr_current TYPE REF TO if_bol_bo_property_access,
lv_category TYPE STRING.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'ATTRIBUTE'.
APPEND ls_map TO: lt_inmap,lt_outmap.
CLEAR ls_map.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'SERVICE_LINE'.
APPEND ls_map TO: lt_inmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZATTR1'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_trigger_submit = abap_true
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
1.'ATTRIBUTE'
2.'SERVICE_LINE'
3.Description of 'SERVICE_LINE' and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
a condition.
However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field and the same value is being copied to
'SERVICE_LINE' field in the popup.
Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
Best Regards
Anil -
Setting the Default Value for a dynamic select menu
Hi I have a php page with 2 forms on it, one feeds the other to achieve a drill down (manufacturer > model). In the second select menu I have a default static value "Select Aircraft Model", I want to set a value for the first dynamic select menu to read "Select Aircraft Manufacturer". When I add a static value to my list it tells me I alreay have a dynamic behavior on this menu and to choose a different one. I have included the code for both menus. Thank you in advance, I know this must be a stupid question, but it's got me stumped.
Tom
//This is the menu I want to add the default static value to//
<td width="667"><select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<?php
do {
?>
<option value="<?php echo $row_rsAirManufacturer['aircraft_manufacturer']?>"<?php if (!(strcmp($row_rsAirManufacturer['aircraft_manufacturer'], ((isset($_POST["airMake"]))?$_POST["airMake"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirManufacturer['aircraft_manufacturer']?></option>
<?php
} while ($row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer));
$rows = mysql_num_rows($rsAirManufacturer);
if($rows > 0) {
mysql_data_seek($rsAirManufacturer, 0);
$row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer);
?>
</select>
</td>
</tr>
</table></form>
<form action="quoteResult.php" method="post" name="quoteForm">
<table width="100%" border="0" cellpadding="5px">
<tr>
<td width="260"style="color: #000; text-align: right;">Aircraft Model:</td>
<td colspan="2"><span id="spryselect2">
//This is the menu that works correctly//
<select name="airModel" style="width: 200px;" id="airModel">
<option value="" <?php if (!(strcmp("", ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>></option>
<?php
do {
?>
<option value="<?php echo $row_rsAirModel['aircraft_model']?>"<?php if (!(strcmp($row_rsAirModel['aircraft_model'], ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirModel['aircraft_model']?>Select Aircraft Model</option>
<?php
} while ($row_rsAirModel = mysql_fetch_assoc($rsAirModel));
$rows = mysql_num_rows($rsAirModel);
if($rows > 0) {
mysql_data_seek($rsAirModel, 0);
$row_rsAirModel = mysql_fetch_assoc($rsAirModel);
?>
</select>Change this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
to this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<option value="-1">Select Aircraft Manufacturer</option>
Then if the value of 'airMake' is -1 you know that no choice was made. -
How to show default value selected in combo box...
Hi,
I need an help...
I have a combo box and i want to show the default value(coming from DB) selected on combo box on Page Render.
Thanks,
NehaHi,
Will this help?
database default value in selectOneChoice
Set default selected value in a SelectOneChoice
Regards
Vishal -
ADF 11g - Query Component - How to set default values for search criteria
I have defined a VO with named query (with 2 search criteria). I created a page and drop a query with table. It works just fine until this point. My requirement is to set a default values for the two search criteria. For example, I have release and category criteria where they are set to use a drop down. I would like to default the values for the drop down when the page is shown up the first time and query the result right away. Is there a way declaratively or I have to create a custom query?
Thanks.I figured this out. Thanks.
-
Hi,
Kindly assist me on how to set a default value for dynamically created Select options.
I am coding the below code snippet for default value and it's working but when I remove the default value for the select option on portal screen ...I encounter a dump stating line type does not match with internal table.
wd_this->m_wd_select_options = wd_this->wd_cpifc_wdr_select_options_e( ).
init the select screen
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'STRING' ).
assign lt_range_table->* to <range_table>.
insert initial line into table <range_table> assigning <range_table_line>.
assign component 'SIGN' of structure <range_table_line> to <sign>.
assign component 'OPTION' of structure <range_table_line> to <option>.
assign component 'LOW' of structure <range_table_line> to <low>.
assign component 'HIGH' of structure <range_table_line> to <high>.
<sign> = 'I'.
<option> = 'EQ'.
<low> = 'ZA'.
clear <high>.
wd_this->m_handler->set_range_table_of_sel_field(
i_id = 'DY_PARVW'
it_range_table = lt_range_table ).
Points will be rewarded!!!!Hi.
I use the following code (snippet) to add default values:
lt_range = lr_selop->create_range_table(
i_typename = 'VKORG' ).
lr_selop->add_selection_field(
i_id = 'VKORG'
i_within_block = lv_id_gdata
i_no_intervals = abap_true
i_no_extension = abap_true
i_obligatory = abap_true
i_read_only = abap_true
it_result = lt_range
i_value_help_type = if_wd_value_help_handler=>co_prefix_none ).
DATA:
lr_user TYPE REF TO zcl_user,
lr_param TYPE REF TO data,
lr_headerline TYPE REF TO data.
DATA:
ls_tmprange TYPE rsparams.
FIELD-SYMBOLS:
<fs_param> TYPE ANY,
<fs_range> TYPE ANY,
<fs_rangetable> TYPE table.
lr_user = zcl_user=>get_instance( ).
lr_param = lr_user->get_usermaster_param(
param_name = param_name
ASSIGN lr_param->* TO <fs_param>.
MOVE <fs_param> TO ls_tmprange-low.
IF ls_tmprange-low IS NOT INITIAL.
ls_tmprange-sign = zcl_salsa_assistance=>userparam_sign_default.
ls_tmprange-option = zcl_salsa_assistance=>userparam_option_default.
ASSIGN lr_range->* TO <fs_rangetable>.
CREATE DATA lr_headerline LIKE LINE OF <fs_rangetable>.
ASSIGN lr_headerline->* TO <fs_range>.
MOVE-CORRESPONDING ls_tmprange TO <fs_range>.
APPEND <fs_range> TO <fs_rangetable>.
ENDIF.
lr_user->get_usermaster_param( param_name = param_name ) just returns a data reference to a parameter value.
After assigning this value to the range table i do not have to call set_range_table_of_sel_field cause lr_range is already a reference to the range table.
This works well and I can remove the default value without getting dumps.
Cheers,
Sascha -
Default value for SAP Query - SQ01
Hi Expert,
I made a query for GL master data, and I have a selection criteria on chart of account, but since the chart of account for all company codes are same; therefore I would like to default the chart of account selection criteria to my COA.
I read through question/answer in the following thread: SQ01 - restriction on Infoset but solution given by Lalitha Manda ... I cannot get the given selection path.
Kindly advise, and I am using ECC6.0.
Thanks,
sbmelHi,
You need to go to the infoset of the query (transaction SQ02), or in SQ01, after input of the SAP Query, click on 'Infoset Query'.
In the right frame You will get a list of fields for selection. There You can default the value of selection field GL Account in the column 'Value'.
Regards,
Birendra -
Report parameter default value do not default correctly
Hello Experts, I have a cascading parameters in my report.
The first parameter called "Project" will allow to select a single Project Name from the list and based on the Project Name, the second parameters which is a "Date" parameter will give out list Months and Year in the Format 'Nov-14'.
For this Second parameter I defaulted the parameter to show First Month in the retrieved list of Months. But the problem is it will display the default Date correctly only certain times (there is a refresh problem). If i select a different project and it
has a month that was retrieved in the first project it will still show the that Month but not the actual default month (Start Month) for that particular Project.
Example: If I select Brisk from Project parameter, It will give me 18 months of Dates in the Date parameter. In that 18 month range first month is Sep-13 it will default to Sep-13 correctly. Then if I select a different project like "Creek" (example)
as Project , the Date parameter retrieves some dates corresponding to Creek Project and in the retrieved months if Date parameter has Sep-13 it will still show Sep-13 even though the
Start Date for Creek project is Jun-12.
1. Project Brisk: Defaulted correctly to Sep-13
2. Creek Project : Should default to Jul-12 but still shows Sep-13
Just for default value I created a separate dataset and used it to populate the default value and the SQL I used just for default value is as below:
SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
FROM DATE_D D
WHERE (DATE_KY = ADD_MONTHS(:PROJECT_DT, - 6))
Date parameter datatype is Date/Time,
Available Values Tab: label field is a String but the Value field and the default field (Default Values tab) are Dates
Thanks in advanceThanks Vicky for reply.
Yes you are right but I did not use First function as the query above retrieves only one date.
I used your suggestion but it did not fix it.
In this report I have three parameters.
1. Project Code (Visible)
SELECT DISTINCT PROJECT_CODE
FROM DIM.PROJECT
ORDER BY PROJECT_CODE
2. Project Date (Invisible)
SELECT
MAX(CASENA.MILESTONE
WHEN'ABCD'THENTRUNC(PROJECT_DATE,'MM')ELSENULLEND)PROJECT_DATE
FROM
DIM.PROJECTNA
WHERE(NA.PROJECT_CODE
=:PROJECT_CODE
or'ALL'=:PROJECT_CODE)
3. Start Date (Visible):
Available Values Query:
SELECT DISTINCT
--DER_DATE is "Value Field"
TRUNC(D.DATE_KY, 'MM') DER_DATE
--Display_date is "Label Field"
, TO_CHAR(D.DATE_KY, 'Mon-YY') Display_Date
FROM DATE_D D
WHERE DATE_KY BETWEEN ADD_MONTHS(:PROJECT_DATE, -6) AND ADD_MONTHS(:PROJECT_DATE, 6)
ORDER BY 1
Default Values Query:
SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
FROM DATE_D D
WHERE (DATE_KY = ADD_MONTHS(:PROJECT_DATE, - 6))
When you select a Project from "Project Code", it will give a "Project Date" and based on the "Project Date" it will give a date range in "Start Date". That is why I am using "Project Date" parameter in my
query. I even tried using Project code as you suggested but I still got the same result.
Thanks a lot for your reply. -
Hi! All,
I'am using Oracle portal
In the form wizard there is an option for using 'defalt value' for any text fiels along with 'defult value type'. I want to know how effectively I can use sql query function written by me or any sql query .And from where can I get the details about this.
till now I can only used #sysdate in the default value.Also what # denotes.
Please do help me
Thakns in advance.
Regards
Anil RathTry these:
1)Default Value = select schema_name.your_function from dual
Default Value Type = Expression that returns Date
2)Default Value = select sysdate from dual
Default Value Type = Expression that returns Date
3) #Sysdate
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Swati Kale ( ):
do you mean to say that, if my function name is returnDate and the owner of the function is xyz.
Then in defualt value,I shd give,
xyz.returnDate
and in Default value type,I shd select
Function returns date.
advise<HR></BLOCKQUOTE>
null -
Set default value for full name based on usename
I have an LOV which as the full name of the user, for example 'John Smith'.
I would like to set the value of this LOV to the full name of the user, based on a match with username. So when JSMITH is logged in, I would like the default value of the LOV to be 'John Smith'.
I have an page process anonymous block which gets the right short username:
DECLARE
p7_assigned_to varchar2(20);
BEGIN
select person_name into p7_assigned_to
from ht_people
where v('APP_USER')=flow_user;
END;
How do I then set the default value of the LOV based on the return value of this block?Where do you use the LOV? Is it being used in a Select list? If so, you will have a place to enter the default value. Edit the Select list, and you will see a place where you can enter Default value.
Ravi -
Setting up Descriptive Flexfield default value
Hi,
I have set up 3 DFFs in a form
1.one
2.two
3.three
I want to have the DFF segment 'three' to be automatically populated with the default value as ('one' + 'two')
Example:
I enter 4 in 'one' & 5 in 'two' -> this action should automatically populate 9 in the DFF segment 'three'
Is this possible?
-NagadeepYes.
you can use default type of Segment3 as Sql statement. and
default value of Segment3 as
SELECT :$FLEX$.SEGMENT1 + :$FLEX$.SEGMENT2 from dual
Thanks.
Maybe you are looking for
-
How to handle imaginary numbers in Flash
How to handle imaginary numbers in Flash ? any ideas out there please
-
How to create a workflow for e-mail adrress entered in a particular record?
HI Experts, I have to create a workflow in which a mail is triggered to the e-mail ID entered for the record type "Complaint". Like, if there is a field called as "E-mail ID of customer" in the Complaint page layout and the user creates a complaint a
-
WPG54G - Used as a wireless router?
Forgive me for this but I know next to nothing about this kind of stuff. I discovered a family member's old WPG54G wireless presentation player. I'm not sure if this is strictly a presentation player (whatever that is) or if this can be used as an ac
-
Drill down on Charts(Graphs)
Hi, I have three level hierarchies Country, State and customer for drill down Country should be shown in bar chart. When report is opend first time, this bar chart will be displayed. Now only one chart is showing for coutry. I will start drill down.
-
Elements that I add to any UML diagram, class or use case diagram, do NOT show up under the tree rooted at "UML Workspace". Why? Can't find any useful menu command that would make it work. Can anyone help? (FIrst time on community support forum.)