Enhancement point batch creation migo

Hi all,
I'd like to automatically fill in some classification and batch values in the batch master during MIGO. The original expiration date must be stored. We used to work with user exit EXIT_SAPMM07M_003, but since the batch level has been changed to unique at material level this exit doesn't work anymore.
Are there any other enhancements i can use for this?
Thanks in advance.
Regards,
Maarten

Ok. I think I get it now.  Wow.. sorry it took so long.
I assume you already use the SAP standard functionality to calculate your desired expiration date.  I.e you have defined a shelf life for the material in the material master.  By doing this it should require you to enter a date of manufacturing at the time of reciept.  If you fail to, it should default in the current date of the GR.  Then SAP will automaticlly calculate the batch expiration date based on that date.
So I guess you then want to capture the expiration date or best used date provided by the vendor.  I think I would create a batch characteristic of date type called "Vendor Expiration Date".  In the Basic Data screen for the characterisitc, click on the radio button "Entry Required".
In Configuration, set up the relevant material movement to "2 - Classification only in foregr.for mand.charac. (all batches)"
Logistics - General>Batch Management>Batch Valuation>Valuation for Goods Movement in Inventory Management>Activate Batch Classification for Goods Movements in IM
Now your internal expiration date wiil be in the standard batch expiration date when you perform the MIGO.  At that time a pop-up will appear and the user will be required to enter the vendor expiration date into the batch characteristic "Vendor Expiration Date".
No customization required.
FF

Similar Messages

  • Enhancement Point Creation in Internal table

    Hi,
    I want to create a Enhancement Point in Internal table declared in Customize Program.
    This is more related to clarification of concept related to Enhancment Point.
    But when i am putting the cursor inside the internal table and right click and Enhancment -> create ,it is giving me a message
    that "Position of enhancement section/point statement is not allowed".
    This means that we can't create Enhancement point or Enhancement Section inside the Internal table and solution is we can use
    only Implicit Enhancement point.
    But the doubt is that i had seen SAP programs where they have created the Enhancement point in the internal table declarations.
    How that is possible then?
    Please provide your helpful answers to get me more clarification on Enhancement Point/
    Thanks,
    Manish

    Hi Afzal,
    Below is the code from standard program :-
    DATA: BEGIN OF lbbes OCCURS 10,        "Tabelle für LB-Bestände
            lifnr LIKE ekko-lifnr,
            matnr LIKE mdpm-matnr,
            werks LIKE mdpm-werks,
            charg LIKE lifbe-charg,        " SC-batch: Key-Feld
            lgort LIKE resb-lgort,         " SC-batch
            lbmng LIKE lifbe-lblab,        "LB-Bestandsmenge
            erfmg LIKE mdpm-bdmng,         "Verfügbare Menge
            erfme LIKE mdpm-lagme,         "Basismengeneinheit
            wamng LIKE mdpm-bdmng,
            waame LIKE mdpm-lagme,
            vstel LIKE tvstz-vstel,
            ladgr LIKE marc-ladgr,
            sernp LIKE marc-sernp,
            lblfa LIKE t161v-lblfa,
            bdmng LIKE mdpm-bdmng,   "sum of dep. requirements from SC POs
            bdbam LIKE mdpm-bdmng,   "sum of dep. requirements from SC req's
            rsmng LIKE mdpm-bdmng,         "sum of transfer reservations
            slbbm LIKE mdpm-bdmng,   "sum of third-party SC requisitions
            slbmg LIKE mdpm-bdmng,         "sum of third-party SC POs
            lfimg LIKE komdlgn-lfimg,      "sum of open deliveries
            maktx LIKE mdpm-maktx,
            selkz LIKE sy-calld.
    ENHANCEMENT-POINT rm06ellb_03 SPOTS es_rm06ellb STATIC.
    $$-Start: RM06ELLB_03----
    $$
    ENHANCEMENT 3  /CWM/APPL_MM_RM06ELLB.    "active version
    DATA:   /cwm/waame LIKE mdpm-lagme,
            /cwm/lbmng LIKE lifbe-lblab,    "LB-Bestandsmenge in ParallelME
            /cwm/erfmg LIKE mdpm-bdmng,     "Verfügbare Menge in ParallelME
            /cwm/erfme LIKE mdpm-lagme,     "ParallelME
            /cwm/meins LIKE mdpm-lagme,     "CW-BasisME
            /cwm/bdmng LIKE mdpm-bdmng,     "sum of dep.req.< SC POs in PME
            /cwm/lfimg LIKE komdlgn-lfimg,  "sum of open deliveries in PME
            /cwm/rsmng LIKE mdpm-bdmng,     "sum of transfer reservations
            /cwm/slbbm LIKE mdpm-bdmng, "sum of third-party SC requisitions
            /cwm/slbmg LIKE mdpm-bdmng,     "sum of third-party SC POs
            /cwm/bdbam LIKE mdpm-bdmng.  "sum of dep. req´s from SC req's
    ENDENHANCEMENT.
    $$-End:   RM06ELLB_03----
    $$
    DATA:
          END OF lbbes.
    Now in the internal table lbbes they have created the enhancement point and in implementation of enhancement point they have declare some extra fields.This is not a implicit enhancement but it is a explicit enhancment implementation with the help of enhancement point.
    Similarly if i have to do in my customize program then how to go ahead?
    I knew that it is possible with Implicit Enhancement point and i can implement that also.
    Let me know your views about this.
    Thanks,
    Manish

  • Enhancement point in billing doc creation at invoice number generation

    I need to find an enhancement during billing document creation.
    This is my requirement.      Within function module RV_INVOICE_DOCUMENT_ADD, standard SAP determines the invoice number using Function Module NUMBER_GET_NEXT.  now, there is an enhancement point available immediately after the standard SAP invoice number has been determined.
    I need to find that enhancement point.
    Please advice what enhancement points are available at this point.
    Any advice is appreciated. Thanks in advance..

    Hi
    Here is a little program that when you type in the t-code it will give you all the user exits available.
    <Code>
    *& Report Z_FIND_USER_EXIT *&
    REPORT z_find_user_exit NO STANDARD PAGE HEADING.
    TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    TABLES : tstct.
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-001.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
    IF sy-subrc EQ 0.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name = tstc-pgmna.
      MOVE : tadir-devclass TO v_devclass.
      IF sy-subrc NE 0.
        SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
        IF trdir-subc EQ 'F'.
          SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
          SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
          SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                          AND object = 'FUGR'
                          AND obj_name EQ enlfdir-area.
          MOVE : tadir-devclass TO v_devclass.
        ENDIF.
      ENDIF.
      SELECT * FROM tadir INTO TABLE jtab WHERE pgmid = 'R3TR'
                          AND object = 'SMOD'
                          AND devclass = v_devclass.
      SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu
        AND tcode EQ p_tcode.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transactie Code - ', 20(20) p_tcode, 45(50) tstct-ttext.
      SKIP.
      IF NOT jtab[] IS INITIAL.
        WRITE:/(95) sy-uline.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 sy-vline, 2 'User exit', 21 sy-vline , 22 'Omschrijving', 95 sy-vline.
        WRITE:/(95) sy-uline.
        LOOP AT jtab.
          SELECT SINGLE * FROM modsapt WHERE sprsl = sy-langu
            AND name = jtab-obj_name.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/1 sy-vline, 2 jtab-obj_name HOTSPOT ON, 21 sy-vline , 22 modsapt-modtext, 95 sy-vline.
        ENDLOOP.
        WRITE:/(95) sy-uline.
        DESCRIBE TABLE jtab.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'Aantal gevonden user-exits:' , sy-tfill.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No user-exit Found'.
      ENDIF.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'Transactie code bestaat'.
    ENDIF.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    <Code>
    Hope it helps.
    Regards
    Vic

  • Batch creation at MIGO

    Hi Guru,
    We are doing STO ( stock tranfer order) between plant and batch management is active for the client.
    We would like to avoid the creation of new batches at MIGO especially for the STO GRs.not for the rest of the GR at MIGO. and during the GR against STO ( outbound delivery at MIGO) system should accept only the existing batch
    Means New Batch should not get created for the STO GRs( GR outbound delivery at MIGO).
    Is it possble to have this through any standard customization? or any other work arround.
    regards
    Santha

    You have to restrict it with help of user exit

  • Enhancement Point Creation

    Can we create our own enhance point in standard program ie I want to create a point where i need to change & implement the new logic at that point.plz suggest

    Hi ,
    You can create your own enhancement points.Go to the standard report in which you want to add your own code.Press SHIFT + F4, ths standard code will come in Edit mode , but you can not edit it.
    Now goto
    EDIT ->Enhancement operations ->Show Implicit Enhancemet Options.Yellow  lines will come at few places.These are the points where you can create your own enhancement points and add your code.You need to figure it out , where you can add your code. Right click on the yellow line ->enhancement implementation -> create, here you will be asked whether you want to create declaration or write your code.At the begining of the enhancement point you need to write declarations.
    At the end of the enhancement point , again follow same procedure , here you need to write your code logic.
    And then you have to activate the enhancement point.
    Hope it helps
    Edited By
    Tejaswini Khante

  • Creation of an enhancment Point

    Hi all,
    We are creating an Enhancement-Point for an include RV15CI03. This include has several main programs. The one that we want to use is,RV15C002.
    When we create an Enhancement-Point, the COMPILATION UNIT is set to RV15C002 automatically.
    Is there a way to change the compilation unit for this point as "Multiple_use Include".
    Points guaranteed for helpful answers
    Best Regards,
    Ram.

    Hi,
    I dont see a point in having this statement
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
    SWE_EVENT_CREATE like any other FM, take a
    lt_var type standard table of SWCONT.
    ls_var type SWCONT.
    fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
    However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE  from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
    Try above and Good Luck !!
    Regards
    Krishna Mohan

  • 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

  • Trigger Batch Creation from ME2xN

    Hi guru, I've to trigger a batch creation...
    These batches are created from standard code in Purchase Order Transaction, I've seen the BO of Batch object doesn't have any events, there is CL_PO_ITEM_HANDLE_MM class but the only event is CHANGE, and I don't know if I can use it.
    How can I trriger the BATCH creation event?
    Thanks a lot.
    Antonio

    Sorry but I don't understand... Standard code call the method Batch_Cration and there aren't enh-points to insert custom code, I've to trigger the Batch Object creation event.
    I've tried with workflow but CL_PO_ITEM_HANDLE_MM class has only one event: CHANGED and BUS1001002 business object doesn't have any events.
    So... How can I use workflow?

  • Enhancement point in F.14 Transaction

    Hi All,
    I have a requirement to capture the recurring entries posted through transaction F.14 and maintain it in a separate custom table.
    In order to achive this I need an enhancement point after posting of teh recurring entry is successfull in F.14 transaction.
    Can anyone help me in finding the same.
    Regards,
    Ashwini

    hi
    good
    Following user exits are present in MIRO
    LMR1M001 User exits in Logistics Invoice Verification
    LMR1M002 Account grouping for GR/IR account maintenance
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Logistics Invoice Verification: item text for follow-on docs
    LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006 Logistics Invoice Verification: Process XML Invoice
    MRMH0001 Logistics Invoice Verification: ERS procedure
    MRMH0002 Logistics Invoice Verification: EDI inbound
    MRMH0003 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001 Message output and creation: Logistics Invoice Verification
    thanks
    mrutyun^

  • Enhancement Point in MIRO transaction

    Hi all,
    Can anyone let me know the enhancement point in t-code MIRO before saving the document. Plz let me know if there is any enhancement spot.. plz help me out in this issue.
    Thanks in advance.

    hi
    good
    Following user exits are present in MIRO
    LMR1M001 User exits in Logistics Invoice Verification
    LMR1M002 Account grouping for GR/IR account maintenance
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Logistics Invoice Verification: item text for follow-on docs
    LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006 Logistics Invoice Verification: Process XML Invoice
    MRMH0001 Logistics Invoice Verification: ERS procedure
    MRMH0002 Logistics Invoice Verification: EDI inbound
    MRMH0003 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001 Message output and creation: Logistics Invoice Verification
    thanks
    mrutyun^

  • Batch number format setup and auto batch creation during first GR

    Dear all,
    This is a batch question.
    I know that both the master batch and the stock data for the batch are created automatically during the first goods receipt. Thus, I do not need to create this data manually.
    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    Thanks.

    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    ==> Yes - See IMG activity 'Define batch creation for Goods Movements'
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    ==> See exit EXIT_SAPLV01Z_003
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    [[> See IMG activity 'Activate Batch Classification for Goods Movements in IM"

  • Co01 co02 batch creation

    how to restrict batch creation in co01 and co02?
    in co01 na co02 user is able to put any kind of value for batch.
    my requirement is user should put the predefined batch for particular material only.
    how to get it done??
    regards
    chandramani

    Hi ,
    Is it creating  a new Batch No's ? , u can try Enhancements of this FM
    VB_CREATE_BATCH
    in this FM main program , search for CALL Custom --> u will get list of  Enhancements , try EXIT_SAPLV01Z_002
    see its documentation.
    regards
    Prabhu

  • Difference between implicit and explicit enhancement points

    Hi Folks,
    I had learned many documents to findout the difference between explicit and implicit enhancement point.I got the theoritical knowledge on that but losing on the practical side..
    Can anybody help me out with one real time scenario where the explicit enhancement points have been implemented and the step by step procedure to implement it..
    Hoping for the positive response from you..
    Regards,
    Rohan.

    Hi Rohan,
    In implicit they are available at the beginning of subroutines defined in the standard reports.
    Edit-> Enhancement operations->show implicit enhancement options.
    This will highlight all the implicit enhancements in the report.
    In Explicit enhancement we have two different types of enhancements -
    Enhancement point and Enhancement section.
    Enhancement point - SAP has some standard functionality defined for a report , but it may be required that you'll need to add your own code. In this case the code that you'll add will be executed along with the standard code.
    Enhancement section - SAP has its standard functionality defines but it may not suit your requirement, in that case you may need to add your code and you'll need that code to be executed only. By this method the existing code is automatically commented and a copy of the same code is available to edit.
    After executing the report only your code will be executed and the standard code will be bypassed.
    For Practicle implementation, follow this link.
    Link : [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc]
    i hope it will give you some clear picture....
    Thanks.
    Anurag

  • Enhancement points option: Function modules or BADI

    Hi, I am on ECC 6.0 and I need to validate and set some requirement in customer sales area data when user input the document output message in Documents tab strip screen 7003 of sapmf02d  in transaction XD01 or XD02.
      I found that there is function module EXIT_SAPMF02D_001 that I probably can use to create an implicit enhancement point to validate table T_KNVD or  I can use BADI customer_add_data.  Can someone suggest which way is better and why?  I am new to this so could someone show me screen by screen on how to create and implement BADI.
    I am confusing about should I create a ZBADI or using existing BADI customer_add_data.  If I use existing BADI how can I add my own method with my own code. 
    Thanks.

    Thanks. Could you explain to me how does the custom BADI get call to execute my code?  Say
    I have a customer document screen 7326 (Customer Master Subscreen SD Documents in program  SAPMF02D).  What I want is when user click save, I want to do some validation on the output message that they enter and issue some warning or error messages.
      I am on ECC 6.0 so I can create a BADI from Enhancement spot not from SE18.   SAP has a BADI called CUSTOMER_ADD_DATA with class CL_EX_CUSTOMER_ADD_DATA and interface IF_EX_CUSTOMER_ADD_DATA. 
    When I create a ZBADI_CUST, which interface class I put in the IF_EX_CUSTOMER_ADD_DATA
    or a ZIF_EX_XX so that I can create my own method?  How does the BADI get called when I am in transaction XD02 and click the save button?  Could you kindly show me step by step the procedure.
    Thanks.

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

Maybe you are looking for

  • Airport Express no longer visible in Airport Utility

    Hi guys, first post on here, so hoping someone can help me. I have an Airport Express connected to my stereo and have been using it to stream music with no problems, until today. iTunes told me the airport was no longer available so I opened up the A

  • Recovery window retention policy deletes archive logs before a backup?

    Hi All, Oracle 11G on Windows 2008 R2 This afternoon, I changed my RMAN retention policy from 'RETENTION POLICY REDUNDANCY 3' to RETENTION POLICY RECOVERY WINDOW OF 3 DAYS' However, i checked tonight and after my daily backup ran, all the archive log

  • Save PDF to JPEG Options

    Under the Print menu, for the Safve PDF to JPEG option, is there an option to save to a high quality JPEG?

  • Portal Parameter Best Practice

    Hi there, I would like to get suggestions/samples/documention on the best way to use parameters in the portal. My objective would be a way to standardize our approach to Parameters/LOV's for our portal, that would interact with Discoverer Portlets, O

  • Administrator email address in Calendar server

    The calendar configuration script asks for "Administrator Email Address" which is by default root@<localhost>. Do you usually change that e-mail address to point to postmaster account: [email protected]? Thanks,