Automatic Batch Classification.

Hi Experts.
I need to populate batch characteristics automatically when user performs Goods Receipt.
Header data (Mkpf) will be the same data for all positions in GR so I need to copy mkpf-frbnr, mkpf-lfsnr to batch characteristics.
I have activated user exit MBCFC004 in order to catch MKPF data.
Please HElp.
BR.

Hi Shailaja,
Problem was solved, I had to move T_values data to Values table.
Here is last code.
Thanks a Lot.
BR.
Juan.
DATA: T_CHARACTERS LIKE CHARACTERS OCCURS 0 WITH HEADER LINE.
DATA: T_ATTRIBUTES LIKE API_CH_ATT OCCURS 0 WITH HEADER LINE.
DATA: T_VALUES LIKE API_VAL_I OCCURS 0 WITH HEADER LINE.
T_CHARACTERS[] = CHARACTERS[].
T_ATTRIBUTES[] = ATTRIBUTES[].
T_VALUES[] = VALUES[].
LOOP AT T_CHARACTERS.
  READ TABLE T_VALUES WITH KEY ATINN = T_CHARACTERS-ATINN.
  CASE T_CHARACTERS-ATNAM.
    WHEN 'LO_PEDIMENTO'.
      MOVE I_MKPF-FRBNR       TO T_VALUES-ATWTB.
    WHEN 'LO_FECHA'.
      CONCATENATE I_MKPF-BUDAT+6(2)
                  I_MKPF-BUDAT+4(2)
                  I_MKPF-BUDAT(4)
                  into T_VALUES-ATWTB.
      "MOVE I_MKPF-BUDAT  TO T_VALUES-ATWTB.
    WHEN 'LO_GUIAAA'.
      MOVE I_MKPF-XBLNR(3)   TO T_VALUES-ATWTB.
  ENDCASE.
  MOVE T_CHARACTERS-ATINN TO T_VALUES-ATINN.
  MOVE T_CHARACTERS-ATNAM TO T_VALUES-ATNAM.
  APPEND T_VALUES.
  MOVE T_VALUES TO VALUES.
  APPEND VALUES.
  CLEAR T_VALUES.
ENDLOOP.

Similar Messages

  • Automatic batch classification with procedure on goods receipt does not wor

    Hi,
    I have a material with batch classification.
    The material has two characteristics.
    One is a number called VALUE.
    The other is also a number (called CONVERSION) and shall be deived from the first.
    A procedure is created and assigned to the second characteristic.
    $SET_DEFAULT ($SELF, CONVERSION , $SELF.VALUE / 6000)
    When I post a goods receive (movement Type 501) the characteristics can be filled . The field VALUE is set with 12000.
    I was expecting the characteristic CONVERSION to be calculated as '2' and filled by the procedure.
    This is not the case.
    If however, I try to fill it manually, the system accepts only the calculated value '2'. Otherwise an error is shown.
    How can I force the system to calculate and fill the second characteristic when insserting a value in the first ?
    Thanks for any help.

    Hi Marcus,
    i have the same problem with movement type 101.
    How did you solve this issue?
    Can you help me.
    Thank you.
    CM

  • Error in automatic batch classification when doing 311 movements

    I have created reference characteristics, that is, characteristics which have a direct reference to a database field (MCH1-LAEDA. LAst change).
    When doing the movement 311 with MIGO or MB1B the batch is not classified althougt in the MCH1 the field LAEDA (last change) is updated.
    In the tcode OMCV i have set the movement 311 with 1 (Classification carried out in background (all batches)).
    If go to tcode MSC3N, tha classificitaion is wrong, but if I enter in tcode MSC2N the system classify the batch.
    We are using this field to sort batches for consumption.
    Thanks in advance.

    my friend,
    do you have migo or mb1b only in background??
    you could set any 'foreground' option in OMCV, say, 2 or 3 (instead of 1)
    did you try that?
    good luck!

  • Can it create automaticaly a batch classification in PI-Sheet management ?

    Hi all,
    <b><u>Context</u>:</b>
    In a PI Sheet management (by CO58 transaction / SAPLCOCP0 prog.) a new batch number of produced material is created, then after validation this batch is
    created automatically into inventory via the 'SEND PROCESS MESSAGES NEW"
    Job (this execute RCOCB002 prog. which activate CO51 transaction .
    <b><u>NB:</u></b> I'm working in SAP version 3.1i !!
    <b><u>Questions</u>:</b>
    1 - is it possible to create automatically batch classification at the
    same time with this job ? How ? (I didn't found correct user-exit )
    2 - If so is it possible the inspection plan will overwrite the values
    of the batch classification ? If this is the case, is it possible to
    prevent it to do it? How ?
    Many thanks for your responses.
    JJE

    Hello Stuti,
    Will the PI category PROD_2 helps you in achieving this. Incase of further concerns,please revert back.
    Thanks,
    Mahesh

  • Automatic Batch Determination - Class  and  Classification - SD only

    Hi
    What Is use of Class  and  Classification in Automatic Batch Determination ?
    Regards.,
    Lakshmanan.S
    E-Mail id : [email protected]

    Hi Lakshmanan.S
    please refer to the steps below to implement this functionality:
    1. create characteristics to reflect the attributes of your product.
    2. create new class(with class type batch) to group those characteris.
    3. assign the class to your material master.
    4. in IMG, make sure batch determination procedure is properly assigned to sales area and order type.
    5. activate the auto. determination for item categoty.
      (IMG->LO->batch management..->..in SD->..)
    6. as it uses conditon tech. also, make sure your strategy record is maintain.
    I just delivered the workshop of this topic in my office today Hope u find this useful.
    Best regards,
    David Wang

  • Automatic Batch Creation at  the time of GR for Customer Returns

    Hi All,
    We are using batch management with functionality of automatic batch creation for variuos movement type 101/103/105/561 etc. with updation of classification in foreground. 
    We are even using automatic batch creation for Inbound delivery. By configuring IMG object "Batch creation Control for Inbound"
    Now we have a new requirement of automatic Batch creation for GR of Customer Return against Customer Return SO (Movement type 651). And updation of classification in foreground.
    I have tried a lot but couldn't find how to configure the same.
    Can I create GR custmor returns 651 thru transaction MIGO?
    Any suggestion how to achieve this.
    Thanks
    Sanjay

    Hi,
    What Sairam said is correct, the idea of automatic batch creation is so that when you manaufacture or create an item you can allocate the characteristics to that batch and give it a number.
    You then sell that batch to a customer.
    When the customer returns the item the system should NOT automatically allocate a new batch number to it because this is breaking a VERY important audit trail.
    In batch management (in some inductries more than  others) it is VITAL to have a full audit trail of a bathc so that any problems concerning that batch can be traced back to their origin. What you are trying to do is to break that audit trail (although I can fully understand what you are trying to do).
    I would leave the batch allocation for returns as manual and then when you transafer the item from returns to unrestricted (or quality etc.) tyou can then input the new characteristics.
    Steve B

  • Copy batch classification in GR (101)

    Dear gurus,
    Could you please help me with the following issue.
    I have a material managed in batches, and it has a classification type 023 in material master.
    Now I want the class (with all characteristics) to be copied to the batch classification during the good reciept (MIGO / 101).
    How it's possible?
    When i go to the batch generated in migo (101) using T-code MSC2N, there is one icone in Classification-tab "Create classification". and i can do it manually. how can we do this automatically in GR (101).
    Thanks in advance.

    Hi,
    Check for that movement type in OMJJ in Entry control tab where there is field called  classification batch, check what is defined for that movement type.
    Regards
    Ravi Shankar.

  • Batch classification "Date of last goods receipt" is "00.00.0000"

    Dear all,
    I have configured all steps for batch determination for FIFO.
    It worked fine for IM (stock transfer - mov.type 301) on last friday, however, get the issue today:
    - After I do GR (mov.type 101), the batch is auto created, batch classification is created,
    I use MSC2N to view batch classification:
    the value of "Date of last goods receipt" is "00.00.0000"
    What is wrong with my configuration?
    Could you pls help me to fix this?
    Thanl you very much for you help!
    Edited by: Ngo Quoc Hung on Dec 13, 2010 10:59 AM

    System Updates Batch Data in the Batch Master Record in the Following ways :
    1)  If the batch does not yet exist for the plant, it is automatically created.
    2)  If the batch already exists for the plant, the new quantity is simply posted as a receipt in the specified storage location.
    When posting a goods receipt with reference to Purchase order, the system updates Posting date as the goods receipt date in general data of the batch.

  • Help needed in Automatic Batch determination during Delivery

    Hello gurus..
    Can anyone point me in the right direction. I am trying to trigger auto batch determination during delivery creation based on available batches. thank you
    If any can give me the config that goes with it, that'll be great

    Steps to configure Batch Management
    1)  Specify Batch Level
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Specify batch level and activate batch status management Transaction  OMCT
    2)  Batch Number - Activate Internal Number Assignment
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Number Assignment --> Activate internal batch number assignment Transaction  OMCZ
    3)  Batch Creation - for Goods Movements 
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Creation of new batches --> Define batch creation for goods movements
    4) Characteristic Value Assignment -- Update Standard Characteristics 
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Characteristic Value Assignment --> Update Standard Characteristics
    5) Activate Batch Classification for Goods Movements in Inventory Management 
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Characteristic Value Assignment --> Valuation for goods movements --> Activate Batch Classification for goods movements in Inventory Management Transaction  OMCV
    6) Batch Determination – Condition Table(Cross Client)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Condition Tables --> Define production order condition tables Transaction  OPLB
    7)  Batch Determination – Condition Table(Cross Client)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Condition Tables --> Define SD condition Tables Transaction  V/C7
    8) Batch Determination – Access Sequence(Cross Client)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Access Sequences --> Define Production Order Access Sequences Transaction  OPLF
    9) Batch Determination – Access Sequence(Cross Client)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Access Sequences --> Define SD Access Sequences Transaction  V/C2
    10) Batch Determination – Strategy Types
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define Production Order Strategy Types Transaction  OPLE
    11) Batch Determination – Strategy Types
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define SD Strategy Types Transaction  V/C1
    12) Batch Determination – Batch Search Procedure
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define IM   Search Procedure Transaction  OMCY
    13) Batch Determination – Batch Search Procedure
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define Production order Search Procedure Transaction  OPLG
    14) Batch Determination – Batch Search Procedure
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define SD Search Procedure Transaction  V/C3
    15) Batch Determination – Batch Search Procedure Allocation
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Allocate IM search procedure/activate check Transaction  OMCG
    16) Batch Determination – Batch Search Procedure Allocation
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Assign Search procedure to production order Transaction  OPL8
    17) Batch Determination – Batch Search Procedure Allocation(SD)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Allocate SD Search procedure Transaction  V/C5
    18) Batch Determination – Activate Automatic Batch Determination(SD)
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Activate Automatic Batch Determination in SD -->For delivery item categories Transaction  V/CL
    19) Batch Determination – Batch Selection Class
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define Selection Classes Transaction  CL01
    20) Batch Determination – Sort Rule
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Batch Determination & Batch Check --> Define Sort Rules Transaction  CU70
    21) Batch Determination – Make Settings for Batch Where-used list
    Menu Path  Enterprise Structure> Logistics General> Batch Management --> Make Settings for Batch Where-used list Transaction  OMBB
    thanks
    G. Lakshmipathi

  • Want to find out how a batch classification is used

    Hello
    I have previously sent out a message and the idea given was not very helpful.
    Anyway, this is my question:
    I have found a class and its characteristic which was setup in the system and I would like to know how this classification` is being use in the system.
    For example, I would like to know which process (i.e. during goods receipt, during sales order creation, during production, during warehouse) is using this classification to perform their transaction.
    Do you know how to find out this kind of information in the SAP system?
    Thanks
    Tuff

    Do you want to know how the batch classification is used in general in SAP or how it is used in the system where you found it?
    In the latter case make an interview with the users, any process that has to do with stock can make use of the batch classification
    In general is classification exact what the word "classification" means. You describe something in more detail in an organized way. Classification is a modification free way to add own "fields" to standard objects, the user can immediately search  in classification without an extra effort to develop a search help.
    The batch classification can be used in a batch determination to to enable SAP to automatically search for batches with certain characteristics.and assign them to documents like sales order, delivery, goods movements, transfer orders, and production/process orders.

  • Batch Classification Screen for Goods Movements

    SAP Gurus,
    Very recently (24. April), we experience the following issue: (PP-PI Process Order)
    At the moment of process order confirmation, for any new batch assigned in the good movement overview, there's no pop-up of batch classification screen which allow our user to entry the classification data. And this functionality works fine in the past.
    Do you have an idea that how it happens? We checked the configuration OMCV and master data as well, the settings are all fine to me.
    Best regards,
    Vincent

    Dear Vincent,
    I think you talk about the 101 movement, don't you? In this case this is not possible at all, check SAP note  85310
    Because goods movements can be decoupled from confirmations and          
    processed in background, it was decided that this functionality would    
    not be implemented; therefore this is Standard R/3.                      
    Solution                                                                 
    As a work around for this you have the following options:                                                                               
    1.  Classify your batch manually through Batch Master Maintenance.                                                                               
    2.  Turn off automatic goods receipt and classify your batch through the 
        pop-up that is presented during MM goods receipt.                                                                               
    3.  Do not create your batch during Order Processing. Instead have the   
        system create it during confirmation and at this time you will be    
        able to classify your new batch from the Goods Movement screen       
        COMPONENT>BATCH MANAGEMENT>CREATE BATCH.                                                                               
    Note :                                                                   
    If you want that your batch is classified in the background you can set  
    in the transaction OMCV (classify batches within goods movement          
    overview) that the classification is to happen in the background. You    
    can then utilise the user exit EXIT_SAPMM07M_004 to valuate the          
    characteristics if it is valid for                                       
    your release.                                                            
    Regards,
    Sabine

  • Enter batch number - No Automatic Batch Number assignment allowed for plant

    Hi SAP Gurus,
    Upon checking the created new Goods receipt for Purchasing Order in tcode migo_gr, checking with the Batch tab, we can't see a batch number, then clicking the classification tab showing the message Enter batch number - No Automatic Batch Number assignment allowed for plant - XXXX
    the question is there any missing configuration based for this kind of error? ive checked the availability check for the plant and it already setup. Hope for your kind responses.
    Thanks

    HI,
    Kindy check the below configuratoin
    Logistics - General>Batch Management>Creation of New Batches>Define Batch Creation for Goods Movements
    for your movement type check what is the Strategy for the new batches.
    here you should assigne only automatic.
    Also let me know what is the level of batch mgt> is it at client level, Plant level, Material level.?
    reg
    Dsk

  • Automatic Batch Number to Be Picked Up

    Hi Gurus,
        Need a urgent help from u guys. While doing Finished Goods Posting (MIGO),I want to automatically pick up the Batch Number from the Mother Coil Number. The batch number should be the same as the one as entered (Batch Classification) during RM Posting.
         Could u please help me on the configuring the same.
    Regrds,
    Binayak

    Hi
    You need the following settings
    a) condition tables (you can use available in SAP)
    b) Acess sequeences (you can use available in SAP)
    c) Strategy types (you can use available in SAP) Here assign your class for batches and sort sequence.
    d) Batch search procedure (you can use available in SAP)
    Path: Logistic General > Batch management>Batch determination and batch check --> Batch search procedure Definition --> Define Inventory Management Search Procedure
    e) In tcode OMCG, assign your batch search procedure to your relevant movement type and if required then assign to a movement type and special stock indicatior too.
    f) Maintain condition records. tcode MBC1
    This will resolve your problem. If useful then please dont forget to reward points.

  • Batch classification during GR against production order using txn MIGO

    Hello All
           I am usng batch classification during for movement type 101, when am doing the GR against production order using txn MB31 the system automatically navigates to classification screen wherein i need to enter the characterstic value & it all goes well, I can also view the stock with batch no and the classifcation value when the GR is being done with txn MB1.
          But when am dong the same thing i.e. GR against production order using txn MIGO system doesnt navigates to classification screen for characterstic value entry and am able to do the posting. I want that system must navigate to classification screen automatically if i do the GR using MIGO also as it doen in the case of txn MB31.
           Please suggest what settings are to be done for the same, I am unable to figure out why the system is behaving in this manner. Kindly provide your inputs to sort out this issue. Waiting for your valuable inputs.
    Regards,
    J K Tharwani

    Dear,
    did u refer SAP Note 519303 ?
    After keeping Batch Classification as 4 in OMCV, in MIGO, it will start showing the Batch Classification button under "Batch" Tab, it will not show the Batch Classification Pop-up automatically as it shows in case of MB31.
    If you wan users to enter the characteristics values mandatorily in the Batch Classification then in CT04 for these characteristics activate Entry required indicator in "Basic Data" Tab
    SAP Note 519303
    Please refer this also,
    [MIGO|Re: How can I get the MRP history?]
    Regards,
    R.Brahmankar

  • BADi/UserExit for MIGO : To popup batch classification screen auto

    Hi all,
    I want to pop up batch classification screen automatically in MIGO when performing a goods movement . In MIGO there is a command button for that to open up the batch classification screen, but my requirement is when click CHECK or SAVE button, branch it to batch classification screen if those characteristics are not maintained.
    Please reply .
    Thanks and Best regards,
    Sandun

    HI ,
    Chk BADI using these steps..
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.
    5. Then run your transaction.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

Maybe you are looking for

  • String To File simulation,  viewing data from a string?

    Hi, I am working on an imaging system. I get returned a string with data which can be in a number of different formats - .jpg, .PDF, .doc etc... I also get back mime data type, if I want to use it. My initial idea was to call the function: CALL FUNCT

  • How to Extract  data from a transaction..

    Hi All There are some transactions and report programs which are used daily to produce some results and the requirement is to extract that data into BW so how can we extract information from a transactions and programs Any help will be really appreci

  • Post Invoice Reduction

    Hi all, i want to post an invoice reduction on the basis of the line item. i am using a BAPI MRM_PARKED_INVOICE_POST to post the invoice. scenario:- before posting  line item   qty   amt        inv. qty        inv. amt      correction indicator 20   

  • Will upgrading from OSX Snow Lepoard to OSX Yosemite remove my Windows Bootcamp Partition?

    Hello guys, so i have a question. I am currently running OSX Snow Leopard, and i want to upgrade to OSX Yosemite, but i'm scared that upgrading to Yosemite will erase my Bootcamp partition. so, Will upgrading to Yosemite kill the partition? or will i

  • PAL -  NTSC frame rate not changing

    I'm using compressor for the first time (version 2.0.1) and I'm trying to do a standards conversion of PAL to NTSC. I selected advance format conversion DV NTSC. It works fine except the frame rate is left at 25 fps even though the inspector had 29.9