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: 

Problem in the interactive report

Former Member
0 Kudos

Hi,

I am getting interactive report. Customer wants when user clicks back button in the basic list selection screen fields should be empty.

where i have to write the code for this?

regards,

kumar.

1 ACCEPTED SOLUTION

former_member212653
Active Contributor
0 Kudos

Clear and refresh the values in INITIALIZATION event.

Its also the last event that gets triggered.

9 REPLIES 9

former_member212653
Active Contributor
0 Kudos

Clear and refresh the values in INITIALIZATION event.

Its also the last event that gets triggered.

0 Kudos

In At selection-screen output. Use modify screen

Former Member
0 Kudos

Hi,

Use Submit 'ZReportprogname' via selection screen or clear

selectoption or parameter fields by using Clear stmt.

Do it in the End-of-selection event are in start-of-selection itself

after write stmt.

Former Member
0 Kudos

hi Vijay,

Use SUBMIT stmt when the user presses the Back Buttn.

Ex:

case sy-ucomm.

When '<FunctionCode for BACK Button>'

SUBMIT <Report Name>.

endcase.

Reward points if useful

Chandra

Former Member
0 Kudos

Hi,

AT SELECTION-SCREEN OUTPUT event helps you...

There is a small thing you have to look into it... you have to maintain certain actions with which you should not clear the contents on the selection screen. like pressing enter and other key on selection screen.

so trap the SY-UCOMM ie function code and then use the

LOOP AT SCREEN.
   MODIFY SCREEN.
ENDLOOP.

or else you can directly clear that parameter if it satisfies certain condition of fucntion code.

hope this would help you

Regards

Narin Nandivada

Former Member
0 Kudos

Hi Vijay,

here is is sample program for you.

REPORT Z_sdn.

TABLES:

sflight.

SELECT-OPTIONS:

s_entry FOR sflight-carrid.

DATA:

t_tab LIKE

STANDARD TABLE

OF sflight

WITH HEADER LINE.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

REFRESH s_entry.

MODIFY SCREEN.

ENDLOOP.

START-OF-SELECTION.

SELECT *

FROM sflight

INTO TABLE t_tab.

LOOP AT t_tab.

WRITE:

/ t_tab-carrid.

ENDLOOP.

SET PF-STATUS 'DISPLAY'.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'BACK'.

SUBMIT z_sdn VIA SELECTION-SCREEN.

ENDCASE.

in the pf-status 'DISPAY' do only the followings:

1. in Function Key , just name BACK in corresponding location

2. Save and active.

this is the minium requirment for your problem to solve.Plz don't focus on TABLES ,DATA , SELECT or LOOP AT ...statements. I have given them to show the effect only.

You may use this for any selection screen.

Reward if find helpful.

all the best.

Anirban Bhattacharjee

Former Member
0 Kudos

Hi,

use this code it will help you out....

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

REFRESH S_VBELN. "Select-options

MODIFY SCREEN.

ENDLOOP.

thanks,

Former Member
0 Kudos

This needs to be done in INITIALIZATION.

Refresh all your screen fields in INITIALIZATION EVENT.

Former Member
0 Kudos

got solution for my problem