Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regd : Screen (Module Pool)

pradiptakumar_mishra
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

we don't have option to use select-options.

declare 2 different parameters and use between option when selecting data

regards

sandhya

6 REPLIES 6

Former Member
0 Kudos

hi

we don't have option to use select-options.

declare 2 different parameters and use between option when selecting data

regards

sandhya

Former Member
0 Kudos

Hi,

refer this thread:

<b>also refer this thread</b>

rgds,

latheesh

Message was edited by: Latheesh Kaduthara

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

former_member480923
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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>"