10-22-2005 7:38 AM
Hi
I have already posted this doubt. In MM03 if i go to Material Classification, i get a list of description based on the Class. Now as an ABAPer i need to get the Description. I dont know the Tables.
I used the FM 'QMSP_MATERIAL_BATCH_CLASS_READ' to get the Class of a Material by passing the material. Now how do i get the Characteristics description from the tables.
Please let me know.
10-22-2005 7:44 AM
Hi,
You can try the BAPI_CHARACT_GETDETAIL. Pass it the characteristic name, and it will get you the corresponding details.
Sudha
10-22-2005 7:51 AM
My question is from where do i get Characteristic details using the Class of a Material. Pls help
10-22-2005 8:03 AM
If you want the select for these values, try this:
SELECT p~objek
n~atnam
p~atwrt
n~atinn
FROM ausp AS p
INNER JOIN cabn AS n
ON patinn = natinn AND
padzhl = nadzhl
INTO TABLE itab
WHERE p~objek = <Material number> AND
p~mafid = <Class/Object indicator> AND
p~klart = <Class> AND
n~atnam = <Material characterstic>.
Pass the Material number to OBJEK, and the indicator for Class/Object (field MAFID in table AUSP)to MAFID.
KLART specifies which class the characteristic belongs to (Material, Equipment, etc). This can be got from table TCLA.
ATNAM is the name of the charateristic you want the description for.
Sudha
10-22-2005 8:19 AM
Thanks Sudha Mohan. I am able to see the Characteristic Desc ription for say material R90061. But when i go to AUSp table i am not able to see R90061 in the field OBJEK.
Should i look in some other table.
10-22-2005 8:28 AM
Are you talking abt the values that you see in the tab 'Classification' in MM02?
If not, can you please describe how you are seeing the charateristic description for the material?
Or are you looking for the description of the Class itself? In that case, you can go to table KLAH and give the name of the class in the CLASS field.
Sudha
Message was edited by: Sudha Mohan
10-22-2005 9:06 AM
10-22-2005 9:16 AM
Can you give me some more details? Try this:
Go to the KLAH table and ensure that the Class exists there.
Then check in CABN for the characteristic (field CABN) and ensure that exists too.
If you able to see the characteristics using MM02, it should exist in AUSP. MAke sure that the material number you enter for selection is converted internally (ie, material 100 should be given as 000000000000000100 - 18 chars).
Sudha
10-22-2005 9:46 AM
Data does exist in CABN and KALH table for Characteristics and Class respectively. Thats fine. I checked the AUSP table thoroughly. I am not having that material entry out there. I am new to ABAP and that why i am struggling here for this.
10-22-2005 9:52 AM
Did you convert the MM number into 18-char?
That seems to be only thing I can think of..
Sudha
10-22-2005 9:54 AM
Hi,
Use function CLFM_SELECT_AUSP to read AUSP data for a material..
DATA: t_ausp LIKE ausp OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'CLFM_SELECT_AUSP'
EXPORTING
mafid = 'O'
classtype = '001' "For Materials
object = <Your Material Here>
FEATURE =
CLEAR_BUFFER = ' '
KEY_DATE =
WITH_CHANGE_NUMBER = ' '
TABLE =
I_ATZHL_SAME_INI = ' '
I_AENNR = ' '
TABLES
EXP_AUSP = t_ausp[]
EXCEPTIONS
NO_VALUES = 1
OTHERS = 2.
IF sy-subrc EQ 1.
****No Characteristic Values for the Material
ELSE.
ENDIF.
Also if you want the description of a characteristic then you can get it from CABNT..
ATINN = Internal characteristic number, SPRAS = sy-langu,
ATBEZ is the characteristic description..
Also, AUSP will contain values only if they are maintained in the classification tab of the material,
If just characteristics are visible with no values that means no entries in AUSP..
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
Message was edited by: Srikanth Pinnamaneni
10-22-2005 4:57 PM
Hi,
please do have a look at FM '<b>CLAF_OBJECTS_OF_CLASS</b>'
Best regards