Option button in screen painter
Hi everyone,
Can I group option buttons in screen painter? How?
I have two problems:
1. The options buttons seem disabled: when i click on them, they aren't checked
2. I can't group them
Thanks
Carles
Hi
First bind your option buttons to a same datasource then use the following to group then
Dim ob1 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob1").Specific
Dim ob2 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob2").Specific
Dim ob3 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob3").Specific
ob2.GroupWith("ob1")
ob3.GroupWith("ob2")
Hope this helps
Regards
Arun
Similar Messages
-
How to set Function Code for Radion Buttons in Screen painter
Hi,
I have faced problem of grouping 3 radio buttons in screen painter (no graphical editor). How to do it?
I have checked similiar threads in SDN, but those are for graphical editor.
Radio Buttons in custom screeen
http://****************/Tutorials/ABAP/Checkbox/page1.htm
http://****************/Tutorials/ABAP/Checkbox/page2.htm
Regards,
SukhboldHi,
U want to create radio button in the selection screen then u can create like this
PARAMETERS : c1 AS CHECKBOX USER-COMMAND cd,
r1 RADIOBUTTON GROUP rad,
r2 RADIOBUTTON GROUP rad.
AT SELECTION-SCREEN OUTPUT.
IF c1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '0'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '1'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks, -
Radio button in screen painter
if we create number of Radio buttons in the screen painter using the drag and drop , then should we group up all the radio buttons , if so pls let me know how to group up all the radio buttons .
I created 3 radio buttons using drag and drop in screen painter . I dont know to group them up . I used these radio buttons in my ABAP prog . while i executed all the radio buttons are checked . I think i need some help...hi...
I am also facing a similar problem.....I have created two raidbuttons using screen painter......and I need to group them......I tried to select the radiobuttons and group them....but the define grouping option is greyed out....kindly assist..
Regards,
Gayatree
Edited by: gayatree.b on Jun 18, 2010 1:36 PM
Edited by: gayatree.b on Jun 18, 2010 1:36 PM -
Multiple select option in the screen painter
Hi all,
I want to give multiple select option for a particular field in the screen painter.
how to provide it.
NitinHi,
Refer to this link..[Select-Option in Dialog programming |Re: Select-Option in Dialog programming]
[How to make select option in module pool |how to make select option in module pool] -
Have you chosen only one option button at a time
Hi...
I have got a problem while working with the option button in screen painter.I have three option buttons. In Run time, I want to select only one option button, mean while the other two option buttons should not be selected.
~
Thank You in Advance
Roseline Christina. BHi,
Please check the following
To select an OptionBtn item, the item must be bound to a data source (UserDataSource or DBDataSource) using OptionBtn.DataBind
The following is the sample to add 2 option buttons and group them.
Dim optBtn As SAPbouiCOM.OptionBtn
Dim oFrm As SAPbouiCOM.Form
Dim oItem As SAPbouiCOM.Item
Dim oUserdatasource As SAPbouiCOM.UserDataSource
' set oFrm = ..
'Option 1
Set oItem = oFrm.Items.Add("BD_rbRes", it_OPTION_BUTTON)
oItem.Left = 240
oItem.Top = 10
oItem.Height = 16
oItem.Width = 220
Set optBtn = oItem.Specific
optBtn.Caption = "Button One"
Set oUserDataSource = oFrm.DataSources.UserDataSources.Add("BD_resDS", dt_SHORT_TEXT,1)
optBtn.DataBind.SetBound True, , "BD_resDS"
'Option 2
Set oItem = oFrm.Items.Add("BD_rbPost", it_OPTION_BUTTON)
oItem.Left = 240
oItem.Top = 30
oItem.Height = 16
oItem.Width = 220
Set optBtn = oItem.Specific
optBtn.Caption = "Button Two"
oItem.Visible = False
Set optBtn = oItem.Specific
optBtn.GroupWith ("BD_rbRes")
Hope this helps,
Vasu Natari. -
Layout problem in screen painter
hi all,
the screen is not appearing when i click 'layout' button in screen painter when i am enabling a wsp client proxy server. Is there any solution?some times SAP Gui behaves like this, in my case i faced this problem many times, some times after shutdown my sap logon pad. and restart the sap , go to se51 , it will open the Screen painter normally. But some cases i uninstalled the Gui, and re installed .then only it opens properly. select all components when installing.
-
How we can add tabs button within tab button in screen painter???
hi,
Check this thread
Screen Painter
Jeyakanthan -
Option Button Databinding in Screen Painter
What is the correct way to specify Databinding in the Screen Painter for Option Buttons? I assume that the first button is specified differently than the others, so I will need to know how the settings for the second option button differ from the first button.
Also, how is the Groupwith property handled with the Screen Painter?Hi Bob,
You need to create a UserData source and bind it to the option buttons you want to link together. Try to do it with screen painter but if it does not work you can go to the generated xml file and modify it by hand.
The groupwith property is not handled by the ScreenPainter, you must do it in the xml file.
You have a sample code in the UI API SDK Help.
Hope it helps
Trinidad. -
How to degin a select-option in screen painter?
Help me !
How can i create an object like select-option in screen painter.
I want to input a range ,but there are no button or text in screen painter like select-option?hai u can create select options on screen but in little differernt way..
1st way : if u want to give only 1 interval then declare on screen as two different variables in same line
and after that append the value in ranges.
2nd way: here u can define as asingle input vriable beside that variable u can give a icon as extension in select option and give give some function code to that.if we click on that in user command write following code :
IF V_OKCODE = 'EXT'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = 'Title'
TEXT = 'Text'
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = ' '
JUST_DISPLAY = ' '
JUST_INCL = ' '
EXCLUDED_OPTIONS =
DESCRIPTION =
HELP_FIELD = 'T001W-WERKS'
SEARCH_HELP =
TABLES
RANGE = R_WERKS
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
help field the field reference wich u want to declare and range is where values will be stored atomatically as in select options.
once we click the icon if we execute the function module a window will open as in selection option in reports.there user can enter the values.once the user enters the values it will stored automatically in ranges declared like r_werks in above example.
try it.. -
Hello
Can anyone tell me if it possible to put an image on a button in the screen painter? I would like buttons like in "Tax Report - Selection Criteria" form (i.e. an up- and a down-button), but I don't succeed in putting such an image on the button.
Thanks in advance
Iris SpenninckHello
Now I have found how to put an image on a button, but I have yet another question.
In stead of a normal button with an image, I would like to have an orange triangle like in the reconciliation form (triangle up and triangle down).
Anyone any idea how to accomplish that?
Thanks
Iris -
SELECT-OPTION IN SCREEN (SCREEN-PAINTER)
I want to put a select option in a screen type screen painter
Using this the user could enter a ranger of personal numbers.
Can any one give me a clue on how to do that ?This is the code of the program and I my break point I do not have anything in SELPERNR
REPORT ZY_TESTSUBSCREEN .
TABLES: PA0003.
Custom Selection Screen 1010
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: SELPERNR FOR PA0003-PERNR.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF SCREEN 1010.
CALL SCREEN 100.
BREAK STEPHANK.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CHECK SY-UCOMM(1) NE '%'.
LEAVE TO SCREEN 0.
ENDMODULE. " USER_COMMAND_0100 INPUT
This is the screen flow
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
CALL SUBSCREEN AREA INCLUDING SY-REPID '1010'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
Rich do you have any idea why ? -
Background color change option for box in screen painter
have created a box in screen painter . is there any option to change the back ground color of this box.
please helpNo, you can not change the background color of your screen painter box.
-
Select Options in Screen Painter
Hi there
Is there some way I can create two text boxes and one button, when the buttons gets pressed the same action as your usual SELECT-OPTIONS dialog box gets displayed? Is ther maybe a function module I can call for this?
Thanx,
Janyou can call a selection screen in sub screen area
declare selection screen as
begin of selection-screen 0100 as subscreen.
end of selection-screen...
then,
in flow logic of your module pool screen
PBO
call subscreen <sub_area> including sy-repid '0100'.
" at selection-screen output event is called
PAI.
call subscreen <sub_area>.
"at selection-screen is called
OR
Call FM COMPLEX_SELECTIONS_DIALOG when the select options button is pressed
Edited by: Amit Gupta on Nov 6, 2008 11:19 AM -
How to put "selection options without intervals" on screen painter?
Hello all,
I need to put a field for pernr(personal number) on screen painter (module program) and user should be able to enter a list of pernr's to process. I know in report program I can do this by:
SELECT-OPTIONS: s_lpernr FOR pa001-pernr NO INTERVALS.
How can I get this work on sccreen painter in module programming? How can I add a field on screen painter with a range without intervals? Please let me know.
Thanks.
Mithun.You can also do this using the function module COMPLEX_SELECTIONS_DIALOG.
REPORT ZTEST_SCREEN .
DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
INCLUDE STRUCTURE DYNPREAD.
DATA : END OF IT_DYNPFIELDS.
DATA: TEST(10) TYPE C.
RANGES: R_UNAME FOR SY-UNAME.
DATA: V_USERNAME LIKE SY-UNAME.
DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
V_DNUM LIKE D020S-DNUM VALUE '0100'.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'TEST'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module GET_CURSOR_USERNAME INPUT
* text
MODULE GET_CURSOR_USERNAME INPUT.
REFRESH IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
APPEND IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = V_PROG
DYNUMB = V_DNUM
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = IT_DYNPFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
IF SY-SUBRC EQ 0.
READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
IF SY-SUBRC = 0.
V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
ENDIF.
ENDIF.
PERFORM GET_MULTIPLE.
ENDMODULE. " GET_CURSOR_USERNAME INPUT
*& Form GET_MULTIPLE
* text
* --> p1 text
* <-- p2 text
FORM GET_MULTIPLE .
* Dynamically holding Field name
FIELD-SYMBOLS: <FST> TYPE STANDARD TABLE.
IF R_UNAME[] IS INITIAL.
IF NOT V_USERNAME IS INITIAL.
R_UNAME-SIGN = 'I'.
R_UNAME-OPTION = 'EQ'.
R_UNAME-LOW = V_USERNAME.
APPEND R_UNAME.
CLEAR R_UNAME.
ENDIF.
ENDIF.
ASSIGN R_UNAME[] TO <FST>.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = 'Select Multiple Value'(059)
TEXT = 'Finish Group'(058)
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = 'X'
JUST_DISPLAY = ' '
JUST_INCL = 'X'
TABLES
RANGE = <FST>
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
OTHERS = 4.
IF SY-SUBRC EQ 0.
READ TABLE R_UNAME INDEX 1.
IF SY-SUBRC = 0.
V_USERNAME = R_UNAME-LOW.
ENDIF.
ENDIF.
ENDFORM. " GET_MULTIPLE -
Screen Painter Image Button cannot set relative path
Hi,
I am using screen painter to create a UI form and i put image into each button. The form can run properly in my PC due to the image path is under my local path. However, the button is gone when i install the UI form in other PC. When using button object in screen painter and it not allow me to set the relative path. Anyone can help??
Cheers,
AnnaHi Gianluigi,
Thanks for your reply. However, i did try to rename the .srf file to .xml file and change the path to the following
<b><specific image=".\test3.jpg" /></b>
But the program didn't work. But if i change it to <b><specific image="c:\test3.jpg" /></b>, give it the exact path then the program work again.
Do you have any idea on it?
Anna
Maybe you are looking for
-
How do I change an Apple ID just for one device, an iPod Touch?
Hello, all...I recently purchased my nephew (I'm his guardian and am raising him) a brand new iPod Touch for his 13th birthday. I activated the device using my Apple ID (which I also use for my iMac, iPhone and Macbook Air). I'm thinking now about
-
Special language characters in Urxvt
I can't make special characters for my language (norwegian characters, to be specific) display in urxvt terminal. Nothing happens when I try to type them. This works perfectly in xterm. Anyone got any advice? I went through the urxvt man, but I could
-
Hello SAP Gurus, I am getting this error while trying to close a material in Material Ledger Cockpit Internal error in FORM/FUNCTION CKMC_REVALUATE_ENDING_STOCK in position 1 with RC Message no. C+099 Procedure Please inform your system administrator
-
Unexpected error: reduce_field_list
Hello, experts Need your help. I'm trying to run Delta update to update a cube from another cube and I'm getting an error 'Unexpected error: reduce_field_list '. Init update ran OK. The same infpackage with Delta update runs fine on Dev but fail
-
Goodies in PSE 4 French Edition
Can anyone tell me where I've to copy "goodies" files contained in PSE 4 Adobe's CD. No information's given by Adobe except for DitherBox. Thanks.