Adding radiobutton to WD selection screen
Hello all,
can some one please let me know how to add a radio button to the WD selection screen.
Thanks in advance
Regards
Amarender Reddy B
hi amarender......
just drag and place the radio button from theui element list.
bind an attribute from the context to it.
you can see an example in:
wdr_test_ui_elements component.
--regards,
alex b justin
Similar Messages
-
Radiobutton during at selection-screen event is not triggered
Hi experts,
I have this event:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
perform f_file_sel.
I want to select a file according to the radiobuttons on the selection screen, but during the f_file_sel form I recognized, that the radiobutton which I selected is not triggered.
It's only triggered after 'start-of-selection'.
How can I force the program to trigger it when f_file_sel is processing?Hi,
SELECT-OPTIONS : so_matnr1 FOR mvke-matnr MODIF ID id1,
so_matnr2 FOR mara-wrkst MODIF ID id2.
PARAMETERS : rb_mat TYPE c RADIOBUTTON GROUP rbg DEFAULT 'X' USER-COMMAND hid,
rb_var TYPE c RADIOBUTTON GROUP rbg.
LOOP AT SCREEN.
IF rb_mat EQ c_x.
IF screen-group1 EQ 'ID2'.
screen-input = '0'.
ENDIF.
ENDIF.
IF rb_var EQ c_x.
IF screen-group1 EQ 'ID1'.
screen-input = '0'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Apply this piece of code to your requirement with files in place of fields.Hope your issue will be resolved.
Regards,
Anand. -
Change RadioButtons position in Selection Screen.
HI is there any way to change the default position of a radiboutton in a selection screen.
I mean, show the text option of the radiobutton in the right side, not the left side.
Thanks a lot.hi Jose,
you have to do something like:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT x(y)... "x for starting position, y for length
SELECTION-SCREEN POSITION 20. "next line will start at this position
PARAMETERS : p_rb RADIOBUTTON GROUP rb1
SELECTION-SCREEN END OF LINE.
hope this helps
ec -
Adding check box in selection screen
Hi all,
I have to add a check box to the previous report, I need to fetch the data based on the checkbox. Please tell me how to proceed further with flag set.
Thanx and Regards,
Line.Hi..
1) do u want this? if checkbox is not checked then no data is read from database and if checked then only data wil be fetched -
tables pa0001.
parameters p_check as checkbox.
data: begin of itab occurs 0.
include structure pa0001.
data end of itab.
start-of-selection.
if p_check = 'X'.
perform read_data.
endif.
if itab[] is not initial.
loop at itab.
write:/ itab-pernr.
endloop.
else.
write: 'No data fetched from database,may be u need to check the Checkbox'.
endif.
*& Form read_data
text
--> p1 text
<-- p2 text
FORM read_data .
select * from pa0001 into table itab up to 20 rows.
ENDFORM. " read_data
2) Adding fields based on Chekbox -
parameters: p_check AS CHECKBOX MODIF ID ABC USER-COMMAND CH.
parameters: p_pernr like pa0001-pernr modif ID ABD,
P_DATE LIKE PA0001-BEGDA MODIF ID ABD.
Check sy-ucomm = 'CH'.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if p_CHECK = 'X'.
if screen-group1 = 'ABD'.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ELSE.
if screen-group1 = 'ABD'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP. -
Adding new modules to Selection-screen
Hi everyone,
I created 3 selection-screens for my report, but I needed to control better their jump between screens, so I added PAI modules on each screen.
The thing is that when I make a change on one of the screens the calling of the module disapears, so I just kept on placing the calls and avoided the change in the screens.
No the problem is, when I transported my report to the quality system, everything was fine, with my modules in my code. Now I transported a change and in the quality system, the calls where lost.
Any ideas how to transport everything?!
ThanksYou must not modify the screen (add PAI or PBO) with a program type 1 (report).
If you want to modify screen, you change your program type module pool and create the screens.
Salu2. -
How to catch a switching of radiobutton in "AT SELECTION-SCREEN"
Hi,
I have a selection screen with 2 radiobuttons in group 001.
I need to perform some code when I change a status of particular radiobutton (checked - unchecked).
I have a code in AT SELECTION SCREEN ON RADIOBUTTON GROUP 001 but this code is not executed on changing a status of particular radiobutton.
Any help is appreciated.
Thank you.
MarianCheck the sample code.
REPORT ypra_sample56.
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',
p_r2 RADIOBUTTON GROUP rg1,
p_r3 RADIOBUTTON GROUP rg1.
SELECTION-SCREEN END OF BLOCK a1.
SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.
PARAMETER: p_c1 TYPE c AS CHECKBOX,
p_c2 TYPE c AS CHECKBOX,
p_c3 TYPE c AS CHECKBOX,
p_c4 TYPE c AS CHECKBOX,
p_c5 TYPE c AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK a2.
INITIALIZATION
INITIALIZATION.
PERFORM enable_fields.
AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
PERFORM sel_screen_output.
START OF SELECTION
START-OF-SELECTION.
DATA: ws_data TYPE tarifnr.
ws_data = 'ZPNGT_EM1'.
IF ws_data CA '1' OR ws_data CA '2' .
WRITE:/ ws_data.
ENDIF.
*& Form sel_screen_output
Selection screen Output
FORM sel_screen_output.
IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
PERFORM enable_fields.
ENDIF.
IF p_r3 EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " sel_screen_output
*& Form enable_fields
enable fields in selection screen
FORM enable_fields .
IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " disable_fields
Regards,
Prakash. -
Added field to dynamic selection screen does not work in FBL5N
hi,
we have added KNA1-KATR5 to the selection screen of FBL5N by using logical database DDF using "view CUS" but it does not work.
Our system is 6.0
is there any OSS note or program that we should add?
many thx.Refer This:
Additional field selections in FB03 -
Adding layout variant to selection screen
Hi all,
Currently I am working on report program, where I have to allow user to select his own output pattern. i.e layout variant is to be added to selection screen. The report uses object oriented ALV for display purpose. [set_table_for_first_display]
I made following steps,
1. Declared one parameter of type disvariant.
2. At selection-screen on value-request I called function REUSE_ALV_VARIANT_F4.
3. Passed internal table to method set_table_for_first_display.
Now I am able to create save new variant, on selection screen I can select the variant that I have created, but output shows the all the fields though
Only few are selected. Please tell me any modification so as to reflect the changes in output.
I am searching for a function which maintains fieldcat according to user defined variant.
Regards,
Nilesh kulkarni.U have to use REUSE_ALV_VARIANT_EXISTENCE inorder to use the layout u have selected
After ur code of REUSE_ALV_VARIANT_F4.
try this way
AT SELECTION-SCREEN.
PERFORM PAI_OF_SELECTION_SCREEN.
G_REPID = SY-REPID.
G_SAVE = 'A'.
FORM PAI_OF_SELECTION_SCREEN .
IF NOT P_LAYOUT IS INITIAL.
MOVE G_VARIANT TO GX_VARIANT.
MOVE P_LAYOUT TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = G_SAVE
CHANGING
CS_VARIANT = GX_VARIANT.
G_VARIANT = GX_VARIANT.
ELSE.
PERFORM VARIANT_INIT.
ENDIF.
ENDFORM. " PAI_OF_SELECTION_SCREEN
FORM variant_init .
CLEAR G_VARIANT.
G_VARIANT-REPORT = G_REPID.
ENDFORM. " variant_init
Then when u call ALV for display, pass ur display variant, in this case = g_variant
Reward if useful
Cheers
~Arun
Message was edited by:
Arun Shekhar -
Adding fields to vendor selection screen
Hi ,
While creating a shopping cart from SRM portal, i need to select a vendor. For vendor selection screen, i want to add two additional fields: 1)Sort Term 1: ADDR1_DATA-SORT1 2)Order Currency: LFM1-WAERS
I want to know:if this can be possible by doing any SRM config in SPRO in SRM or is it a development work in which fields would be added to structure.
Please reply asap and also the procedure to do that.
Regards,
BisHi.
Have you read SAP Note 672960? This describes how to add customer defined fields to the shopping cart, therefore also visible during the SC creation process. You would probably also need to implement the BBP_DOC_CHANGE_BADI to fill in the requested data in your new fields.
DM -
Adding fields to the selection screen of IW38
We have added some fields to the CI_AUFK include, they have also been added to the RIHAUFK_LIST structure. Currently the new fields appear in the ALV when the report is run.
What I need to do is add them to the selection screen.
Has anyone done this? I have been looking for a user exit etc, no luck.
Thanks, MikeWhy not use the new enhancement framework?
Goto the main program in SE38 and click on the Enhance button - spiral icon (Shift+F4) and try to add new selections at the appropriate by implementing the appropriate enhancement.
I am sure you can achieve it using enhancement spots.
cheers,
Aabhas -
Adding logo/image on selection screen
How can I add logo or image on my selection screen??? or else use a picture as a background on the selection screen??
P.S : I have already searched the forum and have not got any suitable answer..most of them are about adding image on module pool screen..but I want it in my selection screen???Hi ,
Try like this
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
**& Form show_pic
FORM show_pic.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 55
left = 750
top = 08
width = 350.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = 'C:\zpic.gif'.
*here you give the path where your pic is stored on the desktop
IF sy-subrc NE 0.
ENDIF.
ENDFORM.
Regards,
Nandha -
Difficulty in adding new parameter in selection screen of GR55 report
Hi Gurus,
I have a requirement to add an extra field in Cost center:Act/Plan/Comm CC Cur report.This is otherwise a Z report in report painter with 0% code (T-code : GR55-> Report group->Report).But,when we go to technical information of this report,it has four standard sap programs,which contains code for this selection screen.It does not even have a modification scope.
Selection screen of this report contains following parameters:
Selection values:
Controlling Ar
Fiscal Year
From Period
To Period
Plan Version
Selection Groups:
Cost Center Group
Or value(s)
Cost Element Group
Or value(s)
My requirement is to add one more parameter : Purchase oeder in new block:
Is there any way to achieve it.
Note: Copying the standard progs into custom prog is not working,i already tried that.
Please let me know your suggestions,if any one of you came across such requirement before.it is very impoertant for me.
Thanks in advance,
MeenakshiHi meenakshi239,
you can always use implicit enhancement spots.
Regards,
Clemens -
Adding field in the selection-screen of a zprogram
hi gurus,
i have to add field in the selection-screen of oppurtunities. in database i have a field salesvalues, some of oppurtunity guids have this field value. first i need to add in selection-screen in this alv report. and fetch the data from ztable into required field . if the input fields of the salesvalues field id filled, then filter the global guids(from global table which had the guid values already) with this guids related to salesvalues. and if one single guid mathes to 2 values of salesvalues then concatenate 2 values with comma and display in single field. if select-options are blank then fetch all opportunity guids which have salesvalues. pls give solution.Hi Srini,
Thanks for your Reply
I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
But still that field is not visible in the dynamic selection screen.
Thanks
Ajay.D -
Adding customer field to selection screen of RFKORD11 - Customer Statement Printing Program:
Hello,
We are required to add an important customer field to selection screen of customer
statement printing program: RFKORD11 for our South African branch.
Please advise us regarding this matter,
is there a proper user-exit or a repair is needed?
Kind Regards.Enhancement
text
F050S001
FIDCMT, FIDCC1,
FIDCC2: Edit user-defined IDoc segment
F050S002
FIDCC1: Change
IDoc/do not send
F050S003
FIDCC2: Change
IDoc/do not send
F050S004
FIDCMT, FIDCC1,
FIDCC2: Change outbound IDoc/do not send
F050S005
FIDCMT, FIDCC1,
FIDCC2 Inbound IDoc: Change FI document
F050S006
FI Outgoing IDoc:
Reset Clearing in FI Document
F050S007
FIDCCH Outbound:
Influence on IDoc for Document Change
F180A001
Balance Sheet
Adjustment
FARC0001
Enhancements within
archiving (FI)
FARC0002
Additional Checks for
Archiving MM Vendor Master Data
FEDI0001
Function exits for
EDI in FI
FICT0001
Exits for
inter-company transactions
RFAVIS01
Customer Exit for
Changing Payment Advice Segment Text
RFBVX001
Enhancement for bank
directory transfer (Austria)
RFEPOS00
Line item display:
Checking of selection conditions
SAPLBANK
User exit: Bank data
SAPLF040
WF: Preliminary
posting (authorized for release)
SAPLF051
Workflow for FI
(pre-capture, release for payment)
SAPLFCPD
One-time account data
or different payee in booking
SAPLSSRV
User exit: Bank
account numbers
RFKORIEX
Automatic
correspondence
please check which one is better . -
Adding new table dynamic selection screen of transaction FBL5N (LDB DDF).
Hi,
I have a requirement to add SEGMENT (CEPC-SEGMENT) field on the dynamic selection screen of transaction FBL5N (LDB DDF).
Please let me know how can I meet this requirement
ThanksI did not find any screen exits for this Tcode, may be you need to use enhancement spots.
Maybe you are looking for
-
Firefox won't open bookmarks in new tabs any more
I've been using Firefox with Tab Mix Plus under Fedora Linux for a long time. Suddenly, if I right-click on a bookmark and select Open in New Tab, nothing happens. I've tried using the keyboard shortcut but it doesn't do any good. However, if I rght-
-
Splitting the internal table values
I have a internal table with say 10000 lines i want to split it as 5000 and 5000 lines.How to code it? Moderator message: please try solving this yourself before asking, e.g. by studying the options of the LOOP statement. Edited by: Thomas Zloch on N
-
Oracle ODBC driver not visible in MS SQL server 2005
Hi all I am trying to export a Ms SQL Server table to Oracle and I do not see the Oracle Driver or any of my local drivers. Why?
-
Hi All, I am using oracle reports 6i under sun Solaris environment. I may finally deploy these reports on web. Is it possible to send the out put to pdf when ever user select from my web deployed form, I mean when ever user select reports from the we
-
I have just bought a Nokia 800 and am having a number of problems setting up the phone and generally getting it working. First of all I had to manually set the time; I searched online and apparently there should be an option on the time and date sett