Assign default values in selection screen of CM21
Hi experts,
Our case is that, in CM21 selection screen, default value to the field "Plant" is appeared. W are sure that it is not because of configuration settings but not able to find why it is appearing by default. Please let us know. Thanks in advance.
Dear
Please check this thread which I have posted earlier ; CM21/cm25 sorting of user defined field in table area
Want a change in lau out in CM21
Regards
JH
Similar Messages
-
Default value on Selection Screen
Hi experts,
I want to put sy-datum + 1 as a default value on selection screen.
I tried this but it didnt work. Please help me.
DATA : tarih like sy-datum.
initialization.
tarih = sy-datum + 1.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
ThanksHi,
Do it in INITIALIZATION event.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
INITIALIZATION.
h_tarih = sy-datum + 1.
In this case no need to have one more extra variable. U can directly assign to ur parameter.
In data declaration u can only default hard coded values. But not calculated values. This is because first selection screen will be triggered and later ur calculations. So at the time of selection screen is triggered ur variable dont have any value. Thats why it was not working. Change ur code to like above. It will work fine.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Jun 27, 2008 12:37 PM -
How to pass a default value in selection screen of logical database pnpce
Dear All,
Can any one tell me how to pass a default value in selection screen of logical database pnpce .
Regards
Rakesh SinghHi Rakesh,
Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
Regards,
Rahul -
Default value for selection screen field
Hi all,
I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
How can I do it?
Thanks
RahulHi Rahul,
In the INITIALIZATION event we can set the default values for selection screen fields.
INITIALIZATION.
loop at screen.
if screen-name = 'S_MATNR-LOW'.
CLEAR S_MATNR.
s_matnr-low = '1234'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr.
CLEAR S_MATNR.
s_matnr-high = '5678'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr
clear s_matnr.
endif.
endloop.
Hope it helps.
Mark if useful
Regards,
Saumya -
How to get default values on selection screen(multiple ranges)?
i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...Hi Suresh,
You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
Simply write the following code
tables : <name of the table from which the field belongs>
select-options <fieldname> for <tablename>-<fieldname>.
<fieldname>-sign = 'I'.
<fieldname>-option = 'BT'.
<fieldname>-low = '7000'.
<fieldname>-high = '8000'.
append <fieldname>..
similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
If using range replacethe select-option with the range statement.
Thanks. -
Set default value to selection screen for report
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks. -
Default value in selection screen in display mode
Hai Friends,
In my selection screen i have a parameter PA_LEVEL, this should have a default value as 10 but it should not be in the change mode. i want that to be in the display mode as in FAGLL03 ( Ledger value ).
how can i do this.
Moderator message - Please do not ask such basic questions. This can easily be answered by searching the forum.
Edited by: Rob Burbank on Apr 16, 2009 12:18 PMHi,
Use LOOP AT SCREEN...ENDLOOP. in the AT SELECTION-SCREEN OUPTUT event to disable the input field.
LOOP AT SCREEN.
IF screen-name CS 'FIELDNAME'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
Personalization and Default values in selection screen variables
Hi everyone,
I have certain questions regarding Front end part:-
1) Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
2) In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still its showing the value. We cant delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also its showing the same value.
Did anyone face such a situation before?
Eagerly waiting for a solution.....
Thanks in advanceHi Chiran,
Please try with following approach for multiple personalizations for a single user in Web templates.
While Defining Variable Choose the Option Copy personalization data from variable .
The Features of above approach is as follows.
1)It will personalize variable values for Input Variables for each user.
2)These values are saved for each variable as well as for user.
3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
So you can see the variable values in web also.Just try with this approach.
May be it will resove u r issue some extent.
Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
Thanks & Regards,
Chandu. -
Default values on selection screen of a SAP Query
Hello,
I have a selection screen which is designed in SAP Query.
How to get default values for the fields on selection screen.
Regards,
Satyahi....
you can go with following type of code..
ITS A TESTED CODE AND WILL SERVE YOUR PURPOSE
tables: sflight.
data: t_table like standard table of sflight.
select-options:
s_carrid for sflight-carrid.
parameters:
p_fldate type d.
initialization.
p_fldate = sy-datum - 7.
s_carrid-sign = 'I'.
s_carrid-option = 'BT'.
s_carrid-low = 'AA'.
s_carrid-high = 'LH'.
append s_carrid.
start-of-selection.
select carrid
connid
fldate
from sflight
into corresponding fields of table t_table
where carrid in s_carrid
and fldate < p_fldate. -
Default value in Selection-screen
Hi,
Am using Email address as a parameter on Selection-screen.
like
PARAMETERS:p_addr type AD_SMTPADR.
it works fine but problem is:
now i want to fill it by-default in selecrion-screen as login user id's email address.
how can i achieve that?
Amit.Hi,
PARAMETERS:p_addr type AD_SMTPADR.
Write the code in Initialization
INITIALIZATION.
p_addr = abc at xyz.com
Reward points if helpful. -
Default values in selection screen
hI, EXPERTS
Requirement is :
1) in selection screen input = "werERT" , output = "werERT".
normally, it will give "WERERT".
2) in selection screen input = "werert" , output = "werert".
normally, it will give "WERERT".
1) in selection screen input = "WERERT" , output = "WERERT".
normally, it will give "WERERT".
I NEED THE SAME TEXT AS IN THE INPUT SELECTION SCREEN FIELD.
THANKS AND REGARDSHello dasr,
There are 2 options for this
If u want to do it programaitcally
PARAMETERS : Smeoutpt(10) TYPE C LOWER CASE.
WRITE Smeoutpt.
If u want to do it at data element level , do it as MR.Rammohan has suggested .
But decide it according to your requirement
Note: If you do it at data element level it will be changed at all places .
Regards,
K.Sibi -
How to assign list of default value for select-option variable???
Hi every one
This is Deepak,
I want to know how to assign list of default value to select-option variable ? please any body tel me solution
for example
select-option matnr for mara-matnr default ..............and here i want to give more than 1 values that will be default value and use can choose any one at the time of input .
Thank you in advance
DeepakHi.
Check the following sample code.
REPORT ztn_test.
" It is example for list populating.
TABLES:knvp.
data: BEGIN OF itab OCCURS 10,
kunnr like knvp-kunnr,
END OF itab.
data: wa_itab like itab.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: s_kunnr(20) type c as LISTBOX VISIBLE LENGTH 40 .
AT SELECTION-SCREEN OUTPUT.
SELECT kunnr from knvp into CORRESPONDING FIELDS OF TABLE itab WHERE parvw = 'SP'. " SP for ur requirement
" I have used loop to populate some values from table
loop at itab into wa_itab.
name = 'S_KUNNR'.
value-key = sy-tabix.
value-text = wa_itab-kunnr.
append value to list.
clear wa_itab.
endloop.
" If u want individaully assign the values change the code as
name = 'S_KUNNR'." Select option name
value-key = 1." Index
value-text = 'VAL1'.
append value to list.
name = 'S_KUNNR'." Select option name
value-key = 2." Index
value-text = 'VAL2'.
append value to list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = name
values = list.
Edited by: tahir naqqash on Feb 21, 2009 4:38 PM -
Set of default values for Select-Options
Hi Gurus,
I have a requirement where I need to set default values for select options
ex: SELECT-OPTIONS: S_MTART FOR MARA-MTART
default values must be ERSA - HIBE- FHMI - DIEN - GEST
Please tell me how to do it.
Effective replies will be rewarded with full points
KarthikHi,
For each SELECT-OPTION, you can only specify one DEFAULT.
You must specify the default value g in its internal format, e.g. "SELECT-OPTIONS DATE FOR SY-DATUM DEFAULT '19931224'", not "... DEFAULT '24.12.1993'".
The default value g should normally be a literal because, at runtime when you use SUBMIT, it is transferred to the selection options table sel so early that no value can be assigned to the field g. System fields like SY-DATUM are an exception here because the system usually assigns values to them as soon as the report processing starts.
When you use user-defined selection screens in your programs that you do not call using SUBMIT, the DEFAULT value is transfered when the selection screen is first called. In this case, therefore, you can use other fields g.
regards,
sowjanya
Message was edited by: sowjanya suggula -
How to set default value in select option for ABAP query
Hi experts,
What is the way to set up default values for select-options in ABAP query.
e.g.
I have one field 'Year' in my ABAP query selection screen.
I want value of current year to be appeared here whenever user execute report
Thanks in Advance
-HarkamalHi Harkamal,
execute your Query via SQ01. On Selection-Screen
goto save Variant. Mark your field
as selection variable an press Button election variable.
Take variable from TVARV and use it.
Than save the Variant.
Look at TVARV if the 'Year' is updated to the actualYear!
regards, Dieter -
Problem in getting parameter value from selection screen in web dynpro abap
Hi,
I am facing problem in getting parameter value from selection screen.
Please find my code below:
DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
<FS_OBJ_USAGE> TYPE REF TO data.
WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
CASE <FS_PAR_ITEM>-M_ID.
WHEN `OBJ_USAGE`.
ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.
[ Here, sy-subrc is 4, <FS_OBJ_USAGE> is not assigning.]
ENDCASE.
ENDLOOP.
So, can any one solve this problem.
Thanks in advance,
RadhikaHi Radhika,
Try using GET_RANGE_TABLE_OF_SEL_FIELD...
Please Refer below code..
DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: RT_CARRID TYPE REF TO DATA.
DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
DATA: WSFLIGHT TYPE SFLIGHT.
FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
Retrieve the data from the select option
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
Assign it to a field symbol
ASSIGN RT_CARRID->* TO <FS_CARRID>.
CLEAR ISFLIGHT. REFRESH ISFLIGHT.
SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
WHERE CARRID IN <FS_CARRID>.
NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
Thanks,
Regards,
Kiran
Maybe you are looking for
-
Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help
-
Hi, Can you explain the import PO Process cycle from PO to Payment i.e ME21 to MIRO, as in imort PO we have to make payment to deiffernt vendor like acutal vendor from where we are purchasing the material, then custom , then courier charges, insuranc
-
Struts2 annotation - validation for spaces to be allowed in name
I am using annotations for validations in my struts2 based application. I want to allow the spaces between company name to user. I was trying following expressions but these are not working... Please let me know what symbol should I use in expression
-
New ipod - prolem with upgradin to 8.0 and hebrew,,
hello all i'm using the itunes for a long time and erevytime that i upgraded it it worked great. i now have itunes 7.7 and i wanted to upgrade it to 8.0 i downloaded the program and when i istall it an error message apper ..it says: "there is a probl
-
Hello, I have a issue with adding used DCs. I have one external library DC...say "extlib" This has all the jar files required. I have one Portal standalone DC...say "portaldc1" This portal dc has java classes in the src.API package. These classes req