Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
378 views
in Technique[技术] by (71.8m points)

abap - What is the best way to store a client-independent program parameter?

I need to store a list of transactions where my user exit wouldn't run. This list would preferably be client-independent (user exit needs same behaviour across clients). Using a database table may be overkill for a simple list ? Variants has been suggested but the client-independent table for variants is obsolete.

Thank you for your suggestions.

question from:https://stackoverflow.com/questions/65887813/what-is-the-best-way-to-store-a-client-independent-program-parameter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just if you don't want to create a new table, ECC has a special transaction for that task: STVARV/STVARVC.

Defining and maintaining Selection Variables

It serves for creating and maintaining business-specific variants, variables, transactional parameters and so on.

After the release 6.40 changes have been introduced (notes 1994216, 770084, 557314 ) that made TVARV obsolete and left only client-specific TVARVC, however this shouldn't make you frustrated.

Though you cannot use TVARVC tcode for maintaining records, nothings prevents you from bypassing this stupid limitation and create entries in TVARV manually, this table is client-independent.

Also, client-specific TVARVC table has CLIE_INDEP field that probably serves for the similar purpose

enter image description here

however I didn't test if this flag functions properly, it is up to you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...