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

Selection screen

Former Member
0 Likes
1,199

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.

1 ACCEPTED SOLUTION
Read only

SumanPoddar
Active Participant
0 Likes
1,173

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,173

Is there any "write" or "uline" statement in your code.

If yes, remove that.

Read only

0 Likes
1,173

Hi swastik,

No write or uline statement is there in my program.

Read only

Former Member
0 Likes
1,173

try giving leave to screen 0. and create a PF status.

pk

Read only

Former Member
0 Likes
1,173

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

Read only

0 Likes
1,173

Hi jagadish,

Can u explain me clearly what i have to do now...

Read only

Former Member
0 Likes
1,173

Hi,

Write the code for button as:

When 'BACK'.

LEAVE TO TRANSACTION <TCODE>.

Read only

Former Member
0 Likes
1,173

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.

Read only

0 Likes
1,173

Hi Prakash,

After ALV display, no piece code is there..just all the subroutines exist...

Read only

0 Likes
1,173

Hi,

any suggestion to the problem...

Read only

0 Likes
1,173

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

Read only

SumanPoddar
Active Participant
0 Likes
1,174

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

Read only

0 Likes
1,173

Hi Suman and all,

thanks for your answers....My problem got solved...i have used...skip statement in between selection screen events..

Thanks,

Ram.