2020 Dec 15 8:33 PM
Hi experts,
When I am using bapi_objcl_change for Update characteristic data for material . Bapi return like assignment changed. But when I checked in VCH2 transaction for material characteristics values are not appear. Please help me.
Hi experts,
When I am using bapi_objcl_change for Update characteristic data for material . Bapi return like assignment changed. But when I checked in VCH2 transaction for material characteristics values are not appear. Please help me.
2020 Dec 15 8:43 PM
You're using the BAPI TRANSACTION COMMIT after the BAPI to change your characteristic data, right?
2020 Dec 15 9:48 PM
2020 Dec 15 8:43 PM
After calling function BAPI_OBJCL_CHANGE you need to call function BAPI_TRANSACTION_COMMIT if the result from BAPI_OBJCL_CHANGE is successful or BAPI_TRANSACTION_ROLLBACK if the result from BAPI_OBJCL_CHANGE is not successful.
2020 Dec 15 9:47 PM
Yes, i call the bapi_transaction_commit . But still VCH2 not show's characteristic values for material. Even bapi return success message.
2020 Dec 15 10:02 PM
the BAPI distinguish between types of data:
1) char-type characteristics
2) numeric-type
3) currency type
For each type there is its own table-parameter - pay your attention that you put it in correct parameter. Also pay attention to the objectkey and objecttable parameters.
The best way to check whether it is correct would be try to read the characteristcs by bapi BAPI_OBJCL_GETDETAIL
2020 Dec 16 4:22 AM
Yes, i am using get detail Bapi to get all values and pass the values to change bapi and commit bapi. And it's return assignment saved message. But I am not able see the values in VCH2. Are you able to see.
2020 Dec 16 6:27 AM
Please Check Transaction commit triggered based on sy-subrc
2020 Dec 16 7:29 AM
Hello sri6666
Besides the BAPI you might consider using APIs for Logistics to handle classification.
API for classification names start with CACL_ ; they are in the CACL function group - List of Available APIs
Personally I find this APIs very useful and I prefer them over BAPIs.
Best regards
Dominik Tylczynski
2020 Dec 16 10:15 AM
So
Could you
2020 Dec 17 11:05 AM
Any other input experts,
I tried with all your input and bapi return with success message. But not updated the values in VCH2 transaction.
Let me know any other process for VCH1 and VCH2. Bapi solution provided by sap support team only along with 2577370 and 2588972 oss notes implementation
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |