Skip to Content
avatar image
Former Member

Display information message based on user selection in output screen

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.

DMS.jpg (15.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 22, 2014 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Dec 22, 2014 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2014 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded