PUSH BUTTON text and tooltip dynamic in module pool
I want to change at runtime the text and tooltip of a push button which belongs to a screen of module pool (not a pf_status).
Is there anyone who can help me?
HEllo,
Check this report done by Rich,
Ok..here is my example. Most of the code was generated by screen painter via the tabstrip control wizard. Create screen 100, use the tabstrip control wizard to create your tabstrip, name it TABSTRIP. Double click on the tab text elements, rename them TABSTRIP_TEXT1 and TABSTRIP_TEXT2 for the tab text elements, make sure that the output only check box is checked.
REPORT ZRICH_0003 .
data: TABSTRIP_TEXT1(30) type c,
TABSTRIP_TEXT2(30) type c.
start-of-selection.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
Fill the tabstrip text elements here!
TABSTRIP_TEXT1 = 'Text 1'.
TABSTRIP_TEXT2 = 'Text 2'.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
endmodule. " USER_COMMAND_0100 INPUT
FUNCTION CODES FOR TABSTRIP 'TABSTRIP'
CONSTANTS: BEGIN OF C_TABSTRIP,
TAB1 LIKE SY-UCOMM VALUE 'TABSTRIP_FC1',
TAB2 LIKE SY-UCOMM VALUE 'TABSTRIP_FC2',
END OF C_TABSTRIP.
DATA FOR TABSTRIP 'TABSTRIP'
CONTROLS: TABSTRIP TYPE TABSTRIP.
DATA: BEGIN OF G_TABSTRIP,
SUBSCREEN LIKE SY-DYNNR,
PROG LIKE SY-REPID VALUE 'ZRICH_0003',
PRESSED_TAB LIKE SY-UCOMM VALUE C_TABSTRIP-TAB1,
END OF G_TABSTRIP.
DATA: OK_CODE LIKE SY-UCOMM.
OUTPUT MODULE FOR TABSTRIP 'TABSTRIP': SETS ACTIVE TAB
MODULE TABSTRIP_ACTIVE_TAB_SET OUTPUT.
TABSTRIP-ACTIVETAB = G_TABSTRIP-PRESSED_TAB.
CASE G_TABSTRIP-PRESSED_TAB.
WHEN C_TABSTRIP-TAB1.
G_TABSTRIP-SUBSCREEN = '0101'.
WHEN C_TABSTRIP-TAB2.
G_TABSTRIP-SUBSCREEN = '0102'.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE.
INPUT MODULE FOR TABSTRIP 'TABSTRIP': GETS ACTIVE TAB
MODULE TABSTRIP_ACTIVE_TAB_GET INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN C_TABSTRIP-TAB1.
G_TABSTRIP-PRESSED_TAB = C_TABSTRIP-TAB1.
WHEN C_TABSTRIP-TAB2.
G_TABSTRIP-PRESSED_TAB = C_TABSTRIP-TAB2.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE.
Screen Flow is ....
PROCESS BEFORE OUTPUT.
PBO FLOW LOGIC FOR TABSTRIP 'TABSTRIP'
MODULE TABSTRIP_ACTIVE_TAB_SET.
CALL SUBSCREEN TABSTRIP_SCA
INCLUDING G_TABSTRIP-PROG G_TABSTRIP-SUBSCREEN.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
PAI FLOW LOGIC FOR TABSTRIP 'TABSTRIP'
CALL SUBSCREEN TABSTRIP_SCA.
MODULE TABSTRIP_ACTIVE_TAB_GET.
MODULE USER_COMMAND_0100.
Vasanth
Similar Messages
-
Unable to Add alternative text and tooltips to your images
Hello,
I am using Muse CC in Apple iMAC machine. The build version of Muse CC is 232.
Having watched the video, http://tv.adobe.com/watch/learn-adobe-muse-cc/using-titles-and-alt-text-to-images/, I am unable to bring up the image property window when I press the right hand click button of my Apple Mouse.
As such, I am unable to add alternative text and IMG Text to my images including the logo, facebook and Twitter Logos.
Can someone please tell me how to resolve my issue? How come I unable to bring up the image property when I press the right hand click on the mouse. The image property is also not shown in the menu of Muse CC.
Thank you.
Maxplus.Hello Maxplus,
Try doing CTRL+Click once to see if it works. Also, if an image is added as a fill, it doesn't bring up the Add alternative text and tooltips option, because then it is added as a background and not placed as an image.
Cheers
Parikshit -
How to disable the inputfield using radio button dynamically in module pool
How to disable the inputfield on the screen using radio button dynamically in module pool.
Please suggest .
Thanks.
Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PMI got it thank you.
LOOP AT SCREEN.
if screen-GROUP1 = 'LA1'.
If RADIO1 = 'X'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ELSEIF RADIO2 = 'X'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM -
Want to change the text of a coloumn dynamically in module pool program
Hi to all experts,
I need to change the text in a table control( of a column)of a module pool program dynamically ....depending on the company cod e.Hi,
In program depends on the condition you can access the table_control-cols-name and modify it accordingly.
Eg:
CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
you can access the control like:
TABLE_CONTROL-COLS[1]-SCREEN-NAME
and modify the same dynamicaly
cheers
shibu -
Hi,
I am using forms 10g
I have a requirement to make the look and feel of the push button like a hyperlink.
Basically the button background should merge with the canvas background and text should appear on the canvas.
I have to use push buttons only as i have a require setting mouse navigate property for the buttons to function correctly.
I tried using image instead of buttons but image does not have mouse navigate property.
kindly reply as this is becoming a show stopper fr the proposed look and feel in the current project.
Edited by: user3067156 on May 4, 2010 6:01 AMOne use case for setting mouse navigate property to yes is mentioned in this link
http://www.oracle.com/technology/obe/obe_as_10g/bi/forms/formsmasterdetailobe.htm
When Mouse Navigate is No, Form Builder does not perform navigation to the item when the end user activates it with the mouse. For example, a mouse click in a button or check box is not treated as a navigational event.
Form Builder fires any triggers defined for the button or check box (such as When-Button-Pressed), but the input focus remains in the current item.
When Mouse Navigate is Yes, Form Builder navigates to the item, firing any appropriate navigation and validation triggers on the way.
if the button performs query or cancel mouse navigate is set to No
if the button performs first ,next, commit record mouse navigate is set to Yes. -
Push Button , Label and combo box
Hi Experts,
Currently facing a problem , please guide.
I have two push buttons say A and B and one combo box.
I am using Combo box with source data as filtered row options.
What I want to accomplish is when push button A is clicked then my combo box should have different souce of data say sheet 1 in excel and when Push button B is clicked then the same combo box should have source data from sheet 2 from the same excel.
I mean dynamic selection of source data and then destination data by using combo boxed.
is it possible ?
Thanks in advance.
Thanks & Regards,
AnjnaHi,
Use 2 combo boxs CB1 n CB 2.
CB1 : source form sheet1
CB2:Source from sheet 2
when push button A is selected set dynamic visibility such that u get combo box 1
when push button B is selected set dynamic visibility such that u get combo box 2.
Case 2:
Insted of using 2 push buttons you can use a radio butoon and select the lables A or B so that these two combo box components dnt appear at once
Take a radio button component and map lables as A and B
under behaviour tab: >Insert selected item:>mapp it with a blank cell say Sheet3!$G$4
if radio button selection is A then set dynamic visibility such that u get combo box 1
if radio button selection is b then set dynamic visibility such that u get combo box 2
formula cells:
take a blak cell say Sheet3!$H$7 and write formula =IF(Sheet3!$G$4="A","",first label of combo box 2)
take a blak cell say Sheet3!$H$8 and write formula =IF(Sheet3!$G$4="B","",first label of combo box 1)
Combo box 1 :Behaviour tab-->Selected item :Sheet3!$H$7
Combo box 1 :Behaviour tab-->Selected item :Sheet3!$H$8
check if this suits ur req ...
@Sri
Edited by: Sri kamesh on Jun 21, 2011 11:00 AM -
Creating buttons dynamically in module pool screen
Hi friends,
I have one screen .
It has two input fields .
Say : Sales order no & Bin no .
based on this i found some batches from database table using select query .
Now the number of buttons depends on the no of batches i found .
If I get 5 batches , then I will create 5 Push Buttons on screen .
Please let me know , How to create these buttons dynamically on screen .
Regards ,
ManojHey ,
I tried using custom container and then a toolbar in it .
But this toolbar create buttons either vertically OR horizonatally .
I want buttons all over the screen to be created dynmically .
Please help ... -
Tab strip push button text change for user-exit screen
Hi experts
How can I change the text of Tab strip push button which is maitained by screen user-exit.Such as I maintained the user exit MEREQ001,In the screens of TCODE me51n there have a subscreen named
"CUSTOMER DATA",Now I want change the text.
thanks in advance
BR
Chriscreate ab push button without any text. In the run time you can assign test to this as follows.
suppose name of the button is PUSHBUT.
PUSHBUT = 'EDIT'. -
HI,
I need to create a push button which command (true)a case structure : In this case structure I have an "Analog 2D DBL NSamp NChannel" which is doing an acquisition according to Nb of samples : What I what is that after this acquisition is completed, the pushbutton should be set automatically to false ; Do someone has already done this ?,
Thanks for the help
P,May be the simplest thing is to change the mechanical behaviour on the button. Right-click on the control, then Mechanical action>Latch when released.
That should do the trick : When you press the button, it remains at True until read (means until the acquisition will be started in the case structure), and returns to false immediately after.
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left... -
How to deactivate the screen fields dynamically in Module Pool Program?
Hi guys,
How to <b>activate & deactivate the screen fields</b> of a <b>module pool program</b>
<b>dynamically</b> through program. Like Change mode and display mode in a single
screen.Hi,
Make use of a Variable,say gv_flag, for both Activate and Deactivate functionalities. As many times you hit the same button, change this variable value. For example, let us say first time you hit this button, assign value 'X' to this variable. Second time you hit this button, assign value ' ' to this variable. In PBO based the variable value you have to Activate and Deactivate.
PBO.
if gv_flag = 'X'. " Activate
loop at screen.
if screen-fname = 'ITAB1-MATNR'.
screen-input = '1'.
modify screen.
endif.
endloop.
elseif gv_flag = ' '. " Deactivate
if screen-fname = 'ITAB1-MATNR'.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
PAI.
case sy-ucomm.
when 'ACDC'. " Activate/Deactivate
if gv_flag = 'X'.
gv_flag = ' '.
else.
gv_flag = 'X'.
endif.
endcase.
thanks,
sksingh -
Calling search helps dynamically in module pool program
Hi Experts,
I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
you might be known... if it is a single search help, we can assign that in field attributes.
But here... I need to call different search helps for a single field based on the condition.
Pls help me.
Thanks
RaghuHi,
Use the below function module and pass the search help created in search help field according to the condition.
Process on Value-request.
if condition = A.
call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME =
FIELDNAME =
SEARCHHELP = "Mention search help created
Elseif Conditon =B.
call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME =
FIELDNAME =
SEARCHHELP = "Mention search help created
Endif.
Regards,
Prabhudas -
Display long text in i/o field(Module Pool)
Hi all,
I am using "CATSXT_SIMPLE_TEXT_EDITOR" function module
to type long text in module pool.
I did it successfully but my requirement is how to move
long text i entered in "CATSXT_SIMPLE_TEXT_EDITOR"
to my "input/output field text box".
can anyone plz help me to solve this problem.
Regards,
Ranjith C.hi
The long text ur giving is getting stored in CH_Text.
So, declare a field and pass that to the FM.. so after that FM executes, then pass it on to the screen..using internal table.
data: text type CATSXT_LONGTEXT_ITAB.
CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
EXPORTING
IM_TITLE =
* IM_DISPLAY_MODE = ' '
* IM_START_COLUMN = 10
* IM_START_ROW = 10
CHANGING
CH_TEXT = text. " it will fill the long text here.
Then move it to a internal table...
Regards,
Vishwa. -
How to change the text of a button dynamically in module pool
hi gurus,
how to change the text of button dynamicallyHi ,
Declare a variable in TOP Include with your button name.
Example : P_BUTTON(20) TYPE C.
Place button with name P_BUTTON on you screen. Do not forget to mark it as "Output Field". [ Double click on button, Attributes --> Program tab --> tick "Output Field".
In you PBO / PAI , whereever you want to change your text -
Assign value to P_BUTTON.
Example -
iF COND1..
P_BUTTON = 'EDIT'.
ELSEIF COND2.
P_BUTTON = 'DISPLAY'.
ENDIF.
Regards,
Mohaiyuddin -
ALV List Layout add new button and modify Append Row Button Text and Logi
Hi All,
I am working on Employee custom development Application in Webdynpro ABAP>
In my ALV list Layout I have to add new two Buttons Top or Bottom of the ALV List.
If I am adding I have to add logic for those Buttons. How to add and add logic for those buttons.
as well as I have to Change the Text for Existing Button ''Append Row'' to "ADD NEW ROWS"
and I have to add logic in this button while Append New Row I have to generate ID no for New Rows .
Kindly help/advice me to proceed further.
Thanks in advance.
DavHi Dav,
To Add buttons please refer this thred,
ALV with user-defined buttons on toolbar in wd abap
To change or rename text in ALV standard buttons, please refer this ...
How can i change the text of an standard button in ALV?
and also see this article on self defined functions...
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true
Thanks,
Kris.
Edited by: kissnas on Feb 22, 2011 5:59 AM -
Rotate Dynamic text and make dynamic text go vertical
Hello
I am working on a visual customizer flash app in actionscript 2.0. Looking for good tutorials or examples of how to rotate dynamic text as well as how to make it vertical. Currently all the dynamic embedded text changes colors and size.
Any help would be greatly appreciated. Thank you.distribute each character to a textfield and arrange the textfields to suit your needs.
Maybe you are looking for
-
Windows 7 Pro and Enterprise and Office 2010 Not Able to re-Activate
In September 2012, I was tasked to provide desktop support for a small <50 seat school that uses a combination of Windows 7 Enterprise and Pro as well as Office 2010 Pro Plus with Volume Licenses purchased through Dell. In May of 2013, it was discove
-
Transport Quality Check-How to design
Dear All, During transport request migration from SAP development system to SAP production system, we are facing following challenges. 1. Parallel developments Change1 on ObjectA is done on development and migrated to test. Another change2 on same ob
-
I have over 30,000 songs listed in my iTunes library, however man y of them appear with an "!" (exclamation point) to the left of the song. Is there a way to sort by the exclamation point like you can sort by song, or artist, etc?
-
Hi Folks There is a requirement where in I dsplay a table with various columns in a main jspx page , I am having a lot of rows to be displayed in the main jspx page , but if the number of rows exceeds 10 a scroll bar is displayed , I dont want a scro
-
Do we have any parameter to limit the runtime of the HTML services like BEx
Dear all, In one of our BI production system few RFC usersu2019 lunches BEX WEB analyzer using html service and they are leaving their sessions for ever, which in turn causes Obsolete lock entries in SM12. I know that we have parameter (rdisp/max_wpr