Skip to Content
0

Comand field /n

Jun 19, 2017 at 06:46 PM

122

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Matthew Billingham
Jun 20, 2017 at 07:52 AM
1

You can't. What is your business case?

Share
10 |10000 characters needed characters left characters exceeded
Horst Keller
Jun 20, 2017 at 12:15 PM
1

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_cluster_indx.htm

Show 2 Share
10 |10000 characters needed characters left characters exceeded
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 ! :)

1

"but they just don't listen"

tell me about that :) :) :)

1
Sandra Rossi Jun 19, 2017 at 07:31 PM
0

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)

Share
10 |10000 characters needed characters left characters exceeded
Elton Mendes de Souza Jun 20, 2017 at 11:09 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

1