Logic to check batch number using user exit

hi friends,
I wanted to know if the below checking logic can be implemented in transaction MIGO at the time of good receipt. Is it possible to implement this checking logic using enhancements. if so are there any USER EXITS or BADI for this?
PFB the checking logic
Checking logic:
Example: Existing Batch No. for a material is available as 10, 20, 30 and 50.  If the batch No. 40 is entered for any new GR, system should show an information message since the current batch number 40 is earlier than the last available batch ie., 50.
thanks and regards,
vinod

Hi Vinod,
You can implement the badi MRM_HEADER_CHECK if it is a header related data and we can raise the messages too.
Hope it solves your issue.
Siva

Similar Messages

  • Creating delivery, can I check the sales order's field using user-exit or ?

    Hi dear.
    When I create a delivery in VL01N or other transactions, I want automatically to check the sales order's some field and to decide whether create or not.
    Can I use user-exit for that?
    Or other solutions is there?
    Thanks regards

    Yes your requirement can be achieved thru a User Exit.
    There are many User Exits available in Delivery as listed in the link below:
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    The selection of necessary User Exit is based on your specific requirement.
    Also if you want to check some feild of Sales Order whether it is completed or not, then you can also use Incompletion Procedure in Sales Order, which will make sure that no Sales Order is saved until the end-user enter data in those feilds.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • MIRO using user exit  EXIT_SAPLFYTX_USER_001

    We are using user exit EXIT_SAPLFYTX_USER_001 for both ME21N and
    MIRO.  ME21N works fine in that we added an item number field to I_INPUT_USER  and it populates with the current item number on the po so we are able to get the gl account from EKKN.  The problem is for tcode
    MIRO.  The data in the I_INPUT_USER is all header data.  There is no material number, qty, item number, etc.  So we cannot go back to the po/item to get the gl account number to pass to vertex.  I used note 302998 to try and add fields EVRPT and EVRTN to the  I_INPUT_USER but they are not populated and when I look at KOMP those fields are also blank there. 
    For MIRO the I_INPUT_USER-KPOSN always has a value of 999999 where for ME21N it has the actual item that it is processing on the po.  I have looked and tried multiple OSS notes and nothing seems to work.  It seems that the MIRO transaction will only pass header data to vertex.  Any help is greatly appreciated!!!! thanks  - deb

    Martha - I did have an OSS note out there but I found the solution for us.
    To get the line item info in I_INPUT_USER and I_TAX_ITEM_INPUT for MIRO we had to go to transaction OBCO and turn on line item processing for our external tax system.  As for your question  - the header information should be in I_TAX_ITEM_INPUT and in I_TAX_HEADER_INPUT.  the I_INPUT_USER is for users to add their own fields that are currently in KOMP.  Look at OSS note 302998 it explains how to extend the I_INPUT_USER  and how to export and import data that you might need.  If this note does not help - go to OSS and do a search on EXIT_SAPLFYTX_USER_001 and some of the other notes should help you. thanks - deb

  • Geography based industry scenario which can be implemented using user exit

    Hi All,
    I am searching for a geography based industry scenario which can be implemented using user exit strategy.
    Please let me know me if anyone knows about any such scenario.
    Thanks & Regards,
    Pranjali.

    Hi Amith,
                   IDOC configured throgh CHANGE pointers.So no need to worry about IDOCS and all.My work was trigger idocs by user exits.Wen  ever i change venodr no.. idocs shoud be triger.
                 Now my question was Insted of going transaction( from there we can  go to debuging mode) i want to check this Exit by RBDMIDOC programe(ofter excute this programe and give Message type as CREMAS,from there i want to go debugging mode).
    Just now i checked,i put breakpoint in Include programe(INCLUDE ZXF05U01) and excute from XK01,it goes to debuging mode,so its fine.But i want triger from RBDMIDOC programe.Ofter excute RBDMIDOC programe,we can enter CREMAS.From there i want to go debuging mode.
    Pls help me,
    Thanks

  • Change gl account in MIGO by using user exit

    Dear all,
    Could you tell me how to use user exit to change the gl account in MIGO?
    I have searched in SDN and found some code.
    In user exit: MBCF0002 ( EXIT_SAPMM07M_001 ).
    FIELD-SYMBOLS <F2> TYPE ANY."Field Symbol for the GL ACCOUNT
    DATA : W_KONTO_NAME(50) VALUE '(SAPMM07M)DM07M-KONTO'.
    ASSIGN (W_KONTO_NAME) TO <F2>.
    MOVE "GLACCOUNT" TO <F2>.
    "GLACCOUNT" is the new GL account you want to change.
    but thecode doesn't work, it can not change the BSEG-HKONT.
    Could you help me solve this problem?
    Many thanks
    Message was edited by:
            Chen Zhonghua

    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    Rewards if useful.........
    Minal

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • Can i use user exits

    Hi,
    Can anybody tell me if i can use user exits for not applying cost centre fields for Assets and liabilites gl a/c when we post transcations in fb60 0r fb50 f-22 etc
    warm regards
    Manjunath

    hi Manjunath,
    you can try to set up a substitution and see if it is working. On the other hand P/L accounts must have a CO object by posting, of course cost center is just one option.
    ec

  • How to use User exit for MM_MATBEL

    Hi
    I want to exclude some material documents while archiving a range of material document through archive Object MM_MATBEL.
    Can you please suggest how to use user exit for this to exclude the material document while archiving.
    Please brief me details.
    Thanks,
    Debadatta

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?

    Hi All,
    Can I use User Exit u2013 IWOC0004 u2013 Change Single-Level List for TCODE IW37N?
    In documentation of the User Exit I can see that I  can use this user Exit for IW37(Program - RIAFVC20) , but I want to use this for IW37N (RIH_ORDER_OPERATION_LIST).
    Please tell me is it possible.
    With best regards,
    Narendra

    Hi Pete Sir,
           I am on 4.7 , how to work with it. I am going to use screen exit IW0110018 and I want to add User fields in the IW37N.
    Thanks with best regards,
    Narendra

  • Using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management

    Hi
    How to find  using user exit. ( LVMPTZZ, LVKMPFZ1). used in Credit Management .
    Plz provide path
    Regards
    Rohit

    Hi,
    You can find exits through transactions# SMOD & CMOD also.
    Regards
    Chandra

  • How to use User Exit for SD...

    Hi there,
    My client's requirement is to block the overall status of the Sales Order header under status tab to be blocked when user r-enters a new scheduled date in the "First Date" column in the SO.
    When they goto VA02, & put a new date it must automatically put a delivery block in the header as well as make the order header status to be blocked.
    I see the “First date” field in the SO is in a Structure “RV45A”, the field name is ETDAT.
    Can you let me know how to use User exit MV45AFZZ?
    When doing it, it must put the Delivery block in table VBAK – LIFSK.
    Rgds,
    Pri

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Triggering workflow using user-exits

    Hi all,
    can anyone tel me how a workflow can be triggered using user-exits??
    thanks in advance

    Call function module SAP_WAPI_CREATE_EVENT (with COMMIT_WORK = space) to create an event, and use the event to start your workflow (triggering event). Alternatively, you can start the workflow directly using the corresponding SAP_WAPI function module for that purpose. My recommendation is that you normally don't start workflows directly as it is a less flexible solution (or you have to build that flexibility yourself instead of using what you get for free with triggering events).
    However, why are you asking this question? I started wondering after seeing you ask an almost identical question in [another thread|Triggering Workflow Using BADI; here.

  • How can I check serial number using icloud

    how can I check serial number using icloud?

    If you are talking about an iPhone and you simply tap on settings/general/about
    Both IMEI and Serial numbers are there to see.
    You can use the *#06# short code on the phone keyboard to see IMEI as well
    Or connect your iphone to iTunes on a PC/Mac
    Click on the device in side bar and summary button at top left of browser window
    In the top panel you have :-
    Name of the device
    Capasity
    Build Version/Software version - Mouse click on it to change which is displayed
    Serial Number/UDID Identifyer - Mouse click on it to change which is displayed
    Phone number /IMEI -Mouse click on it to change which is displayed
    Its very easy to see both numbers if you actually have the device.

  • MIGO: user exit for checking batch number

    Hello,
    When using MIGO to do goods receipt (101 mvt) I need a user exit in each time a line is added to check the batch number entry. If the batch number is empty for certain materials issue a error message to the user.
    Thanks,
    Peter

    where is your problem then?
    If you create batches automatically with 101 ,then each line will get its batch from SAP, no need to check if there something entered manually.
    Why do you customize auto creation of batches, while you want the user to enter the batches manually?
    can you give a bit more background?

  • Using User Exits

    Hi,
    Can some one provide me how to use a standard User Exit.
    I have entered the exit number in the enchamcements and when i go to components and double click the include in the function exit, i am getting the message Program names zx...are reserved for includes for exit function groups.
    How can i change this to display mode and write my code.
    Regards,
    Sudhir

    Hi,
    See Following information  about user exits:
    If Z include is not allowing U should click the 'Enter' button and then click the 'Yes' button. Now u are allowed to put u r own code.
    Userexit is a methodology using which we can add our custom code in the SAP Standard transaction without disturbing the SAP Standard code. SAP will provide enhancement for one transaction. We can have more then one enhancement. Enhancement is a container with a set of userexits. SAP will provide only definition of the exit. Which does not contain any standard code. In the relevant transaction program SAP will their exit as a standard. The Userexit needs to be implemented inorder to provide a custom logic to serve business requirement.
       SMOD: It is used to find the enhancement related to different applications.
       CMOD: It is used to implement the userexit.
    There are 4 types of exits available:
    1)     Function-module Exits,
    2)     Menu exits,
    3)     Screen exits and
    4)     Field exits.
    1) Functionmodule exits:
        These exits are used to provide additional functionality to SAP standard transaction. By default SAP is not provided this functionality.
    For Example my requirement is, when user create or change customer and the customer belongs to US Country the Industry sector (brsch) field is not empty.
    Step1: Find the enhancement. For that one goes to SMOD.
    Click on F4 on Enhancement. We Search for enhancement. In this case we can           found the enhancement by giving the Description: mast. We got the enhancement as
    SAPMF02D: User exits: Customer master data.
    (Or)
    We find the enhancement at transaction level,
         Go to XD01 transaction click on System/Status/double click on Program name
         In this program we search for u201CCALL customer-functionu2019. We get the all related exits the starts with EXIT_enhancementname_Threedigitnumber. Sometimes it Will not an enhancement name.
    Step2: Go to CMOD create the custom project.
               Click on Enhancement assignments button
                     Give the Enhancement name: SAPMF02D
    Step 3: Click on Components button. Under that we found the one function module:
    EXIT_ SAPMF02D_001. Double Click on that function module. In the Source code tab of this function module SAP provide the one Zinclude. SAP doesnu2019t know our requirement. In this Zinclude we provide our own custom logic to make of the parameters provided in import, export and tables section.
    We write the following code:
    IF i_kna1-land1 = 'US' AND               
    i_kna1-brsch = ' u2018.
    MESSAGE e001 (f2) WITH u2018 Industry sector should not be blank for US Customersu2019.
    ENDIF.
    Step4: SAVE, CHECH and ACTIVATE the Cutsom project.
    Step5: Now go to XD01 Transaction We perform our requirement. After we donu2019t        want that requirement go to CMOD and deactivated the custom project.   
    If it is helpful rewards points
    Regards
    Pratap.M

Maybe you are looking for

  • Report not found in File Repository Server

    I am looking for some guidance as to what to try next with this issue. We had ran into some issues with the central management service and had to reinstall crystal. During the setup we are connecting to our mysql database and the reports and folder s

  • Album art, separate drive, can't update

    I have searched the forums and have found many old posts concerning some of my issues. Nothing current, as far as I can tell I am running (connected, not wireless) Front Row from my iBook in my den to my amplifier. It is streaming music from my Mac P

  • Publishing reports to Enterprise - Remote database access.

    Enterprise newbie. I can publish a report that accesses a database residing on the same server as Crystal Enterprise. Under the CMC, report process, database, I'm using the default report DB connections option. It runs fine in the user mode. The Prob

  • Help Please - Cant Get Full Lost Season Back.

    Hi guys, Heres the problom, I ordered the season one episodes of lost for my ipod on friday, but due to C:/ memory issues, i could only get 2 of the 25 on my computer and Ipod, and i had to go. So I turned my computer off, and here i am, sunday night

  • Upgrade from 400D (Rebel XRi) 2007

    Attached are examples.  As you can see the colour in my picture (taken with my kit lens and in auto) is not as vivid nor bright.  The other picture was taken with a Nikon (sorry don't know which one) with the kit 18-55 lens and in Auto.  I do realise