Problem in Migo BAdi

Hi All...
I have written a BDC for MIGO for Transfer Posting (A08) , with Reference Document (R10)-Others and Movement Type 911.
First I go into the Tcode MIGO and set these parameters and come back.
Then I run the BDC , it runs properly.
But once I change these parameters one or all of them, the BDC does not run properly. It says that movement type does not exist.
While in my BDC , I have assigned the above parameters .So it should run properly for these parameters, but it still shows the error.
Can anyone please suggest me a solution .
Thanks in advance.
Sangeet.

Look at [Note 504936 - Batch input compatibility of new transactions|https://service.sap.com/sap/support/notes/504936]
With release 4.6B, SAP has delivered new enjoy transactions. Examples
are transactions MIGO, MEPO, VL01N, VL02N. These transactions are not
supported for batch input processing. For details please read notes
304122,381630 457925 and 491875.
or [Note 304122 - MIGO: Batch input and CATT not supported|https://service.sap.com/sap/support/notes/304122]
Reason and Prerequisites
The new goods movement transaction MIGO is not intended for use with batch input and CATT.
The reason for this is that batch input and CATT are based on the screen technique, the Enjoy transactions like MIGO (single screen transactions) work more and more with the control technique. Batch input and controls are not compatible.
Solution
There are two alternatives:
Use the following BAPIs to post goods movements in the background:
      Object name:  GoodsMovement
      Object type:  US2017
      Method:       Cancel (cancel goods movement)
                    CreateFromData (post goods movement)
The old goods movement transactions (MB01, MB0A, MB1A, MB1B, MB1C, MB31) are still supported. These transactions support batch input and CATT.
(BAPI refers to function module BAPI_GOODSMVT_CREATE)
Regards

Similar Messages

  • Stop the execution of MIGO BADI on click of a button

    Dear Experts,
    My client have a strange requirement in MIGO  BADI i.e. MB_DOCUMENT_BADI.
    He wants me to show a popup with some information and which has 3 buttons on it in the above BADI implementation.
    These 3 buttons are YES, NO & VIEW PDF.
    When the user clicks on YES, the processing of the exit will continue with some user defined logic and the document will get posted.
    And when the user clicks on NO,  the processing of the exit will continue with some other user defined logic and the document will get posted.
    But the problem comes when the user clicks on VIEW PDF button, he wants to open a new window having a pdf file in it but still have the program control on the popup only.
    To be more clear when he clicks on the VIEW PDF button, i should open a new session and show the PDF file but my popup should still be active and my user exit processing should be on hold until he selects YES or NO buttons and my document should not be posted.
    I have written the code to open the PDF file, but when the user clicks on the VIEW PDF button the program control does not stops and the document gets posted into the system.
    Can anyone help me out with this?
    Thanks,
    Praveen Bitling

    Dear Praveen,
    Kindly execute your logic for yes or no in if condition by checking sy-ucomm.
    Regards,
    Pushkar

  • BadI problem in MIGO

    Dear Experts,
    I need to do some validation in MIGO tcode based on item Purchase Order and item. I have already identified badi MB_MIGO_BADI and methods CHECK_ITEM also. but problem is in CHECK_ITEM method having Item Number only as Input parameter. I am unable to get PO Number and Item in this method to do validation.
    Please let me know how can i get Po number and Item in my methos CHECK_ITEM???
    Thanks in Advance,
    Siva

    Hi Siva,
    Check like this
    CALL METHOD im_header->get_items
    RECEIVING
    re_items = lt_items. If you use this method you can not get po no.
    Suppose if your business requirement is to check when ever an item enter in line then you can use line_modify.This will fire when ever you enter line item.In this case you can use parameter cs_goitem for po reference.If there is any macro available then easy to give the message.
    Regards,
    Madhu.
    Edited by: madhurao123 on Sep 26, 2011 11:20 PM

  • Problem in  transporting MIGO BADI screen exit?

    Hi all,
    I have implemented MB_MIGO_BADI for screen-exit of the MIGO.
    Whem transporting I am getting an error that                                                                               
    Table ZMIGO_BADI_EX_SCREEN_FIELD could not be activated                      
    (E- Routine EXPAND (Table ZMIGO_BADI_EX_SCREEN_FIELD could not be expanded) )
    Table Type ZTY_T_EXTDATA could not be activated                              
    (E- Row type ZMIGO_BADI_EX_SCREEN_FIELD is not active or does not exist ) .    
    But this row type is in the same request number and activated also ?
    I am unable to identify the reason. Please help me to solve this problem?
    Thanks,
    Vamshi

    Hi,
    Go to se80 and display the program name which you might have given in methof IF_EX_MB_MIGO_BADI~PBO_DETAIL and activate the screen which you have created,
    Thanks,
    Shailaja Ainala.

  • Exit or badi problem about migo

    I hope i can get the material document after migo operation in exit or badi ,which exit or badi i can use it ?now i finded the badi which is MB_MIGO_BADI and i use POST_DOCUMENT method,but i can only get the document before actual document  create ,i want to get the document after actual document  create,
    please give me some clue or solve way,thank you very much!

    Hi,
    Check the BADI MB_DOCUMENT_BADI the method is MB_DOCUMENT_UPDATE..
    Also check the user exit EXIT_SAPLMBMB_001..
    In this BADI / Userexit..The material document number is available..
    These are called in the Update function module MB_POST_DOCUMENT.
    Thanks,
    Naren

  • MIGO BAdI or User-Exit - After Database Commit

    Hello,
    I'm looking for a BAdI or user-exit after database commit for MIGO posting. I want to create a FI document after MIGO posting.
    I already tried MB_MIGO_BADI BAdI but system gives a short dump. So I have to find a exit or BAdI after database commit.
    Thanks for helping in advance.
    Regards,
    Burak

    Hello,
    This issue solved.
    I used MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE and it solved my problem.
    FYI.
    Regards,
    Burak

  • Error message problem in ORDER_SAVE badi.

    I have used a error message using MESSAGE statement in ORDER_SAVE badi. The problem is when I press the save button and if the condision fails it shows error message. After if you press enter it shows the order is saved.
    It is strange. Please help.

    Can you give some more information?
    1. Which method of the badi are you using?
    2. Do you raise the exception error_occured in this method?
    In general, if you use change_before_update method and raise the exception if you do not want to save the order, the order would not be saved. This exception should be raised every time the method is executed if you do not want to save the current order.
    See the standard implementation class CL_IM_CRM_BUS20001_UPLOAD.
    Hope this helps. If not, post the code, so that I can check.
    Prakash

  • Problem in MIGO

    Dear Friends,
    I have one query in migo.
    In particular one Purchase order, i am getting message like, "Purchase order 4400000030 has no items.
    Means when i put above po no and then press enter then above message is coming.
    I have find out that problem occurs when it goes in include program "LMIGOKP1" and in that program i have found one function like,
    CALL FUNCTION 'ME_READ_ITEM_GOODS_RECEIPT'
           EXPORTING
                ebeln          = i_po_number
                ebelp          = i_po_item
                i_werks        = i_po_werks
                kzwes          = ls_got156-kzwes
                lfbnr          = i_lfbnr
                lfgja          = i_lfbja
                lfpos          = i_lfpos
                i_smbln        = i_md_number
                i_sjahr        = i_md_year
                i_smblp        = i_md_item
                shkzg          = ls_got156-shkzg
                i_vbeln        = i_ib_number
                i_vbelp        = i_ib_item
                budat          = ps_gohead-budat  "#EC DOM_EQUAL
                i_welfbnr      = l_welfbnr
                display        = l_display
                xstor          = s_action-cancel
           TABLES
                xebefu         = lt_poitem
                xekbnk         = lt_pofreight
           EXCEPTIONS
                not_found_any  = 1
                not_found_one  = 2                                   "735762
                not_valid_any  = 3
                error_message  = 6
                OTHERS         = 7.
      IF sy-subrc <> 0.
        sy-subrc = sy-subrc.
      ENDIF.
    Here Sy-subrc will give 7 value which you can see in above function(in exceptions) and i have seen in LT_POITEM table, there are no records in table.
    Now in other POs, records are found in LT_POITEM table and sy-subrc gives 0 value means normal procedure will make it.
    Now i am not getting how can i find out the problem.I do not know that above function fetch the records in which table.
    And finally what is the reason behind  above message which i have shown to you above.
    Please reply <removed by moderator>.
    Regards,
    Shivam
    Edited by: Thomas Zloch on Nov 23, 2010 9:59 AM - priority normalised

    Hi shivam pastagia,
    That message will come for the following 2 reasons :
    1. The PO items were not saved properly, just check the conditions tab, there indicator should be in Green color. Simply we can say that PO is incomplete thats why system shows that message.
    2. GRN is already done, no suitable item remaining from the PO.
    Thanks & Regards,
    Faheem.

  • MIGO BADI - Check line item after clicking on  ITEM_OK Field in MIGO

    Hi,
                I am looking for Enhanacement option for MIGO Transaction . What i found it, there is one Badi MB_MIGO_BADI at the creation of material document. When i click on ITEM_OK Field at material line item level. and click on CHECK Button, i want to check material master if that material is having QM View or not . That i can write in one of the method in badi which i found is CHECK_ITEM bt that method is having parameter called I_LINE_ID which have line item no. bt how should i get material doc. no and material no. at that line item?
    Plz try to give me solution.
    Thanks & Regards,
    Saurin Shah

    Hi,
    When you are posting a GR against PO when you check the document
    Method Line_modify of the badi MB_MIGO_BADI is gettin triggered and if you check the importing parameter cs_goitem
    it is getting populated wit the values of the lime item
    Like you said material no, po number, batch no, item no etc.
    Since you can get this details as you said you can check for the view maintained.
    Hope this help you.
    Regards,
    Ranjith N

  • New video problems after replacing bad cap

    We are attempting to repair our first gen IMac G5 after it started having a problem with randomly shutting down. After much online research, and everything pointing towards bad capacitors, we opened up the machine and sure enough there was a bulging cap. We did the LED tests as well (fine), and ran hardware test (which also pointed to a problem on the logic board). After ringing the local Apple tech and confirming that they would only replace the whole board, not individual capacitors, we found a repair shop locally that was willing to solder on a new cap for us.
    So we've put the whole machine back together today, and again the LEDs light fine. However, now, the video is totally messed up! It starts up as far as the login screen but it'd be impossible to log in as the screen is so badly scrambled.
    Now we're trying to decide what the culprit is--incorrect reassembly? Accidental damage to the video cable during disassembly/assembly? Static electricity zapped the board at some point? Replacement cap not good enough (it's got a much higher uF and voltage rating but that seems to not be critical)?
    Any pointers on how to proceed? We're loathe to throw in the towel just yet!

    Don't throw in the towel, take it back to your local tech and have her replace the cap with one of the proper rating.

  • MAC PRO USB Problem - Traced to bad Apple Keyboard Extension Cable

    I found a fix to a problem synching to my itunes Library on my early 2008 MAC PRO.   The Apple supplied USB extension cable for the keyboard was defective.
    The symptoms were hangs in itunes and finder synching to iPods and transferring data to USB hard drives. The iPods and hard drives never lost power and no errors/log entries were made. The transfers simply stalled and would not continue. itunes and finder would hang until the drive or ipod was removed. These devices were installed directly to USB ports on the MAC PRO. No other USB devices were connected except for the aluminum keyboard and mighty mouse; the mouse was connected to the keyboard. The keyboard was connected using the USB extension cable that shipped with the MAC PRO.
    Hardware diagnostics were all clear. The keyboard and mouse never had any connection problems. Only itunes syncs and hard drive copies would fail; these would occur at random times. I had an open ticket with Apple to have the logic board replaced as it was diagnosed to be a hardware/USB problem.
    Removal or replacement of the extension cable on the keyboard (which was connected to a different USB port and NOT in the USB chain with the ipod and hard drives) permanently fixed the problem. I cancelled the Apple HW replacement.
    I have noted several posts with others having problems with USB ports and devices. I wonder if Apple has an unknown problem with bad keyboard extension cables.

    I think you may be onto something there. I'm just a few weeks into my second Mac Pro and again it's having the same USB problems which led Apple to give me a replacement machine previously. I went through several weeks of considerable testing with Apple Engineers prior to that - an Apple Care application to collect data from my machine, Apple Developer USB prober and two clean installs. The latest machine initially showed no sign of the problem then it started again - 2 iPods "can not be read or written to" part way through sync, Aperture quitting importing from USB SD card reader, USB drives dismounting etc. So I pulled out the Aluminium keyboard and, lo and behold, the iPods managed to get all the way through synching without errors. I really like the alu keyboard so it's a huge shame that it might be the cause of all my problems so far - and the Mac Pro is otherwise a beautiful computer.
    But is this really a hardware problem of the internal USB cards and power management or supply?

  • Problem with MIGO

    I have a PO wich have been MIGO (mov 101). Then the reception has been cancelled but non valuated ( i dont know why because the WEUNB (Goods Receipt, Non-Valuated) wasnt fleagged).
    The problem is than i have the 101 valued and the 102 non valued.
    I have tried to make a 101 of the same PO no valuated and later cancell it valuated (modifiying table EKPO with se16n and puting the flag) But the cancellation has no value: So I have:
    102 value 0
    101 value 0
    102 value 0
    101 14.000
    How can i cancell the first the god recepit?
    reggards

    I cant because the All items of this document are already cancelled. Thats the problem, the document has been cancelled with no value (i dont know how can that happen) and now i have a not balance PO.
    regards+

  • Long Text problem in a BADI

    Hi Everyone,
    I am implementing BADI "WORKORDER_UPDATE". The requirement is there should be no changes made on the IW32 transaction. I have successfully implemented the BADI and it is now giving an error when we try to change anything on the order in IW32.
    The problem is with the longtext. There is a field TXCHG which I used to see if there are any changes being made to the long text. When someone changes the lontext and tries to save it, it gives an error but still retains the changed longtext. The code works fine with all other changes(I mean it gives an error when they try to change anything in IW32 and will not retain the changes). But this does not happen in the case of long text. It gives an error but still has the changed long text as part of the order.
    Any suggestions on how to proceeed? I am using instance  Before_Update in this BADI.
    Thanks
    Kumar.

    Do u mean after giving the Error message, even if u come out without saving it is keeping the changes?
    If the answer to the above question is no then try the following procedure:
    Read the long text using READ_TEXT (function module) by passing the TDID, TDOBJECT, TDSPRAS, TDNAME (u can get these details by going through the menu edit-> go to header). 
    Store that in an internal table and then append all the lines of this internal table into a string Variable and assign this variable's text to the field in which long text is being displayed.
    This should work bcoz , in the database only the original Long text is stored and we are retrieving it and displaying back in the relevant field.
    Please reply if it works.....

  • Problem in ME22n - BADI.

    HI Experts,
    I have a requirement to make in transaction ME22n.I have used BADI - ME_PROCESS_PO_CUST.
    After selecting the Purchase Order Type(MEPO_TOPLINE-BSART) for only a list of specific types and clicking on the
    Check box -- Delivery Complete (MEPOITEM-ELIKZ) in the Item ->Delivery tab, It should trigger a popup.
    I am able to trigger this well, But the problem is If I save the changes made and then change the PO type to some other specified in my list of choices. The popup is still triggered.
    I have coded with conditional If for checkbox ='X' and taking the field  MEPOHEADER-BSART and then proceeded.
    Please help me to solve this.
    Regards,
    Gopinath

    the code is:
    DATA : w_mepoheader TYPE mepoheader.
      CLEAR: g_po_type_flag,
             g_po_ebeln.
      w_mepoheader = im_header->get_data( ).
      CASE w_mepoheader-bsart.
        WHEN 'ZNB'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'NB'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO3'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO4'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO5'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZUB1'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
      ENDCASE.
      DATA: w_returncode(1)  TYPE c,
            w_mepoitem       TYPE mepoitem,
            l_flag           TYPE c,
            notify_type      TYPE c LENGTH 5 VALUE 'L2',
            w_bdcdata        TYPE bdcdata,
            w_bdcdata_tab    TYPE TABLE OF bdcdata,
            w_options        TYPE ctu_params.
      w_mepoitem = im_item->get_data( ).
      IF g_po_type_flag = 'X'.
        IF w_mepoitem-elikz = 'X'.
          l_flag = 'X'.
        ENDIF.
      ENDIF.
      IF l_flag = 'X'.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar              = 'Clorox '
            text_question         = 'Do you want to create a Vendor Quality Notification?'(001)
            text_button_1         = 'Yes'(002)
            icon_button_1         = 'ICON_OKAY'
            text_button_2         = 'No'(003)
            icon_button_2         = 'ICON_CANCEL'
            default_button        = '1'
            display_cancel_button = ''
            popup_type            = 'NO_ICON'
          IMPORTING
            answer                = w_returncode.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.

  • BDC PROBLEM for MIGO

    Dear all,
    there is problem in BDC MIGO report.  when i uploaded the p_file the bdc run but on some fields it gives the error message
    S Field GOITEM-ERFME . is not an input field
    S Field GOITEM-ERFMG . is not an input field
    S Field GOITEM-LSMNG . is not an input field
    S Field GOITEM-LSMEH . is not an input field
    S Field GOITEM-BWART . is not an input field
    S Field GOITEM-LGOBE . is not an input field
    S Field GOITEM-WEMPF . is not an input field
    S Field GOITEM-ABLAD . is not an input field
    S Field GOITEM-SGTXT . is not an input field
    these are all input fields and i defiend as
    perform bdc_field       using 'BDC_CURSOR'
                                  'GOITEM-ERFME'.
    perform bdc_field       using 'GOITEM-ERFME'
                                  IT_DATA-ERFME.
    perform bdc_field       using 'GOITEM-ERFMG'
                                  IT_DATA-ERFMG.
    perform bdc_field       using 'GOITEM-LSMNG'
                                  IT_DATA-LSMNG.
    perform bdc_field       using 'GOITEM-LSMEH'
                                  IT_DATA-LSMEH.
    *perform bdc_field       using 'GOITEM-MIGO_ELIKZ'
                                 '1'.
    perform bdc_field       using 'GOITEM-BWART'
                                  '101'.
    perform bdc_field       using 'GOITEM-LGOBE'
                                  IT_DATA-LGOBE.
    perform bdc_field       using 'GOITEM-WEMPF'
                                  IT_DATA-WEMPF.
    perform bdc_field       using 'GOITEM-ABLAD'
                                  IT_DATA-ABLAD.
    perform bdc_field       using 'GOITEM-SGTXT'              "
                                  IT_DATA-SGTXT.
    please solve my problem.
    Regards,
    Pankaj

    HI,
    May this will throw some light for u
    Geting problem in BDC prog of MIGO transaction
    Regards,
    Aditya

Maybe you are looking for

  • Unable to get the file system information for: \\****servername\E$\; error = 64 Unable to distribute content to DP

    One of our DPs has stopped loading content.  I've research for quite a bit and cannot find a clear cut reason to this.  This server only has a DP role, I verified sharing permissions, all looked good. This DP has been running just fine for the last y

  • Embed "pdf images" in a mdf template

    Hello all, I have a requirement to create a report that shows a list or products with its corresponding images. Each product has its own image The problem is the "image" is currently stored in pdf format... Do you know if it is posible to acomplish t

  • Photoshop CC - „Letzte Dateien öffnen" Fehler

    Hallo Forum, also seid Beginn von CC habe ich (unsere Firma) ein Problem mit den "letzten Dateien" von Photoshop. Nun nach dem großen Update auf 2014 erhoffte ich Besserung - dem ist leider nicht so. Wenn ich eine PSD bearbeite und auf unserem Server

  • Hyperion reports to BI queries/workbooks

    HI, Can you anyone please give me some idea how to convert old Hyperion reports to BI queries/workbooks. What are the steps involved in conversion? Regards, Ashok

  • Force fsck on reboot?

    OK, with Leopard inheriting launchd/launchctl for everything (no more RC scripts!) I'm trying to figure out how to force an fsck of a journalled HFS root partition that I only have remote access to. i.e. It's in another city. I can see in the logs: F