Skip to Content
author's profile photo Former Member
Former Member

Screen events using screens

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Nov 21, 2007 at 01:54 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 03:59 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 01:41 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 01:47 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.