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?

Similar Messages

  • User-exit wich modify batch number in vl31n

    Hi,
    I have another question.
    What is user-exit wich modify batch number in vl31n transaction ?
    Regards,
    Greg.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    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.
    parameters : p_tcode like tstc-tcode obligatory.
    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) 'Transaction 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 'Exit Name',
    21 sy-vline ,
    22 'Description',
    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:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    execute this code.
    <b>type the transaction. u will get the user exits</b>
    If there are no available user exits you could go for badi's.
    To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • User exit for checking the vendor emailid in me22n or me21n

    hi all,
         can anybody suggest me a user exit for checking the email id of the vendor in me21n or me22n or me29n.
       plz suggest me a solution its urgent.

    hi yaan,
           i checked with the user exit that u suggested me, it is getting triggered, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do u know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

  • User Exit for checking Purchase Requisitioner Field in CJ20N Transaction

    Hi,
    I want user Exit for checking Purchase Requisitioner field while making PR through CJ20N transaction. I have trie EXIT_SAPLEBND_001 user exit. Problem in this user exit is I am not getting Purchase Requisitioner No & Item No in I_CEBAN
    structure.
    Please suggest what to do ?
    Regard's
    Shabbir

    Hi,
    You can check with this BADI ME_PROCESS_REQ_CUST. 
    Kindly refer below mentioned link for further details:
    Badi ME_REQ_POSTED  For CJ20N Transaction
    Hope this will help you.
    Regards,
    Mudita

  • User Exit for MSC2n( Batch) while doing a Good receipt for an order

    Is ther any exit to update the Date1 field(MCHA-FVDT1) in MSC2n( Batch) while doing a Good receipt for an order
    Thanks in advance

    Hi Varsha,
    Try these User Exit.
    BATCHCHK  Function Module Exits for Check in Case of Batch Change
    MBCFC010  Propose batch number on Inventory Management item scree
    SAPLCHVW  Batch where-used list
    SAPLMHD1  Shelf life expiration date
    SAPLV01D  Determining the initial status of a batch
    SAPLV01P  Function Module Exits at Time Batches Are Updated
    SAPLV01Z  CFCs for internal batch number assignment
    SAPLV1ZE  CFCs for external batch number assignment
    SAPLV1ZN  CFCs for batch valuation in VB_CREATE_BATCH
    Regards,
    Vijay

  • User Exit for Purchase Requisition Number Range

    Dear Experts,
    I searched on sdn, i got M06B0003 &M06B0004 this 2 user exit for PR Number range.
    I have activated both User exits but while creating PR is not getting effect of that user exit.
    I have checked by putting Break-point in respective user exit but while saving the PR it should go to that break-point but it not going there aslo.
    And also i have checked user exit MM06E003 but it is for Purchase Order number range.And for PO it is working.
    Please help me to solve this issue.Solution will be appreciated.
    Regards,
    Sanket.

    Hi,
    Sorry that badi will not help try this one ...EXIT_SAPLMEREQ_009 in MEREQ001 where the export parameters is purchase requisition number....
    Thanks,
    Shailaja Ainala.

  • User exit for checking creation of prod. order reference to sales order?

    Hi all,
    What are user exit suitable for checking creation of prod. order reference to sales order to have the same plant. If plant not the same, an error message should appear.
    thanks.

    Hi,
    user exits:
    PPCO0003  Check exit for order changes from sales order
    PPCO0007  Exit when saving production order
    Regards,
    Vivek

  • MIGO user exit to get serial number

    Hi Experrts:-
    I need to change the status of serial number (equipment number ) during Migo (good receipt,Transfer posting).
    I have checked all the user exits and number of badis but i am not getting serial number at run time if i get serial numbar
    in exit od badi i will change the status
    I have used following badi:-
    MB_DOCUMENT_BADI
    MB_MIGO_ITEM_BAdI
    Thanks

    Hi ,
    m also using GET_SERNOS_OF_DOCUMENT
    but not getting serial number.
    need to get serial number in MIGO.
    how to pass parameters to this fm.
    KEYDATA-TASER  = 'SER03'  "Goods mvmnt
    KEYDATA-SDAUFNR  = ??
    KEYDATA-POSNR   =   ??
    CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
       EXPORTING
         KEY_DATA                  =
    TABLES
       SERNOS                    =
    EXCEPTIONS
       KEY_PARAMETER_ERROR       = 1
       NO_SUPPORTED_ACCESS       = 2
       NO_DATA_FOUND             = 3
       OTHERS                    = 4
    please guide..

  • User-Exit for Checking Customer and Sale order type in Sales Order Creation

    Hi Experts,
      While creating the Sales Order once i enter sold-to-party and enter line item, i have to check the customer against the sales order type.
    Please suggest me if any user-exit or enhancement or BADI available for it.
    Thanks & Regards,
    -VM

    Hi
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    mark if helpful
    Regs,
    Tushar Mundlik

  • User exit  for checking  Goods Receipt, Non-Valuated when creat po (ME21N)

    Hi All:
    I want to check the field of Goods Receipt, Non-Valuated when i create PO with ME21N.
    It require as plant and Account assignment category
    For example,  plant A and account assignment  category (K), I want to check it.
    How can I do this?
    Please help me.

    No need for any user exit ,  you can copy the account assignment category "K"  and make your own , in that  account assignment category you can tick "GR-Nonvaluated" ,  then whenever you create a PO with this category "GR-Non Valuated"  will come ticked automatically.
    Regards
    Raviraj

  • User exit for check on partners selected

    Hi ,
    Can anyone please guide me on how to perform a edit check when either SP or ZT partners
    are selected. That is i need to restrict the user to be able to make selections from only certain partner list . SAY if SP partner type then only X and if ZT only Y.
    What is the user exit? and how to approach suggestions please.
    Thanks,
    Das.

    use an ehnacement for this: V09A0003 or V09A0004
    remember to set the partner determination schema accordingly.
    reward if helpful
    regards
    roberto mazzali

  • User Exit for checking GI in work order

    Dear PP Gurus,
    When user is doing confirmation for production order, system should check whether GI has been completed for that confirmation quantity. If not, system should prompt for eror message that GI has not completed.
    Can anybody please tell that User Exit which can be used for this.
    Thanks & Regards

    Hi,
    For this purpose, we can use the below enhancement:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    you need to incoporate the logic..
    refer below thread, may be useful..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • User exit for check/save/hold in Purchase order

    >The client requirement is like this :-
    >The client has development a Order Approval Form process and want the user to create all the purchase orders having value all inclusive value of Purchase order above Rs. 300000/-.
    >The user should not be able to save/hold/modify any purchase order above Rs. 300000/- in normal SAP through tcodes ME21N, ME22N, ME23N.
    >For this we need to use a user exit and flash an error message that PO value is above Rs. 300000/-, hence please process the purchase order in OAF.
    >Can any one please provide details of which user exit to use for the above scenario.
    >Thanks in advance
    >AJ

    BADi:ME_PROCESS_PO
    Method: PROCESS_HEADER
    PROCESS_ITEM
    Or
    BADi:ME_PROCESS_PO_CUST
    Method: PROCESS_HEADER
    PROCESS_ITEM
    Call your ABAPer to do the same.

  • User exit for checking Actual dates before TECO of WBS element

    Hi,
    Is there a user exit in PS we can use that checks to see if Actual dates have been entered on the WBS element before the WBS element is set to TECO?

    Hi,
    I am not sure on this as i havent checked it. You can explore and check if defining validations can serve  your purpose.
    Best Regards,
    Gokul

  • User Exit for VA21 - Opportunity Number Text

    Hi! I need to retrieve or do some checking on the Opportunity Number Header Text if this is filled or not when creating an invoice/quotation. I've already done this for the checking on VA23, I used FM read_text and it works. But for the checking on VA21, I can't retrieve the text. This is because FM read_text requires
    1. ID - TDID
    2. Language - SPRAS
    3. Name - Doc Num
    4. Object - TDOBJECT
    and for VA21 since it technically still doesn't have a document number it can't read the text.
    Is there any temporary table/structure where the text is saved, where I can retrieve the text?

    Hi,
    I think you are checking the header text in a program (Use exit/BAdi) before saving the document right?  I have also faced the same scenario for tcode ME21N and ME22N. I resolved the issue in a BAdi .
    Before saving the document the text is available for ls_name = space. i.e name = ls_name.
    And the same text is available after saving the document for name = ls_name = Document number.
    Try with this.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    client = sy-mandt
    id = l_wa_textid_hdr-tdid
    language = sy-langu
    name = ls_name
    object = l_wa_textid_hdr-tdobject
    TABLES
    lines = it_lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    Regards,
    Raju.

Maybe you are looking for