AT SLECTION-SCREEN
HI
what is the difference between AT SELECTION-SCREEN and AT SELECTION-SCREEN-OUTPUT.
PBO + AT SELECTION SCREEN = AT SELECTION SCREEN OUTPUT?
like based on 1st screen validations 2nd screen has to enable or disable.
This simple program says all..
TABLES: MKPF.
DATA: ITAB LIKE STANDARD TABLE OF MSEG.
PARAMETERS: P_MBLNR LIKE MKPF-MBLNR,
P_DATE LIKE MKPF-CPUDT.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME EQ 'P_MBLNR'.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN.
SELECT SINGLE * FROM MKPF WHERE MBLNR EQ P_MBLNR.
IF SY-SUBRC NE 0.
MESSAGE 'Not exists' TYPE 'E'.
ENDIF.
Similar Messages
-
How to slection screen fields in output of the report by using alv classe
hi all,
i want to get all the fields in the selection screen to be displayed in the output layout.i am developing report by using alv grid classes can any one help me.
answers are rewardedHello
u first place some dictionary input/output fields in your screen and
below that u place ur custom control,
so what ever input u are giving in those fields , u seelct data accordingly,
for example.
in screen there is one icon 'dictionary/program fields, click that and give some table , suppose u want to extract data from kna1 table using kunnr, select kunnr and press enter, then along withn cursor u get one frame, take that on to screen and place it ,
now in the program write
tables: kna1.
select * from kna1 into it_kna1 where kunnr = kna1-kunnr.
now u get the data into it_kna1.
it will work , try this.
bye. -
Hi Experts,
Could any one provide me the material for selection screen validations
Ex: In selection Initial screen, I have 2 radio buttons. Based on selecting the radio button, the input selection screen should be displayed below the radio buttons?
like these provide me diff examples and also provide me the materials for these
Thanks,
SanjuHi Sanjana,
U can use the AT SELECTION-SCREEN event to do the necessary validation and checks..so in your case if a particular is mandatory for rd1 and not for rd2..in that case please take out the obligatory clause from the parameter and do the validation in the above event..basically if rd1 is selected and the particular parameter is blank ..display an error message.
check this sample code.
REPORT ztest.
TABLES: mara,vbak.
PARAMETERS: r_m RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ABC,
r_s RADIOBUTTON GROUP g1.
parameters: p_matnr like mara-matnr,
p_vbeln like vbak-vbeln.
AT SELECTION-SCREEN OUTPUT.
IF r_m = 'X'.
LOOP AT SCREEN.
IF screen-name = 'P_VBELN'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'P_MATNR'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN.
<b> IF sy-ucomm = 'ONLI'.</b>
IF r_m = 'X'.
IF P_matnr IS INITIAL.
MESSAGE e000(zz) WITH 'error'.
ENDIF.
ENDIF.
ENDIF.
Regards,
Priyanka.<b></b> -
How to remove list of Fields in slection screen instandard program RFITEMAP
HI frnds,
i want change the standard program (RFITEMAP) to Z program
The Requirement is to remove the " selection using search help" block in the selection screen actually this selection screen was designed using LDB's. I don't know LDB concept...
when i had check the code in the standard program i didn't find any block regarding "selection using search help" after executing the report, it is showing above block.
please help me above issue........
Regards
Venkat BodduTry changing the logic in form
form wl_modify_screen.
if gd_wl_on is initial.
worklist off -> hide worklist layout:
if screen-group1 = 'WKL'.
screen-active = 0.
screen-invisible = 1.
endif.
else.
Comment this whole part
worklist on -> hide LDB layout:
if screen-group2 = 'DBS'.
screen-active = 0.
screen-invisible = 1.
endif.
endif.
endform. -
Regarding slection-screen problem
Hi,
I have one requirement in selection-screen.if I enter the period from 04 to 03 with fiscal year from 2006 to 2007 as in put parameters in selection-screen, getting error message as 'From period is greater than To period'.
Can any body please respond to my question..
Regards,
Suresh Kumar.Say you have the selection fields
SELECTION-SCREEN BEGIN OF BLOCK block
[WITH FRAME [TITLE title]]
[NO INTERVALS].
parameters: per1 fiscyr1 per2 fiscyr2
SELECTION-SCREEN END OF BLOCK block.
SELECTION-SCREEN END OF BLOCK block.
AT SELECTION SCREEN ON BLOCK block.
data: num1 type n, num2 type n.
CONCATENATE fiscyr1 per1 into num1.
CONCATENATE fiscyr1 per1 into num2.
if num1 > num2.
message: from period greater than to period
endif. -
Submit a program but I donu00B4t want to see the slection screen of this progra
Hi expert.
I have a problem. I am calling a program B from another program A using a SUBMIT statment. I am passing the parameters of the selection screen of the program B with the instruction VIA SELECTION SCREEN. The problem is that the program B shows a informatin message anf the selection screen appears; and i don´t weant this, I don´want that the selection screen apeear. Spme body can say me how can I make this??
ThanksHello,
If you use VIA SELECTION-SCREEN the screen will be showed, try using USING SELECTION-SCREEN.
*... VIA SELECTION-SCREEN *
Effect
If this addition is specified, the selection screen is displayed on the screen. Otherwise, background selection screen processing takes place. In background selection screen processing, the selection screen events are triggered without the selection screen being displayed
*... USING SELECTION-SCREEN dynnr *
Effect
This addition specifies which selection screen is called. dynnr is a data object that must contain the screen number of a selection screen defined in the called program when the SUBMIT statement is called.
If the addition USING SELECTION-SCREEN is omitted or the screen number 1000 is entered, the standard selection screen is called. If no standard selection screen is defined in the called program, no selection screen is called.
If a screen number that is not 1000 is entered in the addition USING SELECTION-SCREEN, the corresponding independent selection screen is called. If no selection screen with this screen number is defined in the called program, this leads to an untreatable exception.
Example:
The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
Program accessed
REPORT report1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards. -
How can i decalre a varient in my slection screen
I am having 5 selection screen fields for these haow can I declare a varient
Hi ,
Other way is
Enter Required fields and
Goto->Variants->Save as Variant
Thanks,
Jayshree -
Automatic garbage values populating in variable slection screen
Hi All,
There is certain query which is being accessed on a daily basis by users. Now the situation is when 2 specific users are executing the query, first the variable selection screen appears but is it already populated with huge number of junk values in Company code field.
How can i remove the values from appearing? There are no default values maintained for that comapny code variable.
Please help!
Thanks
SayanHello,
CHeck the variable used for restriction in QD, whether it is of type authorization.
If so create one more variable of type manual input with option ready for input and include it along with the existing variable. Also in the authorization variable make it not ready for input.
It should take care of your issue.
Regards,
Shashank -
How to create radio button between two slection screen
hello all.
could you please guide me how to create radio button between two SELECTION-SCREEN in screen painter.
Thank you,
srinivashi
SEE THIS CODE
REPORT ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
******DATA DECLARATIONS**********
DATA : BEGIN OF IT_PLANT OCCURS 0,
MATNR LIKE MARA-MATNR,
WERKS LIKE MARC-WERKS,
PSTAT LIKE MARC-PSTAT,
EKGRP LIKE MARC-EKGRP,
END OF IT_PLANT.
DATA : BEGIN OF IT_PONO OCCURS 0,
EBELN LIKE EKKO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
END OF IT_PONO.
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R4 RADIOBUTTON GROUP G2.
SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
<b>rEWARD IF USEFULL</b> -
Header to display for different selection on the slection screen
hi experts.
i want to display the header in the output report for each time the radiobutton changes.there are 3different choices available in which header text changes.it includes the system time and fdate to be displayed of execution.
plz guide.Hi
go to se80.
create 3 different gui titles .
using an if condition for radio buttons,
call gui title before calling ALV .
reg
Ramya
Edited by: Ramya S on Jan 2, 2009 9:10 AM
or
u can use top of list and inclue it in the events of ALV .
Example :
END-OF-SELECTION.
*Build events
PERFORM build_events.
*Build ALV
PERFORM build_alv.
FORM build_events .
DATA: ls_event TYPE slis_alv_event.
ls_event-name = slis_ev_top_of_list.
ls_event-form = 'TOP_OF_LIST'.
APPEND ls_event TO gt_events.
CLEAR ls_event.
ENDFORM.
FORM top_of_list .
WRITE : text-t01 .
(here u can concatenate system time , date , etc) or use an if condition for displaying various options according to radio buttons.
ENDFORM .
reg
Ramya
Edited by: Ramya S on Jan 2, 2009 9:13 AM -
Cascading filter in variable input slection screen
Hi All,
I have a Query with three variables for Company code , WBS element, Plant.
all three variable are manual entry. Now my requirement is if I Input a company code value for example 9008 it should display only 9008 related WBS Elements in F4 selection of WBS Element variable. Same for plant .
Example :
company code value : 9008
WBS Element F4 Values : it sould display only 9008 related WBS Elements which exists in cube not all master data values.
Plant F4 Values: Once after we select WBS Element it should display only relevant plant values in F4(i.e. 9008 and selected wbs element related plant values which exists in InfoCube )
can we achive this?
regards,
mhreddyHi,
You may refer following document to use filter settings effectively.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20ecb78c-374a-2d10-c6af-f024f19b785d?quicklink=index&overridelayout=true
I guess your requirement can not be fulfileld completely through ABAP as well.
Thanks,
S -
How to create a variant for a selection screen button
hi ,
i have created a selection screen for a normal report .
In the selection screen there is one button after the selct option for company code. when user enters some company code and presses the button the user i call a able contraol in which user gives some additional values for the comapny code.
how do i create variant. when i create varaint for the slection screen it does not take into account the other screen i called .
so every time user has to click that button and enter some values and execute. please suggest some way.
THANKX IN ADAVANCE:)Hi,
Inorder to create a variant for selection screen report, you need to enter valid data on the screen and click on the SAVE button which is available in the Menu.
And regarding the button you were asking about after select option, it is not created manually it comes automatically,, you can remove this by mentioning no-extension after the select-option. You can get clear information of this if you do F1 help on select-option.
My advice to you, make effect use of F1 help.
Edited by: Madhuri on Sep 23, 2008 4:46 PM -
How to replace the existing selection screen with new selection screen
Hi,
I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
Can anybody guide me, How to do replace one slection screen with different selection screen.
and one imp thing is this selction screen is populating with dynamic fields on it.
Regards,
MrunalAs I can understand you want to make some of the screen field to disable or visible on screen depending upon the interaction of user with screen 1.
You may use this example code in PBO of screen 2.
LOOP AT SCREEN.
" action has been taken to modify the area office screen as per the option chosen at screen 99.
CASE ACTION.
" if the user has taken up the option of UPLOAD
WHEN 'UP'. " screen processing while we upload the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'DN'. " screen processing while we upload the approved plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'VW'. " screen processing while we view the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
" and hide the file input field
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDCASE.
ENDLOOP. -
Adding a new field to selection screen -Effect on variant
Hello,
If we add a new (non obligatory) field to a slection screen, is there any impact on existing variants? Does SAP regenerate each variant when the screen change transport get applied? We had a DB lock jam situation in our PRD system for VARI table and the previous day some program changes with a added selection screen parameter ( a check box) had moved).
Regards,
Hari.Adding a field to the selection screen shouldn't affect existing variants (but the field will be blank for all variants). However, if there is a problem, you should be able to retrieve variants with program RSVARDOC_610.
Rob -
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
Maybe you are looking for
-
When I recently switched on my computer a BIOS gave me this message: A Hyper Transport sync flood occured on last boot. Press F1 to Resume It sounds a little .. terrifying and i really don't like the world flood. I have: K9N Platinum 601-7250-020...,
-
Hi Folks, I Have Encountered A Strange Warning Message In SLIN With The Field AUSP-ATWRT. " The field "ATWRT" used in the WHERE condition may contain NULL values. Internal Message Code: MESSAGE GYT (The message cannot be hidden using pse
-
Is there any trick to connect the macbook air to a vga projector? (I have the Apple right cable). I'm a professor in Brazil and just starting using the macbook air...
-
I want to call a BAPI using web Dynpro. In my case, the BAPI without input parameter, it only give out a out table after execute. So that I include this Bapi in the model and directly call it in wdDoInit like this : wdContext.nodeZbapi_Outven
-
Syntax for calling Stored procedures?
Seems straightforward but I just can get the syntax. Here's the procedure defined in SQL CREATE Procedure usp_InsTest @title varchar(150), @length int, @catid int, @date datetime, @filename varchar(50), @typeid int, @desc varchar(2000), @statusid int