MULTIPLE SELECTION IN DIALOG PROGRAMMING
Hello exports,
I need to provide an interface to user where he can Put multiple selected invoice number at a time. (Like multiple selection in select option). It should be done in dialog programming.
plz suggest me .
Hai ,
You can use RANGES or can use TYPE RANGE OF while declaring.
For eg:
DATA:it_invoice TYPE RANGE OF vbrk-vbeln,
. wa_invoice LIKE LINE OF it_invoice.
Now u need a bit of coding,
wa_invoice -sign = 'I'.
wa_invoice -option = 'BT'. i.e between
r_carrid_line-low = your screen fieldname inwhich the lower limit was selected
r_carrid_line-high = your screen fieldname inwhich the higher limit was selected.
APPEND wa_invoice TO it_invoice.
Now u can use this internal table IT_INVOICE in query using operator IN in the WHERE caluse as u use with select-options.
Or you can create a report program which has only a selection screen
You can EXPORT the object(select option name) to ur dialog program using IMPORT/EXPORT MEMORY ID .
But you need to declare the select options in ur dialog program with the same name and the structure
DATA: BEGIN OF rtab OCCURS {10|n},
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low LIKE dobj,
high LIKE dobj,
END OF rtab.
Thanks,
Neeraj
Similar Messages
-
Selection screen dialog programming
I have used a selection screen in the dialog programming.
I have written some code in the at selection screen to display the output on a table control in another screen 1001.
my problem is that when i try to enter the multiple values for material ,
it goes to the at selection screen and displays the output again.
if i write the code in start of selection instead of at selection screen
it doesnt give any output at all.
how do i correct this error?
SELECTION-SCREEN BEGIN OF SCREEN 2000 .
SELECT-OPTIONS : s_ersda FOR MCHB-ERSDA OBLIGATORY.
SELECT-OPTIONS : s_matnr FOR MCHB-MATNR.
SELECT-OPTIONS : s_matkl FOR MARA-MATKL.
SELECT-OPTIONS : s_ferth FOR MARA-FERTH.
SELECTION-SCREEN END OF SCREEN 2000.
at selection-screen.
statements to fill the output table
screen containing table control
call screen 1001Friends,
Req for ABAP HR
ROLE: SAP HR ABAP DEVELOPER
Location: TULSA, OK
Duration: 3 + MONTHS
REQUIRED SKILLS: SAP ABAP / Dialog and regular / R/3 and HR / Workflow / smartforms
/ ALV / LSMW for HR and R/3 / Modules - MM , SD , HR, PD , PS
Start Date: 11-12-07
If interested Please send the cvs to [email protected] -
Active mode multiple selection in dialog screen
in my dialog screen i had multiple selection option button by using the below function module.
CALL FUNCTION 'K_CMPERS_MULTIPLE_SELECTION'
EXPORTING
P_FIELDTYPE = 'R'
P_FIELDNAME = 'MATNR'
P_TABLENAME = 'MARA'
TABLES
PT_PARM = HMAT.
its working fine.
but when i enter data into multiple selection it does not changes to active mode ( green color).
can u pls tell me how to change it into active mode when data is thereHi Banu,
The icon will not change automatically. You need to write code in PBO and change the icon of your push button accordingly.
Please refer to the document below for how to change icon of push button in module pool:
[http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool|http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool]
Cheers, -
Select option in Dialog program screen
Hi friends,
do we have any way to get a select option displayed in dialog programming ?
or
create a screen field with the properties of a select option in dialog screen ?
or
any standard function module to support this scenario ?
Thanks and Regards
Sakthi.Hi,
i don't know you checked it or not, but i am able to do it, i send the screen shot also to you check it..
it is possible,with some coding also check it once...
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 = 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 = 0.
READ TABLE R_UNAME INDEX 1.
IF SY-SUBRC = 0.
V_USERNAME = R_UNAME-LOW.
ENDIF.
ENDIF.
ENDFORM. " GET_MULTIPLE
Flow loogic....
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
PROCESS ON VALUE-REQUEST.
*- To capture the cursor and for f4
FIELD V_USERNAME MODULE GET_CURSOR_USERNAME.
in screen i have one field v_username
for that field do this
<b>double click on field which you want to make it as select option, it will display the attributes screen, in that click on program attributes button , now go to poss. entries in the dropdown choose 1 show at selection.</b>
Regards
vijay -
"Multiple Selection Dialog Box" VI Question
I've downloaded the "Multiple Selection Dialog Box" program and it works great, except when I add *.txt to the 'Files of type' array and then save it. I close the program and then reload it again and the change I made is not present...what am I missing?
tksRight-click on the 'Files of Type' array and select 'Data Operations,' and then select 'Make Current Value default.' Save the VI.
You'll now not lose this on reopening the VI.
Khalid -
Select-options in Dialog Programming
Hi,
I am designing a custom dialog programming screen.
I want to create a filed on thescreen which can allow the range of values to be entered like select-options in a report.
How do I create a field which can accept range of values in dialog programming?
Thanks,
Ashok.Hi,
In your selection screen program, Use Export command
Export r_Purchase_Order To Memory Id 'PO'.
Export r_Po_Item To Memory Id 'POITEM'.
Export r_Plant To Memory Id 'PLANT'.
Export r_Vendor To Memory Id 'VENDOR'.
Export r_Material To Memory Id 'MATNR'.
Export r_Batch To Memory Id 'BATCH'.
Export r_Arrival_Date To Memory Id 'ADATE'.
Export r_Arrival_Time To Memory Id 'ATIME'.
Export r_Delivery_No To Memory Id 'DEL'.
Export r_Reference_No To Memory Id 'REF'.
Export r_User To Memory Id 'USER'.
Export t_Display_Data To Memory Id 'DISPDAT'.
In your Module pool program, Use Import Command
When c_Ok_0100_Execute.
IMPORT r_Purchase_Order From Memory Id 'PO'.
IMPORT r_Po_Item From Memory Id 'POITEM'.
Import r_Plant From Memory Id 'PLANT'.
Import r_Vendor From Memory Id 'VENDOR'.
Import r_Material From Memory Id 'MATNR'.
Import r_Batch From Memory Id 'BATCH'.
Import r_Arrival_Date From Memory Id 'ADATE'.
Import r_Arrival_Time From Memory Id 'ATIME'.
Import r_Delivery_No From Memory Id 'DEL'.
Import r_Reference_No From Memory Id 'REF'.
Import r_User From Memory Id 'USER'.
Import t_Display_Data From Memory Id 'DISPDAT'.
Thanks -
Select-Option in Dialog programming
Hi Experts,
Can we use select-options in Dialog programming?
If yes, Please help me, how to do that?
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PMHi Asrar,
Definitely you can use select-options in dialog programming.
You can do this using Subscreen.
define this scubscreen in top include.
selection-screen : begin of screen 100 as subscreen.
select-option : kunnr for kna1-kunnr.
selection-screen : end of screen 100.
in screen 200 where this selection screen appears, create a subscreen area 'SSA'.
Process on output. "200 screen.
call subscreen SSA including sy-repid '100'.
other modules
Process on input. "200 screen.
call subscreen SSA.
other modules
now you can access kunnr like other screen 200 objects.
<REMOVED BY MODERATOR>
Regards
Megha
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PM -
Select-Options in dialog program
Hi there,
I'm using a selection-screen in a dialog program, I declared it in the TOP.
Selection-screens
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
parameters: p_lifnr type lfa1-lifnr obligatory ,
p_werks type t001w-werks obligatory .
SELECT-OPTIONS:
s_licha FOR zbrtconsig-licha.
SELECTION-SCREEN END OF SCREEN 101.
I have to use the event at selection-screen on value-request for s_licha-low, and I need the values from the fields p_lifnr and p_werks. the problem is:
If I only fill the fields p_lifnr, p_werks and click on F4 for s_licha, the values of p_lifnr and p_werks are not updated, they are empty. Only wether I do an Enter this fields is updated.
Thanks,
Alexandre NogueiraHi,
i am not clear about your problem, please expalin it clearly.
use FM : DYNP_VALUES_UPDATE to update screen fields.
use FM : DYNP_VALUES_READ to read screen fields.
use SET /GET Parameter id's to set parameters
this FM will update the screen fields before to PBO event.
check this link for sample code :
Re: Issue Related to Module pool
Regards
Appana -
How to use a parameter of a report program from selection screen in a dialog program
how to use a parameter value(entered ) of a report program from a selection screen in a dialog program.
I have to fetch the value entered in the parameter of report program and display it in a dialog programHi Aasim,
Just mention like below in your ABAP report.
PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro -
File Dialog (Details View and Multiple Selections for View File Type)
I would like to use the generic windows dialog box found in the toolbar under:
File I/O/Advanced File Functions/File Dialog
What I would like to do is have multiple selections for the file type, for example one menu selection is *.txt, another is *.rtf, another is *.csv, etc. Listing a single type is straightforward.
Also does anyone know if there is a way to have the dialog open in the DETAILS view automatically?
Thanks for any help!
CarltonHi,
You can do it in following ways:
1. Write in pattern input the string "*.txt; *.csv; *.rtf". This will show to the user only files with this extensions in the dialog.
2. Another way is to create ring or menu where user could specify the extension. Depending on this extension you could wire the appropriate string to the pattern input of "File Dialog.vi"
I have made an example.
Good luck.
Oleg Chutko.
Attachments:
fileopen.vi 42 KB -
Select-option field in dialog programming
hi guys,
i need to declare field matnr as select-option range in dialog programming..how can i code it in the module program?This questions has been answered many times (even in february)
- search sdn wiki (2 commented samples at [SELECT-OPTIONS on Dialog programming screen|http://wiki.sdn.sap.com/wiki/display/ABAP/SELECT-OPTIONSonDialogprogrammingscreen] and [Select-Options in Module Pool Programming|http://wiki.sdn.sap.com/wiki/display/ABAP/Select-OptionsinModulePoolProgramming])
- search abap online help ([SELECTION-SCREEN - AS SUBSCREEN |http://help.sap.com/abapdocu_70/en/ABAPSELECTION-SCREEN_SUBSCREEN.htm] with sample at [Selection Screens as Subscreens |http://help.sap.com/abapdocu_70/en/ABENSEL_SCREEN_SUBSCREEN_ABEXA.htm])
Regards,
Raymond -
Multiple Selection dialog restricted to 5 rows
Hi All,
I have defined a select options in my WebDynpro view.
When I try to enter some value using the Multiple Selection dialog (Extensions) it only shows maximum of 5 rows.
If need to enter more data, I just have to press the "insert" button and add new rows.
But is there a way to populate more than 5 rows initially.
Or is there a way to give a "Upload from clipboard" functionality when a user needs to enter more than 5 rows of selection input.
Thanks in advance for your kind help.hi Thomas,
Thank you so much for your quick response.
But is there a way that I could at least increase the number of visible rows initially? -
Reg- Selection screen in Dialog Programing
Dear Friends,
I have developed one Dialog program. In that i have to select profit center like from and to option. Apart from i want to select more profit ceneter also. Now my problem s i designed form,to and more fielsd also. If i enter more filds it s not coming in to from to option.
Tell any gud function modulr for selectiong from,to and more fields.
Thanks & regards
Prabu KHi,
See below report it might help you.
REPORT selectoptionsrestrict.
Include type pool SSCR
TYPE-POOLS sscr.
TABLES :
marc.
defining the selection-screen
select-options :
s_matnr for marc-matnr,
s_werks for marc-werks.
Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.
Auxiliary objects for filling RESTRICT
DATA : optlist TYPE sscr_opt_list,
*** type sscr_***.
INITIALIZATION.
Restricting the MATNR selection to only EQ and 'BT'.
optlist-name = 'OBJECTKEY1'.
optlist-options-eq = 'X'.
optlist-options-bt = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_MATNR'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY1'.
APPEND *** TO restrict-***_tab.
Restricting the WERKS selection to CP, GE, LT, NE.
optlist-name = 'OBJECTKEY2'.
optlist-options-cp = 'X'.
optlist-options-ge = 'X'.
optlist-options-lt = 'X'.
optlist-options-ne = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_WERKS'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY2'.
APPEND *** TO restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
EXCEPTIONS
TOO_LATE = 1
REPEATED = 2
SELOPT_WITHOUT_OPTIONS = 3
SELOPT_WITHOUT_SIGNS = 4
INVALID_SIGN = 5
EMPTY_OPTION_LIST = 6
INVALID_KIND = 7
REPEATED_KIND_A = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
Mohit -
I want to draw multiple selection for some field on Type M program.
Hi. everyone.
I'm programing on Type M program but I don't know how do I draw multiple selection on Type M.
Is it possible?
If you know some related website or on-line document, please let me know that.It means Online program. it is not report progeam.
I want to design a multiple selection on screen. -
Dialog programming - How to place a select-option field in a dialog screen
Hi all,
In Dialog Programming, How to place a select-option field in a dialog screen.
Kindly give me some example code...
Thanks,
Jaffer Ali.Shi Ali,
U can add select-options in ur module pool by using SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN command.
check this link for reference.....
http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm
Example Code :
DATA : ok_code TYPE sy-ucomm.
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
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'.
CALL SCREEN 1010 .
ENDMODULE. "status_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
SCREEN 100 ****************
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
<b>***** where sub_1010 is name of sub-screen area</b>
PROCESS AFTER INPUT.
CALL SUBSCREEN sub_1010.
MODULE user_command_0100.
<<< REMOVED BY MODERATOR >>>
Harimanjesh AN
Edited by: Marcelo Ramos on Dec 17, 2008 7:54 PM
Maybe you are looking for
-
Questions about Contracts and New Phones
I've had some questions about how upgrading and adding new lines to a contract works and I haven't been able to find the answers through Google. First some background information: We started this most recent contract in September of 2011 and as such
-
Dynamic Link and DSLR presets not available in CS5???
Hi, I''m downloaded Premiere CS5, but when I try to open Dynamic Link, a screen pops up and tells me that I need Production Premium in order to access Dynamic Link???? Also how come DSLR presets when I create new projects is no longer available? They
-
Change in sender name of mail sended through workflow
Hi All, I have requirement where we want to chage the sender name decription for mails which are going through workflow.When we send mails through send mail step in workflow it is taking sender decription name automatically as "GSAP E1B WORKFLOW SYST
-
Has anyone implemente​d the Amulet Serial Protocol for LabVIEW?
If not, is anyone interested in helping implementing one? I know a lot about the Amulet Serial Protocol, but nothing about LabVIEW. Willing to throw in an Amulet Starter Kit as well.
-
How do i turn off automatic downloads
So i recently bought the iphone 5c and was downloading some apps that i havent had b4 on my moms/brothers iphone 4s and the apps i downloaded on my phone also downloaded on his phone becuase i am the only one with the apple id and i dont think he lik