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.
Senjey
hi,
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
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. -
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 -
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 -
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 -
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 -
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 -
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! -
Create/Change/Delete for material
Hi Experts.
I have to create an application is which i have to create new material, change existing SAP materials & delete sap existing materials.
I am not sure which approach is good:-
1. 1 view for create / change / delete
2. saperate view for create change & delete.
If i go with the first case how do to perform it (how to use create view as change & delete view) I created a view for create materials. For change & delete i created a search view which gives a list of SAP existing materials based on selection criteria. Now how to pass selected materials data to the create view so that i can see it in edit mode (in Create view) if user presses change. or how to display the selected material data in display mode (in create view) for deletion.
If i go with the 2nd option then also how to pass Selected material from the search to change & delete view.
Not sure where do i have to create context methods etc for such functionalities.
Regards,
Nikhi
Can you tell me how can i display SAP existing materials data if i use only 1 create view
which is used to create materials. At initial its haveing input fields.
Now i want to see data in create view for the seleted material.
do u mean , u have the records in ur data base table and u want ur records to be listed down in a drop down , in ur create view
if so , u can use dropdown by index ..
if u wish to use drop down by index , thn proceed like this :
1 declare a context node of cardinality 0..n
2 declare attribute of type string under it . The attribute name should be exactly the same as that in database table '
eg if u want to poulate values for a field ' SYS' from table , than giv the attribute name as 'SYS' in context attribute
3 declare internal table of type standard table
4 populate internal table with values
5 take the refernce of the node , u have created
6 bind it with the internal table
the dropdown by index wud nw contain app values
Re: dropdown in WDA
cn u pls explain more about ur requirement ?
Edited by: amit saini on Oct 14, 2009 12:29 PM -
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 -
Create transfer order for material document - 4.6C system
Hi Gurus
Can any one provide me the function module or BAPI to create transfer for material document in 4.6c system. I have to give input as supply storage type and bin and destination storage type and bin while execting the function module.
Thank you in advance
Regards
SarathSarath,
Thanks for responding, I finally found my answere via Thread: create transfer order for material document - 4.6C system
Thanks again. -
Creating MDM repository for Material Master Data
Hello MDM Gurus,
I am new to SAP MDM. I want to create MDM repository for Material Master. What I unddertand is, I can create repository using Bussiness Content shiped with MDM software. I will copy *.a2a file to archive folder of MDM server and unarchive repository. I have following question for you.
1. HOw do I use export maps and import maps which I found in Busines contenst\Material folder?
2. How do I use MDM Lookup Tables which is xml document in Busines contenst\Material folder?
3. Why is the use of MDMGX_55520_Material.txt file which I found in Busines contenst\Material folder?
4. What is the use of *.xsd files and how can I use them?
Thanks,
BhupeshHi Bhupesh
1. HOw do I use export maps and import maps which I found in Busines contenst\Material folder?
save all the map files on your loacl machine. open import manager and select file-> Import, browse to the .map file and save the map with a meaningful name. now next time connect to the source file you want to import and OPEN the map saved.
2. How do I use MDM Lookup Tables which is xml document in Busines contenst\Material folder?
Businees content contains the standard ECC refernce tables like countries, regions etc which can be refreshed from ECC. for this you have to configure MDMGX, defining all the ports in MDM and in ECC the tables from which data has to be refreshed. refer to below threads for details.
Extract Data usnig MDMGX
How to Export Materials from ERP to MDM 7.1 via MDMGX?
3. Why is the use of MDMGX_55520_Material.txt file which I found in Busines contenst\Material folder?
This helps us in configuring the table extraction from ECC, refer to thread-> Extract Data usnig MDMGX
4. What is the use of *.xsd files and how can I use them?
Schema files are used for syndicating the records from MDM to source system. Say we want to syndicate material master from MDM to ECC and in ECC they will be posted via MATMAS05 IDoc. these schemas are the structure of IDoc which will contain the values which will be syndicated from MDM.
Let me know if you know some more details.
regards
Ravi -
[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
Maybe you are looking for
-
Need help in BAPI_ACC_DOCUMENT_POST.
Hi Friends, Can any one help me in passing on the TAX parameters and currency parameters to BAPI_ACC_DOCUMENT_POST. this is the code i am using . it is posting the document and a TAX line is not created . LOOP AT IT_ITEM WHERE HEAD_COL = IT_HEADER-FI
-
SQL Server Reporting Services Licensing
What end user licensing is required for a deployed SSRS solution? Is a run time execution license required for end users, and does it vary on whether or not they can amend run time parameters?
-
Hi , I want to know how to change font size in ABAP list report. I want to enlarge the font size. I have tried print control but it doesn't work. I have also tried line size and line count but it can only reduce the font size . Thanks. John
-
Sign in to iCloud/FaceTime popup is continuous
I can't use my iPad at all right now because of a continuous request to sign in to either iCould or FaceTime. I don't want to do either so I continually hit the CANCEL button on the popup box. How do I stop this process?
-
Whenever I post on my blog, this shows up at the bottom: <pre><nowiki>// <![CDATA[ <div id="" class="_mp3rocket_overlay_style" style="left: ; top: ; width: ; height: "> // ]]> </nowiki></pre> How do I get rid of it?