‎2019 Jun 27 12:16 PM
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
‎2019 Jun 27 12:34 PM
Do you want a BAPI to change the characteristic (BAPI_CHARACT_CHANGE) or something else?
‎2019 Jun 27 12:55 PM
Hello Sandra,
Unfortunately i don't know BAPI_CHARACT_CHANGE and what does it do.
I have like this:
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.
‎2019 Jun 27 2:05 PM
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?

‎2019 Jul 02 9:39 AM
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.
‎2019 Jul 02 12:38 PM
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?