Classification view for material
Hi all
I am creating materials using BAPI_MATERIAL_SAVEDATA. I need to fill the characteristics values of the material also.
Can anyone please tell How to create the Classification view for material using BAPI_MATERIAL_SAVEDATA.
Thanks
Neelima.
Hi,
1. First create the material using BAPI_MATERIAL_SAVEDATA.
2. Create classification using bapi BAPI_OBJCL_CREATE
Create the classification
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = v_object
objecttablenew = c_mara
classnumnew = wa_temp-klart
classtypenew = wa_temp-classtyp
tables
allocvalueschar = i_bapi_char_tmp
return = i_bapi_return.
Thanks
Subhankar
Similar Messages
-
How to create classification view for material?
HI All,
How to create classification view for material? is there any function module?
pls let me know.
Bandicheck the standard include "LCLBPAU14" this is using the following F.M
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = l_object
objecttablenew = l_objecttable
classnumnew = classnum_new
classtypenew = l_classtype
status = status
standardclass = standardclass
changenumber = changenumber
keydate = keydate
no_default_values = no_default_values
importing
classif_status = classif_status
tables
allocvaluesnum = allocvaluesnum
allocvalueschar = allocvalueschar
allocvaluescurr = allocvaluescurr
return = return. -
Creating Classification view for material through Standard Function
hi,
I have created the material code through BAPI_MATERIAL_SAVEDATA. For quality inspection i have used BAPI_MATINSPCTRL_SAVEREPLICA. i have to create classification view for that material code. Can anyone suggest me which standard function helps me to create the classification view.
Thanks in advance.
Senjeyhi,
i have tried that function module. I have mentioned the code below.
i_object = '000000151860630000'.
i_alloc_num-CHARACT = 'THICKNESS'.
i_alloc_num-VALUE_FROM = '5.70'.
append i_alloc_num.
i_alloc_char-charact = 'SHAPES'.
i_alloc_char-VALUE_CHAR = 'PLATE'.
append i_alloc_char.
clear i_alloc_char.
i_alloc_char-charact = 'CATEGORY'.
i_alloc_char-VALUE_CHAR = 'CS'.
append i_alloc_char.
clear i_alloc_char.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = i_object
OBJECTTABLENEW = 'MARA'
CLASSNUMNEW = 'RAWMATERIAL'
CLASSTYPENEW = '001'
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUM = i_alloc_num
ALLOCVALUESCHAR = i_alloc_char
RETURN = i_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
But i am getting the error 'Assignment exists and is valid '.
Please help.
Regards,
Sengathir.J -
Extend Classification View for Material Master
Hello, How do I extend classificiation view for Material Master? Is there any BAPI or FM to do that?
I cant find any place to extend it with BAPI_MATERIAL_SAVEDATAHi,
Use this FM to create Classfiaction view BAPI_OBJCL_CREATE
Regards,
Shan -
Creating classification view for the material
hi friends,
i need to create a material with various views (as in MM03) based on the material type.
i am using BAPI_MATERIAL_SAVEDATA for it.
i am able to create almost all the views except the the classification view for the material.
can anyone help me with code (i need to write) to create a classification view for the material?
thanks in advance.Hi Karthik,
Select klart from AUSP into table t_ausp where OBJEK = wa_final-matnr.
LOOP AT t_ausp.
w_classtype = t_ausp-klart.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtext = 'X'
classtype = w_classtype
language = sy-langu
object = w_object
objecttable = 'MARA'
* no_value_descript = w_no_value_descript
change_service_clf = 'X'
inherited_char = ' '
change_number = ' '
TABLES
t_class = t_class
t_objectdata = t_objectdata
i_sel_characteristic = i_sel_characteristic
t_no_auth_charact = t_no_auth_charact
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
LOOP AT t_class WHERE class IN s_class.
CLEAR : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
t_lreturn.
REFRESH : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
t_lreturn.
w_classnum = t_class-class.
* Getting the reference tables and values----------------
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = w_objectkey "Old reference Material
objecttable = 'MARA'
classnum = w_classnum
classtype = w_classtype
* unvaluated_chars = 'X'
TABLES
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
* Create with reference-----------------------
w_objectkeynew = wa_inputfile-to_matnr.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = w_objectkeynew "New Material
objecttablenew = 'MARA'
classnumnew = w_classnum
classtypenew = w_classtype
TABLES
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
ENDLOOP.
ENDLOOP.
Prabhudas -
Characteristic in classification view for a material in MM03
Hi All,
how to get value assigned to a characteristic for a given class and characteristic in classification view for a material in MM03 transaction ?
Thanks,
Rakesh.Then
i have tried and it worked fine
you should also try
Go to MM03
go to classification view of your material
chhose the class type you want to view
and then from Enviroment
Choose Change documents
Regards -
Creation of Classification View in Material Master
Hi,
I need to create Classification View for a Material. The user would provide the data in the file, example
Material Number MATNR
Class type TCLA-KLART
Class Type description TCLAT-ARTXT
Class Group TCLG-KLAGR
Class Group Description TCLGT-KTEXT
Class M_CLASB-CLASS
Class Description M_CLASB-CSCHG
Status RMCLF-STATU
Std class RMCLF-STDCL
Characteristics Group TCMG-ATKLA
Characteristics Group Description TCMGT-ATKLT
Characteristics RCTAV-ATNAM
Characteristics Description CABNT-ATBEZ
I read in the posts there is BAPI_OBJCL_CREATE. But I am not able to Map the above fields to pass to this BAPI.
Can someone please suggest me how to do this..
Thanks and Regards,
VanessaHi,
Thanks for the suggestion. But i want to do this through a program. There is a selection screen with 6 radio buttons based o view to be created and an input field for the filename.
Could you provide me any BAPI to do the same.
Thanks and Regards,
Vanessa -
Report: Classification view of material master
Hi,
We have activated Batch management for materials.
But for certain material codes, users have not maintained the Classification view.
Is there any report by which we can knowu2019 whether classification view for the material have been maintained or not?Hi,
Check with MM50 with Maintenance status as C
Regards,
Biju K -
Purpose of maintaining classification view in material master
Hi gurus
can anyone explain Purpose of maintaining classification view in material master with example
Regards
Vishal...Hi
One of the reason we maintain classification is for batch management where characteristics like shelf life expiry date is being attached to a class & that class is maintained in material master so whenever transactions takes place it will read from the characteristics value.
the other purpose is with variant configruation, for a configurable material there will be more than one characteristics for ex: in a car it comes with A/C - non a/c, metallic - non metallic, normal steering - power steering all these are mainatained as characteristics & assigned to a class & we use that class in classification for materials.
there is many more advantages & ways of using classification in material master.
Regards
Rang -
Data for Classification View in Material Master
Dear all,
Can someone tell where the data for classification view is stored ??
We are running a BDC and need to check whether classification view is maintained or not ??
Thanks in Advance
Regards,
Vivek KHi,
Check the table MARA, there is a Field VPSTA. in this field the Material views will be stores with single charecters. so check for the Clasification view charecter
also it's PSTAT in MARA and MARC.
Work scheduling A
Accounting B
<b>Classification C</b>
MRP D
Purchasing E
Production resources/tools F
Costing G
Basic data K
Storage L
Forecasting P
Quality management Q
Warehouse management S
Sales V
Plant stocks X
Storage location stocks Z
Regards
Sudheer
Message was edited by:
Sudheer Junnuthula -
No Material classification view in material master.
Hello all,
I have created LSMW for material master upload . Material is getting created through this, but 'classification view' is not getting created.
But i can see the material- class assignment in CL20N.
This problem is for specific material group.
Is there any relation between material group & classification view?
Plz advice how to resolve this?.
Regards,
Satpal MujawarHi,
I found more information:
Batch Input for CL20N is no longer supported.
But you can continue to use batch input with the old transaction cl20.
Please have a look at note 943559, point 2. It would be even better to
use BAPI's instead. Please consult the notes 213120 and 373824 about the
possibilities you've got.
You can find information about the relevant Bapi's in transaction BAPI via:
- Cross-Application Components
- Classification
- ObjectClassification
Best Regards,
Arminda Jack -
Classification view in Material Master
Can any one tell me , how to create a Classification view using program or function module.
I just wanted to create a Classification views in MM01 transaction . is there any function module there to create the same ?
if BAPI_OBJCL_CREATE is the FM , then pls tell me how the following input parameters related to the material . from which table i can have the following parameter values based on material number .
OBJECTKEY_IMP
OBJECTTABLE_IMP
CLASSTYPE_IMP
READ_VALUATIONS
Edited by: Prakash N on Jan 15, 2008 1:27 AMDear All ,
Thanks for your reply , I have passed the following value ,
OBJECTKEYNEW - 000000000000000925
OBJECTTABLENEW - MARA
CLASSNUMNEW - HLLBATCHCLASS
CLASSTYPENEW - 023
STATUS - 1
STANDARDCLASS
CHANGENUMBER
KEYDATE - 18.01.2008
NO_DEFAULT_VALUES
also im passing the characteristics
Export table giving the following result. But when i see the MM02 again i could not see these entries... y ?
RETURN
Result:
T ID NUM MESSAGE
E CL 731 Assignment exists and is valid -
Classification Table for Material Master
Hi All,
I want to identify the materials for which i have maintained the classification in Material master.
here i need to find out the class as well as characteristic values.
Any please help me how to get all these values for a material master.
Thanks in Advance
Sangramif MARA-PSTAT has a C within, then a classification view exists.
this are the tables that are involved with classification.:
KSSK Allocation Table: Object (vb.matnr) to Class
INOB Link between Internal Number and Object
KLAH Class header data
KSML Characteristics for a class (internal number)
CABN Characteristics ( o.a. batch/vendor)
CABNT Characteristics description
CAWN Characteristics ( o.a. material)
CAWNT Characteristics description
AUSP Characteristic Values
TCLAO Several class types for object
TCLA Class types ( vb. lfa1 => v10 en 010)
TCLAT Class type text
TCLT Classifiable objects
TCLC Classification status -
Merging Basic data View and Classification View in Material Master
Hi,
There is a requirement to append Classification View under Basic Data View and then finally to delete Classification View.
As per my understanding, it is not possible. Please let me know if it is possible, if so, please let me know how is it possible.
A quick response is appreciated.
Thanks & Regards
Bhaskar BaddelaHi,
Refer the thread: Problem creating Material Master sales view with LSMW which discuss the same issue. You may check and revert back.
Regards,
AKPT -
Add new code in classification view under material master
Hi Experts!
I need to add new code in classification view, MM03 for class ZZLOCAL. Can anyone guide me to the path?
Please help..
Thanks.this is not customizing, this is standard master data maintenance.
Easiest way to find the menu path is by entering search_sap_menu into the command field.
then you are prompted for search text. here you can either enter a transaction code or a name of transaction.
SAP will give a list with all menues and paths to reach this transaction
Maybe you are looking for
-
How to check whether the current snapshot is validated?
I have removed some articles of my publication in transactional replication. I use the script below, and contrary to what I have found in documentation, it does not invalidate the snapshot of that publication. I normally test this by running the snap
-
I bought the Adobe student version of Photoshop and Premiere Elements a few months ago - and now I am trying to use it, and the serial number that I have is incorrect - or it is only the registration number or something? It says I should have been se
-
Browser scrollbar scripting?
I've done a bit of research and still not to sure how exactly to do this... If you have a fullscreen flash site, by default your browser scrollbar is disabled. So if someone's screen is smaller than the site, they can't scroll to see whats off the pa
-
Hello, We are implementing SRM 5 with ECC 6 as the backend. One of our suppliers has asked us to support cXML for sending purchase orders to them. We do not have XI/PI. Is it possible to send cXML messages from either SRM 5 or ECC 6 without XI/PI or
-
Ever since I've started using my iPhone, iPhoto always launces when I start my Mac. This happens whether or not the phone is connected. Any thoughts? I recall in OS9 there was a startup items folder. Does that exist anymore. Don't see anything simila