‎2005 Dec 23 10:25 AM
Hi,
I used COMPLEX_SELECTIONS_DIALOG this function in my dialog programming..This is used to get multiple values..
When i call this function it gets multiple values..for my field...
If i press F4 key i need to display the data from my internal table..
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' MULTIPLE SELECTION'
TEXT = 'ENTER DOCUMENT TYPE'
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = ' '
JUST_DISPLAY = ' '
JUST_INCL = ' '
EXCLUDED_OPTIONS =
DESCRIPTION =
HELP_FIELD =
SEARCH_HELP =
TAB_AND_FIELD =
TABLES
range = S_FILTER
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5
.
Here in this function I can pass search help..
But i need to use pass values from my internal table..
Is there anyway to pass in this function..?
Reply me..
Thanks in advance..
Regards
Naga.
‎2005 Dec 23 10:41 AM
Hi Nag,
I can give you an alternative, as I am sure you are using it because you need select-options in a regular dialog. I would suggest you put a subscreen area in the same area where you have these fields with select options. All that you would need to do is declare a selection screen in your TOP include and while calling the subscreen in your actual dialog, just mention the selection screen number.
Advantage of this approach is that you can write a POV i.e. AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> for the select options and <b>you would never need to call COMPLEX_SELECTIONS_DIALOG</b>.
Regards,
Srikanth
‎2005 Dec 23 10:41 AM
Hi Nag,
I can give you an alternative, as I am sure you are using it because you need select-options in a regular dialog. I would suggest you put a subscreen area in the same area where you have these fields with select options. All that you would need to do is declare a selection screen in your TOP include and while calling the subscreen in your actual dialog, just mention the selection screen number.
Advantage of this approach is that you can write a POV i.e. AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> for the select options and <b>you would never need to call COMPLEX_SELECTIONS_DIALOG</b>.
Regards,
Srikanth
‎2005 Dec 23 10:58 AM
Hi Srikanth,
Thanks for your immediate reply...
But i need how to validate subscreen..
For example i placed two select option in the subscreen.
In which event u validate this field..
I need code for that with an example.
Regards
Naga.
‎2005 Dec 23 11:02 AM
HI Nagarajan,
Once you place a selection screen in a subscreen all you need to do is valiadate your subscreen just as you do in normal report programming.
I.e all validations in
'at selection-screen' event
Regards,
Ravi
‎2005 Dec 23 11:06 AM
Hi Naga,
I have done this in my program declaring select-options
and validating it.
* Selection screen for oss Notes Finder Added By Pnrao
SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(7) TEXT-012.
SELECTION-SCREEN POSITION 22.
SELECT-OPTIONS: S_OS_STR FOR S_OS_STR1 NO INTERVALS DEFAULT 'OSS'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(19) TEXT-013.
SELECTION-SCREEN POSITION 25.
PARAMETERS : P_DATE2 LIKE E070-AS4DATE DEFAULT '19930101'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 500.
Call the above subscreen in the screen.
In the program you can directly you can call below event.
*---- At selection screen validations
AT SELECTION-SCREEN.
PERFORM AT_SELECTION.
*----------------------------------------------------------------------*
* A T S E L E C T I O N S C R E E N O N
*----------------------------------------------------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM AT_SELECTION_VALUE.
Hope this will help you.
Thanks & Regards,
Siri.
‎2005 Dec 23 11:11 AM
Hi Nag,
Remember all this code must be in TOP include.
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
PARAMETERS:
p_matnr TYPE mara-matnr.
SELECTION-SCREEN END OF SCREEN 200.
Now after this you complete all other declarations
which you need for your program
*After declarations end
AT SELECTION-SCREEN.
*Do all your validations here
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <fields>
*Use this section for F4 help.......
Call this subscreen in your original screen in PBO and PAI(dont forget to call the subscreen in PAI else AT SELECTION-SCREEN will never get triggered). Here you need not have to call the FM COMPLEX_SELECTIONS_DIALOG .
Remember in this case all the processing you do for the subscreen will be in the selection screen events...Thats it......
Let me know in case you any further details. Hope this helps
Regards,
Srikanth
‎2005 Dec 23 10:44 AM
Hi,
Try by passing internal table to TAB_AND_FIELD import parameter... or best way is to call this fn mod
F4IF_INT_TABLE_VALUE_REQUEST istead of the one u r using...
Regards,
Sridhar
Message was edited by: sridhar reddy kondam