12-22-2014 4:58 AM
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.
12-22-2014 5:20 AM
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.
12-22-2014 5:29 AM
Hi Archana,
I have created a z table also...but how can i achieve this...
12-22-2014 5:31 AM
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.
12-22-2014 5:34 AM
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
12-22-2014 5:38 AM
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.