09-29-2008 1:51 PM
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
09-29-2008 1:54 PM
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
09-29-2008 1:56 PM
hi,
case sy-ucomm.
when 'BACK'.
leave screen.
Clearing the Values of Selection Screen.
clear : s_matnr ,
p_ersda.
endcase.
Regards,
deepthi.
09-29-2008 1:56 PM
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
09-29-2008 2:00 PM
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
09-29-2008 2:04 PM
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
09-29-2008 2:53 PM
09-29-2008 3:05 PM
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
09-29-2008 3:09 PM
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.
09-29-2008 3:46 PM