05-19-2006 7:21 AM
Dear Experts,
Can we have the functionality of select-options on a custom screen? I mean to say I've a screen 100 in which I've put a field matnr. Now the requirement is that there will be From-To(matnr-high and matnr-low) scenario in the screen.
So any suggestion how to approach for this?
Code will be most helpful.
Thanks In advance !!!!
Regards
Pradipta Kumar Mishra
05-19-2006 7:33 AM
hi
we don't have option to use select-options.
declare 2 different parameters and use between option when selecting data
regards
sandhya
05-19-2006 7:33 AM
hi
we don't have option to use select-options.
declare 2 different parameters and use between option when selecting data
regards
sandhya
05-19-2006 7:33 AM
05-19-2006 7:41 AM
Hi,
You can do this.
On the screen 100, define a subscreen. You call a selection screen in that subscreen.
This is used in standard SAP also. Ex : WE02
If found useful, award ponts pls.
Regards,
Bharadwaj
05-19-2006 7:59 AM
Hi,
You can do that, here the sample:
1. Create Subscreen in your Standart Report program
SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) TEXT-009.
SELECTION-SCREEN POSITION 10.
SELECT-OPTIONS : S_date FOR sy-datum.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1020.
2. Create Subscreen in your custom Screen
3. Put this code in Custom Screen Flow Logic :
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN subsc
INCLUDING 'Z_JRQ005R' '1020'.
PROCESS AFTER INPUT.
CALL SUBSCREEN SUBSC.
Notes:
1020 = Subscreen in Report Standart Report program
Z_JRQ005R = Standart Report program Name
SUBSC = Subscreen Name in custom Screen
Regards,
05-19-2006 8:01 AM
Try to open a report program which has select option in selection screen in transaction SE51 or SE80 and view the screen design. I think it will give you a good idea.
thanks
Anirban
05-19-2006 9:06 AM
Hi Pradipta,
apart from using the "AS SUBSCREEN" addition of user-defd selection screen to accomplish ur task u can also set ur user-defd selection screen with out the "AS SUBSCREEN" addition as the initial screen of the transation attached to ur program. Please the check the program "<b>SAPMSSLS</b>"