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

Processing of code in AT LINE-SELECTION section

Former Member
0 Likes
365

Hello,

**********************

AT LINE-SELECTION.

PERFORM disp_blkd_bill.

PERFORM start_of_selection.

LEAVE SCREEN.

**********************

In the code above the first FORM routine displays an ALV list. The second FORM routine needs to display a WRITE statement. What happens is the first FORM routine is executed successfully. When I hit the BACK button I want the second FORM routine to execute and then the LEAVE SCREEN command, but it never executes the second FORM routine , it directly executes the LEAVE SCREEN command.

Is there a way to execute the second FORM routine before the LEAVE SCREEN command?

Thanks,

ALAM.

2 REPLIES 2
Read only

Former Member
0 Likes
340

YOu should not use leave screen statament in list programming.

can you let us know what is your actual requirement?

Regards,

ravi

Read only

0 Likes
340

Hi Ravi,

Ravi,

Thanks for the response.

The requirement is :

When the START OF SELECTION section is executed a write statement displaying the number of incomplete sales Orders is displayed. When you click on that output statement(as in drill down repoting) the code below comes into picture:

**********************

AT LINE-SELECTION.

PERFORM disp_blkd_bill.

PERFORM start_of_selection.

LEAVE SCREEN.

**********************

Now the alv list displays incomplete Sales Orders. The user using the HOTSPOT feature completes/processes the sales Order and wants the ALV report to refresh when she hits the back button and returns to the ALV list which I do so. Now when she again hits the back button she wants to view the updated statement displaying the number of incomplete Sales orders which happens when the routine 'start_of_selection' is excuted again. But then If I do not use the LEAVE SCREEN command it takes her back to the old displaing the previous incomplete number of sales orders and then back to the selection screen. We do not want that old statement to be displayed on the way back to the selection screen.

Please let me know if you still need further clarifications.

Thanks,

ALAM.