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
Similar Messages
-
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 -
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. -
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 -
While Creating PO its saying account assignment mandatory for the material.
Dear All
I have created a material with Mechanical Engineering as Industry sector and ROH as Material Type.
For this material i created PR and PO both the time it said account assignment is mandatory.
Why this happens?
I don't want to enter any account assignment category.
Pls help.
Regards
DepinHi,
Normally purchasing ROH with PO needn't to assign the account assignment category, but if don't create accounting view for the ROH material or create the accounting view without valuation class assigned, system can't find the relevant stock account automatically, so will issue the message just like "Account assignment is mandatory".
So you should check the material master data, if it's fine, then you will not see the message any more!
Good luck
Tao -
Delete classification view of a material
Hi ,
can anyone let me know how to delete a classification view of a material.
Regards,
ChandanHi srinivas,
i tried this FM and the classification view of the material is not getting deleted, can you please let me know how to use this?
thanks in advance ,
Chandan -
Creating relational view for an ODBC result set?
Hello,
I'm trying to create a view for the data available from the Siebel Analytics server (SAS) query's result set by executing pass through sql. SAS reads from files and multiple other databases to provide the result set.
The query sent to pass has its own properitary syntax and is not SQL.
ie, I'm trying to achieve something like this :
create view analytics_wrapper_view as
select * from
<
dbms_hs_passthrough('my custom sql understood by SAS')
dbms_hs_passthrough.fetch_rows
>
Cant use a function selecting from dual as there could be several rows returned from this operation. If I retain it as a view, I can avoid data duplication. If this is not possible, a table approach could be considered.
Any thoughts or inputs on this would be highly appreciated.On your server..
- On the FCS server go to OSX Workgroup Manager.
- Create a group and name it something cool
- save and exit
Final Cut Server Client...
(Logged in as admin)
- select Administration in the client.
- Go to Group Permissions
- click Create New Group and then select cool new group name
and select BROWSER from the PERMISSION SET list
- save and go back to OSX
Back in OSX Workgroup Manager...
- create users and assign them to your cool group
DONE! -
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 -
Help for creating classification view in mm01
hi guys can anybody help on creating classification views in mm01 using bdc recording i need a step by step procedure . since when i tryed in mm01 there are filds like class name i dont know where all these data's to find one more thing is i was asked to create classification view using bdc recording ...please help me with some programs if u have
Hi,
You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
The characteristics are need to be passed in the table ALLOCVALUESCHAR.
If you do not know the values for a particular characteristics then you canmake use of FM
BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
Regards,
Ankur Parab -
Create Quality Management view for a Material in background mode
I want to know if there is a way to create a Quality Management View (Quality Management tab) on Material Master (material already extended to plant ) in background mode.
The requirement is to add inspection setup data for a material extended to a particular plant in background. I tried using 'BAPI_MATINSPCTRL_SAVEREPLICA' to add the data and it works perfect as required. Now the problem is this BAPI is creating the inspection setup data only for the material which has QM tab in MM02 for e.g. I manually created the inspection setup for a Material from MM01 and then deleted it , now the BAPI works fine for this material because when I created an inspection setup from MM01 it created the QM tab and after i deleted the entry the tab was still there with no entry in inspection setup.
I want to create inspection setup for a material which does not have QM tab.
I have to create everything is background mode. BDC is one option which I am list interested in.
Thank you for helping in advance.Thank you for looking into my issue. I have to do the inspection setup in background without using any front end transaction.
-
Create a defaut view for the MS Project Server 2010 client
Dear Forum,
how can I create a defaut view for the MS Project Server 2010 client?
I saved a template and set a default view under File -> Options ->Project View. I also did the same in the checked-out enterprise global. If I then close the client and re-open it my default view changes back again to the previous one (not the view
I set as a default view).
What explains this behaviour and what can I do? Any hints?
Thank you very much for your help!Scheduler007 --
The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template. This is a global option, so setting it from the checked out Enterprise Global file serves no purpose.
When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects. If you create enterprise templates for
people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template. In addition, if you apply a view to an open
project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization. This is an option each PM must set. Hope this helps.
Dale A. Howard [MVP] -
WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL
dear Friends,
our users want to WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
at present we maintaing KP in Material Master. if we activated what will happen?
please advice.
with regards,
Rajesh GHi,
The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
Regards,
Vijay -
Reference class In the classification system for a material.
Hi All,
I would like to know What is meant by reference class in classification system for a material? If we are using a variant configuration scenario expalin in context to the classification systme used in this.Hi
I am not sure of anything called as Reference class but definately we have Reference charecteristics inthe SCE application. Below is the brief description of the Reference charecteristics- see the link below
http://help.sap.com/saphelp_crm40/helpdata/en/8a/dff538b0bd4606e10000000a114084/content.htm
Corresponding to R/3 Master data is maintained in the R/3 database.
Please let me know if yoy need any more info
thanks -
To create View for the following req
Hi Gurus
Table view is to be generated for tables ZFUNCTION, ZPFUNCTION, and ZLOCATION.
Assignment of T Code to this table so that SSC team can update as and when there is change in business requirement.
Pls suggest me to create view for the above req and to assigning T code for the same.
Regards
SureshI seem to recall (don't have the docs handy) that there is a higher level
PDDest object and a PDAction object - you might want to look at using those
higher level objects (created via PDXXXFromCosObj) if you are having trouble
working with Cos.
Leonard -
Create classification view with inbound MATMAS_BAPI iDoc
Hi there,
We receive material master data from our customers and create them in our SAP system using a MATMAS_BAPI mssage type.
Now we should also create the classification view of the materials with a certain classification type and value.
The MATMAS_BAPI message type does not have segments to create the classification view.
Doe anybody know what the standard procedure is to achieve this?
Thank you very much in advance.
Kind regards,
Timclassification is transported with CLFMAS IDOC.
Classification is in general independend master data, that has its own area in the SAP menu and IMG.
It is just an embedded functionality in manual material master maintenance.
For data transfers it is an extra step and not included in MATMAS IDOC and BAPI.
Maybe you are looking for
-
Divestitature document not getting reversed at receiver group
Hi We have transferred some cons Unit at the upper level of hierarchy under higher cons group,but facing issue of divestitature docuemnt not getting reversed at receiver group, This is a vertical upward transfer and have used OC logic to avoid goodwi
-
Inserting part of a clip in a theme which begin at one define point
Hi, I use theme a lot and I have no real problem wieh picture, but when it comes to video clips, that another story. What I'm trying to understand is how to insert a clip in a theme, but make it start from one define point in the clip, not the beginn
-
[svn:osmf:] 14780: FMTA work + unit tests.
Revision: 14780 Revision: 14780 Author: [email protected] Date: 2010-03-16 09:55:23 -0700 (Tue, 16 Mar 2010) Log Message: FMTA work + unit tests. Added NetNegotiator unit test support. Fixed bug in constructor of Streaming URL resource. Modi
-
HT4759 lost all of my picture in icloud
hello i lost all of my histroy of all my picture how get back up ?
-
Quality Certificate for Goods Receipt - FAIR
Hi Guys, I'm after some advice with regards to the QM module. We implemented QM last year to support our incoming inspection process flow. The following dynamic rules were created via TCODE QDR1 Z01 Inspection Always Z02 3 Inspections Plu