Application Development and Automation 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: 
Read only

Module Pool

Former Member
0 Likes
575

Hi all,

As we define select-option in normal report, Can we have the same functionality in Module pool screen.

Thankx in Adv.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
478

Hi,

Please try the below code.

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_CORR FOR Table-field MATCHCODE OBJECT mcd.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF SCREEN 1020.

In module pool declare subscreen area and do the below.

PROCESS BEFORE OUTPUT.

MODULE STATUS_100.

CALL SUBSCREEN ANA_SCA

INCLUDING 'YHPRMAIN' '1020'.

PROCESS AFTER INPUT.

CALL SUBSCREEN ANA_SCA.

MODULE USER_COMMAND_100.

This will work only in 46C and greater versions.

Hope this will help you.

rgds,

latheesh

4 REPLIES 4
Read only

Former Member
0 Likes
478

yes you can,

you need to define a subscreen area in your module pool screen, where you can call a selection screen as a subscreen.

In the selection screen you can define all the elements you want.

Ex:

SELECTION-SCREEN BEGIN OF SCREEN 1200 AS SUBSCREEN NO INTERVALS.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.

PARAMETERS: p1(10) TYPE c,

p2(10) TYPE c,

p3(10) TYPE c.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 1200.

Read only

Former Member
0 Likes
479

Hi,

Please try the below code.

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_CORR FOR Table-field MATCHCODE OBJECT mcd.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF SCREEN 1020.

In module pool declare subscreen area and do the below.

PROCESS BEFORE OUTPUT.

MODULE STATUS_100.

CALL SUBSCREEN ANA_SCA

INCLUDING 'YHPRMAIN' '1020'.

PROCESS AFTER INPUT.

CALL SUBSCREEN ANA_SCA.

MODULE USER_COMMAND_100.

This will work only in 46C and greater versions.

Hope this will help you.

rgds,

latheesh

Read only

Former Member
0 Likes
478

Hi,

Check these link...

Regards

vijay

Read only

0 Likes
478

can any one tell me that how i can display the (basic)list in the modulue pool programming

i am getting first screen(100) of fields(inputs) matnr,ersda ,ernam,

and these fields r(output) to get in the modulue pool .

can any one telll that step step by procedure to get the table output in the next screen(110)...

please help in this one

if i get good answers from u rewards(points) will be there.....