BAPI to Update Material classification data
Hi All,
Is there a BAPI that can be used to update material classification data?
Regards,
Hari.
Hi Hari,
Please try this FM UPDATE_MATERIAL_CLASSIFICATION.
Also check program standard SAP program RCCLBI03.
Regards,
Ferry Lianto
Similar Messages
-
Update material master data BAPI_MATERIAL_SAVE DATA
Hi All,
I am using BAPI_MATERIAL_SAVE DATA Fm to update the material master data .
I want to change material type vend (which already existed) to HIBE material type .
Even though Basic data view populated its not updating in Material master .
Which views do i need to populate to change material type one value to other value?if you use FM - BAPI_MATERIAL_SAVE DATA ,you can not update material type , use bdc program to update material type ,
See the transaction : MMAM - No BAPI to update material type
you need to use BDC Program.
Reward Points if it is helpful
Thanks
Seshu -
Updating Batch classification data from MIGO for Purchase order
Hi,
I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
1) Pass material and batch to MCH1 table to get CUOBJ_BM.
2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
Class type 023, object type MCH1, object RAW-6 0000001151
Object is currently locked by user
The assignment was not changed
Please let me know how to do it. Is there any BADI or User Exit?Hi,
As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
Regards,
Rafi -
What next...After Loading 'Material Classification' data in to BW from R/3
Hi all,
We want to load the 'Material Classification' data in to BW from R/3.
0MATERIAL_ATTR and 0MAT_PLANT_ATTR are the Basis DataSources and the following DataSources are created with Tcode CTBW:
1CL_OMAT001, 1CL_OMAT002 & 1CL_AMFG002 (for Texts).
Suppose the DataSources are Replicated, the InfoPackages are executed. What is the next step, please? Do we have to create any InfoCube after that ?
Thanks.Hi,
First you have to create info objects to load the data into.
You then have to create infosource and assign the datasources to the infosources.
Once you have finished your replicates and made sure that all rules (transfer and update) are active you execute the info packages and load the data to the info objects.
After you finish with the data loading, you then run the attribute/hierarchy change run to activate the master data you loaded and then load your transaction data.
Cheers,
Kedar -
Need Material Classification data function module
Hi all,
i have requirement to fetch material classification data through function module.
is there any point to know releted function modules of classification data of material data.
Thanks in advance,
BhaskarHi,
In KLAH you get the list of Classifications linked to a Material. Give OBJEK = MATNR.
By giving CLINT in KLAH you find the corresponding CLASS.
in BAPI:
BAPI_OBJCL_GETDETAIL
pass following values:
OBJECTKEY = KSSK-OBJEK
OBJECTTABLE = 'MARA'
CLASSNUM = KLAH-CLASS
CLASSTYPE = KLAH-KLART
KEYDATE = sy-datum
UNVALUATED_CHARS
LANGUAGE = sy-langu
the output would be in
ALLOCVALUESNUM
ALLOCVALUESCHAR
ALLOCVALUESCURR
based on the type of characteristic.
Best Regards, Murugesh AS -
CIF of material classification data
Dear Experts,
Since a recent technical upgrade to our systems, I have seen a change in behavior of the integration of material classification data from ECC to SCM. Before the upgrade, classification data transferred with the initial CIF of the material. If material classification did not exist on the ECC material at the time the material was added to a new integration model and activated, we "missed the boat" so to speak. Classification would not automatically transfer (CIF) to APO when if finally was loaded in ECC, even if the application area/integration models were correct. As a work-around, we would be forced to generate and activate a material model that specifically excluded the material, then generate and activate another material integration model that included it again. Then the classification would transfer.
After the upgrade, the opposite condition is true, the "initial CIF" of the material will not transfer material classification data at all, it will only transfer if the classification data is added/changed after the material itself is transferred to APO. As a work around for this, if the classification data is already (correctly) loaded in ECC at the time of the initial material CIF, we are changing the status of the material classification from 1 to 3 and back to 1, just to trigger a change, then the classification is transferred instantly to APO.
Are there configuration settings that will allow material classification data to CIF in both cases: with the initial CIF of the material to SCM and also in the event of a change and/or addition of classification data in ECC? Thanks for any advice you can provide.
Best Regards,
JeremyDear Matt,
What you are looking for is achieved by downloading the customizing objects from R/3 to SRM.
This is a must before you download materials/services from R/3 to SRM.
Customizing objects are 4:
DNL_CUST_BASIS3 - This takes care of Basis settings in SRM for downloading.
DNL_CUST_PROD0 - This takes care of Material number conversions from R/3 to SRM.
DNL_CUST_PROD1 - This CO actually brings matl groups from R/3 to SRM as product categories.
The result you can see in trx COMM_HIERARCHY (not in COMMPR01 which is for materials/services.
There in R3MATCLASS you can see replicated and locally crated prod categories
and in R3PRODSTYPE you can see the material typs from R/3
DNL_CUST_SRVMAS - This takes care of Customizing: Service Master
The transaction for this is R3As in SRM
and you can monitor the same through R3AM1.
also you can check QRFC of R3 and SRM with SMQ1 and SMQ2.
The next step after this is material/service downloading from R/3 which is done with the same trx R3AS but business objects
Material and
Service_master
You can set fileter in trx R3AC1 for this.
BR
Dinesh
(Helpful? pl. award the points) -
Material Classification Data in BW
Hi All,
Please help me to under stand the concept of classification datasource. How the data for the fields are populated etc. A document on creating these datasources will also be helpful.
My requirment is to bring material classification data to BW
ThanksHi,
Extract R/3 Classification Data into BI
http://www.affine.co.uk/files/How%20to%20Extract%20Classification%20Data%20into%20BW.pdf
/thread/393343 [original link is broken]
Classification datasource
you may see in the short documentation for the t-code in R/3:
SPRO->Settings for Application-Specific DataSources->Cross-Application Components-->Maintain DataSources for Classification Data (CTBW)
Hope this helps.
Thanks,
JituK -
Material Classification Data changes
Hello,
I need to track the changes done to material classification data.
I can not see changes through MM04 transcation. Is there any way i can see the table where changes are stored or way changes are tracked?
Best Regards
HimanshuHi,
Generally CDPOS & CDHDR are the history tables but cannot see the classification related changes. As i mentioned above tables can see the changes of classification, but make sure that for the related field "Log data changes" indicator checkbox need to select in SE11. If you are not able to check this box please refer the OSS Note 943559 . Thanking you.
Edited by: Padmasri Garapati on Nov 17, 2011 11:11 AM -
Material Classification Data extraction fron ECC
Hello Experts,
We are trying to extract material classification data from ECC 6.0 to MDM 7.1 using mdmgx T-Code. We are using the standard SAP list of tables which is uploaded in MDMGX. On performing 'Start Extraction' it gives us the following errors:
Class and characteristics info returned is blank
Blank XML returned for port LT_ClassAttributes
Class and characteristics info returned is blank
Blank XML returned for port LT_Classes
Kindy advice if we are missing anything.
Thanks in advance,
Elizabeth.Hi Eliza,
I think rather than class type there should be Class Name e.g.
-<ClassHierarchies>
<Class>LIQUID_SAMPLER</Class>
<ParentClass />Zparent<ParentClass />
<Name_English>LIQUID_SAMPLER</Name_English>
</ClassHierarchies>
-<ClassHierarchies>
<Class>Zparent</Class>
<ParentClass />
<Name_English>ZPARENT</Name_English>
</ClassHierarchies>
One of the <ClassHierarchies> should not have ParentClass because there must be one class which is parent of all classes e.g. here ZPARENT
You should check that may be 001 is here also defined as class-name not class type. I would also say check do you have other ParentClass as Class name or not, except 001. Try to import this data in the manner as shown in MDM import Manager Reference Guide page 162 onwards using Create Hierarchy, after import check with business/functional consultant. Please have a look into it,
http://help.sap.com/saphelp_nwmdm71/helpdata/en/4b/72b8e7a42301bae10000000a42189b/MDMImportManager71.pdf
You can also use predefined import map for pre-delivered repositories like Material, Product etc.
Also, refer http://wiki.sdn.sap.com/wiki/display/SAPMDM/eClassTaxonomyinCustomRepositories
Regards,
Mandeep Saini -
How to integrate cProjects with R/3 to get the Material Classification Data
Hi all,
We are installing the cProjects and we have to integrate it with R/3 to get the Material Classification data.
Is any one has developed the object link, which links cProject and Material Classification data in R/3?
Thanks in advance.
Regards.Hi Venkat,
Refer SAP cProjects Guide for Implementing an Object Link. This Guide also includes User Defined Object Links.
You should be able to find it on SAP Service Marketplace. In case you cannot, pl send me your email ID, I will mail the same to you.
Regards,
Reema.
Pl award points to all useful answers. -
Functional module for Getting Material classification data.
Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.
Dear,
FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Table KLAH Class Header Data
- KSML Characteristics of a Class
Regards,
R.Brahmankar -
Load 'Material Classification' data in to BW from R/3
Hi all,
We want to load the 'Material Classification' data in to BW from R/3. There is no 'Classification' tab with Tcode 'MM03' in R/3. We have very little MM functionality on R/3 with just MARA table. I have to start from the scratch on R/3 side. We don't have any MM Functional consultant.
I read the 'Understand the R/3 Classification System and How to Extract Classification Data into BW' document from BWExpertOnline. It will help on creating the DataSource.
How can I do the Material Classification on R/3 side and what is the best way to proceed on it?
If any one has worked on this type of request, could you please pass any document or share their knowledge, PLEASE ?
Thanks.Do you know what classification data you want to define/add in the R/3 system? I think it is not a technical exercise, more of a functional work where you first have to determine your classification requirements and configure the system accordingly. Do you know what classification you want to use (any examples of how you want a particular material to be classified)? If not, this is not going to work without functional help.
You can explore the config part in SPRO->Cross-application>Classification, and setup the data for classification from main R/3 menucross-application componentsclassification systemmaster data (characteristics, classes). -
Bapi or Function Module to update Material Master Data
Hi Friends,
could anyone let me know any BAPI's or Function Modules for Material Master UPdate.
Thanks in Advance
Regards
Tinahi Tina,
check this BAPi BAPI_MATERIAL_SAVEDATA to create and change the material master .
Try ....
BAPI_MATERIAL_SAVEDATA
REPORT Z_BAPI_MAT.
STRUCTURE DECLARATIONS *
TABLES: BAPIMATHEAD, "Headerdata
BAPI_MARA, "Clientdata
BAPI_MARAX, "Clientdatax
BAPI_MARC, "Plantdata
BAPI_MARCX, "Plantdatax
BAPI_MAKT, "Material description
BAPIRET2. "Return messages
DATA:V_FILE TYPE STRING.
DATA:
BEGIN OF LSMW_MATERIAL_MASTER,
MATNR(018) TYPE C, "Material number
MTART(004) TYPE C, "Material type
MBRSH(001) TYPE C, "Industry sector
WERKS(004) TYPE C, "Plant
MAKTX(040) TYPE C, "Material description
DISMM(002) TYPE C, "Extra Field Added In the Program as itsrequired
MEINS(003) TYPE C, "Base unit of measure
MATKL(009) TYPE C, "Material group
SPART(002) TYPE C, "Division
LABOR(003) TYPE C, "Lab/office
PRDHA(018) TYPE C, "Product hierarchy
MSTAE(002) TYPE C, "X-plant matl status
MTPOS_MARA(004) TYPE C, "Gen item cat group
BRGEW(017) TYPE C, "Gross weight
GEWEI(003) TYPE C, "Weight unit
NTGEW(017) TYPE C, "Net weight
GROES(032) TYPE C, "Size/Dimensions
MAGRV(004) TYPE C, "Matl grp pack matls
BISMT(018) TYPE C, "Old material number
WRKST(048) TYPE C, "Basic material
PROFL(003) TYPE C, "DG indicator profile
KZUMW(001) TYPE C, "Environmentally rlvt
BSTME(003) TYPE C, "Order unit
VABME(001) TYPE C,
EKGRP(003) TYPE C, "Purchasing group
XCHPF(001) TYPE C, "Batch management
EKWSL(004) TYPE C, "Purchasing key value
WEBAZ(003) TYPE C, "GR processing time
MFRPN(040) TYPE C, "Manufacturer part number
MFRNR(010) TYPE C, "Manufacturer number
VPRSV(001) TYPE C, "Price control indicator
STPRS(015) TYPE C, "Standard price
BWPRH(014) TYPE C, "Commercial price1
BKLAS(004) TYPE C, "Valuation class
END OF LSMW_MATERIAL_MASTER.
INTERNAL TABLE DECLARATIONS *
*to store the input data
DATA:
BEGIN OF it_matmaster OCCURS 0.
INCLUDE STRUCTURE LSMW_MATERIAL_MASTER.
DATA:
END OF it_matmaster.
*for material description
DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.
INCLUDE STRUCTURE BAPI_MAKT .
DATA:END OF IT_MATERIALDESC.
*to return messages
DATA:BEGIN OF IT_RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA:END OF IT_RETURN.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
PARAMETERS:P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1 .
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
TO UPLOAD THE DATA *
START-OF-SELECTION.
V_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = IT_MATMASTER
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA POPULATIONS *
LOOP AT IT_MATMASTER.
BAPIMATHEAD-MATERIAL = IT_MATMASTER-MATNR.
BAPIMATHEAD-IND_SECTOR = IT_MATMASTER-Mbrsh.
BAPIMATHEAD-MATL_TYPE = IT_MATMASTER-Mtart.
BAPIMATHEAD-BASIC_VIEW = 'X'.
BAPIMATHEAD-PURCHASE_VIEW = 'X'.
BAPIMATHEAD-ACCOUNT_VIEW = 'X'.
BAPI_MARA-MATL_GROUP = IT_MATMASTER-MATKL.
BAPI_MARA-OLD_MAT_NO = IT_MATMASTER-BISMT.
BAPI_MARA-BASE_UOM = IT_MATMASTER-MEINS.
BAPI_MARA-BASIC_MATL = IT_MATMASTER-WRKST.
BAPI_MARA-MFR_NO = IT_MATMASTER-MFRNR.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-OLD_MAT_NO = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-BASIC_MATL = 'X'.
BAPI_MARAX-MFR_NO = 'X'.
BAPI_MARC-PLANT = IT_MATMASTER-WERKS.
BAPI_MARC-PUR_GROUP = IT_MATMASTER-EKGRP.
BAPI_MARCX-PLANT = IT_MATMASTER-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
IT_MATERIALDESC-LANGU = 'EN'.
IT_MATERIALDESC-MATL_DESC = IT_MATMASTER-MAKTX.
append IT_materialdesc.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = BAPIMATHEAD
CLIENTDATA = BAPI_MARA
CLIENTDATAX = BAPI_MARAx
PLANTDATA = BAPI_MARc
PLANTDATAX = BAPI_MARcx
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA =
VALUATIONDATAX =
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
FLAG_ONLINE = ' '
FLAG_CAD_CALL = ' '
IMPORTING
RETURN = IT_RETURN
TABLES
MATERIALDESCRIPTION = IT_MATERIALDESC
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
WRITE:/ IT_RETURN-TYPE,
2 IT_RETURN-ID,
22 IT_RETURN-NUMBER,
25 IT_RETURN-MESSAGE.
IT_RETURN-LOG_NO,
IT_RETURN-LOG_MSG_NO,
IT_RETURN-MESSAGE_V1,
IT_RETURN-MESSAGE_V2,
IT_RETURN-MESSAGE_V3,
IT_RETURN-MESSAGE_V4,
IT_RETURN-PARAMETER,
IT_RETURN-ROW,
IT_RETURN-FIELD,
IT_RETURN-SYSTEM.
ENDLOOP.
Regards,
Naveen -
hi guys,
on mm03 we can view classification data of a particular material. does anybody know a function module or bapi that can be used to retrieve classification data for any material?
thanks,
vitishHi,
Check this code
DATA: V_CLASS LIKE KLAH-CLASS VALUE 'MAT_SEL_CLASS_JASC',
V_CLASSTYPE LIKE KLAH-KLART VALUE '023',
V1_OBJECT LIKE AUSP-OBJEK,(nothing but material no)
V_OBJECTTABLE LIKE TCLA-OBTAB VALUE 'MARA',
V_LANGU LIKE SY-LANGU,
V_DATUM LIKE SY-DATUM.
V_LANGU = 'EN'.
V_DATUM = SY-DATUM.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASS = V_CLASS
CLASSTEXT = 'X'
CLASSTYPE = V_CLASSTYPE
CLINT = 0
FEATURES = 'X'
LANGUAGE = V_LANGU
OBJECT = V1_OBJECT
OBJECTTABLE = V_OBJECTTABLE
KEY_DATE = V_DATUM
INITIAL_CHARACT = 'X'
NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = ' '
CHANGE_NUMBER = ' '
TABLES
T_CLASS = T_CLASS
T_OBJECTDATA = T_CLOBJDAT
I_SEL_CHARACTERISTIC =
T_NO_AUTH_CHARACT =
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4 .
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE T_CLOBJDAT INDEX 2. " KEY 'MAT_CHAR_THICKNESS'.
IF SY-SUBRC = 0.
T_OUTPUT1-THICK = T_CLOBJDAT-AUSP1.
ENDIF.
You can also try this BAPI BAPI_OBJCL_GETDETAIL
Regards,
Satish -
Error while generating material classification data source in R/3
Hi,
I am trying to generate the data source for material classification in R/3.
I have created the data source entry in CTBW and added the classification fields required for the data source. But while generating the data source i am getting an error, which says "BW Metadata is incomplete".
Is there any step, that i have missed? Please advise what needs to be done.
Thanks,
ManojHi Santhosh,
The note seems to be quite old and may not be applicable since we are on the latest support pack.
We are using two different clients, one for configuration and the other for test data.
Thanks,
Manoj
Maybe you are looking for
-
Itunes 7.2 Deleted My Music
I have updated my Itunes account many times in the past. Usually, the upgrade does its thing, has me restart my computer, and the music, playlists, playcounts, ratings, last played etc. all stayed the same. This time, while updating, Itunes 7.2 delet
-
Convert hexadecimal output to decimal (number)
I am reading hexadecimal format from the output of the VISA read block and I want to convert it to the decimal preferably exponential format. Example of what I read is 76 00 02 (in dec: 7.600 E+2). I know there is "type cast" block that converts nice
-
I have an application in which java program (client)communicates with IBM mainframe (server) using socket. when server writes about 16k data as reply, sometime java program receives all 16k data. sometimes it does not receive all data. After certain
-
HT4576 "Time Zone Support" in Calendars should be renamed to "Override Time Zone Support"
So, I live on the East coast and notice, while on a trip just outside Cupertino, that my iPhone Calendar wasn't updating to the the local time, even though my iPhone had correctly updated to PST. Finally, at the end of my trip, oh so nigh to Cupertin
-
When sync phone I selected restore and lost pictures can I get them back?
When I sync'ed my new phone I selected restore by mistake and lost the pictures. It kept the pictures from my old phone. Can I get the lost pictures back?