cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Material classification/characteristics

10-12-2005 11:40 AM
16145 views 12 comments
SAP Managed Tags
Subscribe

Dear all,

I have to read the characteristic values belonging to a material.

I found some threads about BAPI BAPI_OBJCL_GETDETAIL_KEY and BAPI_OBJCL_GETDETAIL but I don´t know how to call them.

First Question: Is this the right way/function to read the characteristics from one material? If no what is the "right" way?

Second Question: How to call this beast for one material?

Kind regards and thanks for any help.

Roman Becker

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member

DATA: w_obj LIKE bapi1003_key-object,

w_tab LIKE bapi1003_key-objecttable VALUE 'MARA',

w_typ LIKE bapi1003_key-classtype.

w_obj = MATNR.

w_typ = '001'. " Material Class

W_tab = 'MARA'.

CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'

EXPORTING

objectkey_imp = w_obj

objecttable_imp = w_tab

classtype_imp = w_typ

read_valuations = 'X'

TABLES

alloclist = it_alloclist

allocvalueschar = it_values_c

  • allocvaluesnum = it_values_n

return = it_return.

The key here is the parameter <b>objecttable_imp</b>

This parameter should be the Key Master table of the object.

Since this is Material Master it is MARA for Customer 'KNA1' and so on.

Former Member

Sorry, I meant the LEFT side, not the right.

Sudha

Former Member
0 Likes

ok, the other right

but also no buttons there?!

Former Member
0 Likes

Thanks for help

former_member221770
Contributor
0 Likes

Hi Roman,

Try FM 'MATERIAL_READ_CLASSIFIC_RT' to retrieve the Characteristics for a particular material.

Hope this helps.

Cheers,

Pat.

Former Member
0 Likes

There should be radiobuttons on the right side for you to reward points to useful answers.

Sudha

Former Member
0 Likes

logged in but no radio buttons...?

Vinod_Chandran
Active Contributor
0 Likes

Hi Roman,

Use the table AUSP for getting the characteristics. For example if you want to get a chara. 'VOLTAGE'.

DATA wa_atinn TYPE atinn.

CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'

EXPORTING

input = 'VOLTAGE'

IMPORTING

output = wa_atinn.

SELECT SINGLE atwrt INTO p_volt FROM ausp

WHERE objek = wa_matnr

AND atinn = wa_atinn.

Cheers

Vinod

Former Member
0 Likes

Thanks for this tip... Now I find the characteristics. But isn´t there a function to read them without direct table select?

Regards

Roman

christian_wohlfahrt
Active Contributor
0 Likes

Hi Roman!

I didn't check, if it's easier than the BAPIs, but you can have a look at FM CLFM_SELECT_AUSP.

Regards,

Christian

Vinod_Chandran
Active Contributor
0 Likes

Hi,

Can you try CLAF_CLASSIFICATION_OF_OBJECTS?

Check these post for more info.

Kindly assign points for helpful answers.

Cheers

Vinod

Message was edited by: Vinod C

Former Member
0 Likes

Where the hell can I give these wonderful "points" for great answers?

But still want to know how to call the BAPI )

Regards

Roman