Finding Program for triggering Print Program (MIGO - Goods Receipt)

Hi all,
Currently, I have developed customized print program and SMARTFORMS for Goods Receipt via MIGO, with output type ZZGR.
Typically, this is a inter-plant transfer, where Plant A will issue a Delivery Order to Plant B, and Plant B will post goods receipt via MIGO (Movement Type 101), using Delivery Order number. As soon as the Material Document is posted, the SMARTFORMS shall be triggered by customized print program, in order to print out the goods receipt document upon material doc posted.
The config for output determination (via TCODE NACE) for goods receipt is configured. I have tested post a goods receipt using Delivery Order, and Material Document is posted successfully. However, I got a message from SAP Inbox (Businees Area), saying that my Material Document having an update error, and the root cause is specifically from calling Function Module to trigger Smartforms in the print program. From tcode ST22, I realized that the error is due to empty parameter being passed to the function module (where the parameter is required field for further processing in Smartform).
In order to rectify why empty parameter is bieng passed, I will have to debug the print program, after GR posted from MIGO. Therefore, can someone shed some lights on how to perform a debugging process, or any standard sap program involved, as I understand that the print program is triggered (in background) after GR posted?
Also, can I know why the Material Document will not be committed to MKPF table after GR posted, is it due to the update error from the above mentioned?
Many thanks.
Best regards,
Patrick
P/S: I'm using SAP ECC6.

Actually, this print program is being triggered in the update processing.
Put a breakpoint in your driver program.
In MIGO, before pressing the SAVE button start debugging.
Press the SAVE button.
Start the update debugging by Settings > Update Debugging.
As soon as you continue in debugging, it would open another debugging session for the Update debugging. You can press continue and it would stop at your breakpoint.
Regards,
Naimesh Patel

Similar Messages

  • Triggering print program for shipment creation

    Hi All,
    I have created a new print output type 'ZEDF',which should ideally generate a spool at the time of saving the shipment. But unfortunately, this is not happening.Whenever I save a newly created shipment,this output type is not getting triggered,but when I repeat the same output type through VT02,a spool is generated automatically.I have maintained all the condition records properly in the system. Please help me on this.
    Thank you,
    Archana

    Hi,
    Have you checked the settings in NACE tcode?
    Pls check the same and amde the configuration according to your Device Type.. Pls have a look on below points.
    Hi,
    1. Goto in NACE
    2. You need to ask your functional buddy to let you know about Application area, I suppose u need to take EF.
    3. Select EF from the list and than click on Output Types, select any output type (Which you wud like to give to your script)
    4. Else if you like to create a new one for your script, then on same screen click on change button, then click on New Entries
    And give all the detailed info.
    5. To use existing output types, select a output type like "ZEDI", at the left hand side double click on Processing Routines.
    6. In the Processing Routines block , Give the Program name as print program and here you need to give your SAP scrip name in Form option.
    save it.
    Regards,
    Lokesh.

  • F-58 Print Program for Check Printing

    Hi Guys,
    Have some questions here:
    1) How to locate the print program for F-58 on the Check? We can configure the form by payment method but can't seem to find the print program like other FI correspondences.
    2) Can i ignore the check printing and just print payment advice (if any) after posting via F-58?
    Anyone has done this before?
    Please advice.
    Thanks and Regards,
    Andrew

    Hi
    I think I could understand your requirement. There is no special PRINT PROGRAM FOR Payment Advice.
    There is Print program for check printing : RFFOUS_C
    along with above print program Payment Advice and Payment summary will be printed.
    check tcode: OBVCU, here we assign the print program.
    and Form will be assigned in tcode: OBVU
    or in last case do payment with out any print and create payment advice manually in tcode: FBE1
    any questions revert back please
    Regards
    Hari P
    Edited by: Hari Peddi on Nov 25, 2008 9:51 AM

  • Driver program and a print program

    hi all,
    wat is the basic difference between a driver program and a print program in scripts.
    How do we do modification for FI scripts
    Thanks & Regards,
    Saroja.

    hi Saroja,
    Driver program or print program both r same... u can call either driver program or print progam.
    Modifying the scripts depends upon your requirement,
    basically if u have standard scripts better to copy it to zscript then make the chages like adding company logo or adding the company address or adding the terms and conditon what ever u asked to do then use the same print program write the extra logic in a subroutine in an executable program and call this routine in the script.
    This is the method to modify the scripts with out modifying the print program because sometimes its not advisable to change the print program or
    u can copy the print program to z program and u can add u r extra logic into it
    ~~Guduri

  • How can i add message in "migo"  ( good receipt ) ?

    how can i add message in transction "migo"  ( good receipt ) ?
    i tried userexit MBCF0002
    but i can't see more then one
    line of the order and the user
    get 3 messages ( in case of order with 3 lines )
    the badi's
    MB_DOCUMENT_BADI
    MB_MIGO_ITEM_BADI
    don't give me the option
    to add message .
    i tried to add message in the check or befor the save .
    this is the message  :
      CALL FUNCTION 'POPUP_TO_DIS
    PLAY_TEXT'
          EXPORTING
            titel              = text-001
           textline1          = text-001
          TEXTLINE2          = ' '
           start_column       = 25
           start_row          = 6.
       message s000 with text-002.
    ENDIF.

    OK, I'm on ECC6.0 system that's why you can't find it in 4.7 version.
    I'll copy and paste the sample code for you below.
    Sample Method IF_EX_MB_MIGO_BADI~CHECK_HEADER
    method if_ex_mb_migo_badi~check_header .
      data: ls_bapiret type bapiret2.
    * Refresh return table
      refresh: et_bapiret2.
    * Check header data (W-/E-Messages are useful)
      if gs_exdata_header-badi_nummer is initial.
        ls_bapiret-type       = 'W'.
        ls_bapiret-id         = 'M7'.
        ls_bapiret-number     = '895'.
        ls_bapiret-message_v1 = 'Enter number on external screen'(001).
        append ls_bapiret to et_bapiret2.
      endif.
    endmethod.                    "IF_EX_MB_MIGO_BADI~CHECK_HEADER
    Sample Method IF_EX_MB_MIGO_BADI~CHECK_ITEM
    method if_ex_mb_migo_badi~check_item .
      data: ls_extdata type migo_badi_example_screen_field,
            ls_bapiret type bapiret2.
    * Refresh return table
      refresh: et_bapiret2.
    * Read external data
      read table gt_extdata into ls_extdata
           with table key line_id = i_line_id.
    * Check if all entries are done (W-/E-Messages are useful)
      if ls_extdata-badi_erfmg is initial.
        ls_bapiret-type       = 'E'.
        ls_bapiret-id         = 'M7'.
        ls_bapiret-number     = '895'.
        ls_bapiret-message_v1 = 'Enter quantity on external screen'(002).
        append ls_bapiret to et_bapiret2.
      endif.
      if ls_extdata-badi_erfme is initial.
        ls_bapiret-type       = 'E'.
        ls_bapiret-id         = 'M7'.
        ls_bapiret-number     = '895'.
        ls_bapiret-message_v1 =
           'Enter unit of measure on external screen'(003).
        append ls_bapiret to et_bapiret2.
      endif.
    endmethod.                    "IF_EX_MB_MIGO_BADI~CHECK_ITEM
    Implement your according to the examples above.
    Hope this solves your problem.
    Cheers,
    Sougata.
    P.S. You need to create a brand new Z implementation via SE19 using the BADI definition MB_MIGO_BADI
    Edited by: Sougata Chatterjee on Dec 31, 2007 1:05 AM

  • Pricing determination of MIGO (goods receipt)

    How is 'Amount in LC' field in the tab 'Quantity' of MIGO (goods receipt) determined by SAP?
    To my understanding,  'Amount in LC' is determined by the conditions, but I don't have a clear understanding on this process.
    Appreciate if anyone can shrow me some idea on this.
    Points will be assigned! Thank you.

    thank you very much for your answer, srinivas kona,
    However this answer does not help much on our situation below.
    Much appreciate your help in advance.
    In the PO history of 1st line item, we posted the following material documents.
    1. wrongly post MIGO as follows.
    Movement Type = 101
    quantity = 400;
    'amount in LC' = $ 400
    2. Now we reversed material doc in step 1 using MIGO cancellation, and we seccessfully cancel the wrong material document.
    However we are driven crazy by SAP because the system post a new material doc with wrong 'amount in LC' again!
    Movement Type = 102
    quantity = - 400;
    'amount in LC' = $ - 500
    'amount in LC' should be $ - 400 to reverse the material doc in Step 1.....how come system posted a wrong 'amount in LC' in cancellation document....

  • Migo- goods receipt report

    Dear MM experts,
    Pl let me is there any standard report available to know the status of MIGO-Goods Receipt of Goods Issue done for the Materials (Stock Item or Non stocks items) against the Purchase Orders.
    Pl help
    thanks in advance
    regards
    srihari

    Hi,
    You can also refer following reports;
    MB51/MB59 - List of material documents (In Selection Screen, enter Movement Type - 101)
    ME2N - List of PO Documents (In seelction Screen use Scope of List - ALLES)
    ME80FN - General Analysis (Here in Output, select option "PO History")

  • MIGO Goods Receipt multiple Movement Types?

    Hi,
    Is it possible with MIGO Goods Receipt using Inbound Deliveries to have multiple movement types? the reason I ask is I am getting the following error 'BORGR622 Movement Type XXX not allowed; only 101 is allowed' when trying to receipt a Line no. with different Movement Type to the earlier lines.
    We do have the same problem if we receipt in MIGO Goods Receipt directly to the Purchase Order, we can happily post a document which has the normal '101' movement type and another Custom movement type.
    The reason for the requirement is to do with Account Determination, we have free bonus goods lines which are zero price on the purchase order - the price difference gets posted to a bonus stock account instead of the usual price difference account, by using a Custom Movement Type - the bonus stock agreement (kind of like BOGOFs Buy One get one free) is passed to the Customer with similar account determination updating the same bonus stock account.
    This works fine for MIGO receipt directly with the Purchase Order but we get the error message above with Inbound Deliveries.
    I cannot see anywhere obvious in config which might sort this issue, but am unsure why multiple movement types on a Goods Receipt would be allowed against a Purchase Order but not an Inbound Delivery.

    Hi,
    Try with the below mentioned settings,
    goto SPRO -> Materials Management -> Inventory Management & Physical Invetory -> Settings for enjoy transactions -> Settings for good movements(MIGO) -> Settings for transactions & reference documents -> select MIGO_GR -> Click on transaction/event -> select goods receipt -> click on reference documents -> remove the tick mark on active.
    Regards,
    Prabu

  • MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt)

    MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt) posting date.
    Explanation:
    Miro sholud be posted after the GRN has posted. It means that the Posting date of Miro should be greater than or equal to the Posting date of Migo. But I am facing the issue that I can able to post the Miro before the Migo date..
    For example:  I have posted the Migo(Goods receipt) document with the posting date u2013 10.8.09 and at the same time I can also able to post the Miro(Invoice Verification) posting date as u2013 5.08.09. This is should not be allowed . Kindly give me the solution. Is there any options in SAP standards to restrict this type of Postings(without using user exit).
    regards
    Varadharaj

    Hi
    you  need to use BADi for this INVOICE_UPDATE
    you can give logic as whil;e MIRO system will compare posting date with MIGO doc , then create a Z error msg in se91 nad assign it in that badi
    take help of ABAPer, check following link
    [LINK |GR date lesser than the PO date, the system should show an error message.;

  • MIGO (Goods Receipt) Executed...No Idoc

    One of our sites must manually run MIGO, Goods Receipt transaction. All of our other sites use scanners for barcoding that does the MIGO during thre scan. The issue is when our one site runs MIGO manually, unless they exit MIGO and re-enter MIGO, they won't get an idoc. Or, no idoc is created when the user stays in the transaction.
    Has anyone a suggestion or experienced this before?
          Thank-You.

    Hi,
    what do you have in field Further Data -> Dispatch time for output type which represents that IDoc? Do you have there "Send immediately"?
    Cheers

  • MIGO( (good receipt,Transfer pos how to  to get serial number  at run time

    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 Dilip,
    If I am correct you are taking about changing user Status at device level (serial number)
    you can set the user status through status profile (Tcode OIBS for particular status profile).
    within this, you can also set/ change the status, if particular business transaction is executed (for e.g. good receipt, Stock transfer)
    Please check if you are using status profile in your case, if not create one, by this way i think you can able to map the requirement.
    Regards,
    Chetan

  • MIGO - Goods Receipt against Purchase order. PO rate dispaly.

    Is it possible to display purchase order line item rate in MIGO - Goods Receipt against purchase order - Quantity tab.
    In Quantity tab - System is showing Qty in Unit of Entry, Qty in SKU, Qty in Delivery Note, Quantity Ordered, alongwith these fields we also want display of Purchase order rate/each of that line item.
    Please guide.

    BTW you are getting PO number at MIGO and clicking over that you will get entire PO then why you want PO rate display here??

  • Two accounting documnets to be generated at time of MIGO (Goods Receipt)?

    Hi SAP Gurus,
    Could you please give the solution to the below scenario.
    Two accounting documnets to be generated at time of MIGO (Goods Receipt) with two different documnet types ?
    1) 1st Accounting Document:-----
         Inventory a/c DR                               
              To GR/IR Clearing a/c            
    2) 2nd Accounting Document :----
         Cost of Goods Sold a/c DR       
               To Inventory a/c                   
    NOTE: G/L Account assigned in the Purchase Order.
    Many Thanks
    Kiran Konujula.

    >
    Two accounting documnets to be generated at time of MIGO (Goods Receipt)
    with two different documnet types ?
    1) 1st Accounting Document:-----
         Inventory a/c DR                               
         To GR/IR Clearing a/c
    This one is normal GR entry done against PO with movmeent 101     
    > 2) 2nd Accounting Document :----
         Cost of Goods Sold a/c DR       
               To Inventory a/c
    This entry comes in play when you do good issue against sales order. Nothing to do with GR.
    Edited by: Afshad Irani on May 4, 2010 2:46 PM

  • Bapi for transaction 'MB1C' -'Enter other goods receipt...'

    Hi,
    Please suggest the BAPI for the transaction 'MB1C'.
    thanks

    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
               call function 'BAPI_GOODSMVT_CREATE'
               exporting
                   goodsmvt_header             =
                   goodsmvt_code               =
                 *   TESTRUN                     = ' '
              IMPORTING
                  goodsmvt_headret            =
             *   MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
               tables
                 goodsmvt_item               =
      GOODSMVT_SERIALNUMBER       =
                return                      = errmsg.
              clear errflag.
              loop at errmsg.
                          if errmsg-type eq 'E'.
                  write:/'Error in function', errmsg-message.
                  errflag = 'X'.
                else.
                  write:/ errmsg-message.
                endif.
                move errmsg-message to i_msg1.
                append i_msg1.
                move errmsg-message to i_msg2.
                append i_msg2.
              endloop.
              if errflag is initial.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT          =
              IMPORTING
                RETURN        =
         endif.

  • How to find z or standard print program for smartform

    Hi all,
    I know the smartform name from this I want find print program used whether it is z or standard program.
    Thanks in advance,
    Regards,
    Harshada

    Hi,
    1. If you know the output type then you can check the Print program name in configuration.
    You can use tcode 'NACE' and select the your functional area then click on outout types.
    Choose your output type and click on 'Processing routines'.
    It will show you the print program attached to your smartform.
    2. You can directly go to table TNAPR, give your smartform name and execute. It will give you print program attached to that smartform.
    Thanks,
    Archana

Maybe you are looking for

  • External monitor shows black screen

    Hey fella's, I have an early 2011, 11'' Macbook Pro running Yosemite 10.10.1, which I've been hooking up to an IPS226 LG Flatron external monitor. It did a number on me last week: the external monitor decided to show only a completely black screen. L

  • Using CUCM as a proxy like service

    Here is the situation: I have a "BOYD" wireless SSID for all employees to use, I would like to move our mobile jabber clients off the current clinical device SSID and onto the new one. As this would be simple enough normally, but our security enginee

  • How do I get other tabs to automatically load my home screen, "google", instead of a blank?

    When I used a previous browser the tabs opened to the home page? Can this be done with Firefox and if so how? == This happened == Every time Firefox opened

  • Cheque number assign twice to same Document number

    Hi I have this situation whereby two cheque numbers are being assigned to one document number. Neither of the cheque is void as i check in FCHN. Unsure why is this happening. During printout, the system skips one physical cheq and printed on the cont

  • Window Size for Executable

    I want to be able to set the window size so that after I build my executable and run my program only the important stuff will show up instead of miles of blank space. If anyone know how to do this let me know. Cason Clagg SwRI LabView 7.1, Windows XP