Message to display in MIGO user exit

Hi everyone,
I have used a User Exit EXIT_SAPMM07M_001in migo for automatic batch generation, the problem is that when I give the message in the user exit it does not pop up the information.
E.G. message 'Batch is xyz' type 'I'
also i have tried to use the function module POPUP_TO_CONFIRM but this also does not give a pop up display.
How can I go about giving a message popup in MIGO .
regards
Yao Chhang

Maybe it's not running the code in the exit.
You can check this by add some lines to a logfile on the application server for testing purposes.
data: l_dataset type string value '/export//intf/abaptemp/zzhstest0001.txt',
      l_string type string,
      l_string2 type string value '**********************************************'.
open dataset l_dataset for appending in text mode encoding default.
l_string = 'Test 1'. transfer l_string to l_dataset.
concatenate sy-Datum sy-uzeit sy-uname into l_string. transfer l_string to l_dataset.
l_string = l_string2. transfer l_string to l_dataset.
close dataset l_dataset.
Run the program.
Check the logfile.
regards,
Hans
Please reward all helpful answers !!!!!

Similar Messages

  • MIGO user exit

    Hi
    I have been create a ztable.it will contain PO no, then I go to  MIGO Transaction While saving goods receipt PO, I want to check with Ztable.PO No(MIGO trs) is Available or Not? Such as (Po is not available means Display error Message in MIGO transaction) If any standard user exits are available?

    Check MBCF0006
    Regards,
    Amit
    Reward all helpful replies.

  • HELP..migo user Exit

    HI all..
    please help me...
    this is my third post and i badly need a user exit after posting of material document..
    is there a user exit avaible before migo will pop up the success message Material document number 49000000 posted?..
    because in my requiremnt, material document must be posted(save in table mseg mkpf ) and all lock entries(material batch etd) are already released..
    thanks u very much.

    Hi ,
    You can use BADI MB_DOCUMENT_BADI ( MB_DOCUMENT_UPDATE ),
    here u will have the Doc number too..
    The following steps to activate the BADI.
    1.             Execute Business Add-In(BADI) transaction SE18
    2.             Enter BADI name i.e. MB_DOCUMENT_BADI and press the display
            button
    3.             Select menu option Implementation->Create
    4.             Give implementation a name such as Z_MB_DOCUMENT_BADI( depends on the naming conbvention)
    5.      You can now make any changes you require to the BADI within this
            implementation, for example choose the Interface tab
    6.             Double click on the method you want to change, you can now enter
            any code you require. ( SE19 )
    7.      Please note to find out what import and export parameters a
            method has got return the original BADI definition
            (i.e. MB_DOCUMENT_BADI) and double click on the method name
            for example within MB_DOCUMENT_BEFORE_UPDATE  is a method
    8.      When changes have been made activate the implementation
    Please rewards the point if answer is helpful.
    Regards.

  • Display active/implemented user exits in R/3 system

    Hi Guys,
    Here is a small report that I wrote to display all active and implemented user exits in R/3 system. It gives a snapshot of all the user exits being used and also takes to the follow-on screen on double click.
    Regards,
    Madhur
    *& Report ZMS_ACTIVE_EXITS
    *& This report displays all the active customer enhancements in the
    *& system and also displays whether they are active or implemented
    REPORT ZMS_ACTIVE_EXITS.
    * Data decleration
    types: begin of s_function,
    fname like MOD0-FUNCNAME,
    ftext like tftit-stext,
    impl,
    active,
    example,
    end of s_function.
    TYPEs : BEGIN OF display_str,
    project type modact-name,
    enhancement type modact-member,
    fm type modsap-member,
    status type char20,
    END OF display_str.
    data : lt_member type table of modact-member,
    ls_member like LINE OF lt_member,
    lt_fm type table of modsap-member,
    ls_fm like LINE OF lt_fm,
    lt_modname type table of modact-name,
    ls_modname like line of lt_modname,
    lt_display type TABLE OF display_str,
    ls_display like LINE OF lt_display,
    ls_function type s_function,
    field1(30).
    START-OF-SELECTION.
    * Select active customer enhancement.
    select name from modattr into ls_modname
    where status = 'A'.
    append ls_modname to lt_modname.
    CLEAR ls_modname.
    ENDSELECT.
    if lt_modname is INITIAL.
    WRITE / 'no active enhancements'.
    endif.
    * Determine the details about the customer enhancement.
    LOOP AT lt_modname INTO ls_modname.
    CLEAR : ls_display.
    SELECT member from modact into ls_member where name = ls_modname.
    select member from modsap into ls_fm where name = ls_member and typ = 'E'.
    ls_display-project = ls_modname.
    ls_display-enhancement = ls_member.
    ls_display-fm = ls_fm.
    clear : ls_function.
    ls_function-fname = ls_fm.
    perform get_impl_status USING ls_function.
    if ls_function-impl = 'X'.
    ls_display-status = 'Implemented'.
    ELSE.
    ls_display-status = 'Active'.
    endif.
    APPEND ls_display to lt_display.
    endselect.
    ENDSELECT.
    ENDLOOP.
    * Displaying results
    format color = 1.
    write : 'Please double-click on the object for follow-on action'.
    new-LINE. uline.
    write : 'Customer Project', at 30 'SAP Enhancement', at 60 'Exit Function Modul
    e', at 100 'Active/Implemented'.
    ULINE.
    format color = 0.
    loop at lt_display into ls_display.
    new-LINE.
    write : ls_display-project, at 30 ls_display-enhancement, at 60 ls_displayfm,
    at 100 ls_display-status.
    ENDLOOP.
    * For calling transaction CMOD / SMOD / SE37.
    at line-selection.
    get cursor field field1.
    CASE field1.
    WHEN 'LS_DISPLAY-PROJECT'.
    set parameter id 'MON_KUN' field sy-lisel(10).
    call transaction 'CMOD' and skip first screen.
    WHEN 'LS_DISPLAY-ENHANCEMENT'.
    set parameter id 'MON' field sy-lisel+29(10).
    call transaction 'SMOD' and skip first screen.
    WHEN 'LS_DISPLAY-FM'.
    set parameter id 'LIB' field sy-lisel+59(30).
    call transaction 'SE37' and skip first screen.
    WHEN OTHERS.
    message 'Click on the right place.' TYPE 'I'.
    ENDCASE.
    *& Form get_impl_status
    * This FORM checks whether an EXIT FM is implemented or not
    form get_impl_status using p_function type s_function.
    data : l_mand LIKE tfdir-mand,
    l_incl_names TYPE smod_names OCCURS 1 WITH HEADER LINE.
    l_incl_names-itype = 'C'.
    APPEND l_incl_names.
    CLEAR l_mand.
    SELECT SINGLE mand FROM tfdir INTO l_mand WHERE funcname = p_function-fname.
    IF sy-subrc = 0 AND l_mand(1) = 'C'.
    p_function-active = 'X'.
    * l_status-active = c_true.
    ELSE.
    p_function-active = ' '.
    * l_status-inactive = c_true.
    ENDIF.
    CALL FUNCTION 'MOD_FUNCTION_INCLUDE'
    EXPORTING
    funcname = p_function-fname
    TABLES
    incl_names = l_incl_names
    EXCEPTIONS
    OTHERS = 4.
    IF sy-subrc = 0.
    LOOP AT l_incl_names.
    SELECT SINGLE name FROM trdir INTO l_incl_names-iname
    WHERE name = l_incl_names-iname.
    IF sy-subrc = 0.
    p_function-impl = 'X'.
    ELSE.
    p_function-impl = ' '.
    ENDIF.
    ENDLOOP.
    ENDIF.
    endform. "get_impl_status

    Hi Sergio,
    Have you checked that the basis guys have actually plugged in the SAP system. The guys I've been working with have sworn that the portal can connect to SAP but actually they have no connectivity at all. It has meant that my collegue has spent the last 2 days pulling his hair out trying to work out why his code doesn't work and in fact it will never work as the portal cant even see SAP.
    Cheers
    Richard

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

  • Doubt in MIGO user exit

    Hi all,
    my requirement is "whenever the user is performing the MIGO transaction and presses the post button,i have to populate all the values what ever the user is entering along with the MBLNR (material document number) field and also to populate somemore fields from 2 ztables and post it into IDOCs".
    For this i have found the userexit which is MBCF0002.
    Im getting all the fields values, what ever the user is entering but for the MBLNR (material document number) field its blank. The reason for this is , only after the successful movement of the material MBLNR field will be generated.
    so ,
    To be Reward all helpfull answers.
    Regards.
    Jay

    Hi,
    You need to use a user exit which is getting triggered only after material document no has been generated. You may use   INCLUDE ZXMBCU01 of EXIT_SAPLMBMB_001. Please note that this exit is getting executed whenever a material document is generated by the system. Hence you need to check your specific tran code+reason code. Please also note that if at all you need to debug this exit, just put /h in command box just before pressing post & then settings---->update debugging shystem should give you the message update debugging has been switched on. You need to ensure this since it's a toggle.
    I hope this helps,
    Regrads
    Raju Chitale

  • MIGO User Exit after Mat Doc creation

    Hi Experts.
    I would like to request for your help about an user exit that will be triggered after the material document has been created or posted. The requirement is that I need to extract the material document from SY data and create a textfile via download. Thanks a lot!
    Best Regards,
    Randy

    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.
    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
    Rewards if useful.........
    Minal
    No of Exits:          8

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

  • MIGO - user exit - POST

    Hi,
    I have added code in the user exit MB_CF001 for the transcation code MIGO.
    I put a break-point in it (hard coded),
    I have activated in SMOD and CMOD also.
    But when i run MIGO and POST (click on post button on application tool bar) it is not posting, while clicking on SAVE also it is not stopping.
    Please tell me when the user exit will be encountered.
    regards,
    Prabhu.
    Points assured.

    sorry.
    regrads,
    Prabhu

  • MIGO User Exit/BADI to disable field

    Hi,
    I would like to disable a specific set of fields in MIGO (fields under the GOITEM structure). Is there a BADI (or user exit) I can use to implement this functionality ?
    Thanks.

    Hi,
    My understanding is this BADI is used for modifying the value of the field itself. My requirement is to disable the field (user should not be able to edit the value). Whenever I add the LOOP AT SCREEN statement on this BADI, the screen field GOITEM-CHARG is not processed.
    I am actually looking for a BADI/user exit where this screen field can be read.
    Thanks.

  • MIGO - User Exit / BADI / BAPI

    Hi All,
    I have an reuirement that when user save document in MIGO then I want to send an e-mail alert to concerned user for inspection of goods in store. Is there any user exit / BADI / BAPI where I can write my code to send mail in MIGO tcode.
    Thanx and Regards,
    Rajesh Vasudeva

    Hi,
    Try using BADI MB_MIGO_BADI or MB_MIGO_ITEM_BADI or WB2_ADDITIONAL_DATA or WB2_EXPENSE_ENHANCE or BADI_MATN1 or WVKU_DETERMINE_SP or ME_CIN_LEINRF2V or ME_CIN_LEINRF2R.
    KR Jaideep,

  • MIGO user exits

    Hello people,
    I have the next requirement: when u make a movement through MIGO transaction, always we have to put the stock type to blocked (mseg-insmk = 3). Im trying to look for user exits...
    I have ZXMBCU02, but mseg is not passed by reference, so if i change the insmk, this change is not outside the user exit.
    Do you know any user exit where i can modify mseg before the movement is done? Or maybe any user where you can modify the document material after the movement is done? ( i would need a BAPI for this so i think the other option is easier )
    Thank you,
    Manel

    Check BADI MB_MIGO_BADI.
    Regards,
    Naimesh Patel

  • MIGO User Exits / BADI

    Hi All,
            Please let me know which user exits / badi for MIGO which is effective at SAVE time (only for GRN) with using PO.
    Best Answer Best Points....
    Thanks In Advance

    Enhancement/ Business Add-in Description
    Enhancement
    MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
    MBCF0011 Read from RESB and RKPF for print list in MB26
    MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0009 Filling the storage location field
    MBCF0007 Customer function exit: Updating a reservation
    MBCF0006 Customer function for WBS element
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0002 Customer function exit: Segment text in material doc. item
    Business Add-in
    MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
    MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
    MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
    MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
    MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
    MB_DOC_BADI_INTERNAL BAdIs when Creating a Material Document (SAP Internal)
    MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
    MB_DOCUMENT_BADI BAdIs when Creating a Material Document
    MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
    MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
    MB_CIN_LMBMBU04 posting of gr
    MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
    ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
    ARC_MM_MATBEL_CHECK Check Add-On-Specific Criteria for MM_MATBEL
    Regards.

  • Modification in migo(User exit)

    Hi Techis
    Can anybody pls tell me modification in Tr code MIGO AND EXIT NAME IS
    "MBCF0005" Material document item for goods receipt/issue slip
    Will any body pls provide soln wid stepd how to make it...
    Pls help me out..
    Reward will be awarded for answers
    regards
    santo

    go to TC: CMOD,
    create a project : ZMIGO,
    and click on assign enhancement and assign 'MBCF0005'.
    and clikc on component, it shows 2 FMs,
    EXIT_SAPM07DR_001
    EXIT_SAPM07DR_002
    double click on EXIT_SAPM07DR_001, which is related to your requriement.
    again double click on INCLUDE ZXMBCU05 .
    theri u can imp. ur logic
    active include and come back to ZMIGO and activate the Project.

  • MIGO user exit : MBCF0009 Filling the storage location field

    Hi all,
    I want to change the storage location filed after loading data (GR for PO, GI for network) before output (show in grid).
    I found the exit  MBCF0009 but it does not work. Any other way to do this ?
    Thanks.
    Wayne

    Dera Suyog,
    I try to use method line/item change, but I cannot find a solution.
    Acctually I cannot change the value of cs_goitem and to display it.
    Below is my code!
    Pls help !
    Please have a look on my code !
    method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
    break skolev.
    data: p_groes type mara-groes.
    data: p_maktx type makt-maktx.
    data: p_all type goitem-maktx.
    data: p_len type p.
    select single groes into p_groes
    from mara
    where matnr = cs_goitem-matnr.
    select single maktx into p_maktx
    from makt
    where matnr = cs_goitem-matnr
    and spras = sy-langu.
    concatenate p_maktx p_groes into p_all SEPARATED BY space.
    p_len = strlen( p_all ).
    cs_goitem-maktx = p_all.
    CALL METHOD cs_GOITEM->HOLD_DATA_SAVE( ).
    break skolev.
    endmethod.

Maybe you are looking for