Reading Classification data for material
Hi all
can anybody give me a FM or BAPI to read the classification data
for a particular material..
Kindly help . apt points will be rewarded
Regards
N manjrekar
Hi Nikhil
just copy paste this code to get the clasification of any material.
hope this will be helpful.
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.
Please close the thread if your query in answered
Reward points if helpful.
Regards
Zarina
Similar Messages
-
Classification data in Material master
Hi
Is there any FM to read classification data in material master from buffer. I know there is a FM CLAF_CLASSIFICATION_OF_OBJECTS to read, but this reads from database tables. I want to know the FM, which would read this from buffer.
Thanks
KarthikHi Ganga,
Yes I am passing different countries to table .
LOOP AT IT_STAX into WA_STAX.
wa_taxclassifications-depcountry = wa_stax-aland.
wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
wa_taxclassifications-tax_ind = wa_stax-taxim.
APPEND wa_taxclassifications TO it_taxclassifications.
ENDLOOP.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = wa_headdata
TABLES
taxclassifications = it_taxclassifications
returnmessages = it_return[]. -
To change the classification data for a material using BDC
I have to update clssification data for material in MM02 using BDC so when i record the transaction MM02 using SHDB i am not able to see the value assignment window which i a able to see when i am changing using MM02 transaction directly. So can anyone have an idea regarding this ?
I have even tried updating classification data using a BAPI BAPI_OBJCL_CHANGE but i am not getting desired results....can anyone suggest me what are the parameters need to be passed to the BAPI. Thanks in advance for your help....Hi Nagarjuna,
<b>BAPI_OBJCL_CHANGE</b> : This BAPI changes an existing classification, or creates the classification if it does not yet exist. The classification is defined by the required entry fields for the object key (ObjectKey), object table (ObjectTable), class name (AllocDetail-Class_Num), and class type (AllocDetail-Class_Type). The default value for the optional date field (KeyDate) is the system date, on which all classifications become valid. The new characteristics and/or values are transferred to different tables according to data type. Numeric, time, and date characteristics are transferred to table AllocValuesNumNew, character and boolean characteristics are transferred to table AllocValuesCharNew, and currency characteristics are transferred to AllocValuesCurrNew.
The object key (OBJECTKEY) must be transferred in internal format. This means before conversion exits. For example, a material number must be transferred with leading zeros.
If the BAPI runs without errors, table Return contains no messages of type "E".
Assignment created: message CL735
Assignment changed: message CL737
Assignment not changed: message CL738
This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.
The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".
This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.
You can only use this BAPI for objects that are not classes!
This BAPI only processes assigned values for classification - not for configuration.
Reward points if helpful.
Regards,
Hemant -
Uploading TAX Classification data in material master
Hi,
I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
But bapi is uploading tax classification only for country DE.
When I am creating through MM02 its getting updated.
Can anybody tell me what is the problem ?Hi Ganga,
Yes I am passing different countries to table .
LOOP AT IT_STAX into WA_STAX.
wa_taxclassifications-depcountry = wa_stax-aland.
wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
wa_taxclassifications-tax_ind = wa_stax-taxim.
APPEND wa_taxclassifications TO it_taxclassifications.
ENDLOOP.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = wa_headdata
TABLES
taxclassifications = it_taxclassifications
returnmessages = it_return[]. -
Modify Classification data for IL02
Hi,
I want to modify the classification data for Functional location.
Is there any function modules available to change. I know the functional module for Material classification, but Functional location its not working.
SO pls tell me the function modules or any other method is available.
I was unable to do to in BDC.
regards
Rajesh VHi,
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkeynew = lv_funcloc
objecttablenew = 'IFLOT'
classnumnew = lv_class
classtypenew = '010'
TABLES
allocvaluesnum = li_numc
allocvalueschar = li_char
allocvaluescurr = li_curr
return = li_return.
if not li_return[] is initial.
read table li_return into lwa_return with key TYPE = 'E'.
if sy-subrc ne 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
endif.
endif.
Fill the new characteristic values into table parameters li_numc, li_char, li_curr depending on the data type (field ATFOR) of the characteristic value.
Inside the FM it uses BAPI_OBJCL_GETDETAIL to get the old characteristic values and make comparision with table parameters li_numc, li_char, li_curr and updates the characteristic data for the functional location and class.
Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 10:49 AM -
Function Module for Creation of classification data for a Routing
Hi
Can you please let me know if there are any function modules/Bapi's to create Classification data for a Routing?
THanks
ShekarFor creating classification data, have a look at the function group CTMS and function module CTMS_DDB_SET_VALUE_INTERNAL.
Not sure what you mean by "Routing".
For BAPIs also look into the function group CLBPA, that sits in the same development package CLCL as the function group CTMS.
Hope this helps. -
Table name of Classification Data in Material Master
Hi Experts,
Greetings to all...
I wish to ask one question.
I wanted to upload the initial data in material. in initial data I wanted to maintain the classification data for the batch management. Please tell me what is the name of table/field where the material and classification data is stored. I couldnt find anything in the table KLAH, AUSP, CABN, CAWN.
Thanking you in advance,
Regards,
UK.Dear UK,
If you using ALE:
Follow following sequence:
CHRMAS Characteristics that contain global and local object dependencies
KNOMAS (global object dependencies)
CHRMAS Characteristics that contain global and local object dependencies
CLSMAS Classes with characteristics and their overwritings, including object dependencies
The characteristics and characteristic values must be transferred second time
to create the assignment of the global object dependencies to the characteristics
and characteristic values.
BR,
ian Wong -
What are the T-codes that contain the master data for material and vendor?
what are the T-codes that contain the master data for material and vendor?
hi ,
- Display Material tcodes...
MM01 - Create Material
MM02 - Change Material
MM03 - Display Material
MM50 - List Extendable Materials
MMBE - Stock Overview
MMI1 - Create Operating Supplies
MMN1 - Create Non-Stock Material
MMS1 - Create Service
MMU1 - Create Non-Valuated Material
ME51N - Create Purchase Requisition
ME52N - Change Purchase Requisition
ME53N - Display Purchase Requisition
ME5A - Purchase Requisitions: List Display
ME5J - Purchase Requisitions for Project
ME5K - Requisitions by Account Assignment
MELB - Purch. Transactions by Tracking No.
ME56 - Assign Source to Purch. Requisition
ME57 - Assign and Process Requisitions
ME58 - Ordering: Assigned Requisitions
ME59 - Automatic Generation of POs
ME54 - Release Purchase Requisition
ME55 - Collective Release of Purchase Reqs.
ME5F - Release Reminder: Purch. Requisition
MB21 - Create Reservation
MB22 - Change Reservation
MB23 - Display Reservation
MB24 - Reservations by Material
MB25 - Reservations by Account Assignment
MB1C - Other Goods Receipts
MB90 - Output Processing for Mat. Documents
MB21 - Create Reservation
MB22 - Change Reservation
MB23 - Display Reservation
MB24 - Reservations by Material
MB25 - Reservations by Account Assignment
MBRL - Return Delivery per Mat. Document
MB1C - Other Goods Receipts
MB90 - Output Processing for Mat. Documents
MB1B - Transfer Posting
MIBC - ABC Analysis for Cycle Counting
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI01 - Create Physical Inventory Document
MI02 - Change Physical Inventory Document
MI03 - Display Physical Inventory Document
MI31 - Batch Input: Create Phys. Inv. Doc.
MI32 - Batch Input: Block Material
MI33 - Batch Input: Freeze Book Inv.Balance
MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng
MIK1 - Batch Input: Ph.Inv.Doc.Vendor Cons.
MIQ1 - Batch Input: PhInvDoc. Project Stock
MI21 - Print physical inventory document
MI04 - Enter Inventory Count with Document
MI05 - Change Inventory Count
MI06 - Display Inventory Count
MI09 - Enter Inventory Count w/o Document
MI34 - Batch Input: Enter Count
MI35 - Batch Input: Post Zero Stock Balance
MI38 - Batch Input: Count and Differences
MI39 - Batch Input: Document and Count
MI40 - Batch Input: Doc., Count and Diff.
MI08 - Create List of Differences with Doc.
MI10 - Create List of Differences w/o Doc.
MI20 - Print List of Differences
MI11 - Physical Inventory Document Recount
MI07 - Process List of Differences
MI37 - Batch Input: Post Differences
for vendor..
XKN1 Display Number Ranges (Vendor)
XK01 Create vendor (centrally)
XK02 Change vendor (centrally)
XK03 Display vendor (centrally)
XK04 Vendor Changes (Centrally)
XK05 Block Vendor (Centrally)
XK06 Mark vendor for deletion (centrally
XK07 Change vendor account group
XK11 Create Condition
XK12 Change Condition
XK13 Display Condition
XK14 Create with cond. ref. (cond. list)
XK15 Create Conditions (background job)
reward points if useful,
venkat. -
Not possible to determine shipping data for material in PO(STO)
I
m doing STO for intra copmany code(plant to plant stock transfer),I have done all STO setting ,maintain material with plant and storage condition,loading groups , maintain customer with storage condition,created vendor with supplying plant.setting is done for supplying plant and receiving plant .
Supplying and receiving plant combination with document type UB.delivery type NL and checking rule RP.Also maintain sales area for both plant.
But when I m creating PO in ME21N below error is showing..
*Not possible to determine shipping data for material ,kindly suggest if I have missed any setting...
Regards,
VipinHi Sharan,
Thanks for your reply.
problem got solved but in different way ,STO setting was wrong.
I didn't maintain delivery document type(NL) on plant level It was maintain at storage location that's why system couldn't determine shipping info for material.
Please check the setting below.
IMG> MM>Purchasing>Purchase order>STO>STO between storage location>set up storage location -dependent shipping point determination>define rule for determination of sipping point>
here we have to set delivery document type(NL) to plant specific shipping point determination. -
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. -
MIGO GR posting prompt " Read planning situation for material" message
Hi Guru
Need some advice on SAP MM MIGO GR 101 with reference to Purchase Order.
There is a purchase order created for AAC = P project and item category = S 3rd party. It is linked to a sales order which meet 3rd party scenario purchase and delivery directly to customer in the SO.
However, during MIGO GR screen on this PO, system prompted a message below where it took a while (long respond time) and then only post to material document successfully.
Read planning situation for material XXX in plant YYY
XXX = material code
YYY = plant code
Question:
From where this message is triggerred? It is not error, warning, or information message. However, it only appear when we post GR against 3rd aprty scenario purchase order
Please adviseDear Lyonie
This message seems to be generated dynamically during the save process of GR.
When we click save button in MIGO GR button, there will be number of BAPI/FM will triggered to validate/check and post the data. During this process, some dynamic messages will be displayed for the user about the process. It is very difficult to find out the message triggering point.
Example I can provide , not sure about relevancy , We can observe start of application: Good movement message initially while we execute MIGO.
Still you need to find out about the message, please take help of technical ABAP consultant help to trace out the message triggering point.
warm regards
Ramakrishna Ponnapati -
How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?
Good afternoon !
I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
Thank you for your attention,
WilsonHi all !
I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
Thank you all for your attention !
Wilson -
Could not read administrative data for payroll result
Hi Experts,
I am trying to extract data from ECC6.0 for datasource 0HR_PP_REC_51 and getting error:
"Personnel No. 00100062 : Could not read administrative data for payroll result HR_BIW_PP"
Can any body tell me the relevant solution for that.
Thanks in advance!
SapnaHi Sapna,
Please can you tell me how to fix this error, I have the same problem now.
Thanks in advance. -
Read Combination segments for material account from item level
Dear Value Consultant,
Read Combination segments for material account from item level
"For any inventory transactions"
Is there is away to read the material account from item level , to affect the real combination segments not general combinations segments from item master or organization
Business Impacts :
All inventory transaction for all item will affect the same combination segments for material accounts
After I transfer to GL, This not helps me to differentiate the balance for material value is related to any item category
Also for Budget Wise , I want to map the budget on combination level for materials accounts , and this not actualize without affect the real combination for material accounts in subledger ,
ThanksI have not seen any client asking for this, but you can consider Costing Hooks to create your own accounting engine for inventory transactions. Hope you are taalking about standard costing. In such case, costing hooks are available in Oracle for you to write your own accounting.
Even better in R12, you can do this with setup in SLA.
Thanks
Nagamohan -
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
Maybe you are looking for
-
Distinguishing between empty string and null values
hi all, I am using an ODBC connection to connect my java app to database using JDBCODBC driver. I have 2 columns 'aColumn' and 'bColumn' in my table, both allow null values. I have one row in it, which has null value in aColumn and empty string in bC
-
How do I make text start at the top of each page?
Hello, If a paragraph ends on the preceding page, and I've inserted a line break after it, the line break applies at the top of the subsequent page, therefore the text is not at the absolute top. I need to keep the line break there in case I add text
-
Mac Pro Quad core Intel Xeon upgrade advice please!
Hi all, i have a Mac Pro Quad core 2 x 2.8ghz Intel Xeon (2008 model) with 4gb RAM. I am planning on giving it some upgrades and a fresh OS install as it is slowly grinding to a halt (particualrly noisey hard drives) Can anyone recommend best/fastest
-
Trouble updating record w/ attached file.
Hi, Posted in the SQL forum but no response. Hopefully someone here will have an idea. My application has a file upload feature so a file can be attached to every record saved with this INSERT on Submit:<br><br> if (:P3_Filebrowser is not null) then<
-
How to give line height to text in AI Script
how to give line height to text in AI Script