Application Development 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: 

Back to Selection screen

Former Member
0 Kudos

Hi all,

I developed an ALV report, once the got the output , My intension is I should go back to the Selection-screen and the selection criteria has to be cleared.

I mean a blank selection-screen..

so that I can enter new criteria with out deleting my previous entries.

Thanks,

Vardhini

9 REPLIES 9

Former Member
0 Kudos

Use below code in your PAI ->

MODULE user_command_1001 INPUT.

CASE sy-ucomm. "user command

WHEN 'BACK'.

LEAVE TO SCREEN 0.

"->> write logic to clear select option value here.

"->> e.g. CLEAR: s_werks,s_bukrs.

"->> REFRESH: s_werks,s_bukrs.

WHEN 'EXIT' OR 'CANCEL'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " user_command_1001 INPUT

Regards,

Aparna Gaikwad

Former Member
0 Kudos

hi,

case sy-ucomm.

when 'BACK'.

leave screen.

  • Clearing the Values of Selection Screen.

clear : s_matnr ,

p_ersda.

endcase.

Regards,

deepthi.

naimesh_patel
Active Contributor
0 Kudos

You can clear all the selection screen fields just after the ALV Call. Once system finished the ALV processing, it will process the clearing of the selection screen.

Regards,

Naimesh Patel

Edited by: Naimesh Patel on Sep 29, 2008 8:07 AM

Former Member
0 Kudos

Hi,

Try it at selection-screen output event.

At Selection-Screen Output.

clear <fields>.

Regards,

Bhaskar

Edited by: Bhaskar Chikine on Sep 29, 2008 6:30 PM

Former Member
0 Kudos

hi jayavardhini

Before this statement

call selection-screen 1000.

just add

clear the selection parameters what ever present in the screen

say for example:

clear: P_kunnr.

all the best

0 Kudos

Hello Janagar,

Your answer helped me .

Thanks,

Vardhini

0 Kudos

Hello Janagar,

Your solution helped me in clearing my Select-options but not my parameters.

As Clear statment wont work for parameters as they are not like Internal tables.

can u help me in this regard.

Thanks,

Vardhini

Pawan_Kesari
Active Contributor
0 Kudos

try this.. add this code at the end of the report .. i.e. at the end of END-OF-SELECTION event .. all your selection input will be cleared


FIELD-SYMBOLS : <fs>  .
ASSIGN ('(RSDBRUNT)MEMKEY-INT_MODE') TO <fs> .
IF sy-subrc = 0 .
   <FS> = '01' .
ENDIF. 

0 Kudos

Its working Perfect Pavan.

Thanks a Ton