10-20-2008 3:25 AM
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.
10-20-2008 3:29 AM
hi,
use this code before the write statement.
LEAVE TO LIST-PROCESSING.
regards,
Peter
10-20-2008 3:29 AM
hi,
use this code before the write statement.
LEAVE TO LIST-PROCESSING.
regards,
Peter
10-20-2008 3:34 AM
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.
10-20-2008 3:41 AM
10-20-2008 3:45 AM
hi, peter
i have tryed , but it seems dose not work.
nothing appears in the called screen.
10-20-2008 3:48 AM
Hi Liu,
try any of the following:
LEAVE TRANSACTION TO LIST-PROCESSING
LEAVE SCREEN TO LIST-PROCESSING
regards,
Peter
10-20-2008 4:02 AM
10-20-2008 3:36 AM
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.
10-20-2008 3:48 AM
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
10-20-2008 4:05 AM
10-20-2008 4:13 AM
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.
10-20-2008 4:19 AM
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
10-20-2008 4:29 AM
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.
10-20-2008 4:33 AM