BAPI :   simulate IN  TRANSACTION MIRO

Can anyone tell me a bapi  
that can do the same work as the button   "simulate"
IN  TRANSACTION MIRO   ?
Edited by: liwei zhuang on Jan 18, 2008 12:15 AM

Hi,
Try the following:
BAPI_INCOMINGINVOICE_CANCEL    Invoice Verification: reverse invoice
BAPI_INCOMINGINVOICE_CHANGE    Invoice Verification: Change Provisional Invoice
BAPI_INCOMINGINVOICE_CREATE    Invoice Verification: Post Invoice
BAPI_INCOMINGINVOICE_DELETE    Invoice Verification: Delete Provisional Invoice
BAPI_INCOMINGINVOICE_GETDETAIL Invoice Verification: display invoice
BAPI_INCOMINGINVOICE_GETLIST   Invoice Verification: List Invoices
BAPI_INCOMINGINVOICE_PARK      Invoice Verification: Park Invoice
BAPI_INCOMINGINVOICE_POST      Invoice Verification: Post Provisional Invoice
BAPI_INCOMINGINVOICE_RELEASE   Invoice Verification: release invoice
BAPI_INCOMINGINVOICE_SAVE      Invoice Verification: Flag Invoice for Background Processing
Please reward points if useful.
Regards,
Renjith Michael.

Similar Messages

  • Any BAPI for Transaction MIRO

    please tell me any BAPI for Standard transaction MIRO , or should I have to use BDC instead ?
    PLease rep , thnx in advance

    BAPI_INCOMINGINVOICE_CREATE

  • How to use the functionality of Simulation for the Transaction MIRO

    Hi Group,
    I have a requirement to call SAP from MS Excel and check for the SImulation option as under:
    The Excel will pass the values of Invoice Number, Posting date, PO number, PO Item number, Company code and etc., through the call of BAPI   -   'BAPI_INCOMINGINVOICE_CREATE'  in order to create Invoice in the SAP system.
    But the above BAPI is creating the Invoices in SAP system. Rather, I need to just check(thru SIMULATION) the records and come back to MS Excel with the MIRO numbers that will be created and the errror messages that will be returned back.
    In summary, I have to add two Buttons as:
       POST : this has to create MIRO(invoice Numbers) in the SAP System(populating the Success/Error Messages by calling
                   the above BAPI   -  This functionality is working fine now
       SIMULATE: this has to do  same functionality of "POST" option but should not create MIROs in the SAP system
                          Currently I am not able to achieve this as the above BAPI is creating MIROs in SAP.
    Kindly provide your inputs on how to go about incorporating the above SIMULATION functionality, by giving some simulation BAPIs that can be used for my functionality.
    Thanks for your help in advance.
    Regards,
    Vishnu.

    Hi Group,
    In continuation to my previous posting, I would like to give more inputs as under:
    when I was using the BAPI - BAPI_INCOMINGINVOICE_CREATE (unless I commit the transaction), MIRO would not be created in the system.
    Now, when I run the BAPI again with a different set of data, the Invoice Number is getting incremented by one.... this I dont need, if the Invoice is not committed and if I run the next time, I need to get the same Invoice Number....
    How can I achieve this task?
    Kindly let me know your inputs on this.
    Regards,
    Vishnu.

  • CALL Transaction 'MIRO' return error messages in MESSTAB

    Dear All,
    We have created a test function module to call transaction 'MIRO', the function works fine on one server but the same give error messages on other server.
    The messages returned by call transaction is as follows
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server I (success)
    ======================================================
    1 MIRO SAPLMR1M 6000 I E F5 096 1,002,010.00 INR Advance to Vendors CTU
    2 MIRO SAPLMR1M 6000 S E F5A 034 BusA CTU
    3 MIRO SAPLMR1M 6000 S E M8 060 5200000423 CTU
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server II (error)
    ======================================================
    1 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    2 MIRO SAPLMR1M 6000 I E M8 584 CTU
    3 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    4 MIRO SAPLMR1M 6000 S E 7Q 333 1008473 CTU
    5 MIRO SAPLMR1M 6000 E E F5 480 RE Doc. Header Text CTU
    In fact, when the MIRO screen is displayed to user and user enter the data in MIRO and simulate, there is no error.
    But when we post the transaction the screen is exited without displaying the invoice document number.
    Where as if we call MIRO directly, it works fine without any error.
    Kindly help.
    Regards
    Ruhi Hira

    The sample code is
    FUNCTION Z_TEST_MIRO.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ERRCODE) TYPE  N
    *"     REFERENCE(INVOICENUMBER) TYPE  C
    *"     REFERENCE(OLDINVOICENUMBER) TYPE  C
        DATA: BEGIN OF tran_opts,
            dismode   TYPE ctu_params-dismode VALUE 'A',
            updmode   TYPE ctu_params-updmode VALUE 'S',
            cattmode  TYPE ctu_params-cattmode,
            defsize   TYPE ctu_params-defsize ,
            racommit  TYPE ctu_params-racommit,
            nobinpt   TYPE ctu_params-nobinpt VALUE 'X',
            nobiend   TYPE ctu_params-nobiend,
        END OF tran_opts.
        DATA: BEGIN OF MESSTAB OCCURS 10.
            INCLUDE STRUCTURE BDCMSGCOLL.
        DATA: END OF MESSTAB.
        ERRCODE = 0.
        GET PARAMETER ID 'RBN' FIELD OldInvoiceNumber.
        DATA BEGIN OF BDCDATA OCCURS 1.
            INCLUDE STRUCTURE BDCDATA.
        DATA END OF BDCDATA.
        CALL TRANSACTION 'MIRO' USING BDCDATA OPTIONS FROM tran_opts MESSAGES INTO MESSTAB.
        LOOP AT MESSTAB.
            WRITE: / MESSTAB-TCODE,
            MESSTAB-DYNAME,
            MESSTAB-DYNUMB,
            MESSTAB-MSGTYP,
            MESSTAB-MSGSPRA,
            MESSTAB-MSGID,
            MESSTAB-MSGNR,
            MESSTAB-msgv1,
            MESSTAB-msgv2,
            MESSTAB-msgv3,
            MESSTAB-msgv4.
            IF MESSTAB-MSGTYP = 'S' AND MESSTAB-msgid = 'M8' AND MESSTAB-msgnr = '060'.
                invoicenumber = messtab-msgv1.
            ENDIF.
        ENDLOOP.
        IF OldInvoiceNumber = InvoiceNumber OR InvoiceNumber IS INITIAL.
            ERRCODE = 1.
        ELSE.
            ERRCODE = 0.
        ENDIF.
        REFRESH BDCDATA.
    ENDFUNCTION.

  • Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO

    Hi Friends,
             Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
             im passing data to table GLACCOUNTDATA.
             Below are the table fields im paasing
         INVOICE_DOC_ITEM " '000001' deafault always
         GL_ACCOUNT  "Which is constant for all in my case               
         ITEM_AMOUNT      " Total PO net amt + Frieght charges header level      
         DB_CR_IND      " 'S' always default     
         COMP_CODE      " 'RPPL' always default          
         TAX_CODE      " 'V0'     deafault always     
         PROFIT_CTR       " for ex 1100180. based on plant
              While posting this bapi is trhrowing error as below
         'profit centre  RPPL/1100180 does not exist for 01.12.2008'
         where 01.12.2008 is the MIRO posting date which im passing in header.
            We checked dates for profit centres they are correct.
            Awaiting the reply ASAP.
    Regards,
    Venky

    Hi,
    It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
    Regards,
    Teddy Kurniawan

  • Vendor Invoice creation through EDI (Transaction MIRO)

    Dear All,
    We want to implement Vendor Invoice creation thro EDI .(Transaction
    MIRO)
    We are not finding any suitable EDI Function Module in SAP which
    would take care of more than 20 items and run a MIRO or any
    equivalent transaction .
    Can any one please advise if any Function module exists ? We need it for
    Invoice creation with GR reference as well as without GR reference .
    Thanks
    Sanjay.

    Thanks Naren,
    I will come back after checking the fn module.
    - Sanjay

  • Payment terms display in transaction MIRO

    Dear all,
    When we use transaction MIRO we have the correct display from the payment terms and the display is correct.
    When we use the transaction MIR4 in ordre to see the invoice the value of the payment term (0000, 0060...) has disapear but the number of days are correctly indicated.
    How can we still having the value of the payment terms (0000, 0060...) in MIR4?
    Thanks!
    David

    Hi,
    Please refer this link:
    value in payment terms field not dispalyed in invoice after saving MIRO
    Regards,
    Pramitha.

  • How to add a button to the toolbar in transaction MIRO

    Hi, I wanna know if some1 could tell me how can I add a custom button in the standard toolbar of transaction MIRO.
    The client have the lastest version of SAP so I have enhancement point to add the functionality of the button, but how can I add the button without registering the object in the OSS.
    Thx.

    Hi Siva,
    Create one custom program Eg:zxyz activate it. Now open se80 give program name:SAPMV50A and open gui status.
    In GUI Status right click on 'W0' copy it to custom 'ZW0' and the custom program name which created first.
    Now goto your custom program and write
    double click on 'ZW0' and create your custom button in application toolbar.
    activate it and activate your program.
    Now come to stander program SAPMV50A open screen 1000.
    in moduel  'initialisieren' double click on perform cua_setzen.
    again double click on module initialisieren and by using enhancement framwork functionality implement the below logic.
    Finally you will get the button in application toolbar.
    Reward if it is help full.
    Regards,
    Quddus.

  • Need to create a message INVOIC from transaction MIRO

    Hy,
    try to find an answer on following prob.
    I need to send the billing information from transaction MIRO to another system. They want to have a INVOIC02. I know how to create a message but i have not found a solution (wich function) to create a INVOIC02 with all information.
    Any help ?? Is there another solution or do i have to develop the filling of the IDOC ?
    Thanx
    Jens

    Hi again,
    thanx for the answers. Helpful but not solving my prob. Perhaps i have to describe a little bit more.
    My prob is not to create the IDOC. I can handle that. My problem is to find the right function to fill that IDOC.
    On transaction M806 i have created a new Output type. But i do not know wich Processing Routine i have to use to fill the IDOC INVOIC02. I tried the Program RSNASTED and the the Form Routine ALE_PROCESSING.
    Now the whole settings i made :
    TA M806
    New type : Ytcm
    Program :    RSNASTED
    Form Routine : ALE_PROCESSING
    TA WE81
    New message type : YTCMS2
    TA WE82
    New message type : YTCMS2
    Basic type :                INVOIC02
    WE20
    Partner LS
    Outbound : 
    Message type :  YTCMS2
    Basic type  :  INVOIC02
    Message control
    Application :   MR
    Message type :  YTCM
    Process code : SD09
    With that settings i create the IDOC but this is not filled with the information of the billing (Transaction MIRO).
    So i think perhaps the process code or the settings in TA M806 a not right.
    Thanx again for helping me.
    Regards
    Jens

  • How add a new field in transaction MIRO

    Hello !
    I need to add a field (tiban-iban) in a subscreen of transaction MIRO, and I don't know how
    Screen concerned
    SAPLMR1M / n° 6510
    I need to add the field (display only), and fill it from table tiban.
    Thanks
    Aussie

    hi
    u can check the transaction varients in  SHD0
    Adding new field (ie Goods Recievd date ) at item level in MIRO tcode.
    How to add a field to the Vendor Info on MIRO?
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=addfieldin+miro&adv=false&sortby=cm_rnd_rankvalue
    regards
    kunal

  • Transaction MIRO

    Hi,
    I need help.I want create an invoice for a Purcharse Order through transaction MIRO. How filler the fields of screen for create this?
    Thanks.
    Edited by: Trini Roldan on Oct 31, 2008 12:54 PM

    >
    Trini Roldan wrote:
    > Hi,
    >
    > I need help.I want create an invoice for a Purcharse Order through transaction MIRO. How filler the fields of screen for create this?
    >
    > Thanks.
    >
    > Edited by: Trini Roldan on Oct 31, 2008 12:54 PM
    It depends on how invoicing has been set up to work for your company.....you should really ask a functional person to show you how they do it.

  • Special G/L accounting with transaction MIRO

    Hi,
    I trying to use special G/L funcionality using transaction MIRO. In Standard it is not possible but i read that is possible using an user exit/badi. I tryed with my own code but it did not work. Have anyone code that will solve our problem??
    Best Regards
                           João Fernandes

    Hello Joao,
    I have opened an OSS note for this and here is the reply I have got:
    "10.09.2008 - 11:15:10 CET - Reply by SAP
    Dear Dirim,
    Thanks for your reply. I do agree with your requirment and also gone through the link.
    The incident you have reported is not related to a coding error, but to a feature not supported by the functionality available within standard SAP. Therefore, a Solution cannot be delivered via the standard maintenance process.
    If you believe that this feature is of general interest to other SAP users, you may apply to get in touch with a SAP User Group ( i.e. DSAG or ASUG) in order to check the feasibility of opening a development request, aiming to enhance SAP's product portfolio offering for future releases. Further details about this could be found in the link http://service.sap.com/rollin
    Please see attached notes for more information.
    11 Requested function not contained in standard system
    397871 Solution only possible via customer project
    Kind Regards,"
    So now I'm looking for people who can help me raise this in their respective user group, so that we will have the same request for many countries at once.
    Can you help me out?
    Thanks,
    Dirim

  • BAPI for FRFT_B Transaction

    Hi there,
    I would like to know the BAPIs that can be used for the transactions FRFT_B ("Fast Entry with Repetitive Codes - Bank to Bank Transfer").
    Does anybody know a BAPI for this transaction?
    Thank you,
    Janete

    hi,
    To know the BAPI's for a particular transaction generally we follow the following steps.
    1. Find out the package of the transaction.
    Start FRFT_B  go to system --> status.
    Double click on transaction
    Note Package name for that particular transaction.
    Open this package in SE80
    Open business engineering-->Business object types
    Find the BO which sounds the most appropriate
    But there are no Business Objects for FRFT_B transaction.
    There is another method to find BAPIs
    Start FRFT_B go to system-->status
    Double click transaction FRFT_B
    Double click on package
    Read the application component. (this is FI-BL-PT   Payment Transactions)
    Then open the transaction BAPI
    Financial Accounting-> Bank Accounting->Payment Request-> Start Payment
    By this you can find the BAPI for a transaction.
    Hope this would be helpful for you.
    Regards,
    Supriya.
    Edited by: Supriya.ch on Jan 30, 2012 2:34 PM

  • BAPI for CJ20N transaction

    I have used following step to create project/WBS:
    1.BAPI_PS_INITIALIZATION
    2.BAPI_BUS2001_CREATE
    3.BAPI_BUS2054_CREATE_MULTI
    4.BAPI_BUS2001_SET_STATUS (To set the status at project level)
    OR
    BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)
    5.BAPI_PS_PRECOMMIT
    but in PS our have custom field at WBS element level, these BAPI will create a project but won't  update custom field.
    how to resolve the problem?
    thks

    Hi !
    Please have a look to the transaction BAPI .
    The Bapis of the project-system described there do have completely other nemas the you've listed... i.e.
    BAPI_PROJECTDEF_CREATE or BAPI_PROJECTDEF_UPDATE ....
    There's a very good docu for the BAPIs in the transaction BAPI .
    Regards
    Rainer
    Some points would be nive if that helped.

  • BAPI BAPI_GOODSMVT_CREATE for Transaction MB01

    Hi All,
    I am using BAPI BAPI_GOODSMVT_CREATE for transaction MB01.
    I have one problem while passing the value in BAPI.
    Goods receipts for Schedule Agreements are not allow for delivery schedule lines with delivery date in the future.
    Manual turn around for transaction MB01 is to check field "Suggest Zero Lines" from main selection screen:
    I am not able to get the field name in BAPI for filling the value for check field "Suggest Zero Lines".
    Kindly help me to find out the field name.
    Thanks in advance.
    Piyush Mathur

    data flag(1) value 'X'.
    set parameter ID 'NUL' field flag.
    u can set the parameter 'Suggest zero lines' as 'X' by default and then call ur bapi..see if tht field is X now or not?
    otherwise it can be possible tht u r not using the correct BAPI
    amit

Maybe you are looking for