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

screen issue, need help!

Former Member
0 Likes
1,323

hi, all

here is my technical requirement: in report A , let's say report "call screen" , i called a screen using

"call screen 0100." and in the called screen "0100" i want to display something using WRITE statement. how should i do that?

thanks a lot in advance.

1 ACCEPTED SOLUTION
Read only

peter_ruiz2
Active Contributor
0 Likes
1,291

hi,

use this code before the write statement.

LEAVE TO LIST-PROCESSING.

regards,

Peter

13 REPLIES 13
Read only

peter_ruiz2
Active Contributor
0 Likes
1,292

hi,

use this code before the write statement.

LEAVE TO LIST-PROCESSING.

regards,

Peter

Read only

0 Likes
1,291

hi, peter

you mean in the pbo module of the called screen 0100,

like this:


module pbo_0100 output.
          leave to list-processing.
          write: / 'Hello'.
endmodule.

actually , can you give a sample code here. thanks.

Read only

0 Likes
1,291

Hi Liu,

yes, that should do it.

regards,

Peter

Read only

0 Likes
1,291

hi, peter

i have tryed , but it seems dose not work.

nothing appears in the called screen.

Read only

0 Likes
1,291

Hi Liu,

try any of the following:

LEAVE TRANSACTION TO LIST-PROCESSING

LEAVE SCREEN TO LIST-PROCESSING

regards,

Peter

Read only

0 Likes
1,291

peter,

none of them is working.

Read only

Former Member
0 Likes
1,291

Hi, David, On normal screen that you created in report or dialog prgram, you can not used statement 'WRITE'. If you want to show some texts on the screen, please add text box on the screen, and specific the text content in the PBO of screen.

Read only

Former Member
0 Likes
1,291

Hi David,

Have you tried initializing the values that you want to display with in PBO.

There might be no specific write statement needed to display the values.

Suppose if i want to display todays date in the screen means no need to use write statement directly input as shown.

In PBO

ZEMPDETAILS-DATE = SY-DATUM.

ZEMPDETAILS-PERID= 'SAP1035'.

In the above statements in the input text box of name ZEMPDETAILS-DATE i am displaying the date value. And in the other employee id.

Like wise whatever values that u want to display initialize in PBO will work.

Cheers!!

Balu

Edited by: Balu CH on Oct 20, 2008 8:19 AM

Read only

0 Likes
1,291

hi, Balu CH

the data is fine. but still not display output.

Read only

0 Likes
1,291

hi, all

here is my demo report:


REPORT  ZDAVID_LIST_PROCESSING.

call screen 100.

module pbo_100 output.

leave to list-processing.
      write: / 'Hello'.
leave list-processing.

endmodule.

module pai_100 input.
    leave program.
endmodule.

dose this gonna work to display "Hello" in the called screen.

Read only

0 Likes
1,291

Hi,

LEAVE LIST-PROCESSING at the end of the PBO will exit the screen where the WRITE statement occured that is why there are no text being displayed.

LEAVE PROGRAM on PAI without any conditions on which pushbutton was pushed will immediately exit your program without displaying your screen.

regards,

Peter

Read only

0 Likes
1,291

hi, all

i figured it out.

if i use leave to list-processing, all the what i "WRITE" is still display in the report, not the called screen.

Read only

0 Likes
1,291

Hi David,

Try LEAVE LIST-PROCESSING statement