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

Report Output

Former Member
0 Likes
967

Hi,

i am Executing a report, i got the output (after providing the required info in the selection screen) ,when i press back button,it will move over to the selection screen, from there when i change the variant and execute the report i cant see the current output instead i am seeing the previous output . what could be the possible problem?

Regards,

Vijaya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
936

Hi,

Try with At Selection-Screen Output. Here you can clear all the fields.

At selection-screen output.

clear <fields>.

Regards,

Bhaskar

Hi,

i am Executing a report, i got the output (after providing the required info in the selection screen) ,when i press back button,it will move over to the selection screen, from there when i change the variant and execute the report i cant see the current output instead i am seeing the previous output . what could be the possible problem?

Regards,

Vijaya

7 REPLIES 7
Read only

Former Member
0 Likes
936

Hi,

I think your problem is with the refreshing of the old variant values.

When you click the back button you make sure that you are clearing the selection screen elements and then when you select the new variant, you press enter and execute the report.

I guess this would solve your problem.

Regards,

Kiran

Read only

0 Likes
936

Dear Kiran,

when i press BACK button and change the variant and press ENTER still it was doing the same,and how to clear up the previous variants immediately when i press BACK.

Regards,

Vijaya

Read only

Former Member
0 Likes
937

Hi,

Try with At Selection-Screen Output. Here you can clear all the fields.

At selection-screen output.

clear <fields>.

Regards,

Bhaskar

Read only

0 Likes
936

Hi,

Kiran I have Cleared the selection screen elements also still the same problem.

what could be the reason kiran.

Regards,

Vijaya

Read only

0 Likes
936

in ur program after displaying the report refresh ur final output table.

After this change test ur code and check whether it is still displaying the old output or not.

Read only

Former Member
0 Likes
936

If you are using an internal output table with a header line, then do a CLEAR and a REFRESH of your output table before you select your data.

Also, how are you selecting your data?

If you are not clearing your output table and you are using SELECT .. FROM .. APPENDING output table. Then you will also have the problem. In this case just use an "INTO TABLE" instead.

+

SELECT result

FROM source

INTO|APPENDING target

[[FOR ALL ENTRIES IN itab] WHERE sql_cond]

[GROUP BY group] [HAVING group_cond]

[ORDER BY sort_key].

+

Hope This Helps

Jayden

Read only

Former Member
0 Likes
936

you can also initialize in initialize event.

thanq