Application Development 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: 

Comand field /n

0 Kudos

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.

7 REPLIES 7

Sandra_Rossi
Active Contributor
0 Kudos

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)

matt
Active Contributor

You can't. What is your business case?

0 Kudos

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.

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.

horst_keller
Product and Topic Expert
Product and Topic Expert

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.

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenexport_data_cl...

Unfortunately, many developers think INDX is a table available for custom use. It's the case for many developers in my own consulting company and in the last projects I was working on the 5 last years, but they just don't listen when I tell them to use the ZINDX table I have created for them for the new developments.

I keep a link of your answer to communicate to them, thank you ! 🙂

horst_keller
Product and Topic Expert
Product and Topic Expert

"but they just don't listen"

tell me about that 🙂 🙂 🙂