Read Material Classification during MM01 creation

hello all,
my requirement is to send Idocs to different system when a material is created or changed.   change pointers have been created and badi BDCP_BEFORE_WRITE is being used to filter out the records that don't need to be sent.
the process works perfectly with one exception.   one of the filter criteria is a material classification we named COMMODITYTYPE.   at the moment my code looks like this:
    SELECT SINGLE ATWRT INTO l_CHAR_VALUE FROM AUSP
                             WHERE OBJEK = l_matnr
                             AND   ATINN = '0000000023'
                             AND   KLART = '001'.
this works very well for changed materials (MM02) but it looks like AUSP is being updated in a separate update task and it hasn't been triggered at the time BDCP_BEFORE_WRITE gets triggered so there is nothing in the table.
i am looking for a function module (or whatever) that can read the classification when BDCP_BEFORE_WRITE is triggered. 
has anyone come across this before?   any ideas?   thanks much.
(running ECC 6.0)

tutun,
thanks for your reply.   however, i may not have been clear.   i am not actually sending the classification in the material idoc (and we are using MATMAS as the basic type).   in fact, the idoc gets created with everything we want.   the issue is filtering the change pointers at the time of creation.    we only want tocreate idocs for certain materials and one of the filter criteria is the classification COMMODITYTYPE.
so as i go through the MM01 views i can see the correct value in the COMMODITYTYPE field but when i look in AUSP during the BADI BDCP_BEFORE_WRITE it is not there - it gets updated in a secondary update task.    so this value is sitting in memory somewhere and i am trying to find it.  
i hope that helps explain things.
james

Similar Messages

  • Material classification during creation of PR/PO

    Hi,
    We have assigned material to a class with some characteristics (Class type 001), the system should prompt for the characteristic values during PR/PO creation, but it is not happening.
    Please suggest your valuable comments, and how to configure it?
    Regards,
    Sattuj

    Hi Sattuj
    You said that you have created class ith type 001 Are you expecting that you should assign the charecteristics to material while creating PO and PR. Are you using variant config during purchasing in that case the type should be 300 right?
    Class type 001 values are constant fo r the material to which they are assigned.
    Please send us a detail busines sprocess that you are using so that we can help.
    thanx

  • How to read Material classification/characteristics

    Dear all,
    I have to read the characteristic values belonging to a material.
    I found some threads about BAPI BAPI_OBJCL_GETDETAIL_KEY and BAPI_OBJCL_GETDETAIL but I don´t know how to call them.
    First Question: Is this the right way/function to read the characteristics from one material? If no what is the "right" way?
    Second Question: How to call this beast for one material?
    Kind regards and thanks for any help.
    Roman Becker

    DATA: w_obj LIKE bapi1003_key-object,
          w_tab LIKE bapi1003_key-objecttable VALUE 'MARA',
          w_typ LIKE bapi1003_key-classtype.
    w_obj = MATNR.
    w_typ = '001'. " Material Class
    W_tab = 'MARA'.
         CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
            EXPORTING
              objectkey_imp   = w_obj
              objecttable_imp = w_tab
              classtype_imp   = w_typ
              read_valuations = 'X'
            TABLES
              alloclist       = it_alloclist
              allocvalueschar = it_values_c
           allocvaluesnum  = it_values_n
              return          = it_return.
    The key here is the parameter <b>objecttable_imp</b>
    This parameter should be the Key Master table of the object.
    Since this is Material Master it is MARA for Customer 'KNA1' and so on.

  • Throw error during PO creation if a material is not extended to storage loc

    Hi,
    Users require for SAP to throw an error during PO creation if a material is not extended to the storage location that is entered on the PO.
    Presently it neither gives warning or error message.
    Please advise.
    Regards,
    Pratap

    SAP does not validate that, if you want it, then you have to do such check in a user exit.
    SAP can be customized to create the material master storage location segment itself when posting the goods receipt, so it is not necessary to check this in the PO.
    Further this design  speeds up the process, you can already order before others have finished the material master maintenance.

  • Read Invoice Plan data in BADI impl "ME_PROCESS_PO_CUST" during PO creation

    Hello All,
    We had implemented BADI "ME_PROCESS_PO_CUST", during the check & post methods I require to fetch the invoicing plan data for calculating the total value of purchase order. Because invoice plan is splitted just like an instalment for a period and the line item in PO is showing only one instalment, where as the ordered value of PO is the total of all instalments.
    Invoice Plan data will be stored in FPLT table and the FPLNR can be fetched from EKPO.
    Can any one tell me how to read the invoice plan data during the PO creation? Is there an interface & method for reading it?
    Regards,
    Ramesh
    Edited by: Ramesh Babu Srikakollu on Apr 18, 2011 7:37 AM

    Hello All,
    I, myself found the solution for reading the Invoice Plan data of a Purchase Order during the creation/change. i.e. the runtime data for calculation.
    Here is the solution:
    Call this function module in the BADI implementation for the method CHECK or POST using the FPLNR (Invoice Plan Number), this returns the run time data of the invoice plan details during creation or change of a PO.
          data lt_fplt type table of fplt.
          CALL FUNCTION 'ML_INVOICING_SCHEDULE_READ'
            EXPORTING
              fplnr_imp = ls_opp_ekpo-fplnr
            TABLES
              xfplt     = lt_fplt.
    Regards,
    Ramesh

  • QM-Assign inspection plan to a variant of material (classification view)

    Hello,
    Inspection plans are commonly assigned to materials.
    In my case, I would like to manage, in <b>Classification view</b> (MM01), a new characteristics named "Variant" that could have 2 or more values, depending on which variant I order to my supplier.
    <b>But is it possible to assign an inspection plan at this sub-level ?</b> In QP01 the only possibility I see is assigning a material to the inspection plan. Can I customize something, or does it exist a trip to manager another level of assignment ?
    Thanks a lot for your help !
    Emilie

    Hi Emilie,
    Now I understood your requirement. But I would like to know the exact purpose of this requirement so that I can try to give you correct solution.
    I will consider your example:
    Material : 123
    Classification: Inspection
    Characteristics 1: Variant 1 for Inspection 1
    Characteristics 2: Variant 2 for Inspection 2
    Selection of inspection plan takes place during the creation of inspection lot. So now you have to link this material/classifcation/inspection plan combination at the time of inspection lot creation. I doubt whether this can be done using one user exit.
    The user exits are
    EXIT_SAPLCZCL_001
    EXIT_SAPLCZDI_001
    EXIT_SAPLCZDI_002
    Please let me know whether it helps.
    WR,
    Sanjeev
    Message was edited by: Sanjeev
    Selection of inspection plan takes place during the creation of inspection plan
    changed as
    Selection of inspection plan takes place during the creation of inspection lot
            Sanjeev

  • Error message during cube creation

    Hi expert,
    System show the following error message during cube creation, please info how to solve this problem. Thanks.
    Define the characteristics of the validity table for non-cumulatives
    Message no. R7846
    Diagnosis
    The InfoCube contains non-cumulative values. A validity table is created for these non-cumulative values, in which the time interval is stored, for which the non-cumulative values are valid.
    The validity table automatically contains the "most detailed" of the selected time characteristics (if such a one does not exist, it must be defined by the user, meaning transfered into the InfoCube).
    Besides the most detailed time characteristic, additional characteristics for the InfoCube can be included in the validity table:
    Examples of such characteristics are:
    A "plan/actual" indicator, if differing time references exist for plan and actual values (actual values for the current fiscal year, plan values already for the next fiscal year),
    the characteristic "plant", if the non-cumulative values are reported per plant, and it can occur that a plant already exists for plant A for a particular time period, but not yet for plant B.
    Procedure
    Define all additional characteristics that should be contained in the validity table by selecting the characteristics.
    In the example above, the characteristics "plan/actual" and  "plant" must be selected.
    The system automatically generates the validity table according to the definition made. This table is automatically updated when data is loaded.

    Hi,
    Go to the Extras Tab in the definition of the Cube and there select " Maintain Non-Cumulatives" and there select the Plant check box. You can also check Material but it is not recommended. Now try to activate the cube. I think it will work for you.

  • What is the impact - Activating Change Logs for Material Classification Dta

    To activate Change Logs for Material Classification Data I must first set the flag for "Multiple Objs Allowed" for the Class Type 001 Material Class. I am curious of what the impact of setting this flag will be. Also, is there a way to measure the DASD impact of activating the Change logging for this data.
    Thankyou
    Kevin

    In addition to the performance impact the process of turning on Change Logs for Classification data will convert the tables KSSK and AUSP to use an internal SAP number as a key instead of the Material number. This will cause problems for any custom programs that access those files directly and expect the material number to be the key. This file conversion occurs during the execution of program RCCLUKA2 which is used to Flag the change logs for existing records. This can be reversed by running report RMCLINOB. Because of the above impact we decided here to NOT implement this change in production.

  • Authorization object M_MATE_MAR "Material Master - Material Types" in MM01

    Hi,
    We in CPS Energy are implementing VIrsa SOD conflicts on the roles that are in place in current SAP 4.6C version. The authorization object M_MATE_MAR is used by MM01(Creation of Material Master) transaction code & used at mutiple roles. We have restricted this authorization object by Material Type Authorization Group (BEGRU)as WMS1 & given activity a 01, 02 & 03 in a role. The same authorization object is used in Common roles also for displaying that is using transaction code MM03 (Display Material) but the activity & authorization group are ''. This '' is taking precedence over the the authorization object given in the other role.
    Please let us know how to put a control on this authorization object which is used widely by large number of users.
    Maintained Material Master: Material Types                              T-D119010802
    Activity                       01, 02, 03                                             ACTVT
    Authorization group          WMS1                                              BEGRU
    Any help is really appreciated
    Thanks
    Sree

    Hi Sree, your role with MM03 in it should not have * for actvt if it is only a display role.
    As it is a display role actvt 03 would be more suitable.  That way you could have display for all auth groups, but create and change/MM01&2 would be restricted to WMS1 (and any other materials with a blank auth group)

  • Raw Material Classification ?

    Hi All,
    Weare facing a problem  during uploading material classification, using BAPI "BAPI_OBJCL_CREATE" , or BDC using transaction "CLMM" , or LSMW using transaction "CL20N". Each material classification upload is
    taking nearly 2 hours. Each material is to be assigned 1 class of class type 200 and with 370 characteristics along with values. There are more than 1500 materials to be maintained.
    Thanks & Regards
    Navneeth K.

    Schedule in background...it will take little more time.
    Try with MM02 classification view.
    Are you assigning the values to each material?

  • Change Documents for Material Classification data Changes

    Dear Friends,
    We have configured custom classification objects for material master and also we are able to maintain the material characteristics using MM01, MM02 and also using ALE interface. But I am not able to find the Change Documents in any of the table CDHDR & CDPOS. Please let me know what needs to be done to capture the change documents for a material classification changes in this case.
    Many thanks for you inadvance.
    Beast regards,
    Mallikarjun.

    Change logging of all Classification (including Material Classification) is controlled in the Class type configuration.
    SPRO -> Cross Application Components -> Classification System -> Classes -> Maintain Object types and Class types -> Select Object Table = MARA -> Double Click Class Types under MARA -> Select Class Type 001 and Display -> Check whether "Change Docs" check box is checked on.
    Also check that another flag "Chg. docs for Class" is set on all Objects under the Class type too (by double clicking the Objects folder for a Class type).
    If the Change docs flag is checked on for the relevant Class type and Object then change docs are logged in CDHDR and CDPOS tables for object "CLASSIFY"
    Also the "Change docs" flag cannot be set unless the "Multiple objects allowed" flag is also set in the Class type configuration.
    Please refer [SAP Note 65124 - Classification Change Documents|https://service.sap.com/sap/support/notes/65124]
    Also the above note says and I quote: If "Multiple objects allowed" indicator is not set, start the RCCLUKA2 program. The classification data are converted and the indicator 'Multiple object types allowed' is set. Now you can set the indicator 'Change documents' in Customizing of the class type. However, it only says that change documents are generally possible for this class type. Therefore you have to select objects under 'OBJECTS' for which the change documents are to be written.
    So if the Class type doesn't have "Multiple objects allowed" set (along with Change docs flag not set), there is also a conversion that needs to be run using program RCCLUKA2.
    Also when you transport the configuration to a target system, the program RCCLUKA2 should be run again, refer [Note 379180 - Classification data disappeared|https://service.sap.com/sap/support/notes/379180 ]

  • Error While Creating Material Classification Characteristic DataSource -

    Hi  All,
        I am creating the Material Classification DataSource 1CL_OMAT001 with CTBW in R/3 with the following info:
    Basis DataSource = 0MATERIAL_ATTR; Client = 200; Class Type = 001;
    Obj table = MARA; DataSource Type = ATTR,  DataSource = 1CL_OMAT001
    I have added all the characteristics with 'New Entries' button and the following are the details after saving it:
       DataSource = 1CL_OMAT001
       Characteristic Name =  ABCDXYZ
       Item No =   '    ' (blank)
       Maintain Status =  N
       Characteristic = 1CL_AABC001
       Typ  =  CHA
       While adding the MATERIAL_GROUP as characteristic it got an error because of Reference Characteristic since it is reference to Table MARA. Finally, I didn't add it.
       When I click the 'Generate' button to generate the DataSource then it is giving the error of <b>'BW Metada is incomplete'</b>  (CLBW008).
       What is wrong with it and how could I fix this problem, please ?
       Thanks in advance.

    I am not too sure but this might be the cause of error. Data doesn't need to be in client 100, but the characteristic needs to be defined in the class if I remember it correctly.
    To do a quick check, open report program RCLBW_STRUCTURE_GEN in SE38, there is a call to FM RSA1_SINGLE_OLTPSOURCE_GET (around line 169) put a breakpoint there in the editor (display).
    Now run your CTBW generation, it should stop at the breakpoint. You should check the value of field GT_CLBW_SOURCES-IOBJNM in the debugger - it would likely be the characteristic name.
    Now, go to SE37, do a single test of FM RSA1_SINGLE_OLTPSOURCE_GET, and specify this same value for field I_OLTPSOURCE and execute. You will likely get a sy-subrc of non-zero.
    Repeat this in client 200, check sy-subrc.
    If you are getting sy-subrc 0 in 200 and non-zero in 100; you will either need to create the classification in 100, or generate it in 200.
    If this doesn't work, let us know.

  • Issue during automatic Creation of Work Order from Notification

    Hi,
    I have a issue during automatic Creation of Work Order from Notification.
    BADI implemented: NOTIF_EVENT_POST
    BAPI called in BADI: BAPI_ALM_ORDER_MAINTAIN
    I am able to create Work Order successfully but after that i need to update notification header with created work order number.
    But i am unable to update the same (VIQMEL-AUFNR).
    Can anybody provide solution for the same!
    Thanks,
    Kumar.

    Hi,
    Any inputs on above posted issue!
    Thanks in advance.
    Thanks,
    Kumar.

  • Hard Check During Delivery Creation

    Hello Experts,
    Need your advice. I am stuck up in a enhancement issue during delivery creation. i am working for passenger vehicle company.
    Back ground Info.
    the company procures chassis from vendor & builds bus body over it. there are various types of chassis & each is uniquely identified in SAP by Material No. & also mentioned in BOM created for bus. when chassis is received , equipment is created using T-code IE01. After this one more equipment is created for bus which is called BBD Serial No. The equipment for BBD serial no holds chassis serial no. My issue is at the time of creation of delivery using T-code VL01N the user puts the BBD Serial No manually in a dialog box provided, This BBD Serial No is not capturing in the importing structure IT_XLIPS of BADI "LE_SHP_DELIVERY_PROC" Method "Delivery_Final_Check".
    I have to put a check during delivery creation for consumption of Chassis , if the Chassis is consumed during production phase a Mat Doc will be generated with movement Type 261. As such we don't knew the Mat Doc for Chassis Serial no Consumed during prod phase. so to derive chassis no in the BADI against which we have to check for it's consumption. The user provide BBD Serial no in a standard dialog box in VL01N.
    Can we use Field Exit for this or any other BADI Should work.
    Best Regards
    Priyesh Shah

    Hi Priyesh,
    Below steps may help you to get the value of the standard dialog box provided in the screen.
    1. Find the field name of the standard dialog box provided in the the screen for BBD Serial no.
    2. Implement below code in the BAdI "LE_SHP_DELIVERY_PROC" method.
    FIELD-SYMBOLS: <fs> TYPE BBDFIELDTYPE.
    ASSIGN ('(SAPMV50A)BBDFIELDNAME') TO <fs>.
    Now the field symbol <fs> will hold the value passed in the dialog box.
    Please try and let me know if it is working or not.
    Thanks
    Gangadhar

  • Initial load of material classification

    Hi,
    We want to start using GTS to maintain tariff codes and to assign materials to tariff codes. We will start off with loading tariff codes in GTS from a dataprovider. However, we do not want to start from scratch with assigning materials to tariff codes. This information is already available in our SAP system. Does GTS provide a way to import the existing SAP material master data and load it into the material classification in GTS? If not, what is the best way to start this effort?
    Regards,
    Ed

    Hi,
    There is standard transaction where you can do mass classifications in GTS but i think there is a limitation to 3000 products at a time and in my view, it is not very effective if you have hundreds of codes to be assigned to products and it is very time consuming..
    Alternatively, you will have to build a customised program and get all classifications saved in text file and load them up which is what i have done.
    In my view, after implementation of GTS, tariff and commodity codes ( Include Classifications ) are supposed to be maintained in GTS by ITC and transferred over to Feeder system ( Commodity code is the only master data to be transferred over from GTS to Feeder and there is a standard transaction for doing initial transfer ).
    Bad point about this standard is you will need to ask your Basis to activite the change log file in system to keep track when the commodity code is transferred.
    Thereafter, you must have batch jobs running regularly at GTS and Feeder to do the transfer.
    Im new in GTS so what i have said might not be entirely correct. Im still learning..
    Thank you.

Maybe you are looking for

  • Not able to use phone

    I tried updating my iphone 4s with the ios 8.3 and I got a message on my screen that said plug into iTunes and I cant get out of the message like it takes up my whole screen and whenever I reset my phone or turn it off the message is still there and

  • Best practice for using both devices

    Hello, I currently have a mac book pro and mac pro that I use for my editing.  My questions are as follows: * Best way to import / export photos for use on both devices * Is there a way to sync catalogs on both computers so they are able to update on

  • PDF's open in seperate windows!

    Please help............ my machine is running windows 2000 with version 8.1.2 of Adober Reader. Whenever I open a PDF file then Adobe opens but goes through all the other PDF's that I have ever opened and puts them all in seperate windows. As you can

  • How to solve power error when using USB camera adapter in your camera

    Hello Everyone, First of all I wanna say reducing the output of the USB camera adapter from 100mA to 20mA just to save battery life is by far the most incredible adjustment in the history of @)#*$#%*($#! I know most of us bought the USB Camera adapte

  • Email html format in itsm

    Hi Gurus, My requirement, is to send an email with actions in ITSM. The thing is the body is being sending in pdf format attached to the email. My question, is there any way to configure the email so the body is in html (without attachment). Thanks i