2008 Jan 17 12:51 PM
Dear All,
I want to create Classification view in Material Master using Bapi. I am using the bapi called BAPI_OBJCL_CREATE.
In that I am getting the valid output. But the problem is, the view is not created in the material master for the particular material.
Is it any authorization object is required to create the classification view in material master using this bapi.Please help me on that.
Let me know any other bapi is creating Classification view for the given material.
2008 Oct 04 6:48 AM
Hi Balaji,
Just call bapi transaction commit to successfully update the classification.
Regards,
Sundaresh
2008 Oct 04 7:24 AM
After the calling of BAPI BAPI_OBJCL_CREATE, read the RETURN table field TYPE = 'S'
Then call the BAPI_TRANSACTION_COMMIT.
This BAPI will update the records in Tables
Syntax
READ TABLE it_return INTO wa_return WITH KEY type = 'S'.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT it_return INTO wa_return WHERE type <> 'S'.
WRITE 😕 wa_return-message_id,wa_return-type,wa_return-message.
ENDLOOP.
ENDIF.
Regards
Bala Krishna
Edited by: Bala Krishna on Oct 4, 2008 11:56 AM
Edited by: Bala Krishna on Oct 4, 2008 11:57 AM