Multiple Selection in dropdown in module pool/text editor
Hi,
How to provide an option for multiple selection in dropdown/listbox? Is there any option for this other than triggering F4 function and displaying in ALV or table control with multiple selection option?
otherwise, is it possible to have multiple selection in text editor?
Thanks,
Amal
HI,
Instead of displaying multiple selection in deopdown list go for multiple section in ListBOx. It will be easier for you. Here is the demonstration of using ListBox along with screen shots and Code.
Check this Link
<Link farm to blocked site removed by moderator>
Edited by: sum_it2 on Nov 16, 2011 9:37 AM
Edited by: Vinod Kumar on Nov 16, 2011 3:01 PM
Similar Messages
-
Module Pool Text Editor Problem
Hi
I have developed module pool program which has 3 tab strips. In the last (3rd) Tab Strip I need to input Long Text. I have the done the coding but when I go to the Last tab and then come back to any other tabs, the text editor is overwriting the other fields in the other tabs. Can any tell how to solve this problem
This is he code I have written
****90000******Screen
PROCESS BEFORE OUTPUT.
MODULE status_9000.
MODULE modify_screen9000.
module test_me.
LOOP AT t_operation INTO s_operation WITH CONTROL toperation.
MODULE move_data.
MODULE modiy_screentblctrl.
ENDLOOP.
CALL SUBSCREEN sub1 INCLUDING sy-repid '9001'.
CALL SUBSCREEN sub2 INCLUDING sy-repid '9002'.
CALL SUBSCREEN sub3 INCLUDING sy-repid '9003'.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
CHAIN.
FIELD zaodheader-heatnum MODULE check_heatnumber.
ENDCHAIN.
LOOP AT t_operation.
MODULE update_itab.
ENDLOOP.
MODULE user_command_9000.
CALL SUBSCREEN sub1.
CALL SUBSCREEN sub2.
CALL SUBSCREEN sub3.
**************9003*****
PROCESS BEFORE OUTPUT.
MODULE STATUS_9003.
MODULE display_texteditor.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9003.
**************9003*****
DATA : ccont TYPE REF TO cl_gui_custom_container,
tedit TYPE REF TO cl_gui_textedit.
MODULE display_texteditor OUTPUT.
CREATE OBJECT ccont
EXPORTING
parent =
container_name = 'CC'
style =
lifetime = lifetime_default
repid =
dynnr =
no_autodef_progid_dynnr =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6 .
IF sy-subrc <> 0.
ENDIF.
CREATE OBJECT tedit
EXPORTING
max_number_chars =
style = 0
wordwrap_mode = wordwrap_at_windowborder
wordwrap_position = -1
wordwrap_to_linebreak_mode = false
filedrop_mode = dropfile_event_off
parent = ccont
lifetime =
name =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " DISPLAY_TEXTEDITOR OUTPUT
Edited by: kumar1819 on Apr 7, 2010 8:05 AM
SolvedHi kumar,
**************9003*****
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9003.
Case SY-UCOMM.
When 'TAB2'.
Call screen 9002.
**************9003*****
In 9001 and 9002 screen what code u r writing.
Regards,
Raj. -
Problem in creating a Select-option im a module pool screen
I've been searching how to do a select option in a module pool screen, I've found this neat tutorial http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html
but I'm having trouble to replicate it...
I've created this conde in my TOP include
SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 201.
and this is my screen flow code
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE pbo_200.
PROCESS AFTER INPUT.
MODULE pai.
MODULE user_command_0200.
in the screen 200 I have a subscreen area named subs
but when I do this:
MODULE pbo_200 OUTPUT.
CALL subscreen subs including sy-repid '0201'.
ENDMODULE. " pbo_200 OUTPUT
it doesn't "compile"
it gives me this error:
""." or "ID ... FIELD ..." expected after "SUBSCREEN"."
what am I missing? it seems its not recognising the "CALL SUBSCREEN" command...you can't use CALL SUBSCREEN... in any ABAP section. It is reserved to dynpro flow logic. Just add it after PROCESS BEFORE OUTPUT (and also after PROCESS AFTER INPUT).
-
Regarding select option in a module pool prog .
hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??
Hi
Select-options won't work if you declare the program as Module POOL.
if you wants to use select-options like utility in module pool programming
use ranges
declare and develop ranges and use that in select statement where condition.
ranges: r_vbeln for vbak-vbeln.
r_vbeln-low = '0018900678'.
r_vbeln-sign = 'I'.
r_vbeln-option = 'EQ'.
append r_vbeln.
r_vbeln-low = '0018900456'.
r_vbeln-sign = 'I'.
r_vbeln-option = 'EQ'.
append r_vbeln.
reward if useful
regards
Anji -
Selection-options on a module pool screen
Hi all,
How to define a field as selection-options on a module pool screen.
Thanks,
ChuongHi Chuong,
You will need to define the screen as a selection screen..
Else, you can define a subscreen area in your screen, define a subscreen as selection screen and call that screen here..
Thanks and Best Regards,
Vikas Bittera. -
Regarding Module Pool Text Field
Hi,
Can any body tell , is there any possiblity to change the font style and size of the Module pool text field.( Because I want a Heading in the screen)
Regards
PrashanthHi,
Goto the Layout Editor of your Screen.
Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that > will open a Popup > in that <b> set Area Title to TRUE </b>.
Rgds,
Jothi.
Do Award pts for helpful answers. -
Require select-option functionality in Module Pool Programming
Hi Gurus,
I am doing a development by Module Pool on Warehouse Management. For that development user require select-option on
screen for entering multiple storage type.
My first question : Is any thing available for directly implement select-option by module pool ?
My Second Question : I have use two text boxes for range and one button for multiple selection and arrange on screen like select-option. then on PAI of that button I call COMPLEX_SELECTIONS_DIALOG FM. Now it is working fine. Now I put some value in it. when I save the values and exit , I want the icon of the button must change from icon_enter_more to icon_display_more. I write the below code for that in PBO of the screen:
if rtab[] is initial. "RTAB[] is a table for holding values what inputted in popup of multiple selection.
write icon_enter_more as icon to button. " BUTTON is screen field and it taken as a type C length 4 on TOP module as .
else. " BUTTON taken on screen as push button.
write icon_display_more as icon to button.
endif.
but the icon is not changing dynamically.
If I use ICON_CREATE then one short dump happen describing OUTPUTLEN_TOO_SMALL.
Can anybody please give me the solution.IN PBO SECTION.
module STATUS_0001 output.
SET PF-STATUS 'ZINVGUI'.
SET TITLEBAR 'ZIN'.
if rbtn1 = 'X'.
loop at screen.
if screen-group1 = 'GR2'.
screen-input = 0.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group1 = 'GR1'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
IF RTAB[] IS INITIAL.
WRITE icon_enter_more AS ICON TO GTTYP.
else.
WRITE icon_display_more AS ICON TO GTTYP.
endif.
endmodule.
IN PAI
form GET_STORAGE_TYPE .
TAB_FIELD-FIELDNAME = 'LGTYP'.
TAB_FIELD-TABLENAME = 'LQUA'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
TEXT = 'Storage Types'
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = ' '
JUST_DISPLAY = ' '
JUST_INCL = ' '
EXCLUDED_OPTIONS =
DESCRIPTION =
HELP_FIELD =
SEARCH_HELP =
TAB_AND_FIELD = TAB_FIELD
TABLES
range = RTAB
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA:LAST TYPE SY-TABIX.
DESCRIBE TABLE RTAB LINES LAST.
IF NOT rTAB[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rTAB INDEX 1.
IF sy-subrc = 0.
P_LGTYP1 = rTAB-low.
ENDIF.
READ TABLE RTAB INDEX LAST.
IF sy-subrc = 0.
P_LGTYP1U = rTAB-LOW.
ENDIF.
ELSE.
rTAB-low = p_lgtyp1.
append rtab.
rTAB-low = p_lgtyp1u.
append rtab.
ENDIF.
endform.
IN TOP INCLUDE.
DATA : GTTYP TYPE C length 4. -
Select-option field on module pool screen
hi all,
Can anyone pls let me know, how to design and use a field like a select-option field on a Module-pool screen i.e. how can i get that multiple selections tab after the high field of the select-options.
thanks in advance,
vinnyAll you need to do is define your selection screen and then embed it in a subscreen area of your dynpro(screen). Here is a sample program.
report zrich_0006 .
tables: mara.
* Custom Selection Screen 1010
<b>selection-screen begin of screen 1010 as subscreen.</b>
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
p_rad2 radiobutton group grp1,
p_rad3 radiobutton group grp1.
select-options: s_matnr for mara-matnr,
s_matkl for mara-matkl,
s_mtart for mara-mtart.
selection-screen end of block b1.
selection-screen end of screen 1010.
start-of-selection.
call screen 100.
*& Module STATUS_0100 OUTPUT
module status_0100 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
endmodule.
*& Module USER_COMMAND_0100 INPUT
module user_command_0100 input.
endmodule.
<b>* Screen screen 100 with a subscreen area called "subscreen_1010"
* Screen Flow Logic follows
*process before output.
* module status_0100.
* call subscreen subscreen_1010 including sy-repid '1010'.
*process after input.
* call subscreen subscreen_1010 .
* module user_command_0100.</b>
Regards,
Rich Heilman -
Search not working with multiple select in dropdown field
Hello,
Please first visit below site for searching form on left side.
http://diventarepartner.unicaimmobili.com/home-page_copy_dynamic
There is a field called Tipologia which is dropdown menu with checkbox (multiple select). Choose more than one checkbox and its automatic append with comma in text field which is customized using javascript. Now then if you submit button then its not working as our products.
Now for this there is a custom field in admin in web apps items. This field is same for all items and values are different for all items like that which you can see above dropdown checkboxes value.
Now my question Is it possible that for that one field in admin which has different value for different items and when i search from website and checked that cehck boxes and it search for all different items ??
For example in admin suppose 2 items which has different value for that one field. Suppose one has value called Appartamento and other is Villa. Now from search form which is on website, that dropdown checkboxes, if i select these two values (Appartamento and Villa) from these and then search, it will display that both items from web apps ???
Is it possible ??? Can you help me for this ???
Waiting for reply. Thanks in advance.Your link doesn't work. Do you mind reporting it?
-
Select-options Problem in module pool
Hi,
I have created select-options in a seperate program and i have called the subscreen in module pool program.
I dont have any problem with the display of select-options but whatever the value given is not getting in to the program. Hw to solve this problem
Assured Points
Thanks in Advance
Jaihi,
did you declare that in top include?
if not declare it globally.
In stead of subscreen, try to do with screen itself.
Create screen like this.
selection-screen begin of screen 300.
selection-screen begin of block b1 with frame title text-000.
select-options : so_ebeln for v_ebeln modif id g1,
so_vbeln for v_vbeln modif id g2.
selection-screen end of block b1.
selection-screen end of screen 300.
Call this screen : in PAI of ur another screen.
call selection-screen 300.
Regards
Sandeep REddy -
Selection screen processing in Module pool
Dear Friends,
I am preparing a module pool, in which from one screen, i have to call a selection screen. I want to define this selection screen in the same program. Under which event block, i can define this selection screen?
Once its called, how can i process the selection screen ( like START-OF-SELECTION etc ?). If i use a LEAVE TO LIST-PROCESSING to display some output, how can i process the user actions in this list?
Thanking you in anticipation.
DeepakHI Max,
Thanks a lot for your reply. It was really helpfull. But my problem is not yet solved.
When i call the selection screen from the PBO of a screen, the selection screen is not being displayed. Only the blank screen is displayed. So i tried another way. I put the CALL SELECTION-ECREEN statement in the USER_COMMAN_100 module of PAI of the previous screen. (ie when user choose a button from the tool bar, in the initial screen the selection screen will be displayed.)
module user_command_0100 input.
OK_SAVE = OK100.
CLEAR OK100.
CASE OK_SAVE.
WHEN 'LIST'.
CALL SELECTION-SCREEN 200.
IF SY-SUBRC = 0.
PERFORM PROCESS_LIST.
ELSE.
leave screen.
ENDIF.
endmodule. " USER_COMMAND_0100 INPUT
form process_list.
... reading database...
IF SY-SUBRC = 0.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.
SET PF-STATUS 'GUI_LIST'.
LOOP AT ITAB.
WRITE :/ ITAB-BUKRS, ITAB-BELNR, ITAB-GJAHR.
ENDLOOP.
LEAVE SCREEN.
ENDIF.
endform. " PROCESS_LIST
Now i have two problems to solve.
1. I want to come back to the same selection screen (screen no 200) instead of screen 100, when the user click 'back' button in the list. but if i specify screen no 200 in
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.
it gives runtime error. ( Msg: Selection screen ZTEST3 0200 was not called using CALL SELECTION-SCREEN). How to return back to selection screen?
and
2. If the user selects a line from the list(PICK/F2), that value has to be passed to the input field of first screen( ie the initial screen from where i called the selection screen : screen no 100) For this, where can i write the code to process the user actions in the list?
Thanking you in anticipation
Deepak -
Selection screen problem in module pool
Hi friends,
I am working on module pool programming, I need to put select screen on the screen of the module pool porgramming. I used Input/Output field to do that and activated. But I am getting message invalid field format (screen error) can any one tell me why I am not able to run the seletion screen when I am using input/output field, also please let me know how to solve this problem.
Regards,
LineHello,
Think that this is useful for u/
SELECTION-SCREEN - Defining selection screens
Variants:
1a. SELECTION-SCREEN BEGIN OF SCREEN scr.
1b. SELECTION-SCREEN END OF SCREEN scr.
2. SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.
Effect
Defines a selection screen with the number scr. scr may be up to 4 digits.
SELECTION-SCREEN BEGIN OF SCREEN scr.
Additions:
(zu SELECTION-SCREEN BEGIN OF SCREEN scr) 1. ... TITLE title
2. ... AS WINDOW
Notes
In reports (type 1 programs), a selection screen with number 1000 is created automatically when you use the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statments. This selection screen appears when you SUBMIT the report.
In any type of program (apart from subroutine pools - type S), you can define further selection screens using SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN. You enclose these statements between the SELECTION-SCREEN BEGIN OF SCREEN and SELECTION-SCREEN END OF SCREEN statements.
You call these screens using the CALL SELECTION-SCREEN statement.
Screen number 1000 is not allowed (reserved for standard selection screen).
When you generate the program, all user-defined selection screens are also generated.
Within a report (type 1 program), all SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements outside a SELECTION-SCREEN BEGIN/END OF SCREEN block form part of selection screen 100 (standard selection screen)
Regards,
LIJO JOHN. -
Leaving to Selection Screen in a Module Pool
hi,
I have a module pool with a number of screen.Now ifi am on the 4 th screen after i process something i need to go back to the selection screen. Giving leeve to screen 1000 doesnt work.Could neone please tell what command must be written.Hello Pankaj,
U can try like this.
SET SCREEN 0.
LEAVE SCREEN
or
LEAVE TO SCREEN 0.
If useful reward.
Vasanth -
Module Pool Text field should be display Bold
Hi Freinds,
I have created Module Pool.
1. My requirement is Text Field display Bold & I want to Change of Text Size.
2. After executing Menu bar option are Disable mode, I want in Enable mode.
Thx in Advance.1) By default in PBO you can see 'MODULE status_0001 OUTPUT'
2) if you double click on that it will take you to enable the PF-STATUS (please check the below code).
3) If you double click on PF_0001 then menu painter will be opened to create status.
4) For more information[ click here.|http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ce8454211d189710000e8322d00/frameset.htm]
*& Module STATUS_0001 OUTPUT
* text
MODULE status_0001 OUTPUT.
SET PF-STATUS 'PF_0001'.
SET TITLEBAR 'TB_0001'.
ENDMODULE. " STATUS_0001 OUTPUT
regards,
~Satya -
Multiple people working on one module pool - how?
Hello SDN Community,
I have a need for multiple people to be working on the same module pool. Since the forms are in a shared include inside the main program, how is it handled the multiple people writing code at the same time for the same module pool? Also the concurrent creation of screens in SE51 and pf-statuses in SE41?
Thank you,
Dean Atteberry.I was thinking about SAP module pool SAPMP50A (HR maintenance screen). It has lots of screens, includes, pf-status, etc. I realize that this has evolved over time and that lots had been added since original development.
But the original SAPMP50A must have had a lot of screens designed for it. Assuming it had, lets say 10 screens, did only one SAP developer build all 10 screens? Or did SAP put multiple people on it? And if so, how did they handle needing access to forms in same include with realities of editor locking?
Best way that I can see this now is that only one developer to a given module pool. Maybe a second one could build his part in a secondary module pool (and SE51/SE41) and then copy what they built to main module and SE51 and SE41.
Just trying to think this thing thru.....
Maybe you are looking for
-
How do you use a custom login application?
I have setup a custom Login Application as instructed from the admin guide, but cannot find any instructions on how you then go about using it. Some other posts on here mention customising/linking a page to it based on the user Login.jsp, but they ar
-
SAP Exit for Current Posting Period
H All, I am executing a query and it should always take the Current Fiscal Year & Current period into consideration. I don't see any Standard SAP exit which is provided for this. There is an SAP exit for Fiscal year/Period but I need both of them
-
Hi I have a Konica Minolta PagePro 1300W printer. This works with my Windows-based Toshiba laptop but not with my i-Mac. I have the latest (Mountain Lion 10.8.2) OS-X software. I have installed the printer using 'System Preferences' on my i-Mac and i
-
"character conversion error" while parsing xml files
Hello, I'm trying to parse MusicXML (Recordare) files, but I'm getting an exception. I'm using the SAX parser (javax.xml.parsers.SAXParser). Here is the code I use to instantiate it: final javax.xml.parsers.SAXParserFactory saxParserFactory = javax.x
-
Hello. I have a problem with SQL Server 2008 R2 SP1: I have a table with the full-text index-activated on 3 fields of type nvarchar. When I try to open a transaction (ex: BEGIN TRAN {inserts} COMMIT) to insert multiple rows, I get the following error