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

problem in subscreen

former_member217546
Participant
0 Likes
596

hi all i have a problem with in the subscreen.

i have a button in the sub screen when i press the buttun or press enter

it should be in the same subscreen.

if i write leave to screen, or set screen its not accepting .

how can i call my same subscreen for the particular user command.

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
565

You don't leave to subscreen neither you set subscreen. All you do is to provide appropriate number of subscreen which should be displayed in subscreen area of main dynpro. In below example it is dyn_no .


"in main screen
PROCESS BEFORE OUTPUT.
  CALL SUBSCREEN: area1 INCLUDING sy-repid dyn_no.

"in subscreen 
PROCESS AFTER INPUT.
   MODULE user_command.

MODULE user_command INPUT.
  if sy-ucomm = "your user command here
     dyn_no = '100'. "here just set correct subscreen number, so in PBO of main screen it will process this one
  endif.
ENDMODULE.

Regards

Marcin

Read only

0 Likes
565

Hi thank u for ur reply .. its an enhancement so when i try to change dyn_no of main screen its says that variable does not exist,

so i can not change that from my subscreen pai.

Edited by: sudheer b on Mar 5, 2010 7:00 AM

Read only

0 Likes
565

So what variable you have there (in main screen) as your subscreen number and where is its definition? Is it a global one?

If so you should be able to address it directly.