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: 

Subscreen in module pool

Former Member
0 Kudos

Hi,Iam new to module pool.My requirement is to display data on the same screen in table control when the end user clicks on a pushbutton.For that I have created a work area in the main screen.I have created a subscreen with the table control I want data I want.But it is getting displayed immediately when the first screen is getting displayed.It should get displayed when user clicks on a pushbutton.

I think my question is clear,if not PLZ tell me where to clarify.

4 REPLIES 4

Former Member
0 Kudos

Rock

Modify Screen Elements using Loop at Screen.....Endloop in PBO of screen depending on the user action.

Thanks

Amol Lohade

Former Member
0 Kudos

Hi,

in PAI module you write

case sy-ucomm

fill the table here and display the data ib pbo.

Thanks

ramkrishnaiahY

Former Member
0 Kudos

Hi

in PBO module of 1st screen check for user action i.e.

check the value of sy-ucomm, if it is same as the name of pushbutton...

trigger the subscreen.

moreover the work area(to fetch the values) you are using, used it ic subscreen instead of 1st screen.

hope this will help you.

Thanks

Rajesh Kumar

Former Member
0 Kudos

Hi,

i got a solution for your problem and i tried it and is successful, i hope this wil resolve your problem.

as you said when you execute the transaction the table control wil be displayed, but for that you creat one more empty subscreen and make it default subscreen.

then you assign your subscreen with table control to be called when pushbutton is pressed.

DATA: NUMBER(3) TYPE N VALUE '300'. "empty subscreen

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN AREA INCLUDING SY-REPID NUMBER.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN AREA.

in report program.

MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'DISPLAY'.

NUMBER = '200'. "subscreen with table control

WHEN 'BACK'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

regards,

prakash reddy .s