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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I meant the LEFT side, not the right.
Sudha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roman,
Try FM 'MATERIAL_READ_CLASSIFIC_RT' to retrieve the Characteristics for a particular material.
Hope this helps.
Cheers,
Pat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There should be radiobuttons on the right side for you to reward points to useful answers.
Sudha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.