cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Intervals ('<' & '>') in the Material Characteristics value using BAPI_OBJCL_CHANGE

sankar1781
Participant
0 Kudos
309

Hi Experts,

How to update '<' and '>' interval along with the numeric characteristic value for the material?

For ex:

Characteristic | Value

C_Substance | <3.00

Using BAPI_OBJCL_CHANGE we able to update or it allows to update only the numeric value of 3.00 and when combines the interval symbol '<', it throws an error as "Cannot be interpreted as a number"

But, the system allows to create the same value manually.

Please reply by providing your valuable inputs.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor

Basically you must pass correct values in fields

  • VALUE_FROM
  • VALUE_TO
  • VALUE_RELATION

Read first Data Element ATCOD documentation with SE11

  • You could also use BAPI_CHARACT_GETDETAIL to get correct values from current database values to use as pattern.
  • NB: In your case VALUE_RELATION value to use for <, aka LT, is 6, so you should also pass VALUE_FROM but not VALUE_TO

Answers (1)

Answers (1)

sankar1781
Participant
0 Kudos

Thank you sandra.rossi and raymond.giuseppi for your valuable answer.

One more doubt though this thread is answered now, hope you won't mind of answering it, though the characteristic value is NUM data type but passing the value to CHAR format and the system is allowing to record/update it without any errors / BAPI return messages.

For ex:

Characteristic | Value

C_Substance | <3.00 (accepted the same value whatever sent to CHAR value table, even this is same following by the functional as a direct value and no floating / simulating value is passed).

Will this be acceptable? any impact in the integrated flow?

Thanks once again.

Sandra_Rossi
Active Contributor

Comparison of CHAR and NUMC are completely different. Using CHAR, you will have the wrong result that 10 < 3 (because first character 1 < 3).