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

Display log after execution.

0 Likes
1,392

Hi,

I have a ALV report with Repost button. Once I do the repost, I need to display the log message and not allow to repost again. How can I do this? Pls help

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,135

If your code processes part of the data, e.g. selected records

  • Set a single flag 'processed' for those records in the ALV displayed table to be checked to prevent those records to be processed again.

If your code processes the whole internal table

  • Use a single variable for 'data processed' and deactivate the 'process' function code in the pbo logic when set.

To display a process log, you could either

  • add some message text/status icon column to displayed records after processing
  • Use standard SAP tools for application log to display log as SLG1 does.

Question: What did you already try, and where exactly are you stuck?

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,135

To display something, it doesn't depend on ALV, you can display anything easily. The shortest way to display a message is with the statement MESSAGE.

To deactivate a button, it depends what kind of button it is, if it's inside a screen, in the application toolbar or part of the ALV Grid Control (if you use it...)