06-19-2017 7:46 PM
I need to do something in my own module pool when the user type /n in the comand field in the toolbar when the transaction for this module pool is running. How I do it?
in others words, how I intercepting the /n command field in my program. It's possible?
Tks.
06-19-2017 8:31 PM
Why do you need that ? If it's because you create intermediate data in database, then you must use workarounds (like deleting the data when the user returns back to the transaction, there are always solutions)
06-20-2017 8:52 AM
06-20-2017 12:09 PM
My program create intermediate data in the INDX table to control application access for cost center entered by the user.. When this cost center is changed or the user exit the program, this entrie is deleted, but when the comand field /n or /o is not possible to do this deletion and in the next time when user access the program the cost center is loocked.
06-21-2017 8:19 AM
So if this is just for a single run and is not to persists across multiple runs then use a memory ID, clearing that when the program initialises and setting it in the start-of-selection event.
You may need some additional data in a structure such as user name and possibly time which you would need to check against another stored version somewhere.
06-20-2017 1:15 PM
Arrgh! Using INDX in application programs is not recommended at all!!! You can't be sure about anything when using this demo table.
First create your own table structure. Second think about other means of storage (shared memory, ...) or about tagging the storage with time stamps, GUIDs, ... and think about a small mechanism that checks the memory at program entry.
06-21-2017 7:20 AM
I keep a link of your answer to communicate to them, thank you ! 🙂
06-21-2017 7:33 AM