Fixed value on selection screen
Hi Group,
Curious how I can create a fixed value on the selection screen. Either a parameter or selection option that appears on selection screen of a report, but a user is not able to change the value.
For example, if I want to default the chart of accounts to 'CAUS' and not allow it to be changed, is there an extension I can use here:
PARAMETERS: p_ktopl TYPE ktopl OBLIGATORY DEFAULT 'CAUS'.
I just want these fields on the screen for informational purposes, although I do use some of the selection ranges later in the code.
Thanks!
Chris
here is ur solution
PARAMETERS: p_ktopl TYPE ktopl OBLIGATORY DEFAULT 'CAUS'.
at selection-screen output.
loop at screen.
if screen-name = 'P_KTOPL'.
screen-required = 1.
screen-input = 0.
modify screen.
endif.
endloop.
do reward
Edited by: Ashish Paliwal on Apr 3, 2008 8:26 PM
Similar Messages
-
How to refresh value in selection screen field
Hi Experts,
I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
Thanks.Hi,
That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
cheers
Janis -
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 -
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 -
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 put values from selection screen to ztable
hi all,
i have created a ztable.
now i want to put data through se38.
i have given 5 parameters in selection screen same as there in ztable.
now if i put values in selection screen then it should put that values to my ztable .
how can i put values into my ztable.
i used insert but not workiing.Hi,
Try this.
TABLES : ztable.
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
PARAMETER : p_field1 TYPE field1_in_ztable,
p_field2 TYPE field2_in_ztable.
p_field3 TYPE field3_in_ztable.
p_field4 TYPE field4_in_ztable.
p_field5 TYPE field5_in_ztable.
SELECTION-SCREEN:END OF BLOCK b1.
DATA : itab TYPE TABLE ztable,
wa_itab TYPE ztable.
AT SELECTION-SCREEN.
MOVE p_field1 TO wa_itab-field1.
MOVE p_field2 TO wa_itab-field2.
MOVE p_field3 TO wa_itab-field3.
MOVE p_field4 TO wa_itab-field4.
MOVE p_field5 TO wa_itab-field5.
INSERT ztable FROM wa_itab.
IF sy-subrc = 0.
MESSAGE 'Successfully saved' TYPE 'I'.
ENDIF.
Thanks,
Sri.
Edited by: Sri on Jul 28, 2009 4:15 PM -
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 -
Populate values at selection screen
Hi All,
My requirement is:
There are 2 radio buttons and 2 parameter fields.
By default, one radio button is selected and the two fields are populated with some values at the selection screen.
If the other radio button is selected, we need to pass different values to the two parameter fields.
Can you please suggest me how to populate values at selection screen.
I have tried populating them using AT SELECTION SCREEN OUTPUT, but didn't work.
Any pointers are helpful.
Thanks & Regards
GowthamiHi Gowthami,
Try it this way:
PARAMETERS:
R1 RADIOBUTTON group rad USER-COMMAND ABC default 'X',
R2 RADIOBUTTON group rad.
Parameters:
char1(10) type c,
char2(10) type c.
Initialization.
char1 = 'radio1'.
char2 = 'radio1'.
At Selection-screen output.
if r2 = 'X'.
* loop at screen.
char1 = 'radio2'.
char2 = 'radio2'.
* modify screen.
* endloop.
elseif r1 = 'X'.
* loop at screen.
char1 = 'radio1'.
char2 = 'radio1'.
* modify screen.
* endloop.
endif.
With luck,
Pritam.
Edited by: Pritam Ghosh on Feb 24, 2009 11:54 AM -
Passing the values from selection screen to screen painter
Hello Friends,
I'm making one report program in which im calling one screen which i have designed, in my selection screen there is a select option for customer tht accepts value range now i want to select all the customers entered in select options and pass these values in screen(screen painter).
pls guide me how this can be done.
Regards,
SunnyScreen painter is a tool in ABAP dev workbench used to create the screens using the
T-code SE51. In the screen painter, you can define the following interface elements with their associated attributes.
1. Input/Output Fields
2. Field Names
3. Checkboxes
4. Radio Buttons
5. Group Boxes
6. Sub screens.
7. Pushbuttons with No Fixed Position
Create a Z program in tcode SE38.
Go to transaction SE51.
Enter the created program name and screen number.
Click on flowlogic tab.
Uncomment the statement u201C MODULE STATUS_0100 u201C.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'DISPLAY'.
SELECT SINGLE Fileds to selsct
INTO (interanl table or tablename-fileds)
WHERE Condition. WHEN 'CLEAR'.
CLEAR table.
ENDCASE.
ENDMODULE. -
Unable to retreive values from selection screen built using WDR_SELEC_OPTIO
Hi All,
I have created a selection screen as below
lr_field = wd_this->m_handler->create_range_table( 'YFMTFLOW' ).
* ASSIGN lr_field->* TO <fs_range>.
* ls_date-sign = 'I'.
* ls_date-option = 'EQ'.
* ls_date-low = 'US'.
* APPEND ls_date TO <fs_range>.
* Add the select-option to the group
wd_this->m_handler->add_selection_field(
i_id = 'FLOW'
i_within_block = 'PROC'
i_no_intervals = abap_true
it_result = lr_field ).
If i enter some value and click a button to retireve the values as below
DATA
lt_sel_item TYPE if_wd_select_options=>tt_selection_screen_item.
types: ty_flow type range of yfmtflow.
FIELD-SYMBOLS:
<fs_sel_item> LIKE LINE OF lt_sel_item,
<fs_process> TYPE yfmtprocess,
<fs_flow> TYPE ty_flow.
* Get the selection-screen items
l_handler->get_selection_screen_items(
IMPORTING et_selection_screen_items = lt_sel_item ).
* Retrieve the values from the select-options items
LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
CASE <fs_sel_item>-m_id.
WHEN `PROCESS`.
ASSIGN <fs_sel_item>-m_value->* TO <fs_process>.
WHEN 'FLOW'.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_flow>.
ENDCASE.
ENDLOOP.
<fs_flow> is empty
but after I enter value and then press enter and then click the button to retrieve the values I am able to get low value <fs_flow> not the sign and option
Is it the standard functionality ,if yes how can we overcome
Thanks
Bala DuvvuriAm giving clear coding of select options.
nOTE: S_CARR_ID IS THE DATA ELEMENT OF CARR ID FIELD,
FOR THAT I AM APPLYING SELECT OPTIONS IN BELOW CODING.
WRITE THE BELOW CODE IN WDDOINT( ) METHOD OF
REQUIRED VIEW
Data: lt_range_table type ref to data,
read_only type abap_bool.
WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS-
>WD_CPIFC_SELECT_OPTIONS( ).
WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS-
>INIT_SELECT_SCREEN( ).
WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
LT_RANGE_TABLE = WD_THIS->M_HANDLER-
>CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'S_CARR_ID'
IT_RESULT = LT_RANGE_TABLE
I_READ_ONLY = READ_ONLY ).
BELOW CODE IN REQUIRED ACTION( SAY IN SOME BUTTON
ACTION WHICH WILL RETRIEVE THE DATA FROM DATABASE TABLE
USING SELECTI OPTIONS VALUES)
fIRST THE GET REFERENCE TO NODE( CTRL F7--->READ
CONTEXTB---FLIGHT NODE )
***THEN BELOW CODE
DATA: RT_CARRID TYPE REF TO DATA.
DATA:IS_FLIGHT TYPE TABLE OF SFLIGHT.
FIELD_SYMBOLS: <FS_CARRID> TYPE TABLE.
RT_CARRID = WD_THIS-> M_HANDLER-
>GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
ASSIGN RT_CARRID-> TO <FS_CARRID>.*
SELECT * INTO CORRRESPONDING FIELDS OF TABLE IS_FLIGHT
FROM SFLIGHT WHERE CARRID IN <FS_CARRID>
NODE_FLIGHT->BIND_TABLE( IS_FLIGHT ). -
How to add default value to the Exclude single value in selection screen..
Hi Experts,
i have searched in sdn, but not able to get proper results,
in my report i have a selection screen, in that there is a Select-option like status, for this status i need to exclude '02'
for this i need to add the default value under exclude singale values option, not in lower and upper limit.
can anyone help me...
Regards,
Sudha.
Moderator message: please search for available information/documentation before asking, don't just claim you did.
Edited by: Thomas Zloch on Oct 27, 2010 2:50 PMHi,
you can use the function module SELECT_OPTIONS_RESTRICT .
This function module simplifies the handling of SELECT-OPTIONS on the selection screen by restricting possible selection options and signs.
By calling this function module, you can restrict the number of selectio options available for the chosen selection field. You can also disable the function allowing users to enter values to be excluded from the selection (SIGN = 'E').
Regards,
S.Velsankar -
F4 help values in selection screen
Hi,
We have a requirement in our project where the client wants to see sorted values for an info-object when he sees the F4 help for it in the selection screen of a query executed on web.
Is there any way we can show sorted values??
Waiting for replies..Thanks in advance.Hello Bhavisha,
try to set up the data provider specific setting. You can found it in the data provider dimensions on every characteristic (right mouse click). Here you can choose the display type (key or text or both or ...)
If you choose key, key will be sorted. If you choose text, text should be sorted.
Buy,
André -
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. -
Multiple values in selection screen
Hi all,
I have this program with a selection screen. I used the select-options keyword for the vendor(lifnr).
The output is fine if I give a 'from' and a 'to' value but if I select the dynamic selections icon for the vendor in the selction screen and give multiple values, its not working.
Can u pls help?Hi Sushma,
I doubt you are giving EQ in place of IN in Select statement.
Ex : Select * from LFA1 where lifnr IN S_LIFNR.
AND not Select * from LFA1 where lifnr EQ S_LIFNR.
Regards,
Leo -
Creating F4 help with customized values in selection screen
Hi Dear friends
In my report i have two input flds at selection screen i.e. sales order no and date description.Now based on sales order no the F4 help in the fld date description should change dynamically.eg. if there are two sales document number 001 and 002 and the corresponding date description for 001 are 123 and 234 and for 002 are 987 and 876 .Then if i select 001 the F4 help in date description should contain 123,234 and for 002 it should contain 987,876 before pressing the execute button.How to achieve this. Plz help me. i tried to use AT-SELECTION SCREEN ON VALUE REQUEST event but its not giving any out put as in the SELECT query i putted a WHERE condition where sales document of the database table equals to the sales order inserted in the selection screen. But when i debugg the input sales order parameter shows blank.Try this way
REPORT ZVENKAT_F4_FOR_PARAMETERS MESSAGE-ID zmsg .
TYPES:
BEGIN OF t_t001w,
werks TYPE t001w-werks,
name1 TYPE t001w-name1,
END OF t_t001w,
t_return_tab TYPE ddshretval.
DATA:
w_t001w TYPE t_t001w,
w_return_tab TYPE t_return_tab.
DATA:
i_t001w TYPE STANDARD TABLE OF t_t001w,
i_return_tab TYPE STANDARD TABLE OF t_return_tab.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS :p_werks TYPE t001w-werks,
p_name1 TYPE t001w-name1.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
PERFORM f4_help_for_palant.
*& Form f4_help_for_palant
FORM f4_help_for_palant.
DATA:
w_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
IF i_t001w[] IS INITIAL.
SELECT werks name1
FROM t001w
INTO TABLE i_t001w.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'WERKS'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_WERKS'
value_org = 'S'
TABLES
value_tab = i_t001w
return_tab = i_return_tab.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE i_return_tab INTO w_return_tab INDEX 1.
p_werks = w_return_tab-fieldval.
READ TABLE i_t001w INTO w_t001w WITH KEY werks = p_werks.
IF sy-subrc = 0.
w_dynpfields-fieldname = 'P_NAME1'.
w_dynpfields-fieldvalue = w_t001w-name1.
APPEND w_dynpfields TO i_dynpfields.
CLEAR w_dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields.
ENDIF.
ENDFORM. " f4_help_for_palant
Thanks
Venkat.O
Maybe you are looking for
-
Hello, all. I have a client who would like to have the ability to change the order in which sub navigation items appear on their site. I've got it to the point where if the SO is changed in the database, that change is reflected on the site. But curr
-
Does iCloud Drive add to the "clutter" of ads I get when going to most websites? Does "iCloud Drive" essentially mean "a sharable (if I choose to do so) storage facility accessed through the WEB rather than a hard drive resident on my desktop or lap
-
What is the use of Inner class.?
hello everyone......... I want toknow that what is the use of Inner class...?
-
I began the set up of my iPhone5, but now can't see the usual iTunes page for iPhone. How can I get it back and find my phone? iPhone is still connected, iTunes open and online.... apps are downloading ever so slowly.....nearly three hours now!
-
Hi, I am able to show the LOV and the description, but the parameter will be like this state code state name MD Maryland SELECT ... From ... WHERE state_code = 'MD Maryland' Is there any way to display the LOV with description, but only the selected