Activating and deactivating selection screen box.
Hi all,
In my program on selection screen there are two selection box.
Each has different function .
I want, when i use any one selection box then other one should be deactivated.
can any one me guide me in this regard.
Thanks
Chetan.
Hi,
I hope follwing code will solve your problem.
LOOP AT screen.
IF first_selection_box = 'X' AND screen-name = 'second_selection_box in upper case'.
screen-input = 0.
ENDIF.
IF second_selection_box = 'X' AND screen-name = 'first_selection_box in upper case'.
screen-input = 0.
ENDIF.
MODIFY screen.
ENDLOOP.
Reward points if the answer is helpful.
Megards,
Mukul
Similar Messages
-
Data Slice dynamic activation and deactivation for a set of users
Hi Experts,
We have requirement to manually enter the data into RTC using IP.
There are 2 sets of users --> Power Users and Normal Users.
We need to allow the normal users to enter the data only from 1st to 5 th working day of every month.
Power Users should have authorization to edit and enter the data at any time.
Can any one suggest how to set the dataslice using code.
Regards,
ShashiHi.
Please note that update of RSPLS_DS table do not affects at RUNTIME.
If you want to create dataslice that activated and deactivated within sequence run you should do the next:
1. Create exit variable that return you all working days EXCEPT 1 to 5 of each month.
2. Create dataslice in modeler on this characteristic with restriction by this exit variable.
3. This dataslice should be based on ABAP class as described [here|https://www.box.net/shared/zhirrvk859].
4. In mydataslice method enter following code (I assume you have any DSO with definition whether user is power user or not. Lets say DSO has next structure:
USER | Z_IS_POWER |
aaaa | NO
bbbb | YES
Enter the next code in mydataslice method:
SELECT Z_IS_POWER FROM YOURDSO INTO lv_POWER WHERE USER=sy-uname.
IF sy-subrc = 0. *This is SUPER USER. Allow locked data edition
e_noinput = rs_c_false.
ELSE. *This is regular user. Do not allo locked data edition
e_noinput = rs_c_true.
5. Create in modeler 2 planning sequences for activating and deactivation dataslice as described in document.
6. Each time you want to do something with locked data run first sequence for deactivation of dataslice. If super user will run it so dataslice will be deactivated, but if regular user - dataslice will lock the data.
Regards. -
What is mass activator and deactivator?
hi all,
Can anyone explain me what is mass activator and deactivator in Multi provider and in infocube?
can anyone let me know with examples.
regds
harithaHi,
When you choose <b>Mass Activator</b> a list of all objects in the system appears with their status. You can select the objects to be activated from this list and then activate them at one time.
http://help.sap.com/saphelp_nw04/helpdata/en/3b/f2a8d4fb377c47b0aa25ae9ae160d6/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/3b/f2a8d4fb377c47b0aa25ae9ae160d6/frameset.htm -
At selection-screen output and at selection-screen on
Hi Experts,
I had coded in both at selection-screen output for disabling input of certain fields and at selection-screen for validation like this:
AT SELECTION-SCREEN output.
IF p_amt = 'X'.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_AMT'.
screen-input = '1'.
WHEN 'P_TST'.
screen-input = '1'.
WHEN 'P_B4C'.
screen-input = '1'.
WHEN 'P_AFC'.
screen-input = '1'.
WHEN 'P_COM'.
screen-input = '1'.
WHEN 'P_COM1'.
screen-input = '1'.
WHEN 'P_COM2'.
screen-input = '1'.
WHEN OTHERS.
screen-input = '0'.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
IF p_amt = 'X'.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_AMT'.
screen-input = '1'.
WHEN 'P_TST'.
screen-input = '1'.
WHEN 'P_B4C'.
screen-input = '1'.
WHEN 'P_AFC'.
screen-input = '1'.
WHEN 'P_COM'.
screen-input = '1'.
WHEN 'P_COM1'.
screen-input = '1'.
WHEN 'P_COM2'.
screen-input = '1'.
WHEN OTHERS.
screen-input = '0'.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
IF p_pdf = 'X'.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_PDF'.
screen-input = '1'.
WHEN 'P_TST'.
screen-input = '1'.
WHEN 'P_PATH'.
screen-input = '1'.
WHEN OTHERS.
screen-input = '0'.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
IF p_afc = 'X'.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_TST'.
screen-input = '1'.
WHEN 'S_FID-LOW' OR 'S_FID-HIGH'.
screen-input = '0'.
WHEN 'S_ORG-LOW' OR 'S_ORG-HIGH'.
screen-input = '0'.
WHEN 'S_OFF-LOW' OR 'S_OFF-HIGH'.
screen-input = '0'.
WHEN 'S_DAT-LOW' OR 'S_DAT-HIGH'.
screen-input = '0'.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
AT selection-screen on block b5.
if p_tst is initial.
message text-016 type 'E'.
endif.
AT selection-screen on block b2.
if p_amt ne 'X' and p_pdf ne 'X'.
if s_fid is initial and s_org is initial.
message text-000 type 'E'.
endif.
if s_dat is initial.
message text-000 type 'E'.
endif.
endif.
when i comment out at selection-screen validations the input is disabled for the screen fields as set, else the validations are executed first.
Any solution for this???
Thanks in advance.AT SELECTION-SCREEN
Syntax
AT SELECTION-SCREEN selscreen_event.
Effect
This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
Note
The event blocks after AT SELECTION-SCREEN are implemented internally as procedures. Declarative statments in these event blocks create local data. -
Download and upload selection screen texts
hello,
My requirement is to upoad and download selection screen texts from one system to another..
How do download the selection screen texts from program to the application server and then upload them on another system. I am writing a bdc to carry out this process...
Please help me out with this..
Thank you,Hi,
Why don't you just transport it? If it is linked you can asked basis to set the transport part and link it. If it is not you can download the transport and import it on another system.
If you still need a program to do that. You can use SAPlink on [http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink]. SDN provided such code already just download it and implement it on both of your system then you can copy a program with selection screen.
Cheers,
Chaiphon -
How to call subscreen and provide selection screen in subscreen
Hi experts,
please anybody suggest me how to call subscreen in module pool screen and provide selection screen in that sub screen.
please tell me how to design this subscreen in module pool screen.
adevanced
thank you
regards
vijay krishnaHi,
If you need to have select-options in module pool then follow these steps:-
To implement select-options in module pool, first design two input/output fields (textboxes) for the low and high value of the field and name it as <field_name>-low and <field_name>-high.
Create a button next the high value textbox and keep its sutaible function code.
Now, to call the pop-up on this button click, we have to call the same pop-up as in standard select-options. For this we have to use the function module COMPLEX_SELECTIONS_DIALOG.
For this FM we have to pass the table name, field name and the range for the field whose range needs to fill when using the popup screen.
To pass the table name and field name details into the FM, we have to declare as:
DATA : tab TYPE rstabfield.
This structure comprises of table name and field name.
Pass these details in program as:-
u2003
*-- clear table and field details
CLEAR tab.
*-- append for range depending on the button clicked
* either for sales order or line item
CASE sy-ucomm.
WHEN 'VBELN'.
tab-tablename = 'VBAP'.
tab-fieldname = 'VBELN'.
*--To call the popup screen for the field use code:-
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = text-002 u201Ctitle text
text = ' '
signed = 'X'
search_help = v_shelp u201Csearch help if required
tab_and_field = tab u201Ctable and field name details
TABLES
range = r_vbeln u201Crange for the associated field
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
Hope this helps you.
Regards,
Tarun -
Difference between At selection-screen and At selection-screen field
I need to know the difference between
Difference between At selection-screen and At selection-screen field
Regards
ShashiHi,
AT SELECTION-SCREEN is the event triggered in the PAI of the selection screen.
AT SELECTION-SCREEN on field field_name is the event specific to the field and is triggered when u press enter in that field.
AT SELECTION-SCREEN selscreen_event.
Effect
This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
SELECTION-SCREEN FIELD SELECTION
FOR {NODE|TABLE} node [ID id].
Effect
This statement defines a node node in the structure of the logical database for field selection. If a node belongs to type T, you can use the TABLE addition instead of NODE. The statement cannot be used for type C nodes. .
If a node is defined for field selection, you can use an executable program linked to the logical database in the GET statement to control which fields in the node are to be read by the logical database. If you use the function module LDB_PROCESS, the FIELD_SELECTION parameter must be specified accordingly.
for more details check this link...
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
Regards,
Priyanka. -
Dashboard and the selection screen on same page?
Hi WAD Experts,
How do I assemble selection screen for a Web based bashboard template on the same page. In otherwords, the user wants to see the report and selection screen on same web page. Let me welcome your ideas. So that when they select for example calender year, the graphs below should change based on variable selection.
Thanks
SudhakarHi Sudhakar,
A way around this would be to employ dropdown boxes for all the chars that the users need to change filters for. This way on the top of the screen you have the different dropdown boxes and below this is your table/chart.
Hope this helps... -
Table control and a selection screen
Hi,
I have a requirement where I am supposed to be designing a screen that has a table control with fields
w/selection column label 1(non-editable) i/o field(from) i/o field(to)
w/selection column label 2(non-editable) i/o field(from) i/o field(to)
On searching the forum threads, I found related threads as to how to implement a selection screen (as the I/O fields are similar to select-options) in module pool programming. But mine requires the use of table control and a kind of selection screen embedded into it. Please guide me through this requirement.Hi
If you need to implement a table control on selection screen u need to use a tabstrip as graphic element supports the table control.
So
1 - Step: define a tabstrip with 1 tab only:
SELECTION-SCREEN BEGIN OF BLOCK 3.
SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
DEFAULT SCREEN 100.
SELECTION-SCREEN END OF BLOCK MAX.
SELECTION-SCREEN END OF BLOCK 3.
2 - Step design the subscreen (in my sample the dynrpo 100) and insert the table control there:
PROCESS BEFORE OUTPUT.
MODULE INIT_CTRL.
LOOP WITH CONTROL T_CTRL.
MODULE DISPLAY_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL T_CTRL.
MODULE UPDATE_DATA.
ENDLOOP.
In the module DISPLAY_DATA and UPDATE_DATA u need to implement the code to transfer the data from internal table to table control and from table control to internal table, in order to display and update the data.
Max -
Using LDB's in program and supressing Selection screen
Hi ,
I am using LDB in report program and dont want its corresponding selection screen but want my slection screen which i declared in program.
Experst how should i supress the LDB 's corresponding sletcion screen .
Regards
Poornimahi Surya
I am displaying a BW report(3.5 version) in my 2004 portal by specifying INFOCUBE=Z_XYZ&QUERY=Z_ABC_XYZ_001.
When I execute the iView it straight away display the results of it with out showing the selection screen. When we execute the same in BeX, we get a selection screen. Can you please advice how we can display the BW report with selection screen in the iView.
The same problem i am facing here in my scenario could share your Exp on this .
Thanks in advance
Deepika -
ITS Mobile - how to prefill and skip selection screen
Hi there,
I am struggling with requirement for ITS mobile service:
I need to fill the input fields on selection screen with values from url and automaticaly jump to the second screen.
I know this is possible with ITS as described [here|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375].
Can I use similar approach for ITS mobile? How could I parse url parameters into input fields?
If this is not possible, what are my other options?
Thanks,
IgorHi Rajashiva,
that is not an option - the ITS mobile service will be called from an external system providing some parameters in URL.
Thanks anyway,
Igor -
Click a button,a selection-screen box come out
hi experts:
when I click one button in the dialog screen,a selection screen come out,I can input the
parameters.how it come true?thanks!this can be achieved using Sub selection screen. steps are following
define screen fields and function keys.
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.
SELECTION-SCREEN FUNCTION KEY 3.
define sub screen and give it a number.
SELECTION-SCREEN BEGIN OF SCREEN 0001 AS WINDOW TITLE I000 .
SELECTION-SCREEN BEGIN OF BLOCK L001 WITH FRAME TITLE I001 .
PARAMETERS S001 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S002 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S003 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S004 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S005 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S006 AS CHECKBOX DEFAULT ' ' .
PARAMETERS S007 AS CHECKBOX DEFAULT ' ' .
SELECTION-SCREEN END OF BLOCK L001 .
in the At selection screen event give in the case statements your desired screen
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'FC01'.
IF SY-DYNNR = 1000.
CALL SELECTION-SCREEN 0001 .
ELSE.
PERFORM MARK_VARS USING 'X' 'A'.
ENDIF.
WHEN 'FC02'.
IF SY-DYNNR = 1000.
L_INTERACTIVE = RS_C_FALSE.
SSCRFIELDS-UCOMM = 'ONLI'.
ELSE.
in the At selection screen ouput even give names to your function keys (Logic may be different from what i have shown)
AT SELECTION-SCREEN OUTPUT.
IF SY-DYNNR = 1000.
MOVE 'Fld Selectn for Output' TO SSCRFIELDS-FUNCTXT_01.
MOVE 'Execute in Bckgrnd' TO SSCRFIELDS-FUNCTXT_02.
MOVE 'Execute + Debug' TO SSCRFIELDS-FUNCTXT_03.
ELSE.
MOVE 'Select all' TO SSCRFIELDS-FUNCTXT_01.
MOVE 'Deselect all' TO SSCRFIELDS-FUNCTXT_02.
MOVE 'Highlght all key figs' TO SSCRFIELDS-FUNCTXT_03.
MOVE 'Select All Characteristics' TO SSCRFIELDS-FUNCTXT_04.
MOVE 'Select All SID Fields' TO SSCRFIELDS-FUNCTXT_05.
ENDIF. -
VL10 and new selection-screen fields
Hi experts.
My requirement is to add new selection-screen field to second tab in VL10.
After analyse many topics the solution was to copy VL10 to ZVL10.
Also V50R_USEREXIT_TRANSF was copyed and there was added specific code.
Furthemore note:524424 was implemented (header in form definition in V50R_USEREXIT_TRANSF ), and the SHP_VL10_SELECT_OPTIONS was enhanced. As I understood from this stage we have selection-criteria in repeort.
The problem is that I don't know how to transfer this data to ALV.
Any tips ?
Thanks .
Daniel.hi
how did you do that. i have to add select options in coois tcode in header and operational level.but only using badi. using screen enhancement it is possible bt how to do that using bagi "workorder_infosystem"..
please help me out.. -
PUSHBUTTON and AT SELECTION-SCREEN
Hi, I don't understand why I'm not being able to catch the user command in the example below. I tried in the CASE statement sscrfields-ucomm, sscrfields, sy-comm, but none of them work. Is the problem related with displaying a message ? Or am I indeed misunderstanding the use of the USER-COMMAND assigned to the PUSHBUTTON I created ? All I want is to be able to perform any action in the AT SELECTION-SCREEN event, when the button is pushed.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 4(10) but1 USER-COMMAND c1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
but1 = 'BUTTON 1'.
AT SELECTION-SCREEN.
CASE sy-ucomm.
* CASE sscrfields-ucomm.
* CASE sscrfields.
WHEN 'c1'.
MESSAGE 'You clicked me' TYPE 'I'.
ENDCASE.
Thanks !
AvrahamHi,
Give C1 in caps
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON 4(10) but1 USER-COMMAND c1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
but1 = 'BUTTON 1'.
AT SELECTION-SCREEN.
CASE sy-ucomm.
CASE sscrfields-ucomm.
CASE sscrfields.
WHEN 'C1'.
MESSAGE 'You clicked me' TYPE 'I'.
ENDCASE.
Cheers
Kothand -
There is possible to active and deactive some buttons ?
Hey. I have code to detect what page of my flash book is active and question now: there is possible to make 4 diferent effect for one button depend on what page is active? example:
page 1 : button is red
page 2 : button is blue
page 3 :button is black
i think this is possible but cant figure out how to make thisif you have a simplebutton, you can change its color using its transform.colorTransform property:
var ct:ColorTransform=yourbutton.transform.colorTransform;
if(this.currentFrameLabel=="page 1"){
ct.color=0xff0000;
} else if(this.currentFrameLabel=="page 2"){
ct.color=0x0000ff;
} else if(this.currentFrameLabel=="page 3"){
ct.color=0x000000;
yourbutton.transform.colorTransform=ct;
Maybe you are looking for
-
I had an existing laters 3 point whatever version of Firefox and recently upgraded to Firefox 10. This new version still has the old toolbar across the top, but there is no "Firefox button" which one has to use to activate certain action such as "pri
-
Install Trial AP9 for mac not possible?
Hi, I've been trying to install Premiere Elements demo on my Mac, but run into errors at the beginning of the installation. I have tried to solve the issue by fixing permissions. Also I have rebooted my Mac and log in holding the shift key to prevent
-
Problem opening online PDF link/file
Every time I try to open a PDF link, I get an error message saying it's not opening because it's either not a supported file type or it's damaged. I have tried opening it with Google chrome and Mozilla Firefox to no avail. I also considered whether o
-
I wonder how to get the data entries one week to be uploaded into BW system
HI,SDNs Our clients requires us to get the whole data entries to be loaded into bw system fo r onw week or get the delta data number to be loaded How to deal with it? thanks and best regards
-
How to make course 'review' from LMS app?
I have package and uploaded my CP 5 lesson into LMS (SumTotal) and works as expected. I need the ablility to review the content after the first time a user views and recorded as 'Completed/Passed'. Is there a special setting is CP? I can click the re