cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_OBJCL_CHANGE how to set value as initial or space/ blank value

09-21-2020 1:07 PM
2001 views 5 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

I am using BAPI_OBJCL_CHANGE to update the material classification field from the values in database table. It is updating the value correctly but when I am passing the blank value in value_neutral of ALLOCVALUESCHARNEW it is not changing the characteristics values to blank and old data is only appearing in material classification after BAPI_TRANSACTION_COMMITT.

I tried deleting the characteristics from ALLOCVALUESCHARNEW but it results in error - Inconsistent characteristic value assignment ( C1 821)

Please help me and suggest how to clear the values from BAPI_OBJCL_CHANGE or if there is any other way to achieve the same requirement.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor

Please have a look at OSS note 1712043

former_member619022
Discoverer
0 Likes

Thanks Lakshmipathi for the quick help. The issue got resolved.

stanislaslemaire
Participant
0 Likes

Hello,
and how do you resolve your issue ?
That be a good idea to share…

From my side, I delete classification at whole and recreate it… Perhaps there is a better solution...

Thanks.

stanislaslemaire
Participant
0 Likes

In fact, we have just to remove entry from type corresponding internal table to clear it in classification...

But in my case, an user-exit prevented the characteristic from being blanked !

0 Likes

Before we call BAPI_OBJCL_CHANGE, we should delete the records in table parameters ( allocvaluescharnew) which have initial value / blank value.

Answers (0)