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.
Bandi
check 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.
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 -
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 -
How to create new version for material
Hi expert,
Can anyone please guide me step by step on how to create new version for material and vendor? Please also mention transaction and details step by step.
ThanksHI,
Do you mean to have version management for purchasing documents?.
Best Regards,
Arminda Jack -
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 -
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 -
[ADF Help] How to create a view for multiple tables
Hi,
I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
ex:
Table A has these fields: ID, Name
Table B has these fields: ID, Address
A.ID and B.ID are primary keys.
B.ID has FK relationship with A.ID
(basically, these tables have one-to-one relation)
I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
So I can execute C,R,U,D for both tables.
I create these tables in DB, and create entity objects for these tables.
So there are 2 entity objects and 1 association.
Then I create a view object based on B and add fields of A into the view:
If the association is not a "Composition Association",
when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
If the association is a "Composition Association", and click the insert button, I will get
"oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
If I create a view object based on A and add filed of B into the view:
When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
So... how can I create a view for multiple tables correctly?
Thanks for any advices!
Here are some pictures about my problem, if there is any unclear point, please let me know.
http://leonjava.blogspot.com/2009_10_01_archive.html
(A is Prod, B is CpuSocket)
Edited by: user8093176 on Oct 25, 2009 12:29 AMHi Branislav,
Thanks, but the result is same ....
In the step 2 of creating view object, I can select entity objects to be added in to the view.
If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
If I select B first, and then select A in crating view object, the result is similar ...
Thanks for any further suggestion.
Leon -
How to create thumbnail view for html files
hi,
I want to create thumbnail view for html files, not for image files.. can we treat html files as images..
Anybody help me..You can right click on your Desktop and select New Folder. In Finder File > New Folder should work too, not in front of my Mac.
Welcome to back by the way. You might find these websites helpful.
Switch 101
Mac 101 -
How to create a view for all Service Requests that are not approved by reviewer
Hallo,
I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
I couldn't find this when creating the view. Thank you.So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not?
As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar:
<QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
<Criteria>
<FreeformCriteria>
<Freeform>
<Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
</ValueExpressionLeft>
<Operator>Equal</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Criteria>
</Freeform>
</FreeformCriteria>
</Criteria>
</QueryCriteria>
This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$).
You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
Anton's Advanced View Editor (or
the free version) to do the criteria adjustment. -
How to create new group for material type
Hello all experts,
Im unable to create a new group for materials types, diff groups for FG and raw materials material type??
Could you pls help ??
Thanks in advance.Hi
When you create a new material you have to specify the material types like finished goods or raw material like that in the initial screen
For this new material types can be defined in
SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define attribute of material Type
T code OMS2
After specifying the material type and giving organizational data like plant, storage location,sales org etc we go on to create the material
In one of the tabs the material groups should be specified and from MM point of view it is a reqd entry
this can be defined in
Define Material Group
SPRO -> Logistic - General -> Material Master -> Setting for Key Field -> Define Material Group
T .Code: OMSF
I beleive this is what you are asking about
Regards
Raja -
How to create web servise for Material Master catalog
Hi Experts
We would like to have a web servise foe the material master catalog.
Please advise hoe we can implement this.
Thanks,
moshehi stein,
once you check below link it's helpful for your requirement :
<IRRELEVANT LINKS>
thanks,
Edited by: Prateek Raj Srivastava on Dec 12, 2011 9:34 PM -
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 -
How to create XMLTYPE View from the XMLType table
Hi:
I have a large XML file and inserted to the XMLTYPE table
For the XQUERY purpose I would like to create XMLView of the table.
The examples I got from Oracle to create XML view are for small files.
Can some one help me how to create XMLType VIEW for large XML Files ( 20,000 lines )?
Ali_2Have a look at the examples given on XMLType Views (based on relational tables) or standard views (based on XMLType storage) in the FAQ url located on the main page of this forum site regarding XMLDB.
-
Dear Experts,
how to create table view for single table? and once I create table view I have to create Generic data source so plz provide me the step to create it.
Please search the forum before posting a thread
Edited by: Pravender on May 6, 2011 11:18 AMHi,
There is big advantage of creating a view for single table rather than RSO2.
My scenario is like this : My table VBAK has 113 fields i want only 9 fields from them.
RSO2: By doing generic extraction with RSO2 it will fetch all 113 fields from the table VBAK.So,it'll definitely degrades the performance . For transferring 9 fields why we have to fetch all 113 fields.
VIEW: By using view we can specify some fields in view fields.So, only those 9 fields will be fetched from table. In this extract structure contains 9 field transferring 9 fields.Then we can create generic extraction using this view.
Regards
satya. -
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
Maybe you are looking for
-
Hi Experts, My BI 7.0 is responding very slow where i have to check Time it take to navigate from one sceen to another is very long compared when it is working on last week. Which paramenters i need to check Thanks
-
Red light flashes 4 times and wont turn on
help I did OTA update with my bb z10 now all I getting is flashing redlight phone wont turn on PC can't find phone how can I revive it need help ASAP
-
Java is 100% pure OOPS Language or not
Hi Everyone! I want to know that Java is 100% pure OOPS Language or not?? If yes or no, then why? Plz reply
-
Need Documentation for SWI5-Work load analysis report
Need documentation for SWI5 transaction. Any pointers would be helpful.
-
HT1338 mac mini with os 10.5.4 can i upgrade this?
Hi I've got a mac mini which I haven't really used ever, and apart from iphones/ipad's I haven't got any experience in apple products! It was brand new when i purchased it and I know it is a 1.66 intel core duo with 2gb ram and a 160gb hdd. I would l