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: 

How to create the classification view using BAPI

Former Member
0 Kudos

Hi Folks,

I want to create a material using a BAPI. When I am trying with BAPI_MATERIAL_SAVEDATA, I able to create the material with basic and few other views. But I am not sure how to create the classification part of the material. I tried using BAPI_OBJCL_CREATE_KEY, seems to be not useful. Can any one explain me how to create a material using BAPI/RFC. It should have classification view once created through BAPI/RFC.

Thanks in advance.

Regards,

Rama

1 ACCEPTED SOLUTION

Former Member
0 Kudos

To create material classification, use standard program:

<b>RCCLBI02</b> - Batch Input or

<b>RCCLBI03</b> - Direct Input

4 REPLIES 4

Former Member
0 Kudos

To create material classification, use standard program:

<b>RCCLBI02</b> - Batch Input or

<b>RCCLBI03</b> - Direct Input

Former Member
0 Kudos

Hi Sam,

Thanks, currently I want to create the material through BAPI/RFC as I am working on a Java Web Dynpro application.

Regards,

Rama

0 Kudos

You can (or ask your ABAP programmer) create a custom wrapper (RFC) for the standard program. That way, you can call the RFC from your application.

Former Member
0 Kudos

Hi Sam,

Thanks for the suggestion. I do have that idea as plan B.

Folks,

Able to solve this issue. I have written a wrapper around 'BAPI_MATERIAL_SAVEDATA', BAPI_TRANSACTION_COMMIT' & 'CLAE_CLASSIFY_OBJECT' . 'BAPI_MATERIAL_SAVEDATA to create the Basic Data View and few other required views. But actual material is created after my call to 'BAPI_TRANSACTION_COMMIT' . Once the material is created,

I am calling the function 'CLAE_CLASSIFY_OBJECT' to create the Classification view.

As of now its working fine from SE37. I yet to integrate this rfc to Web Dynpro application.

Cheers,

Rama