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: 

Display information message based on user selection in output screen

Former Member
0 Kudos

Hi all,

My requirement is to display an alv list report and in the report output i have placed a checkbox column and when i select the required document number and hit the preview button which i have placed in the report that should get exported to a text file.

Now everything is working fine,  and now  i have to  set a message type that when the user selects the same checkbox for the second time and hit preview button it should display a message saying that already printed. How can i achieve this.

Please refer screen shot for proper understanding.

Regards,

Sam.

5 REPLIES 5

archanapawar
Contributor
0 Kudos

Hi Sam,

I think you might need to create custom table to record user click information along with the file name.

So, whenever user selects any file (checkbox) and click preview, you can store this entry into Z table.

Every time, user presses preview button, counter in Z table will increase (means you can modify same entry in Z table with counter increasing).

On the Preview button event, you will need to read this Z table and check if there exists entry for that user for selected file.

I hope its clear what I mean to say and hope it helps you.

0 Kudos

Hi Archana,

I have created a z table also...but how can i achieve this...

0 Kudos

Hi Sam,

What are fields you have created in Z table? How are you updating it currently? Let me know.

If possible post screenshot of Z table fields.

Former Member
0 Kudos

Hi Samuel,

In order to achieve the required functionality, the program needs to check form the back end whether the particular record has been printed or not for which it's necessary to store the same in some 'Z' table. whenever a user is checking the checkbox, the validation is made from the particular Z table which will help in identifying the status of printing and issue a suitable message.

Regards,

Aashika Agarwal

ipravir
Active Contributor
0 Kudos

Hi Samuel,

Take a flag column in your Final Output Internal Table (but don't display in ALV).

As per your logic, when your are storing the information first time, after the logic you update the selected record flag value with 'X' and then if the same records is user next time, based on the flag column value, you can check the selected records is already proceed or not

Regards.

Praveer.