09-09-2008 12:15 PM
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.
09-09-2008 12:24 PM
Rock
Modify Screen Elements using Loop at Screen.....Endloop in PBO of screen depending on the user action.
Thanks
Amol Lohade
09-09-2008 12:30 PM
Hi,
in PAI module you write
case sy-ucomm
fill the table here and display the data ib pbo.
Thanks
ramkrishnaiahY
09-09-2008 12:44 PM
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
09-09-2008 1:39 PM
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