10-30-2007 7:36 PM
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
10-30-2007 8:31 PM
To create material classification, use standard program:
<b>RCCLBI02</b> - Batch Input or
<b>RCCLBI03</b> - Direct Input
10-30-2007 8:31 PM
To create material classification, use standard program:
<b>RCCLBI02</b> - Batch Input or
<b>RCCLBI03</b> - Direct Input
10-30-2007 9:21 PM
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
10-30-2007 10:08 PM
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.
10-31-2007 11:31 PM
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