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

Similar Messages

  • 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.

  • 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

  • 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.

  • 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 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

  • How to update/open Classification view of Batch in production Order

    Hi All,
       I have maintained the Class (023) and characterstics for Finished Material. When I am creating the production order, I am assigning new batch number in Production Order Header (Goods Receipt Tab). 
    In the background system is creating the Batch but not updating/opening the Classification view.
    Every time I required to go T code MSC2N and required to open the classification view manually.
    How to open the classification view during production order creation?
    Thanks,
    Shailendra

    Hi,
    You can only assign the Batch number in the production order, that meanas the said batch will get blocked and will not get saved in the Data base. You can enter the Batch number in the Production order and a while doing the GR you can make the system prompt the Classification view in the for ground so that you can enter the Characteristic values..
    For the above to pop-up you need to enter the Value "3" in the Batch Classification field of the Production Scheduling profile created for the Plant in the Tcode : OPKP.
    Please read the below information for additional inputs :
    Option to classify batches
    Specifies that the system branches to batch classification upon a goods movement or when you create or change a batch (not in the material master).
    Use
    If a batch is classified during a certain transaction or event, you can then use the batch determination facility to search for batches by class characteristics at the time of goods issue.
    Procedure
    If you work with batch classification, set this indicator for all receipt-specific movement types so that all existing batches are classified.
    Hope this will help you.
    regards
    radhak mk

  • Issue with update_task API for updating Scheduled Dates for Task..

    Hi All,
    We have a requirement to update the project and task dates to a specified period from the current dates. I dont want to update all the tasks, and hence using the update_task API. The scheduled_finish_Date is the column from "pa_proj_elem_ver_schedule" which we want to update. As, this is the date which is shown on the Workplan tab for the tasks for (Scheduled Start and Scheduled Finish Date). I want to extend this scheduled_finish_Date to some days , say for eg. 60 days.
    To achieve, that update_task api is being used and the parameter for the scheduled_date is : p_scheduled_finish_date, this is passed as call to pa_project_pub.update_task API.
    We are also updating the completion data, which is happening fine and is updating the pa_tasks : completion_date column.
    Problem is with scheduled date, Please let me know how to go about this issue.
    Here is the sample code for calling the API :
    pa_project_pub.update_task
    (p_api_version_number => l_api_version_number_i,
    p_commit => l_commit,
    p_init_msg_list => l_init_msg_list,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => lt_return_status,
    p_pm_product_code => l_pm_product_code,
    --p_structure_updates_flag      => g_no,
    p_pm_project_reference => l_proj_reference,
    p_pa_project_id => p_project_id_i,
    p_pm_task_reference => p_pm_task_reference_i,
    p_pa_task_id => p_task_id_i,
    p_task_name => p_task_name_i,
    p_task_number => p_task_number_i,
    p_pa_parent_task_id => p_parent_task_id_i,
    p_task_completion_date => p_tsk_actual_finish_date_i,
    --Transaction Date (shown on the screen)
    p_scheduled_finish_date => p_tsk_sched_end_date_i,
    -- Scheduled Date (shown on the screen)
    p_out_pa_task_id => l_pt_task_id,
    p_out_pm_task_reference => l_pt_task_ref
    I am really not sure if I am missing anything here, please suggest as to how to update the Schedule Start and Finish Dates using the API.
    Waiting in anticipation!
    Thank you
    Anand.

    Hello,
    Make sure the wf is active in QA (re-activate if possible), check the transport for errors, check authorizations for WF-BATCH perhaps delete and recreate via SWU3?), refresh the buffers (SWU_OBUF).
    Please let me know if any of this helps.
    regards
    Rick Bakker
    Hanabi Technology

  • Help needed in PL/SQL for updating the column for multiple records

    Hi,
    I am new to PL/SQL and need some help. What is the most effiecient way to update some field in a table as I may need to update thousands of records. I have a coulmn groupid can have multiple records tied to it. All the records attached to some groupid have a priority field also.
    How can I update the prorityfield value for all the groupids in a profiecient way. Here is a sample data
    GroupId     Priority
    1            1
    1            2
    1            3
    1            4
    1            5
    2            1
    2            2
    2            3
    3            1Here I have three groups 1, 2, 3. Now if any group contains only one record the priority remains same e.g. groupid=3 on top. If any group contains more than one record e.g. groupid=1 & 2 I want to re-arrange the priority fields e.g. If I want to update groupid=1 now if I change the priority of 2 to 5 (make it the last) I want to rearrange the remaing records priority i.e. if 2 becomes 5 as I have 5 rows for groupid=1 then 5 becomes 4, 4 becomes 3, 3 becomes 2 and 1 remains the same.
    Same wya if I want to make the priority 1 to 3 for groupid=2 then need 2 to become 1 and 3 to become 2 etc....
    Any help is appreciated.
    Thanks

    Hi,
    You don't need PL/SQL to do this (though you can put the following in PL/SQL if you want to):
    UPDATE     table_x
    SET     priority = CASE
                   WHEN  groupid     = 1
                   AND   priority = 2
                        THEN  5
                   WHEN  groupod     = 1
                   AND   priority     BETWEEN 3 AND 5
                        THEN  priority - 1
                   WHEN  groupid = 2
                   THEN
                        CASE
                             WHEN  prioity = 1
                             THEN  3
                             ELSE  priority - 1
                        END
                 END
    WHERE     groupId          IN (1, 2)
    AND     (     priority     BETWEEN 2 AND 5
         OR     groupid          = 2
         );There are lots of different techniques that can reduce your coidng: for example, the nested CASE statement used for groupid=2 above.
    You could do several smaller UPDATEs (for example, one just for groupid=1). Execution will be slower, but coding and testing will be faster.
    You could make the "magic numbers" 2 (for groupid=1) and 1 (for groupid=2) variables, even outside of PL/SQL.
    If you need more help, post the information that Satyaki requested.

  • Can't figure out how to check for updates in Firefox for Ubuntu

    I'm running "Firefox 3.6.13 Mozilla Firefox for Ubunto canonical - 1.0". How do I check for updates? The how-to here in the help site says to look for the updates item in the Help menu but there isn't any such. I can't find it in the Tools menu, or in Edit>Preferences. Where is it hiding?

    Only the official builds from Mozilla can get updates patches as one cannot expect Mozilla to provide update patches to builds that Mozila did not well build.
    The reason the Help->Check for updates was missing was because Ubuntu removed it.

  • Check for update not working for Patch 2???

    I am running 1.0.0.14.67. When I run the Check For Update command it says there are no updates available even though Patch 2 is now on the OTN site. Is there anything I can try other than downloading the whole new zip and migrating my install?
    Previously I have successfully used the update centre to install new patches for the various extensions, so I don't think it's a problem with my firewall settings.
    Cheers, APC

    Ok - one other thing. If you run check for updates, then the front "Help > About " will not change. So this will still show 1.0.0.14.67, but the Extensions tab will change. Can you just confirm that? Check out the screen shot in this FAQ. So the various extensions will show the 15.57 updates if patch 2 is already installed.
    As far as I'm aware we do not have the patch set available as a separate bundle. I'll have to wake to for Kris to get in (west coast) before we can check that.
    Sue

  • Tables for Batch classification for materials

    Hi SAP gurus,
    I have an issue that I need to display the values for a number of materials in its classification view (class type 023) without using MM03.
    Could anyone please let me know the table(s) where I can find this?
    Thanks !!

    Hi Moumita_kar,
    Characteristics :
    CABN      Characteristics ( o.a. batch/vendor)
    CABNT      Characteristics description
    CAWN      Characteristics ( o.a. material)
    CAWNT      Characteristics description
    AUSP      Characteristic Values
    Class types and objects :
    TCLAO      Several class types for object
    TCLA      Class types ( vb. lfa1 => v10 en 010)
    TCLAT      Class type text
    TCLT      Classifiable objects
    TCLC      Classification status
    Links :
    INOB      Link between Internal Number and Object
    KLAH      Class header data
    KSSK      Allocation Table: Object (vb.matnr) to Class
    KSML      Characteristics for a class (internal number)
    Please try and confirm.
    Regards
    Suri

  • Batch classification for BOM items

    Hi ,
    I am developing a conversion program to upload the class and characteristics to a BOM item . The class type is a custom class which needs to be assigned to the BOM item along with the class and characteristics value . Is there any FM/Bapi which can create the classtype for the BOM item and assign the class and values . I have tried with the FM 'BAPI_OBJCL_CREATE' but was not successful. Any help would be highly appreciated .
    Sanjeev

    this program can create bom succcess.but add stpu(subitem) ,have some problem.
    REPORT ZPDM_CREATEBOM .
    DATA: i_stko like STKO_API01.
    data: T_STPO like table of STPO_API01 WITH HEADER LINE.
    data: T_STPU like table of STPU_API01 WITH HEADER LINE.
    data: BOM_HEADER like BICSK.
    DATA: return TYPE char100,
    return2 TYPE char100.
    i_stko-BASE_QUAN = 1.
    T_STPO-ITEM_CATEG = 'L'.
    T_STPO-ITEM_NO = '0010'.
    T_STPO-COMPONENT = '52008022702'.
    T_STPO-COMP_QTY = '10'.
    APPEND T_STPO.
    T_STPO-ITEM_CATEG = 'L'.
    T_STPO-ITEM_NO = '0020'.
    T_STPO-COMPONENT = '52008022701'.
    T_STPO-COMP_QTY = '20'.
    APPEND T_STPO.
    T_STPU-POINTER = 20.
    T_STPU-UPOSZ = '0001'.
    T_STPU-EBORT = 'A1'.
    T_STPU-UPMNG = '10'.
    APPEND T_STPU.
    T_STPU-POINTER = 20.
    T_STPU-UPOSZ = '0002'.
    T_STPU-EBORT = 'A2'.
    T_STPU-UPMNG = '10'.
    APPEND T_STPU.*
    CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
    EXPORTING
    material = 'FERT005'
    PLANT = '1000'
    bom_usage = '1'
    VALID_FROM =
    CHANGE_NO = 'ECO200909096'
    REVISION_LEVEL =
    i_stko = i_stko
    FL_NO_CHANGE_DOC = ' '
    FL_COMMIT_AND_WAIT = ' '
    FL_CAD = ' '
    FL_DEFAULT_VALUES = 'X'
    IMPORTING
    FL_WARNING =
    BOM_NO =
    TABLES
    T_STPO = T_STPO
    T_DEP_DATA =
    T_DEP_DESCR =
    T_DEP_ORDER =
    T_DEP_SOURCE =
    T_DEP_DOC =
    T_LTX_LINE =
    T_STPU = T_STPU
    EXCEPTIONS
    ERROR = 1
    OTHERS = 2

  • Why does my password for the app store work for updates but not for new purchases

    Very frustrated. I've been trying to download Evernote for days now and it keeps telling me my password is incorrect. I use the same password to update apps on my phone and it works fine.
    Using the 4S
    Any ideas why?
    Thanks
    Michael

    Solved. Talked to support and went into settings/store and signed out. Powered down and restarted and logged back in through settings/store and the app store then recognized my password.

Maybe you are looking for