Help needed for automatic batch creation for by-products(PP-PI)

Hi,
In the Goods Recpt tab in transaction COR1, we have a field for creating a batch manually for the header material. On clicking on create, a pop up is generated whch facilitates creation of batch for the header material.
At this point, if i go to the material list, I would like to see the same batch number ( same as header) written against the BY-Products.
Essentially, when i create a batch for the header material, it should also create a batch with the same number for the by-product and populate the same in the materials tab.
One important thing to note here is that when we click on create batch icon, the data is stored in a structure and the batch is actually created only when the process order is saved.
Please advise if this can be achived by some standard settings in SAP or do we need to change the standard code. If later is the case, please advise about the point where to insert the required code. I have found a user exit at the point where batch numbe is created manually.
Please advise.

As per SAP Batch definition Batch is the quantity or partial quantity of a certain material or product that has been produced according to the same recipe, and represents one homogenous, non- reproducible unit with unique specifications. So logically you cannot have same batch number for two materials.
If you want to find out the relation between batches of header material and by product that is produced during production, you can use Batch Information Cockpit.
To see batch details in Batch Cockpit (T-code: BMBC), You have activate Batch where used function in IMG using path : Batch management-->Batch Where used list --> make setting for batch where used list.
Regards,
Sachin

Similar Messages

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

  • 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

  • Help needed on online theme creation for mobile phones

    Hello everybody,
    I want to create an web application which will create themes for different mobile phones. In that application end user can upload jpg/gif images of there choice and select the mobile phone make like Nokia and also the model number like 6030. After that they can create their desired theme by clicking on a button and also can download it.
    My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
    Can anybody give any suggestion on this matter?
    Thanks in advance.
    Tanmoy

    Hi everybody,
    My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
    Please give me any guideline that I can proceed.
    Help needed.
    Thanks in advance.
    Tanmoy

  • 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

  • Need to create a mass upload program for appraisal document creation for multiple employee in abap hr

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi,
    I have done appraisal document creation for bulk using txt file.
    this fm used for single for creation in standard tcode (phap_prepare):  'WZ_HRHAP_0DOC_WZ01_START'.
    So create ztcode  usinh this fm for single form then record BDC for this tcode and called this tcode in that bdc for bulk creation .
    While recording for single I have used manual option instead of automatic .

  • Problem in automatic batch determination for components in process order

    hi
    Ours is a process order industry. Here we prepare food items.
    We are entering manual batch for finished product. We want to perform automatic batch determination for one of the components raw material. For other packing material we do not want to maintain batches.
    The batch procedure picked is me0001 for 261 movement type instead of C00001.
    Because of that we need to enter batch manually.
    Send us the procedure to automatic batch determination for components.
    regards
    ravi

    Ravi,
    Before posting please do search in this forum because this topic has been discussed many times in past.
    Please check below links which could be helpful to you Automatic batch determination in process order
    http://www.sapsword.com/home/sap-batch-management/sap-batch-determination
    If you still have issues then please come back.
    Br
    KK

  • Automatic batch management for Production order receipt

    Hello ,
    I have a requirement to setup & activate Batch Management only for Production order Good Receipt . I am looking out for what all configuration / data setup will be required to complete this .
    To start with I have following questions .
    1. Whether such activation is possible only for Production order Good receipt - 101 mov.type
    2. IF yes , is Batch management activation status be at material or plant level .
    3. As I need automatic assignment , should I be selecting Internal batch management .
    4. What should be selected for valuation for Goods movement in Inventory management.
    5. Is it necessary to have batch determination by maintaining Condition tables / Access sequence
    6. What would be standard Class / characteristics to be maintained for automatic determination.
    Also I will have to work with the running system where Material are already active and have stock in system . What precautions will I have take if I have to activate the Batch Management in a running system.
    Appreciate all your expert advise.
    Regards,
    Lawrei

    Thanks Adler for your comments .
    With reference to your point , need further clarifications
    1. If batch management is selected to material , this means that it will be active for all movement types for Inventory and cannot be restricted to 101 mov.type .
    I see that in config node
    +Define Batch Creation for Goods Movements+
        +Using this function, you can define for each movement type whether a new+
        +batch is created for a goods receipt and how it is created.+
    Can I not restrict batch creation only for 101 movement , but again here I don't have options to select only for Good receipt for order - Tran/Ev type - WF .
    & what about below config node
    +Define Batch Creation for Production Order / Process Order+
        +In this step you can make the following settings in batch management for+
        +the existing production control profiles:+
    Is it possible in this node .
    Please advise.
    Regards.
    Lawrei

  • Automatic batch determination for quality inspection stock

    Hello, gurus.
    Could you please, help me with the following problem: I have received on the certain storage location some quantity of material maintained in batches into quality inspection stock with 501 movement type. Now I would like to make reverse posting, but I do not want to use cancellation of the document, I need to use 502 movement type and determine batch from quality inspection stock with automatic batch determination in MIGO transaction. I assigned Batch search procedure to 502 movement type and created all necessary condition records. I use Checking Group for Availability Check ‘CH’ and Checking Rule for Availability Check ‘03’ where I include quality inspection stock. However no batch can be determined. But if I use 331 movement type, everything is OK, the batch is determined without any problems. If I manually put batch and valuation type for the material, the system shows no error.
    Why it is not possible to do automatic batch determination for quality inspection stock then?

    OK, let us talk abou it. I check it in my system, actually 502 can work, but I can't trigger BM determination by 501. Maybe BM determination onlys to select some existing batches for consumption. For 501 in my pratice I can select all the existing batches to be added or just add a new batch.

  • Automatic Batch determination for Replenishment delivery

    Hi there,
    Is there a way to determine batch automatically for replenishment delivery?
    Whenever I create replenishment delivery, batch should be determined automatically. For that I activated automatic batch determination for SD documents (Delivery Item Category NLN)...
    Still I couldn't solve my problem...
    Suggestions from everyone are most welcome...
    Regards,
    Geetha

    Hello Geetha,
    You need to carry out configuration for seach procedure under SPRO-> Log Gen -> Batch management -> Batch search procedure definition -> Define Sales and Distribution Search Procedure
    The help text from that node is as follow:
    Define Sales and Distribution Search Procedure
         In this step, you define search procedures for batch determination in Sales and Distribution.
         Each search procedure comprises all strategy types that can be used for a particular combination of sales area and sales document type.
         Requirements
         To be able to define search procedures, you must have defined the necessary strategy types.
         Standard settings
         The standard SAP R/3 System contains search procedure SD0001.
         Activities
         To create a search procedure, proceed as follows:
         1.  Select New entries, and enter a six digit key beginning with "Z" as well as a name for the search procedure.
         2.  Select Control and then New entries, and enter the strategy types in the desired sequence.

  • Automatic TO creation for delivery

    Dear Experts ,
    We are facing a problem with Automatic TO creation for delivery only in some storage types ( not all the types , some types are working fine )
    The problem happened after we applied a user exit for a specific picking strategy , but even after we have cancelled that user exit still problem remained.
    We have checked the following settings, and everything seems fine:
    1-Warehouse management - Activities u2013 transfers u2013 define Mvt type
    2-Warehouse management u2013 interfaces- Automatic TO creation
    Looking for your help in this issue
    Thanks ,
    Malik

    Hi Malik,
    You mentioned that you have previously implemented the picking user-exit and removed it later. Did you enter the correct picking strategy for the effected storage types after removing the user-exit? This could be one reason.
    What happens when you try to create the TO manually?
    Regards,
    Osman

  • BAPI for automatic Pr creation witth multiple files from excel sheet

    I have written a programm  for automatic PR creation  with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
    now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
    types : begin of x_file ,
            key1(10),
            pur_grp(4),
            maktx(40),
            plant(4) ,
            req(10),
            s_qty(13),
            wbs(24),
            gl(10),
            trackno(10),
            supl(4),
            deladd(255).
    types : end of x_file .
      data : str5 type char10.
      data : mm type char2.
      data : yyyy type char4.
      data : dd type char2.
      data : str9 type char10.
      data : str6 type char10.
      data : month type char2.
      data : year type char4.
      year = sy-datum+0(4).
      month = sy-datum+4(2).
      dd = sy-datum+6(2).
      yyyy = sy-datum+0(4).
      mm = sy-datum+4(2).
      dd = sy-datum+6(2).
      clear str6 .
      clear str5.
      concatenate  dd'.' month '.' year into str5 .
      concatenate  yyyy mm dd into str6 .
    DATA : file type rlgrap-filename .
    data : it_file type table of x_file .
    data : wa_file type x_file .
    data : it_header type table of x_file .
    data : wa_header type x_file .
    *&  Internal Table For Define Row and Coloum Postion
    data: col_start type i value 1 ,
          row_start type i value 2,
          col_end type i value 256 ,
          row_end type i value 65000 .
    *&  Internal Table For Retrieve  Data From Excel
    *data: excel_bdcdata like kcde_cells occurs 0 with header line.
    *data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
    data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
    data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
    data: it_index type i.
    DATA : IT_INDEX1 TYPE I.
    *&  Define Field Symbol
    field-symbols: <fs> .
    data :   bdcdata like bdcdata    occurs 0 with header line.
    data :   messtab like bdcmsgcoll occurs 0 with header line.
    data : req_items type table of bapiebanc .
    data : wa_req_items type bapiebanc .
    data : req_acc_asg type table of bapiebkn.
    data : wa_req_acc_asg type bapiebkn.
    DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    *data : return type table of     bapireturn.
    *data : wa_return type bapireturn .
    data : number type ebeln .
    *****************************MOVE FILES******************************
    data : xsource type string .
    data : xdestin type string .
    data : destin1 type string .
    data : destin2 type string .
    DATA : DEST1 TYPE STRING.
    DATA : DEST11 TYPE STRING.
    DATA : DEST2 TYPE STRING.
    DATA : DEST22 TYPE STRING.
    data : sou_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name1 like SALFILE-LONGNAME.
    data : sou_filename like EDI_PATH-PTHNAM .
    data : tar_filename like EDI_PATH-PTHNAM .
    data : filename1  type string .
    data : tar_filename1 like EDI_PATH-PTHNAM .
    data : file_itab like SALFLDIR occurs 0 with header line.
    data : wa_file_itab like SALFLDIR.
    data : file_count type i .
    data : dir_count type i.
    data : dir_table like sdokpath occurs 0 with header line.
    data : file_table like SDOKPATH occurs 0 with header line.
    data : wa_file_table like sdokpath.
    data : strr type string ,
           str1 type string ,
           str2 type string ,
           str3 type string .
    DATA : PA_VAL TYPE CHAR1.
    sou_dir_name = 'D:\barcodes\files\'.
    tar_dir_name = 'D:\barcodes\files-success\'.
        "success folder.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
        endat.
      endloop.
    sort it_file by key1. "pur_grp maktx plant  .
    it_header[] = it_file[].
    delete adjacent duplicates from it_header comparing key1 pur_grp maktx
    plant .
    data : h_item(5) type n .
    data : h_pack(10) type n .
    data : line_no(5) type n .
    data : ln_no(5) type n .
    loop at it_header into wa_header .
    ln_no = 1.
    h_item = h_item + 10.
    h_pack = h_pack + 1.
    wa_req_items-preq_item = h_item .
    wa_req_items-doc_type = 'BOM'.
    wa_req_items-pur_group = wa_header-pur_grp .
    wa_req_items-MATERIAL = wa_header-maktx .
    wa_req_items-plant = wa_header-plant .
    wa_req_items-pckg_no =  h_pack .
    wa_req_items-deliv_date = str6 .
    wa_req_items-item_cat = '0'.
    wa_req_items-acctasscat = 'P'.
    *wa_req_items-distrib = '2' .
    **wa_req_items-gr_ind = 'X'.
    wa_req_items-ir_ind = '2'.
    wa_req_items-purch_org = 'TISL' .
    wa_req_items-QUANTITY =  wa_header-s_qty.
    wa_req_items-PREQ_NAME =  wa_header-req.
    wa_req_items-SUPPL_PLNT = wa_header-supl.
    wa_req_items-trackingno = wa_header-trackno.
    append wa_req_items to req_items .
    clear wa_req_items.
    wa_req_acc_asg-preq_item = h_item .
    wa_req_acc_asg-g_l_acct = wa_file-gl .
    WA_req_acc_asg-wbs_elem  = wa_header-wbs .
    append wa_req_acc_asg to req_acc_asg .
    clear wa_req_acc_asg.
    h_pack = h_pack + 1  .
    endloop.
    clear ln_no .
    ***BREAK-POINT.
    *& BAPI FUNCTION
    call function 'BAPI_REQUISITION_CREATE'
    importing
       number                               = number
      tables
        requisition_items                   = req_items
       requisition_account_assignment       = req_acc_asg
       return                               = return .

    Can someone please give me sol........

  • Need to create a mass upload program for appraisal document creation for multiple employee

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi Priyaranjan,
    I think you can take the abap'ers help in creating the program. But u need to provide them the exact functionality and the required specifications in creating the appraisal document.
    Even tcode also u can get it prepared by Abap'ers.
    Thanks and Regards
    Balaji

  • Automatic batch determination for components in order confirmations

    Hi all,
    when I am doing confirmations through CO12, for some of the components the batch is picked up automatically. But for some other components, the batch is coming only when I manually select the component line and click on batch determination button below.
    Why is this difference? How can I get the batch automatically with out selecting the line and clicking manually on the batch determination button?
    Thanks in advance,
    Raghu

    Ravi,
    Before posting please do search in this forum because this topic has been discussed many times in past.
    Please check below links which could be helpful to you Automatic batch determination in process order
    http://www.sapsword.com/home/sap-batch-management/sap-batch-determination
    If you still have issues then please come back.
    Br
    KK

  • Automatic batch generate for raw materila in migo

    Dear Sir,
    When i am doing goods receipt of raw material in MIGO when we click on check that time automaict batch genration should be done so where is customizing setting of internal batch generation.Please guide me in detail

    Hello;
    Please check customization "Define Batch Creation for Goods Movements" for your movement type that you use at MIGO select Automatic / No manuel creation.
    Regards.

Maybe you are looking for