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: 

Screen events using screens

Former Member
0 Kudos

Hi gurus ...

I made an ALV report that has a selection criteria (scr 1000).After the alv is displayed i have a button in my gui that calls a screen (200) .My problem is that when i run the report the Fisrt time i can navigate through the screen and i can see my data (alv) .The second time that i try to navigate to my alv i can't and always i go to the screen .

Look how my report goes :

run -> scr 1000 -> data (alv) -> scr 200 -> <b>scr 1000 -> scr 200 -> scr 1000 -> scr 200</b> etc etc

The problem is that i can\t see that data again .

Please can someone explain me the logical series for navigating throu screens ...

Please help ....

1 ACCEPTED SOLUTION

former_member533584
Contributor
0 Kudos

Hi,

I think you need ALV screen after click back from SCreen 200 not to Standard selection screen . Then in PAI ( module USER_COMMAND_0200 input ) use leave to screen 0 as

module USER_COMMAND_0200 input.

CASE OK_CODE.

WHEN 'BACK'.

leave to screen 0.

WHEN OTHERS.

  • do nothing

ENDCASE.

endmodule.

Thanks,

Ananth

4 REPLIES 4

Former Member
0 Kudos

Hi dimath,

You should use an exstra pushbutton on the screen and code it.

You put a pushbutton on the screen and then assign it a function key,

afterwards go to the process after input(PAI) of the screen 200 and code this fcode there and write:

case ok_code "define this ok_code at your code as type sy-ucomm and

"make available it also in your screen Element List tab.

when 'BACK'. "this is what you have put as pushbutton

"on the screen

leave program. " if you want to leave the program.

call selection-screen 1000. "write this one to return to the selection screen.

endcase.

Hope this helps and hope you reward.

Thanks.

Message was edited by:

Deniz Toprak

Former Member
0 Kudos

And the heart of the solution is this:

You have to select data from db tables at process before output of the screen 200 to see it after 'every back and forth' movement between screens.

Write your select sentence as a module at your PBO of the screen.

Thanks.

former_member533584
Contributor
0 Kudos

Hi,

I think you need ALV screen after click back from SCreen 200 not to Standard selection screen . Then in PAI ( module USER_COMMAND_0200 input ) use leave to screen 0 as

module USER_COMMAND_0200 input.

CASE OK_CODE.

WHEN 'BACK'.

leave to screen 0.

WHEN OTHERS.

  • do nothing

ENDCASE.

endmodule.

Thanks,

Ananth

rxsalomone
Explorer
0 Kudos

Hi Dimath72:

the module pool sequence in screen event is the follow:

run ->

PBO 1000 -> screen 1000 (w/ ALV) -> PAI 1000 ->

PBO 200 -> screen 200 -> PAI 200 ->

PBO 1000..... and repeat again.

you must fill alv data in PBO.

look at this:

alv table is declared in TOP?

procedure to fill table is in PBO?

I hope this help you

regards.