‎2018 Jul 12 3:24 PM
I have an SALV table and I want to display a message every time the work center category is changed.
*The user cannot directly change the work_center_category from this
SALV,another user if he goes toIW32and manually changes thewc_cat,the user should have a pop upMESSAGE 'CAS was changed.' TYPE 'I'.
The value is going to be changed in IW32 but the message to be displayed in my current SALV table.
Can anybody help me how to do this?
‎2018 Jul 13 4:45 AM
Are you copying the run data of ALV to some custom table beacuse otherwise how can you be sure that work center category has been changed between last ALV run and now. If you can track the data changes then should be easy because before every next run of ALV you can compare the data and show message. Also, you can consider appending a new column for message to show data changed information in ALV beacuse you may have data getting changed for multiple work center catergories.
‎2018 Jul 13 4:45 AM
Are you copying the run data of ALV to some custom table beacuse otherwise how can you be sure that work center category has been changed between last ALV run and now. If you can track the data changes then should be easy because before every next run of ALV you can compare the data and show message. Also, you can consider appending a new column for message to show data changed information in ALV beacuse you may have data getting changed for multiple work center catergories.
‎2018 Jul 13 5:02 AM
To show message on changed in ALV, you have to handle onchange event and check which field is changed. Search for it, there are alot of sample out there.
The requirement to show popup on ALV based on change in iw32 i really dont understand your concept...but when user1 edit on ALV and want to check if data actually changed while he working then you have to select data from table and compare yourself.
‎2018 Jul 13 6:48 AM
As the change of the order is not executed in your transaction, you report should look for changes since last display.
Of course some high-level Abapper could also play with Abap (messaging) Channels to handle communication between transaction that update order and transaction that display orders...
‎2018 Jul 13 8:29 AM
The idea is to show a pop up every time the users displays an order,it doesn't matter how many rows there are different the pop up is going to be only one.If you could please provide me with an example that would be great,since I am new and I don't really know how to handle these events.
You also don't have to refresh the alv everytime,the condition should fire everytime the user displays the order.
Thank You in Advance!
‎2018 Jul 13 8:33 AM
‎2018 Jul 13 8:51 AM
the program is only to display a message at a specific time,I dont understand how it can handle the IW32 changes in wc_cat
‎2018 Jul 13 10:50 AM
raymond.giuseppi gave you 2 pieces to achieve your goal (3 if you count ABAP Channels): you should put them together
‎2018 Jul 13 1:18 PM