Dynamic text changes in selection screen
i want to change the title of block into a selection screen after clicking radio button .the changes will be done dynamically.
Hi Pravik,
try this code:
selection-screen : begin of block b1 with frame title text-034.
selection-screen begin of line.
parameter : r_mas_dl radiobutton group r user-command btn default 'X'.
selection-screen comment 3(50) text-060.
selection-screen end of line.
selection-screen begin of line.
parameter: r_new_dl radiobutton group r.
selection-screen comment 3(50) text-058.
selection-screen end of line.
selection-screen begin of line.
parameter: r_chn_d1 radiobutton group r.
selection-screen comment 3(50) text-059.
selection-screen end of line.
selection-screen skip 3.
parameter p_file type rlgrap-filename modif id a.
select-options: s_sernr for risa0-sernr modif id b no-extension no intervals.
selection-screen : end of block b1 .
at selection-screen output.
if r_mas_dl = c_x. " For the first Radio button
set titlebar 'MAS' with text-041. " Header Text1.
loop at screen.
if screen-group1 = c_a.
* CLEAR p_file.
if screen-name = text-052. "'P_FILE'.
screen-invisible = 0.
screen-input = 1.
endif.
endif.
if screen-group1 = c_b.
screen-invisible = 1.
screen-input = 0.
endif.
if screen-group1 = c_c.
screen-invisible = 1.
screen-input = 0.
endif.
modify screen.
endloop.
elseif r_new_dl = c_x. " For the second radio button
clear p_file.
set titlebar 'SIN' with text-058. " Header Text2
loop at screen.
if screen-group1 = c_a.
clear s_sernr.
screen-input = 0.
screen-invisible = 1.
endif.
if screen-group1 = c_b.
screen-input = 1.
screen-invisible = 0.
endif.
if screen-group1 = c_c.
screen-invisible = 1.
screen-input = 0.
endif.
modify screen.
endloop.
elseif r_chn_d1 = c_x. " For the third radion button.
clear p_file.
set titlebar 'CHG' with text-059. " Header Text3.
loop at screen.
if screen-group1 = c_a.
clear s_sernr.
screen-input = 0.
screen-invisible = 1.
endif.
if screen-group1 = c_b.
screen-input = 0.
screen-invisible = 1.
endif.
if screen-group1 = c_c.
screen-invisible = 0.
screen-input = 1.
endif.
modify screen.
endloop.
endif.
hope it helps.
Similar Messages
-
How to display the dynamic text in the selection screen
Hi All,
I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
EX: If i have the date of today 31st it has to show message like " today date is 31 like some thing " when i execute the report .
Could any one face this sort of requirment, Please let me know.
Thanks in advance.
Reagrds,
BharaniWhere would you like this dynamic text being displayed? As an "message" or in some parameter field?
If first
parameters date type d.
data: text type string.
at selection-screen.
concatenate 'Today is' date into text.
message text type 'I'.
If second
parameters pa_text type c length 50.
at selection-screen on date.
if date is not initial.
concatenate 'Today is' date into pa_text.
enidf.
at selection-screen output.
"show it as read only
loop at screen.
if screen-name = 'PA_TEXT'.
screen-input = abap_false.
modify screen.
endif.
endloop.
Regards
Marcin -
Change of variable text in BEx selection screen
Hi all,
in our BW system the key users are allowed to create queries and also create variables. In some cases, especially for often used info objects like 0DATE the number of variables is increasing very quickly. The reason for this is, that 0DATE is used for a big variety of meanings e.g. delivery date, order date, invoice date etc.
So the users always create new variables only to have a meaningful description in the BEx selection screen, because they do not want only "date" to be displayed here. As result we have many different varianbles with exactly the same technical settings with only different names.
So my question is: Is it possible to change the diplayed text in the selection screen for each query without having to create a new variable?
Thanek you and best regardsHi Stephan,
Changing the diplayed text in the selection screen for each query is not possible.You have to create a new variable for each query.
Rgds,
Murali -
Dynamic selection screen change in Selection Screen.
Hi Experts,
I am not getting dynamic screen change on selection screen. can you give solution for the following scenario.
I have 3 radio buttons on selection screen. Example: R1, R2, R3.
I have 5 fields on selection screen. Example : F1, F2, F3, F4, F5.
When i select radio button 1 i will get F1 field screen only.
When i select radio button 2 or 3 i will get F2 and F3 fields screen only.
When i select radio button 3 i will get F4 and F5 fields screen only.
Any one give me solution for the above scenario very much thankful.
Thanks in advance,
SaiHi
try this code,
REPORT ZTEST_3RB.
TABLES : KNA1,EKKO,VBRK.
PARAMETERS : SALES RADIOBUTTON GROUP VIJJ USER-COMMAND VJY ,
PUR RADIOBUTTON GROUP VIJJ ,
BILL RADIOBUTTON GROUP VIJJ ,
TOTAL AS CHECKBOX.
SELECT-OPTIONS : S_CUSTNO FOR KNA1-KUNNR MODIF ID AKP DEFAULT 1000 TO 1033,
S_PONO FOR EKKO-EBELN MODIF ID VKP,
S_BNO FOR VBRK-VBELN MODIF ID PKP.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SALES = 'X'.
IF SCREEN-GROUP1 = 'VKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'PKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSEIF PUR = 'X'.
IF SCREEN-GROUP1 = 'PKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'AKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ELSEIF BILL = 'X'.
IF SCREEN-GROUP1 = 'AKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'VKP'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
i think this will help your problem,
Regards,
Vijay -
Changing the selection screen based on the option in list box option
Hi Experts,
I have a list box parameter in my selection screen,
i have four options and i am changing my selection screen based the option selected.
see my code below,
at selection-screen output.
GS_VRM_VALUES-KEY = '1'.
GS_VRM_VALUES-TEXT = TEXT-S02.
APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
GS_VRM_VALUES-KEY = '2'.
GS_VRM_VALUES-TEXT = TEXT-S03.
APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
GS_VRM_VALUES-KEY = '3'.
GS_VRM_VALUES-TEXT = TEXT-S04.
APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
GS_VRM_VALUES-KEY = '4'.
GS_VRM_VALUES-TEXT = TEXT-S05.
APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
CLEAR: GS_VRM_VALUES.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'P_DROP'
VALUES = GT_VRM_VALUES
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT SCREEN .
CASE P_DROP .
WHEN '1'.
IF SCREEN-GROUP1 = 'M2' OR
SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
WHEN '2'.
IF SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
WHEN '3'.
IF SCREEN-GROUP1 = 'M2' OR
SCREEN-GROUP1 = 'M4' .
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
WHEN '4'.
IF SCREEN-GROUP1 = 'M2' OR
SCREEN-GROUP1 = 'M3'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
WHEN OTHERS.
IF SCREEN-GROUP1 = 'M2' OR
SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
ENDCASE.
ENDLOOP.
my problem is when i change the option in the list box, the particular modify group ie, the screen is getting changed only after i press enter, So please suggest me how i can change the screen without pressing enter.Hi,
without using VRM_SET_VALUES...you just create one data element by going se11....create one domain for it...now give the values in the "value range" tab....and at the time of declaration just write ..
PARAMETERS var1 TYPE <your created data element>
AS LISTBOX VISIBLE LENGTH 20
USER-COMMAND onli
DEFAULT <one value>.
You will get the same effect as list box....and make it mandatory..
Arunima -
Adding Standard Text to the Selection Screen obtained using PARAMETERS
Hi all,
I have a report program which has the selection screen declared by the key word PARAMETERS.
Now I need to make the changes to this program such that a Text Editor appears on the Selection Screen and has a Standard text that should be displayed.
How can I do it?
I saw the screen number of the Selection Screen and went to screen painter and tried to add the Text Editot..but it did not let me dou2026.Why?
How should I add a standard text to a selection screen? The standard text should not be on top , but some where on the screen.
Regards,
Jessica SamHi Sam,
I dont want to create a new screen for this. On the existing screen whihc was built using PARAMETERS key word..i should insert a blokc of text whihc is mpre than 5-6 lines..how should i do it.
I navigated to Text Elements---->Selection Texts
it is now asking for Name and Text and i see in Name column the name of the parametsr that they used for Check box, radio button etc and in Text i see the text that is appearing on the screen
Now i am not sure what is should do next
My req is..i should display a block of standard text that doesnt change and whihc is of 4-6 lines?
how should i do it?
please also help me with what data declartions that i should do in parametrs key word in program?
Regards,
Jessica Sam -
Text elements and selection screen
I changed the selection screen using enhancement frame concept. But I can not change the selection text that displays on the selection screen.
Does anybody know how to do it?Hi
I was able to change the selection screen, my issue before was that I was implementing changes to an Explicit enhancment that was not switched on so the code was not being processed.
I used the explicit enhancement MGV_GENERATED_RIAUFK20 # 14 on my system. It has the initialization piece in it. To add the frame header to the selection screen I used a read and insert on the text-pool and for the individual fields I used the FM selection_texts_modifiy.
Hope this helps
John -
How to write text on the selection screen of a report
Hi all,
I need to write some user defined text on the selection screen of an ALV GRID Report.
Please suggest me how can i do this
Thanks
Ajay.SELECTION-SCREEN BEGIN OF LINE .
SELECTION-SCREEN COMMENT 12(31) text-024.<-----Goto text elements and add text.
PARAMETERS:P_FILEN LIKE RLGRAP-FILENAME .
SELECTION-SCREEN END OF LINE -
Regarding text box in selection screen
Hi all,
Can i know how we can implement a text with scroll bars so that user can enter a data of about 2000 characters with paragraph indent. also this needs to be done on the selection screen of PNP logical database.
Please let me know if this can be done.
Thanks.
Harshad.Hi Harshad,
[text box in the selection screen|Text box on selection screen]
Thanks! -
Diplay Text in Text Box in selection Screen
Hi Experts i want to display text in text box in selection screen like
Personnal Number
Display in text box and disable................please help me
Edited by: BFawad26 on Jun 21, 2010 9:46 AMHi,
You mean to say parameter in selection screen
Just press F1 on parameter you will get all the option available for the parameter
for defaulting text just give your text in DEFAULT option for the parametr
And for disabling this checkbox you can explore the LOOP AT SCREEN concept
In at selection screen output event you can modify the selection screen.just give one modif id for your
paramete and use this at selection screen output event , loop at screen and modify screen with the screen input = 0
for ur parameter.
Thanx
Edited by: PawanG on Jun 21, 2010 9:51 AM -
Parallel text box in selection screen
Hi all,
Can anyone please tell me that how can i create parallel text boxes in selection screen?
Exa : Company code <Input box> Date <Input box>
Pers No. <Input box> Cust No. <Input box>
Regards.hi,
Use COMMENT and POSITION statements in selcection-screen to achieve the same. -
Text length at selection screen
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
SELECTION-SCREEN COMMENT /3(79) TEXT-001.
SELECTION-SCREEN COMMENT /3(79) TEXT-002.
SELECTION-SCREEN END OF BLOCK B1.
in above code I can write text upto 79 length only how can I increase the length when I am increasing it from 79 to 89 it is saying that max legth is 79COMMENT /3(79) TEXT-001. when you give 3(79) it sets the position.Just try giving COMMENT TEXT-001 and check what is happening
Go to text-001 double click on that and then delete the text you had given then you should activate it and get back to the code then again double click on text and give your text.
Regards,
Midhun Abraham
Edited by: Midhun Abraham on Oct 7, 2008 7:17 AM -
How to color the text element in selection screen
hi,
i am going to pass some text element in selection screen output and my requiremnt is text element should be given some colour.
plz guide me.
regards
muthuraman.dHi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
IF PA_UPD = 'X'.
IF <YOUR MANDATORY FIELD> IS INITIAL.
Message 'Entry is must in this field' type 'E'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b> -
User exists for changing the selection screen of the transaction CS11
Hi,
I want to change the selection screen of the transaction cs11 and modify the ALV output.
I searched the old forums but not got satisfactry results.
I want to change the plant and material from the parameter to the select option.
i dont want to copy the transaction for the zcs11.
any suggestion on this ?
Regards,
udupione more requirement i have is that, i need to remove all the header fields such as material , plant etc and place that field in the item level. i can use the user exists PCSD0002 for the adding the customer field in the item. but how can i removed the header level field such as plant and material. whether we have any user exits for that?
-
How to change the text in default selection screen
Hi,
I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
Please send me the related code.
Thanks in advace
mohanHR Logical Database is PNP
Main Functions of the logical database PNP:
Standard Selection screen
Data Retrieval
Authorization check
To use logical database PNP in your program, specify in your program attributes.
Standard Selection Screen
Date selection
Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
Person selection
Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
Sorting Data·
The standard sort sequence lists personnel numbers in ascending order.
· SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
Report Class
· You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
· If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.
regards
vinod
Maybe you are looking for
-
Updated and can't connect to internet
I just updated my Mac and I cannot connect to the Internet anymore.
-
When I connect my iphone directly to the receiver through a cable, it plays Spotify just fine but when I try to play wirelessly through Airport Express, it only plays through one speaker. Any thoughts?
-
Crazy ACL permissions issues!
I have Server 10.5.2 setup on a G5 dual 2.0. I have a share point which is an entire drive. At the root level I have 2 groups with read write access and 2 individuals with read write privs. Posix is set as root for owner read write, admin as group re
-
Reflection - reading a .class file
I want to read in a .class file, and be able to use reflection to get a list of that class's methods. I'm using a JFileChooser to find the file, I just need to know how to use the output from the JFileChooser (a path to the file) to load the file int
-
I look at my iTunes sync front page and see that I have 1.19 GB dedicated to songs and 1.21 GB dedicated to "other." Exactly what is "other" and how do I get rid of those files? It's eating up all my space. Even though my phone is 8 GB, I still don't