Update Batch Classification for a Material

Hello friends,
I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
Now i'm trying to use this BAPI instead of BTCI for the Material batch classification  :
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
         EXPORTING
              objectkey          = l_objnum
              objecttable        = 'MCH1'
              classnum           = 'ZGB_TIDCLASS'
              classtype          = '022'
              status             = '1'
              keydate            = sy-datum
         TABLES
              allocvaluesnumnew  = t_valuesnum
              allocvaluescharnew = t_valueschar
              allocvaluescurrnew = t_valuescurr
              return             = t_return.
But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
Any ideas about this ?
Thank you in advance for your help !
Best Regards.
Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AM

Hello,
I am Ashok Chelikani. I am working on the same Issue.
i am getting following message:
TYPE ID    NUMBER  MESSAGE
E       |C1   |003          |Characteristic DIMENSIONSCOLOR not found or not valid
I        |CL   |736          |Assignment was not created 
my procedure as follows:
CLEAR: lv_objnum.
lv_objnum = I_MSEG-MATNR.
**Get Object Details
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = lv_objnum
objecttable = 'MARA'
classnum = 'Z_RMBCH1'
classtype = '001' 
TABLES
allocvaluesnum = lt_alloc_num
allocvalueschar = lt_alloc_char
allocvaluescurr = lt_alloc_curr
return = lt_return.
IF NOT lt_return IS INITIAL.
CLEAR: lv_objnum.
lv_objnum(18) = I_MSEG-MATNR.
lv_objnum+18(10) = I_MSEG-CHARG.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = lV_objnum
objecttable = 'MCH1'
classnum = 'Z_RMBCH1'
classtype = '023' 
tables
allocvaluesnumnew = lt_alloc_num
allocvaluescharnew = lt_alloc_char
allocvaluescurrnew = lt_alloc_curr
return = lt_return.
lt_return returing error message. Kindly help me.

Similar Messages

  • How can mass create batch classification for many material batches? ?

    Hi Experts,
    In our system , there are so many material batches which have not been classified,see by
    BMBC Tcode.
    That means these batches has no values in the batch class. I know we can create
    classification for these batches with MSC2N Tcode.
    But there are so many batches  which have not been classified,more then 2000.
    It is not possible to create classification for every batch with with MSC2N once a time.
    So how can I create batch classification for so many batches once a time?
    How can I mass create batch classification for so many batches??
    Thanks for any reply!

    Hi,
    Please be aware that SAP does not support the use of batch
    input in the classification system. SAP recommends you use BAPI's for
    example in your case BAPI BAPI_OBJCL_CREATE and BAPI_OBJCL_CHANGE
    would be able to help. For more information, please have a look at the
    note: 943559 - Point 2 and 13. Point 13 references the note 1083986.
    I hope this helps!.
    Best Regards,
    Arminda Jack

  • FM for updating Batch Classification for a Batch (MSC2N)

    Hi,
    This is in regards to the Batch Classification (MSC2N).
    Is there a Function Module available to load data into the Classification tab for the batch, in MSC2N?
    Please Help.
    Thanks,
    John

    BAPI_OBJCL_CREATE
    and you may also refer tho this one -
    Look at Note 619913 - FAQ: Basic functions of batch management
    Change classification data of a batch
    Up to and including Release 4.6C, BAPI BAPI_OBJCL_CHANGE needs to be used.
    In later releases, BAPI BAPI_BATCH_SAVE_REPLICA may also be used for that purpose.
    Regards,
    Amit

  • 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

  • Wants to activate batch management for a material which already had a Stock

    hi,
    i want to activate batch management for a material which already has a stock and open Purchasing documents.
    is there any way by which we can do it without removing the same.
    please help.

    program name is RVBCONVMAT2BM
    but i am doubtfull it will be delivered with standard SAP, you need to request you from SAP as they charge for this.
    this program convert the material to batch and all relevant dependant documents will be updated with batch no.
    Regards,
    Pravin Mukkawar
    pasting  some description of the program
    REPORT rvbconvmat2bm.
    Report illustrates the call of function module VBZ0401_CONVERT_OBJECTS
    which sets the batch management flag for one material including
    depending objects. Function module VBZ0401_FILL_BUFFERS helps
    improving the performance.
    then logic......

  • Is it possible to activate Batch Management for a material without Class?

    Dear Experts,
                           Is it possible to activate Batch Management for a material without having Class & Characteristics maintained. As my requirement is to procure Fuels in Batches only with external no. assignment without any parameters to be checked at the time of Goods Receipt? Batches are needed for Accountability purpose.
    Regards

    >
    Chandan H N wrote:
    > Dear Experts,
    >
    >                        Is it possible to activate Batch Management for a material without having Class & Characteristics maintained. As my requirement is to procure Fuels in Batches only with external no. assignment without any parameters to be checked at the time of Goods Receipt? Batches are needed for Accountability purpose.
    >
    > Regards
    Please check this answered link:
    Batch-classification view
    If you want classify a batch, then you should have maintained the batch classification in material master which is either class 022 or class 023 (depends on your batch level set in cusotmizing). The material class 001 has no impact on the batch classifcition, it is what it is: a classification for the material.
    Edited by: Afshad Irani on Jun 20, 2010 4:40 PM

  • User Exit for batch classification for tcode mb1c

    HI experts,
    I have implement customer exit MBCFC004 EXIT_SAPMM07M_004 and CLFM0002 EXIT_SAPLCLFM_002 to set a value for
    a customize  characteristics.
    Now I have a issue.
    MBCFC004 EXIT_SAPMM07M_004  can work with migo but when I with mb1c to do same transaction it didn't
    work.
    CLFM0002 EXIT_SAPLCLFM_002  only work when I input a value in the customize  characteristics it can change the input value.
    I have set extension in OMCV for my move type. and assigned the bath to material.
    I have reference
        Re: User Exit for batch classification
    but I haven't found any question for my solution.
    please help me.
    thanks a lot.

    Class ZBATCH has status 1 (= 'Released') but the customizing of classtype 023 doesn't allow to classify with classes of this status. Settingsfor class status in class type 023 are different from what SAP delivers.Correct please these settings. You may lookup the correct definition of
    the class status in class type 022.

  • Batch Classification for Auto GR during Production Order Confirmation

    Dear All,
    I have a scenario,where Auto GR has been activated in last operation of an order.Material is batch managed with certain characteristics.When I use CO11n, and go to goods movement tab,batch for 101 movement type is entered but Batch classification pop up doesn't come.For that we need to select the line item,goto extras and create batch,then Pop up for batch classification comes.But,if we do GR with MIGO & MB31, This classification screen automatically in Co11n. i have tried certain exits also, but nothing works.

    Hi Stuti<
    Refer the below links it will solve the issue.
    [Batch Determination - help|http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm]
    [SDN Thread-1|Re: Batch Determination issue -reg]
    [SDN Thread-2|Batch Determination;
    Regards,
    Shyamal

  • Batch Classification for Finished Goods

    Hi,
    Can anybody explain me the significance of maintaining batch classification data for a finished material?
    Currently we have batch management active for all the finished materials but for some materials we have not maintained the classification data.
    When I checked the batch data in MMBE it shows me the Production date & Shelf life expiration date based on the values maintained in the material master.
    The class type is maintained at the plant level as 022 with characteristics as Last Goods Receipt & Shelf Life Expiration date.
    I want to know what impact will be on the distribution of these materials if I do not maintain the classification data?
    Thanks & Regards,
    Abhijit

    Hi Ravi & Lakshman,
    Thanks a lot for the response. I understand what batch classification is & how it is implemented to use in coordination with Batch Determination. What I would like to know is what if the batch search strategy & class type (022) is defined at the plant level and  batch management for a finished material is active but classification data is not maintained. GR (101) for this finished material is possible but does this mean that not having classification data will not have any impact on the goods movement of this material?
    In case of production when the classification data is not maintained for a back flushed material (raw / semifinish), after the process order confirmation the 261 movements end up in COGI with reason Enter Batch. Since the selection criteria fails due to the unavailability of classification data; the batch needs to be selected manually instead of the system picking up the correct batch automatically.
    Like in inventory (consumption of raw & semifinish) do we have batch determination & search strategy for distribution where the finished stock will be picked up for the sales orders based on the selection criteria & sorting rule?
    Thanks & regards,
    Abhijit
    Edited by: Abhijeet K. Nerurkar on Feb 14, 2011 2:18 AM

  • Need Badi/user exit-migo-update batch classification

    Hello all,
    I need to update revision level and country of origin in batch classification tab in migo while posting GR.
    I've already done using exit "EXIT_SAPLV01Z_014".
    But this exit triggers only when classification tab is clicked in migo.
    But i need to also update rev level and country of origin when GR is posted(Save button is pressed).
    I tried MB_CF001,MB_CF001,MBCF0002,MBCF0005,MBCF0006,MBCF0007,MBCF0009,MBCF0010,MBCF0011
    and badis
    MB_DOCUMENT_BADI,CACL_VALUE_CHANGE.
    Please someone help me
    Thanks in advance

    Hi Sriram,
    If you want to add logic on particular action you need to search for exact BADI.
    e.g.
    As you are expecting that your code need to be trigger when user press SAVE button (Time of Posting) so at that time you need to check which BADI get trigger ( I am assuming that you have knowledge on how to search BADI)
    List down the BADI name and check the methods. You will get exact method name in listed BADI's.
    I am hoping that while checking badi you will find MB_MIGO_BADI just check and use method [POST_DOCUMENT] for your logic.
    Also in User Exit you will see multiple function modules in component those function modules are behaving like PAI and PBO. so you need to find out whcih function module will trigger as per your requirement.
    please find below link which will help you to understand how to search User Exit.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-2e10-0db4-9386abe98fe6?overridelayout=t…
    Please let me know if its work for you.
    Regards,
    Nikhil

  • Automatic Batch creation for a material.

    Hi Friends,
    we require automatic batch creation at the time of confirmation of process order for a particular material not for all the materials existing in the same plant and also not for  all the materials existing in the same material type.
    we have activated batch level at the material level,
    Pl give some idea,
    Regards
    Sadan

    Hi,
    Batch is created automatically either when an order is created or released. (setting in OPKP)
    I hope its not possible during confirmation.

  • Batch Activation for existing material

    Dear All,
    We have uploaded material last year that time we are not used batch management, now our clients requirement is to activate batch for the existing material, this materials has lot of transactions & stock is availabele in unresticated, Quality also,
    so please guide me & how to activate batch,
    if i trasfer this material to create stock zero but its very critical bcz we have 80000 material codes.
    please suggest me.
    Thanks
    Shital

    Hi,
    Batch management of existing material can not be done if it has stock and value.You can keep stock value NIL (By reversing) and then proceed with batch management.
    For more check the link:
    https://wiki.sdn.sap.com/wiki/display/ERPLO/Batch+Management
    Regards,
    Biju K

  • Change batch Classification for a BATCH.

    Hi,
    Does anyone know how to change the classification for a BATCH (Txn. MSC2N) programatically. Recording is not possible for the transaction MSC2N.
    Thank you,
    Mahesh

    Use the BAPI 'BAPI_OBJCL_CHANGE'. Ensure to commit data afterwards.
    Manoj

  • Batch Classification in Config Material

    I have the Config Material with class - 300(variant) in material
    Now,
    I want to know how can we do batch classifiaction in config material?

    Hi Nainesh,
       when creating charateristic in CT04 tcode go to "restrictions" tab and there enter "class type" as "300" and when creating material in MM01 tcode in "classification" tab enter the class type there.
    if it helps reward me.
    regards,
    kishore.

  • Removal of batch management for a material in MM02

    Hi all,
      I Have a problem in removing the batch management in the purchasing view of a material.The error is 'Batch management requirement cannot be changed,Batch already exists'.
    PO is created on this material.GR is done and that GR is reversed.There is no stock in the previous period.In MSC2N batch is deleted.I tried even after deleting the item in the PO.Again system is giving the same error.
    Now how can i remove the batchmanagement for the material.
    Thanks,
    Rambhupal reddy

    your batch is probably only flagged for deletion. You have to run archiving, Transaction SARA for object MM_SPSTOCK to get rit of the batch record.

Maybe you are looking for

  • On-line store and how to contact Creative directly???

    5On-line store and how to contact Creative directly?CHi everybody. Came up with the following problem: I'm from Ukraine and I'm not able to buy anything from Creative on-line store.... I mean you don't send products to Ukraine. Why is that? Is that s

  • Web Services Usernames and Passwords in Axis

    Hi everyone, I have created a Web Service in Axis with SOAP and it is working fine. I have a remote client that connects to the WS and retrieves the Array of Complex types very seamlessly. The only problem that I have been battling with is that the a

  • User Role Management Setup

    Hi All, I'm currently performing a setup in User Role Managment around roles for a department. We've identified 11 roles we need to create and the responsibilities that need to be assigned to the roles. We've created a Role Category so all our setups

  • 2008 R2 evaluation to full

    Hi, I really, really need to do what is not supported... But my question is if unsupported OS can have impact on functionality of the machine? Sure, that I will never need any support for this server OS wise. Please encourage me :) MS statement: Ques

  • Problem in querying the form?

    hi everybody ,this group have helped me alot to understand the things better. i have created a form with template .fmb . and i have modified standard apps functionality of saving the form with the standard save button on the toolbar. now if i have tw