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

Interval value numeric characteristic

primoz13
Explorer
0 Likes
3,326

Hello SAP experts,

I have a question that bothers me.

I have a numeric characteristic for which i allow intervals (CT04 - Interval vals allowed)

My minimum interval value is always 0. Maximum i have to calculate in function module. I have only one interval value. (like this: '0 - "calculated value").

Does anyone have idea how can i write this "calculated value" in a num characteristic (like max. allowed value in interval). Is there any function in abap which "prepares" result that i can later put in this type of numeric characteristic.

It is also option that i calculate both, min (always 0) and max values and later put them in characteristic.

Thank you for help!

Have a nice day!

Primoz

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,520

Do you want a BAPI to change the characteristic (BAPI_CHARACT_CHANGE) or something else?

Read only

primoz13
Explorer
0 Likes
2,520

Hello Sandra,

Unfortunately i don't know BAPI_CHARACT_CHANGE and what does it do.

I have like this:

interval-value-char.png

So this number 15,00 i would like to calculate (it depends on the data configuration so it is not always 15,00). Min value is always 0,00.

Max number (in upper case 15,00) i would calculate in separate FM in abap. But i don't know how to write a program which won't report an error when i will try to put/write those two numbers (in upper case 0,00 and 15,00) in num characteristic for which i allow interval values.

I hope that my comment helps you to understand my problem.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,520

So, you want to add a check in the transaction where the user inputs the characteristic value? Did you try to create a Check function module?

Read only

primoz13
Explorer
0 Likes
2,520

Hello Sandra,

sorry for late reply. This can be a good proposal.

Imagine like this:

I have a numeric input characteristic. For this characteristic i can't define fixed range of allowed values (for example 3,00 - 15,00 or more of them). What i would like to do is that i calculate allowed range and put it in input characteristic.

An example

input1_Color = BLUE

input2_SIZE = 15

input3_range = 3,00 - 15,00

input1_Color = RED

input2_SIZE = 15

input3_RANGE = 8,00 - 20,00

input1_Color = RED

input2_SIZE = 20

input3_RANGE = 5,00 - 25,00


Maybe you have an idea how to do this.

Read only

Sandra_Rossi
Active Contributor
2,520

It sounds like a bad solution to change the master data at run time (via the BAPI). So instead, why don't you just check the values at run time?