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

Regarding module pool program.............

Former Member
0 Likes
351

Hi Experts.

I'm having a problem on module pool (dialogue program).

I already created one module pool program with PBO PAI MODULES and SET-PF FOR MENU BAR.

I am facing one problem here that after 'leave to list processing' command in PAI MODULE a screen with result comes. But in that screen 'cancel' function in menu-bar(navigation bar) doesn't works.But it works before input is given to the fields.I can't understand where mistake happen.

Could you please give me the solution for that mistake.............

Thanking you to all for your valuable suggestions...............

With regards,

garikapati206.

Edited by: garikapati206 on Aug 6, 2011 10:00 AM

Moderator message: please use more descriptive subject lines for your posts.

Edited by: Thomas Zloch on Aug 7, 2011 9:49 PM

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
0 Likes
322

Hi garikapati206,

Maybe you have done something like this:


CALL SCREEN 100.
MODULE STATUS_0100 OUTPUT.
  SUPPRESS DIALOG.
ENDMODULE.
MODULE USER_COMMAND_0100 INPUT.
  LEAVE TO LIST-PROCESSING. <=== incomplete
  WRITE 'HELLO'.
ENDMODULE.

The code above will display the list, but when you press Exit, you feel that nothing happens.

In fact, you correctly leave the ABAP list, but the dynpro 100 starts again as LEAVE TO LIST-PROCESSING without any extension indicates that when we exit the list, the dynpro must be started again, and so it displays the list again. You can see it by debug.

What you should do:


  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0. <=== complete

The use of screen 0 means that the call sequence (started by CALL SCREEN) terminates, and so you don't restart dynpro 100.

PS: another solution is to add SET SCREEN 0 after LEAVE TO LIST-PROCESSING alone.

BR

Sandra

Read only

sridhar_meesala
Active Contributor
0 Likes
322

Hi,

If you are calling a screen using CALL SCREEN in a report and then using LEAVE LIST PROCESSING then in the report event AT USER COMMAND you write the code for navigation.

Thanks,

Sri.