‎2008 Jun 12 11:04 AM
Hi folks,
If i generate my ALV report, i can see the output. After that, if i go back...the screen is going to some empty screen..then if go back its go to the selcetion screen...why its going to empty screen in middle..could any one solve my prob..
Thanks in advance
Ram.
‎2008 Jun 12 11:46 AM
Hi,
1. First Check whether there is any Write/Uline statement.
If yes remove all the write/uline.
2. Then Check there may SKIP statement in between
SELECTION-SCREEN Begin....
....
....
SELECTION-SCREEN End....
like,
SELECTION-SCREEN BEGIN OF BLOCK BONDT WITH FRAME TITLE TEXT-B03.
PARAMETERS: S_ORIG LIKE PPU12-ORIG,
S_REPE TYPE PPU12_EXPREP.
SKIP 1.
PARAMETERS: S_PROT TYPE PPU12_EXPPROT.
SELECTION-SCREEN END OF BLOCK BONDT.
3. Write the code within proper Report Events.
LOAD-OF-PROGRAM.
....
initilization.
.....
at selection-screen output.
....
at selection-screen on .....
at selection-screen.
.....
start-of-selection.
.....
end-of-selection.
.....
top-of-page.
....
end-of-page.
.....
Check point number 2...It may solve the problem
Regds.
Suman
‎2008 Jun 12 11:06 AM
Is there any "write" or "uline" statement in your code.
If yes, remove that.
‎2008 Jun 12 11:07 AM
Hi swastik,
No write or uline statement is there in my program.
‎2008 Jun 12 11:06 AM
‎2008 Jun 12 11:06 AM
If u r using ALV grid control u need to supress
when u r leaving to list processing
otherwise an empty screen appears.
If that is not the case
use leave to screen 0 and create a PF status.
Regards,
Jagadish
‎2008 Jun 12 11:07 AM
Hi jagadish,
Can u explain me clearly what i have to do now...
‎2008 Jun 12 11:07 AM
Hi,
Write the code for button as:
When 'BACK'.
LEAVE TO TRANSACTION <TCODE>.
‎2008 Jun 12 11:23 AM
Hi,
As you said you do not have any write or uline commands in your code after ALV Grid display.
Please check if there is any piece of code that you have written after ALV Grid display. If so, you will get an empty screen as the editor does not execute any commands after ALV Grid display FM is called. hence you might be getting the empty screen.
‎2008 Jun 12 11:32 AM
Hi Prakash,
After ALV display, no piece code is there..just all the subroutines exist...
‎2008 Jun 12 11:41 AM
‎2008 Jun 12 11:47 AM
Hi,
If you are using the function module, then no code with write statements should exist related to the output to list.
If you are using the classes create the PF-STATUS in PBO (STATUS) and handle the back button (BACK) and in PAI handle the usercommand.
case sy-ucomm.
when 'BACK'.
leave to screen 0.
endcase.
then it will go to the previous screen from where you navigated.
Please follow these suggestions.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:18 PM
‎2008 Jun 12 11:46 AM
Hi,
1. First Check whether there is any Write/Uline statement.
If yes remove all the write/uline.
2. Then Check there may SKIP statement in between
SELECTION-SCREEN Begin....
....
....
SELECTION-SCREEN End....
like,
SELECTION-SCREEN BEGIN OF BLOCK BONDT WITH FRAME TITLE TEXT-B03.
PARAMETERS: S_ORIG LIKE PPU12-ORIG,
S_REPE TYPE PPU12_EXPREP.
SKIP 1.
PARAMETERS: S_PROT TYPE PPU12_EXPPROT.
SELECTION-SCREEN END OF BLOCK BONDT.
3. Write the code within proper Report Events.
LOAD-OF-PROGRAM.
....
initilization.
.....
at selection-screen output.
....
at selection-screen on .....
at selection-screen.
.....
start-of-selection.
.....
end-of-selection.
.....
top-of-page.
....
end-of-page.
.....
Check point number 2...It may solve the problem
Regds.
Suman
‎2008 Jun 12 11:50 AM
Hi Suman and all,
thanks for your answers....My problem got solved...i have used...skip statement in between selection screen events..
Thanks,
Ram.