Questions for Batch number in CRM

Dear All,
I have batch questions in current CRM project. Basically we want to allow user to enter the Batch for products in item level.
1. I have config the COMM_PR_BATCH set type in comm_hierarchy for MAT_ materail.  But the Batch set type don't exist in commpr01. Why don't it work?
2. In standard order, the batch field only displays. If I want to make this field editable. Do I need some configuration?
I 'm very appreciated if you give advice. Thank you so much.
Anna

Hi Tinu,
As part of standard SAP deployment the batch characteristics are defined in R/3 as product classification data and then donwloaded into CRM. Actually batch determination takes place in the R/3 System when you call ATP check from CRM, and is only visible in the CRM System during delivery. There are no confoguration settings In CRM to maintain batch information.
Hope the below help document link will give you a good in-sight of batch determination : http://help.sap.com/saphelp_crm50/helpdata/en/21/0f1eb09da5f74cbc40798eb4ed71ee/content.htm
<b>Do not forget to reward if it helps,</b>
Regards,
Paul Kondaveeti

Similar Messages

  • Stored Procedure for Batch Number Format and Block Duplicate Batch Number

    Hi Experts !
    I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
    Example :
    My Batch number format Like  BATCH00001 - It should be first five digit is text format and next five is Numeric.
    IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .

    Dear Nagarajan K.
                         Thanks for your replay ..
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    --set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    set @count = (select count(*) from oibt quantity > 0 and where  batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item 
    select @error, @error_message
    END
    END
                  I used above Stored Procedure. here we can use one batch number for different item but  i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
             After that I want format for Batch, we should follow unique Batch number for all items.

  • Verification field for Batch number - Transaction LM05

    Hi Experts,
    Can some one help on the issue of adding a verification field for BATCH NUMBER on the screen 2502 and make it work.
    Requirement : Add Verification field for batch number and build the logic to verify the batch number -  as the SAP standard does for other fields.
    I have proceeded to some extent and seems like I am not winning.
    Steps done :
    1. Copied physical screen 2502 (SAPLLMOB)  to screen 9502(SAPLXLRF)
    2. Changed the screen to subscreen and removed the OK_CODE from the element list.
    3. Created the project ZMWMRF502 and assigned user exit MWMRF502 to this project.
    4. In the components of the project assigned 9502(SAPLXLRF) to 1502((SAPLLMOB).
    5. Assigned the screen 9502 to logical screen 0502 in the config.
    6. In the transaction LRFMD given the username and variant '1'.
    Now When I execute the transaction LM05 and give the TO number, the system calls my screen 9502 with new field seen in that.
    But the screen is completely greyed out with no data in that.
    I checked PBO and PAI of my new copied screen.
    In all the modules which I received from the copy of SAP standard screen there is no code except name.
    I mean to say that names of all modules exist but when I double click on any module it ask me to create a new object.
    If I have to create module similar to SAP there is a lot of coding in side. How do I proceed further.
    Can some help me.
    Thanks and regards
    Joshi

    Hi Dez,
    If you go in to transaction LM05 and input a number of TRANSFER ORDER, it will take you to a screen where the system will populate the fields pertaining to that particular transfer order.  In that screen we have normal fields as well as verification fields for that particular field. These screens are used on scanners. When the scanner scans the material slip, the corresponding value such as material number, storage bin number etc will be get populated in the verification field.  When the user selects next then the system will perform a check for the two values and pops up an error message if required.
    So there are verification fields for material number, storage type, quantity etc but not for batch.  Our user requirement is to put a verification field just by the side of batch number field and perform same operation as it does for other fields.
    Hope you understood.
    Thanks and regards
    Joshi

  • Query for batch number

    Hi
    i want query that
    suppose i create 'i01' item make management method by batch.
    when i create ap invoce at that time i add vendor refrence number add add that 'i01'
    item with '5' quantity's then add. at that time it ask for batch update.
    then i get new window of batch OBTN  in that window  i make user defined field.
    "In that user defined field i want that vendor reference number which i give in ap invoce "
    so plz help ..................

    Hi,
    Unless I misunderstood your question (if so, sorry), I presume you mean formatted-search to copy vendor reference number from main A/P Invoice form to batch selection form, isn't it? You can't do this, formatted search works in one form, can't work across two form / document. Hope this help.
    Best Regards,
    Hendry Wijaya

  • Product Batch Number in CRM

    We are working on CORM System and I want to clarify how the Product Btach number is maintained in CRM.We dont have any standalone system (R/3).Is the batch number is created while the prodct is created .Please give me any conif document if any one is having.

    Hi Tinu,
    As part of standard SAP deployment the batch characteristics are defined in R/3 as product classification data and then donwloaded into CRM. Actually batch determination takes place in the R/3 System when you call ATP check from CRM, and is only visible in the CRM System during delivery. There are no confoguration settings In CRM to maintain batch information.
    Hope the below help document link will give you a good in-sight of batch determination : http://help.sap.com/saphelp_crm50/helpdata/en/21/0f1eb09da5f74cbc40798eb4ed71ee/content.htm
    <b>Do not forget to reward if it helps,</b>
    Regards,
    Paul Kondaveeti

  • Different Number Range for Batch number in MIGO

    Hi Techies,
    I have a requirement to assign the internal range number to Batch Number as K120101701 for CHARG field in MIGO. Where K1 is the Storage location, 2010 is year, 17 is current date 01 is the serial Number.  Next day the number range should be K120101801, 18 is next day's date. How can I achieve this? 
    Thanks & Regards,
    Muralikrishna P
    Edited by: muralipsharma on Nov 17, 2010 5:35 PM
    Moderator Message: Do not dump your specifications here for others to do your work. Try on your own first.
    Edited by: kishan P on Nov 18, 2010 11:31 AM

    just check with following code . it will give all badi and user exit in the transaction . in selection screen u have to pass tcode and package
    <<copy-paste from http://naveenvishal.wordpress.com/2009/07/05/user-exits-and-badi-list-for-a-t-code/ or some other location>>
    Moderator Message: DO NOT copy-paste other people's work without giving them due credit. If you continue this, you user-id will have to be deleted.
    Edited by: kishan P on Nov 18, 2010 11:36 AM

  • Linked Button for Batch number and Serial Number

    Hi,
    Is there a way i can have a linked button for Batch numbers and serial numbers?
    (These are 2 separate fields by the way).
    If i use the object no 94 for serial numbers, it cannot find the record. The same issue occurs when i use batch number's object no 106.
    Anyone has any idea how do i go about this?
    Thanks in advance.

    Hi shafi,
    It wont work, but i did check it once and confirmed my doubt. instead of writing 
    SAPbouiCOM.BoLinkedObject.lf_ItemBatchNumbers
    i'm using the "106" object number. its the same thing.
    Your using the linked button for the item code. I want the object to link to the batch number.
    Your your linked button, when you run it against an item having 10 or so batch numbers it'll always take the 1st record. Not the record that u want it to link to on the form. (because we cannot define the Batch number with that object).
    BTW, the code you've written for a matrix, you can assign all these things in the xml file or in the srf itself.
    Appreciate the response, thanks.

  • How to generate the batch number for group of records

    Hi All,
    requirement: i have created one sequence to generate the batch numbers.i have to get the nextval of the sequence for batch number (this column is not part of the table. its dynamic column/alias column) only for every 50000 records of a table.
    detail description:
    for example, if i have 10 records in a table. And, if i want to generate the batch number for every 2 records, then the output should look like belo.
    batch-number qty
    1 10
    1 20
    2 30
    2 40
    3 50
    3 60
    4 70
    4 80
    5 90
    5 100
    Please help me on this. Please let me know if you need more info.

    one more update on the above request. this has to be done using SQL query only.

  • Maximum Number of characters for Batch

    Hello MM Experts,
    Please let me know if there is any way to increase the length of the field for batch number so that I can give batch numbers with more than 10 characters (which is as per Std SAP).
    Is there any way to increase the same ?
    Thanks,

    Hello Friend
    Not suggested to alter Standard field size but nothing stops you from increasing the field size.
    MCHA - CHARG
    Down fall to do such enhacement is if you you are not sure where all the field is refered and proper error handling is not addresed then it is a bigger aniamal to resolve issues
    Regards
    SE

  • Use Batch Number for bin location

    Hi:
    if I not use WM module, can I use batch number for bin location instead.
    I will set naming convention for batch number to represent bin location.

    Hi,
       You can use it, but I wont suggest it. The batch specifies a group of materials produced with same recipe or with same characteristics.
       If you use BIN location as batch name, suppose you transfer post from one storage location to another storage location where the bin location change and the batch number remains the same. It will simply create confusion.
    Regards,
    AKPT

  • Batch gets skipped or duplicate batch number appears

    Hi all,
    What should I have to do if Batch gets skipped or duplicate batch number appears while releasing Process Order?

    Hi,
    619913
    I can only tell you something about the skipping.
    You cannot prevent this completly in standard, please see note 619913 question 6.
    6.  Question:
         How can you achieve a chronological assignment of batch numbers
         without any gaps?
         Answer:
         A chronological batch number assignment without any gaps is
         impossible.
         Chronological batch numbers are achieved by using the internal batch
         number assignment. The absence of gaps cannot be guaranteed, however
         (cancelled entries, termination, /N, etc.).
         Gaps in batch number assignment can be eliminated by explicitly
         searching for them in the user exits for batch number assignment
         (EXIT_SAPLV01Z_001 through _004) - they can also be determined in a
         job and stored in a customer-specific table.
    Regards,
    Sabine

  • Creation of Batch number

    Hi Experts,
    I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
    If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
    EXIT_SAPLV01Z_001 (ZXVBZU01)  & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
    If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
    Any body has an idea about this requirement, to ignore the user entered value.
    Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
    Any suggestion or Any alternative way or Any idea Please......?
    Warm Regards,
    Vijay

    Hi,
    I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
    You can restirict by using automatic generation using number ranges
    <<Function module Documentation>>
    Functionality
    You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
    Number assignment is carried out using the central number assignment.
    The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
    Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
    Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
    Example
    You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
    SAP delivers a total of 6 examples for batch number assignment:
    1. Copying the production order number to the batch number
    2. Copying the sales order number to the batch number
    3. Material-type-dependent batch number assignment
    4. Material-number-dependent batch number assignment
    5. Including the date in the batch number
    6. Including the plant number in the batch number
    For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
    For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
    For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
    For a detailed description of the examples, see below.
    Prerequisites
    1. Internal batch number assignment via the customer exit is activated:
    To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
    2. Maintaining the number range object
    Two number range objects are provided for batch number assignment:
    Standard number range for batch number assignment BATCH_CLT
    Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
    Activities
    1. Use the SAP enhancement SAPLV01Z:
    a) In transaction CMOD, create either a new project or use an existing project.
    b) Add the SAP enhancement SAPLV01Z to the project.
    2. Copying the example code:
    a) Choose Component.
    b) Choose Change.
    c) Choose:
    EXIT_SAPLV01Z_001 for examples 1-4
    EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
    d) Choose Edit -> Copy SAP source text.
    The example code is copied to the relevant table in the function module exit.
    e) To copy the example, remove the comment symbol before the include it pertains to.
    3. Activate the project.
    When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
    Examples
    Example 1
    Copying the production order number to the batch number
    When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
    Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
    If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
    The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
    Note:
    In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
    Example 2
    Copying the sales order number to the batch number
    If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
    If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
    Note:
    In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
    Example 3
    Material-type-dependent batch number assignment
    In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
    For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
    Example 4
    Material-number-dependent batch number assignment
    In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
    If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
    Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
    The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
    Examples 5 and 6
    Including the date or plant number in the batch number
    The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
    Parameters
    X_BNCOM
    CUST_NO_INTERNAL
    NR_RANGE_NR
    OBJECT
    SUBOBJECT
    TOYEAR
    MESSAGE_WHEN_AUTO
    MESSAGE_DONE
    Exceptions
    CANCELLED
    Regardas
    Krishna

  • Internal Batch number not getting generated

    Dear Experts,
    We want to generate internal batch numbers during production order creation. To achieve the same ,
    the following Customization settings were done:
    1. Acitvate Internal Batch number assignment (T-code OMCZ)
    2. Maintain Internal Batch number Assignment Range  (No exits will be used for batch number generation)
    3. Creation of New Batches  -->  Define Batch creation for prdn. order --> Automatic batch creation during order creation
    4. Creation of New Batches  --> Define Initial Creation of Data for Batch Master Transactions --> Automatic creation
        only allowed for a material type.
    All the relevant materials are markes as Batch Managed.
    But when we are creating a Production order system generates a error shown below.
    No batch numbers could be determined
    Please guide.
    Regards,
    Namratha

  • Automatic Batch Number Generation in tcode MIGO...

    Hi Experts,
                     There is automatic Batch Number is generated  after clicking on Pushbutton  "Check" in transaction code MIGO. Instead of that user want Batch Number Generation after clicking on Pushbutton "Post" . Can anybody tell me the procedure for the same..
                    Thanks in advance.
    Best Regards,
    Vinayak

    HI Vianayak,
    You can implement a Badi for your logic.
    You can implement Badi :MB_MIGO_BADI and write your logic in method CHECK_ITEM .
    Here you can restrict the Batch number based on Fcode for the Check and Post buttons.
    Like if the user click on Check button: based on the fcode for the check button u can restrict it and similarly if the user click on Post button you can pass the value for Batch number. This method get called in both the cases.
    Hope this solves your problem.
    Regards,
    Satyam

  • Checking the duplication of batch number

    hi expert
           I m using the Stored procedure (SP_TranscationNotification) for checking the duplication for Batch Number ie when a alreasy existing batch number is given an error message should be shown.
          declare @ItemCode nvarchar(64)
          declare @batchNumber nvarchar(64)
          if @transaction_type in ('U','A') and (@object_type='106')
             begin
                set @itemCode = LEFT(@list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1)-1)
                   set @batchNumber=substring(@list_of_cols_val_tab_del,charindex(char(9),@item)+1,len(@list_of_cols_val_tab_del))
                 if exists(select @itemcode,@batchnum from OIBT where BatchNum=@batchNumber and ItemCode=@Item)
                    begin
                        select  @error = 1, @error_message ='batch number already exists'
                    end
            end
         Here in the above SP , i cant able to get the batch number,Please anyone give me the solution of getting batch number or suggest a method to get the value between first and second tab of a row.

    Please check this answered link. Your level of batch would be defined on plant, thats why you are getting duplicate batches. Batch definition at Client level has unique batch numbers.
    Change the Batch Level
    Edited by: Afshad Irani on May 22, 2010 10:54 AM

Maybe you are looking for

  • BAPI_PO_CREATE

    Actually I don't have much time left so I though of posting this thread again, I am working on an interface where I need to create PO's using BAPI_PO_CREATE but to my bad luck the code that I have written is not working properly and I have just about

  • Please encode the password for me

    what is the password please help

  • File SENDER - "Recordsets per message" being ignored..

    Hi I have a file to file scenario Sender file: A1,A2,A3 B1,B2,B3 I want to split the SENDER/SOURCE file in the adapter (NO BPM) so that I am creating n number of RECEIVER files - ONE for each line. I am trying to use content conversions and setting "

  • Installing Oracle 11gR2 RAC Problem: ASM disks

    Folks, Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html At the

  • Newbie Help Needed: Data Binding

    Okay, lemme see if I can possibly explain this issue clearly enough... (The whole explanation of the object graph may very well be superfluous, so you can probably skip to the bottom.) I have a whole object graph that I've downloaded from my server t