L_TO_PREPARE_ITEM_INT batch split for the same material

Hello Gurus,
I use L_TO_CREATE_MULTIPLE to create TO.
if I leave empty charg number for one material line in FN VB_BATCH_DETERMINATION that is triggeredc in L_TO_CREATE_MULTIPLE  batches are determined (without quantities) but I thought it is prepared for eventual batch split
But I suppose not as I have a problem when I put quantity greater that quantity on one batch the functionality L_TO_PREPARE_ITEM_INT does not split material into batches, does it mean that I need to split this quantity on batches before calling L_TO_CREATE_MULTIPLE or maybe something in customizing is missing?
Bests Bogumila

Hi,
I had a also used this FM.
When you pass the total quantity it will only return the batch which should be used first to fulfill your requirement.
So you have to keep this FM in a Loop and keep subtracting the proposed quantity and store it in a Internal table till it is zero.
Thanks
Ajay

Similar Messages

  • Multiple info records for the same material record in the catalog

    Hi Guys,
    I have got sort of a puzzle I can not solve at the moment, maybe some one can help me to solve it. The situation in our system landscape  is as follows:
    Systems:
    SRM 5.0 (Classic implementation scenario)
    ECC 6.0
    SRM-MDM 2.0
    PI 2005
    Material master is maintained in R/3 and the materials are replicated to SRM. From SRM we replicate all materials to the catalog repository in  SRM-MDM.
    As the material master in R/3 is vendor independent, the materials replicated to SRM also have no vendor attached. For the first initial material replication from SRM to the catalog SRM-MDM this also means that the products in the main table of the repository, u2018catalog positionsu2019, will not have a vendor or vendor number attached (i.e. no reference to a source of supply).
    To assign a source of supply in the repository to a product (record) we will use info records which are replicated from R/3 to SRM-MDM.  The mapping for this in the Import Manager can only be based on the product number. As this is the only unique value available which can map a info record to a already existing (but vendor less) ptoduct item in the catalog.
    As long as every item in the repository has only one unique info record, meaning one source of supply with a specific price, there is no issue in the above scenario. Based on the product-id, the info record data will be matched with the material item in the catalog.
    The issue for me arises when multiple info records exists for the same material. The info records can heave different vendors and different prices. All possible vendors should be available in the catalog for the same material (at least this is the requirement ). 
    At this point the product-id will no longer be an unique value. Importing the info records will cause problems, as only one material record is available in the repository for the specific product-id (remember that when doing a initial replication of the material master to the catalog, no vendor data is replicated).
    Does anyone had this issue before, and knows a solution? Is it for example possible during the import of the info records in the Import manager, to duplicate material records in the destination data, based on the number of info records available in the source data for the same product-id. Or is there an other solution that I am missing?
    Your help would be appreciated!
    Regards,
    Skander

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • How to Prevent/Control doing MIGO twice for the same material

    Dear
    The stores clerk by mistake has done MIGO twice for the same material.  Is there any way to prevent/check the same in standard SAP?  Vendor does not send the invoice/delivery challan to stores directly.  Invoice is sent to Finance Department. 
    Regards

    It is very unlikely that you could spec an ABAP solution to this problem.
    You may be able to spec an exit that would prevent GR being carried out for a PO Item twice on the same day.  But that is not infallible, as there may be valid circumstances when you would need to carry out two GR's for a PO item on the same day.  A fix for a small problem that creates a large one is not a good fix.
    You also need to ask how big this problem really is - if a user duplicates a goods receipt every once in a long while then you probably do not have a serious problem.
    Rather than look at a system fix for the error, I would suggest that you look at what you can do to improve the physical process.

  • Sales Deal with two different validation dates for the same material

    Hi SAPers,
    I am trying to create a u201CSales Dealu201D VB31, for the same material/condition, but with two different validation dates. After the creation of the first record, I select u201CNew conditionu201D button, but the system give me the message VK104, u201Cthe condition is being processed in the current session.u201D.
    How can I solve this issue?
    Thanks in advance.
    Pedro

    We can't have multiple records for the same condition and key values valid on the same date. The condition end date is part of the primary key in the database table. The date ranges between the records cannot overlap. When you create a new record, usually the end date is set to 12/31/9999 by default. If you need to have this deal to end on a different date and a new deal to start afterwards, then first you need to change 12/31/9999 to a different date.
    Also usually I try to exit the screen between the transactions.

  • Email if Notification is created for the same material number

    Hi,
      IS it possible to get a email Automatically when a notification is created for the same material in last ___days/weeks.
    Thanks
    SM

    Yes.  Use the early warning system to send an eamil when ever the number of notifications exceeds a certain number in a given period time for a given group of objects.
    You must have the info structures for QM in LIS activated for this to work.
    Craig

  • In MIGO two seperate entry for the same Material in Accounting Document

    Dear Expert,
    Hi
    Business is doing stock transfer transaction. Here with reference to stock transfer PO when business is doing Goods Issue.
    here there is two stock transfer PO.  in one PO there is two line items for the same material. in the second PO again same material with two line items.
    but at the tme of Goods issue it is showing two seperate line for same material stock account credit in accounting document. but in the other Goods issue with reference to second PO it is showing only one line for inventory account credit in the accounting dcoument.
    so pl. guide me on this.
    thanks
    H shah

    Hi,
    Step 1 : First we create the Stock transfer PO.
    Step 2 : Goods issue with ref to above stock transfer PO ( Movement type 351) - MIGO
    Step 3 : Goods Receipt with ref to above stock transfer PO ( Movement Type 101 )- MIGO
    Thanks
    H shah

  • Different countries of origin for the same material

    Hi All,
    I need to maintain two different countries of origin for the same material, is this possible?
    I have materials that are sold to customer in Europe and also in the US, but according to EU laws the country of origin is X and according to NAFTA laws the country of origin is Y.
    I therefore need to be able to maintain the data according to the receiving country.
    Is there a possibility to do this in SAP?
    Thanks,
    Sivan

    Thank you for the answer.
    The problem is not that I have a different vendor, but that I have a different customer. The laws regarding how to define the country of origin for the EU are a bit different from the laws regarding the US. Therefore the same material, purchased from the same vendor can have a different country of origin when we sell it to a customer in the US from the country of origin when we sell it to a customer in the EU.
    I therefore need to maintain the country of origin according to the teratory in which the customer resides.
    Do you know of a solution for this?
    Thanks,
    Sivan

  • Multiple BOM Explosion in MD04 for the same material

    Dear PP Gurus,
    Scenario is make to order. BOM is created for production usage (1) & sales usage (5) for a Header material. Routing also exists for the same.
    Once i run MRP at plant level or material level after creating sales order , BOM is expoded multiple times i.e. 3- 4 times but proposals ( planned orders) are created as per requirements.But BOM explosion when we click on show overview tree is happening multiple times which should not happen.
    Our client business is not getting hampered by this but still he doesnt want explosion multiple times and to be precise it should not happen.
    Can anyone pls. throw some light on this .
    Thanks in advance . Answers will be rewarded for sure.
    regards,
    Nagraj Vasmate

    Hello Nagraj,
    In MD04, On overview tree, it explodes all possible BOM for the header material.
    System will explode all valid BOM's with usage 5 and 1 for that specific material.
    Reg
    Samson

  • Consignment vs owned inventory for the same material/inventory (cycle count)

    Hi All,
    I am looking at ways within SAP that I could differentiate materials/inventory that are consignment and owned inventory...
    We have a department that are experiencing difficulties performing cylce counts as they both owned and consignments parts and materials and it is currently done manually.
    Is there a way for us to generate a single inventory that includes both owned and consignment in the same report?
    Any help would be great!
    Cheers!
    Wendell

    Hi Wendell,
    If you have batch management and WM, this should not be a problem.. In this case, you should be able to identify where each batch is located and if the batch is consignment or own.
    If not, then execpt you separate the inventory in different storage locations, the inventory could be mixed.
    Anyway, I recommend you to move this thread to SAP MM:
    SAP ERP - Logistics Materials Management (SAP MM)
    Kind Regards,
    Mariano

  • Adding quantity field for the same material number in Table control

    Hello Experts,
    I have an requirement, where I need to add the quantity field when the material number is repeated in a table control.
    Here I show the pop-up message "Material already exists, do you want to add the quantity". If the user clicks on Yes I need to add the quantity.
    I created the pop-up message using the FM " POPUP_TO_CONFIRM" and tried to add the quantity filed using COLLECT statement but I couldn't because my non-numeric field value will be different and it will insert new entry with same material in my internal table.
    I have a z data base table & internal table with the below fields in it.
    Best Regards,
    Mani

    hi deepthi,
    chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    * populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
    *&      Module  help_responsibility  INPUT
    *       text
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    rgds
    Anver
    <b><i>if hlped kindly mark points</i></b>

  • Extractor 0CO_PC_PCP_03: diferent costing runs for the same material

    Hi, experts.
    We are extracting data with 0CO_PC_PCP_03 extractor, but some materials do not return any record.
    If we use CO standard transactions, we can get the values for all materials, but with the extractor just few materials are returned.
    We are filtering the extractor with the costing run name and costing run date, but some materials are not extracted.
    This is occurring for a specific month only. We have extracted data for other months / costing runs and the same materials appears in CO transaction and in extractor result. The different thing with this problematic month is that there are other costing runs of the same type (costing variant), for a higher date.
    It seems like the extractor just can extract the last costing run for a material / month. Any idea?
    Thanks,
    Henrique Teodoro

    Hello,
    I have an update in my findings. Few days ago, R/3 user ran a new costing run for a set of materials, using the same costing variant / costing version used one year ago. And now, when I extract the costing run created one year ago, materials present in recently run set don´t appear anymore. I ran this same costing run weeks ago and the material are ok. After the new costing run with the same costing variant / costing version, they are gone from extraction.
    Seems like this extraction just can return the last costing variant / costing version for each material. Or maybe the table key that stores this data are costing variant / costing version, instead of costing run / costing run date.
    Anybody have any knowledge or experience on this?
    Thanks,
    Henrique

  • Auto GR for the same material and with different routings to diff stor loc

    Hi All,
              I have a semi finished material having 2 different routings line 1 and line 2 and with respective 2 different storage locations but need to have Auto GR.

    I'm not sure what you are asking; to cause an operation to do auto GR, you need to choose the right operation control key. The auto GR is controlled via the operation control key.
    Then for the Slocs; on the production version (MRP 4 view) you have a field "receiving location". Maintain for each of the two versions the right location.
    Next, create a new production order, and choose one of the production versions. Release, and do CO11N for the operation with the auto GR control key. See that it is received in the desired Sloc..

  • Is it possible to maintain the same material master

    Is it possible to maintain the same material master with same code in all plants in a company. Our client is using same materials in all their four plants?

    Material numbers are always maintained at Company code level. If you look at the Material master data, some data is maintained at Company code level, some at Plant level and some at Storage location level. If you have all the 4 plants attached to one company code, they should have the same material number. What you need to do is to extend the material to all the 4 plants if thats your requirement. Also, if you have your valuation area as your Plant, then you have the flexibility to maintain Plant specific pricing for the same material.
    You can use MM01 T code to copy material from old plant to new plant. But check for the required details in your new plant and make changes accordingly

  • Automatic batch determination when more items have the same material

    Hi guys,
    I have a problem with automatic batch determination in the delivery note where more items has the same material number.
    For example:
    Sales order items
    Item   Material   Q
    1        130         5 kg
    2        130         4 kg
    Stock for this storage location is:
    material    batch    Q
    130           1000     3kg
    130           1001     7kg
    When I create delivery note I get this:
    Item   Material   Q   Batch
    1       130            
    90001 130       3     1000
    90002 130       2     1001
    2       130
    90003 130       3     1000
    30004 130       1     1001
    As you can see, both items has the same batches. This is not good, when post goods issue. Normally there is no stock availaible for both items.
    Is there any customizing to do this correctlly?
    Thanks for an ansver.
    BR, Matic

    What is the purpose of giving the same material as second line item.
    specify in the first line item itself.
    or els the condition record which you have specified that for 100 material of A gives 10 material of B modify it to 10 of A should give 1 material of B
    The first you will be useful for you.

  • Two deliveries for the same batch item

    hi
    i have 3 ea with a batch number in my stock. i have created a delivery for 2ea but TO is not yet confirmed. While creating another delivery for 2ea for the same part, it is again picking the same batch in TO. i should have only 1ea, then how it is picking 2ea in TO. is this because I've not confirmed my earlier TO. If I confirm the 2nd TO first, what will happen to the first TO.
    Thanks,
    Satish

    Hi
    If 3 is all you have then you should not be able to create a to for two if you already have an open to for two. I suggest you double check all of the data like the batch number that the second to is picking
    Do you have this material anywhere else and also you should check wether the material and/or the storage type is allowed to go negative? If this is the case then you can pick as many as you like.
    If ypu allow negative stock then you will have this problem.
    Negative stock should only be allowed in Interin st types 9xx
    I hope that this helps
    Frenchy

Maybe you are looking for

  • How do I convert a VOB file so I can use it in iMovie

    A family member converted our old super 8 movies to dvd. It has narration but I just want to pull clips from it to make an iMovie. Is there software available for Mac users. I have iLife, iWork and CS3 installed. I also have a few other programs on m

  • Disk Priority Problem with Raid

    I have MSI K8N Diamond (Bios version: 1.9) Here's my problem: I've got total 4 hard disks. Those are plugged to sata ports (not to silicon ones, 2 silicon ports are free) also i got no hdd on ide, just a dvd burner I've planned to create a raid0 arra

  • How to pass the data in jsp using bpel

    Hi, Please find the below requirement. i need to call jsp post method service using hidden variable i need to pass the input and authentication parameters. 1. I am using SOA suite 11g and jdev11g 2. I created a BPEL process and call java wrapper serv

  • Keep getting "not connected to Internet" message when trying to upgrade iPad software to iOS 7.0.6

    I was able to install the upgrade fine on both iPhones but when I try to install on iPad keep getting "you are not connected to the internet" when I am in fact connected. tried shutting iPad down and restarting that didn't work.

  • Oracle iPlanet Web Server 7 - Configuration Failed

    Hi There, Installing Oracle iPlanet Web Server |-1%--------------25%-----------------50%-----------------75%--------------100%| Installation Summary Product Status Information 1. Oracle iPlanet Web Server Configuration Failed View log file 1. View lo