Application Development and Automation 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: 
Read only

Creating a material with its classification using BAPI's

Former Member
0 Likes
2,688

Hi there,

I am creating a function module to create a material master using BAPI's. I am using the BAPI 'BAPI_MATERIAL_SAVEDATA'. However I did not find a way to pass the classification details to this BAPI. As I need to create a classification data along with material basic data, can you please tell me how I can do it. Are there any BAPI's which I can use to create classification data?

Please help, I have stuck here from a longer time.

Thanks,

Ganesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
924

Hi ganesh

try this hope it will help you.

Pls reward if help.

Use the following BAPI's:

BAPI_OBJCL_GETDETAIL

BAPI_OBJCL_CHANGE

or use the fun module:

CLAF_CLASSIFICATION_OF_OBJECTS.

4 REPLIES 4
Read only

Former Member
0 Likes
925

Hi ganesh

try this hope it will help you.

Pls reward if help.

Use the following BAPI's:

BAPI_OBJCL_GETDETAIL

BAPI_OBJCL_CHANGE

or use the fun module:

CLAF_CLASSIFICATION_OF_OBJECTS.

Read only

Former Member
0 Likes
924

hi

good

Use FM 'BAPI_OBJCL_GETDETAIL' to retrieve the classification data.

Import params:

1. Object key : give the material number

2. Object table : give material master table i.e. MARA

3. Class Num: Give the class name from which u have to fetch the characteristic data

4. Class type: give '001' for material

You will get the classification data in the following tables:

ALLOCVALUESNUM

ALLOCVALUESCHAR

ALLOCVALUESCURR

This should be helpful, do get back in case of any queries.

thanks

mrutyun^

Read only

0 Likes
924

Hi,

Thank you for that, however I need to create the material in SAP along with its classification data. Using that function module I will be only getting the maintained classification values, right?

How do I create the material along with the classification data?

It will be very helpful, if you can provide a way to solve this!

Thanks,

Ganesh

Read only

0 Likes
924

Hi Ganesh,

I am facing the same problem of extracting the classification data along with material master data. Could you suggest any solution that you might have come across?

Regards,

Paritosh