Application Development and Automation 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: 
Read only

being flexible

Former Member
0 Likes
501

Which possiblity is existing for my problem.

For a calculation are some values required.

One special value must be stored as kind of

environment paramter or any variable

in order to be able flexible while calculating.

So that can be changed anytime if it is necessary

by the user or elsewhere.

Otherwise this value must be always changed

in the sorce code.

Reagards

ertas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

Micky thank you for replying but for my opinion it doesn't

make much sence to create a transparent table only

for one value

Reagards

ertas

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
480

well, you do have transparant tables for this.

But do you want to access this variable from a custom report, or several customer reports, badi implementation or what.

If only in a particular report, define a constant for it, or create a class with some constants...Many options, but this kind of depends on the requirement.

If user has to be able to change it (on the fly) you should create a db (table maintenance) table for this.

Read only

Former Member
0 Likes
481

Micky thank you for replying but for my opinion it doesn't

make much sence to create a transparent table only

for one value

Reagards

ertas

Read only

0 Likes
480

True, but I don't see any other way if the user should be able to change it manually, and not have it done by a developer programmatically.

To make it more generic, you can create a table with key field PARAMETER (type string) and another field with VALUE. This way the table can be used for more parameters in the future.

So now my question is: Is it necessary that user can change the variable, or should it only be possible for a developer to do this?