Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To Create a Classification View by using Bapi

Former Member
0 Kudos
1,571

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.

2 REPLIES 2

Former Member
0 Kudos
339

Hi Balaji,

Just call bapi transaction commit to successfully update the classification.

Regards,

Sundaresh

former_member585060
Active Contributor
0 Kudos
339

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