Using BAPI_ACC_INVOICE_RECEIPT_POST to create Invoice Receipt

Hi,
I'm using the above BAPI to create invoice receipts (to mimic MIRO) but if I enter the OBJ_TYPE RMRP it gives me an error:
'Incorrect entry in field OBJ_TYPE: RMRP'
I've checked table TTYP and this object type does exist.  Has anyone come across this error before?
Basically I want to be able to pass it a Purchase Order document number and it should create an invoice receipt document like it does in MIRO.  I'm on version 4.6c but do have access to 640 and I know nothing about financials (I leave that to the FI/CO consultants).
Any help would be appreciated.
Gill

Hi Gill,
I need to meet the same requirement 'Enter Invoice with Reference to Purchase Order MIRO'. I was reading the threat you created. Which BADI did you use to create invoice with reference to PO? If you can provide and tip or test program that which fields I need to provide in BAPI.
Thanks for ur help

Similar Messages

  • Using MM-SUS create invoice can't change price

    Dear All,
       We used MM-SUS create invoice,we want to change the item price,how to do it?

    Hi Bill - Can you post the information of how to do it? This will be really helpful.
    Thanks,
    Sree

  • Problem in creating Invoice receipt using ALE-IDoc?

    Hi all,
    I implemented the auto creation of invoice receipt when billing document created using ALE-Idoc. It is working fine in PRD also.
    But today , there occurred a problem in this . The problem is  when the billing document is created the Invoice receipt is not creating directly , but a job is creating. But till yesterday it created the invoice receipt immediately as we required.
    So please help me on changing the creation of invoice receipt directly from current job creation? 
    No configuration has been changed ,  but my user tried to create the more than one billing document at a time.so i think  this is the reason for it. But now though he is creating only  one billing document , it is creating a job.
    Please reply ASAP.
    Thanks,
    Vamshi.

    Solved .

  • Error while using BAPI  to create Goods Receipt Document

    Hello All,
        While using the bapi BAPI_GOODSMVT_CREATE to create  Goods receipt document ,the following error is encountered:-
    Error Message:FOR OBJECT XABBELEGNR,NUMBER RANGE INTERVAL DOES NOT EXIST OM36.
    Do we need to create a number range object ??If yes,how and where to create ?
    Thanks,
    Deepti.

    Hi Deepti!
    There is only a valid interval missing, not the whole object.
    Maintenance can be done via transaction SNRO, enter your object XABBELEGNR in entry screen. (Alternatively use transaction OMJ6).
    Push button 'Number Ranges' and 'Change Intervals'. Here you can define an interval.
    Regards,
    Christian

  • BAPI_ACC_INVOICE_RECEIPT_POST for vendor invoice posting

    Hi ,
    I am using  BAPI_ACC_INVOICE_RECEIPT_POST for vendor invoice posting, I have made the header , and account paybale table
    , can any body give link for the sample code or give me sample code.

    continue....
    FORM build_bapi_parameters2.
    *Build account GL data for BAPI
      wa_accountgl-itemno_acc   = 2.             " Line Item Number
      wa_accountgl-gl_account   = '0000720300'.  " GL Account Number
      wa_accountgl-comp_code    = '0050'.        " Company Code
      wa_accountgl-pstng_date   = '12012006'.    " Posting Date
      wa_accountgl-doc_type     = 'KQ'.          " Document Type
      wa_accountgl-fisc_year    = '2006'.        " Fiscal Year
      wa_accountgl-fis_period   = '12'.          " Fiscal Period
      wa_accountgl-item_text    = ''.            " Item Text
      APPEND wa_accountgl TO accountgl.
      CLEAR wa_accountgl.
    *Build currency data for BAPI
      wa_curramount-itemno_acc   = 2.             " Line Item Number
      wa_curramount-curr_type    = '00'.          " Currency Type
      wa_curramount-currency     = 'USD'.          " Currency Key
      wa_curramount-currency_iso = 'USD'.         " ISO Code
      wa_curramount-amt_doccur   = '5000.00'.     " Amount
      wa_curramount-amt_base     = ''.            " Base Amount
      APPEND wa_curramount TO curramount.
      CLEAR wa_curramount.
    ENDFORM.                    " build_bapi_parameters
    FORM build_bapi_parameters3.
    *Build account GL data for BAPI
      wa_accountgl-itemno_acc   = 3.             " Line Item Number
      wa_accountgl-gl_account   = '0000256166'.  " GL Account Number
      wa_accountgl-comp_code    = '0050'.        " Company Code
      wa_accountgl-pstng_date   = '12012006'.    " Posting Date
      wa_accountgl-doc_type     = 'KQ'.          " Document Type
      wa_accountgl-fisc_year    = '2006'.        " Fiscal Year
      wa_accountgl-fis_period   = '12'.          " Fiscal Period
      wa_accountgl-item_text    = ''.            " Item Text
      APPEND wa_accountgl TO accountgl.
      CLEAR wa_accountgl.
    *Build currency data for BAPI
      wa_curramount-itemno_acc   = 3.             " Line Item Number
      wa_curramount-curr_type    = '00'.          " Currency Type
      wa_curramount-currency     = 'USD'.          " Currency Key
      wa_curramount-currency_iso = 'USD'.         " ISO Code
      wa_curramount-amt_doccur   = '-1000.00'.     " Amount
      wa_curramount-amt_base     = ''.            " Base Amount
      APPEND wa_curramount TO curramount.
      CLEAR wa_curramount.
    ENDFORM.               " build_bapi_parameters
    Edited by: krupa jani on Aug 12, 2009 1:45 PM

  • How to create automatic receipts in ar

    hi,
    we created document sequence and assigned receipt method against it. And changed profile option to partially used. And create the Receipt Classes for automatic. While making the receipt it asking payment instrument. how to solve this error. Pls guide me.
    Regards,
    R.Carolin

    hi,
    Provide exact error message which you are getting.
    --Sri                                                                                                                                                                                               

  • Create invoice list

    Dear experts!
    Thank you for your attention!
    I have problems in creating invoice list. I used VF21 to create invoice list and enter the billing doc. But the sys aways notice me " the doc. is not relevant for invoice list"  who does this happen?
    I have maintain the billing type LR and copy control, and set calendar for the payer as well.
    who can help me~~~~
    Best regard!
    Tangdark

    Check three points:
    1) Copy controls from billing type to invoice list type in VTFF
    2) Invoice list type to be assigned in Billing type
    3) Factory calendar maintained in InvoicingListDates field in billing documents tab of customer master
    If all three are in place and still you get the problem, create a new sales cycle (from sale order to billing) and check.
    Another option is to enter the Billing type as LR and billing date as todays date in initial screen of VF21 and check.
    Regards,
    GSL.

  • Replace VAT registration number when create invoice

    Hi All Expert,
    I want to replace the VAT registration number (VBRK-STCEG) with some useful information when create invoice.
    For e.g. Sales Order number.
    I've check the user exit RV60AFZC Form USEREXIT_FILL_VBRK_VBRP,
    but when I instead the code there, the VAT registration number still is BLANK when create the invoice using VF01...
    Please help.
    Terry

    Hi
    As per my understanding you want to display the sales order number in VAT Registration no. field. Actually this data is coming from Customer master (t-code XD02) in genral Data's Control Tab.
    Now your concern is to display the sales order no. in invoice. instead changing standard you can make it happen through copy control (T-code VTFL) with your invoice document type to Delivery document type. There is option as Reference and assignment at header level of copy control.
    Change the option of displaying sales order no in any of them. as per your config there your sales order no will be display in your billing header in assignment or reference field.
    Regards
    Shambhu Sarkar

  • Invoice Receipt (MIRO) -amount authorization problem

    I have made an Inter Company stock transport order. Now After outbout delivery , PGI , and GR when I am trying to create invoice receipt I am having the following problem-
    "No amount authorization for customers/vendors in company code INDR
    Message no. F5155
    Diagnosis
    No amount authorization for customer/vendor line items has been specified in company code INDR for the user group to which you are assigned.
    Provided that you are not explicitly assigned to a user group, the amount authorization to the group blank (" ") is valid.
    Procedure
    If you entered the correct company code, initiate the maintenance of tables T043 (user groups) and/or T043T (company code authorizations). "
    Plesae suggest what to do now ?
    Thanks in advance .
    Regards,
    Anupam

    Hi
    Check below settings in IMG:
    Materials management - Logistics invoice verification - Authorization Management - Define Tolerance Groups & Assign User Tolerance Group. I hope you dont have authorization to post the invoice with XXX amount because of tolerance limits.
    Thanks

  • Using BAPI_ACC_INVOICE_RECEIPT_POST  not able to post invoices

    Hi all,
    I am trying to create invoices using BAPI_ACC_INVOICE_RECEIPT_POST this BAPI. when i executed this BAPI it says the Document successfully created and it is giving the document number also. when check the document number in data base it is not exists in the database
    after calling this BAPI, I am calling BAPI_TRANSACTION_COMMIT also. it is not showing any documents in the database.
    if any body knows the solution, please reply to  this thread..
    Regards,
    Venkata

    Hi,
    Please find my code below. Let me know if you need more information.
    headerdata-comp_code = '1025'.
    headerdata-FISC_YEAR = '2008'.
    headerdata-doc_date  = '20080602'.
    headerdata-PSTNG_DATE = '20080602'.
    headerdata-FIS_PERIOD = '06'.
    headerdata-doc_type   = 'KR'.
    headerdata-USERNAME   = 'VE7'.
    wa_ACCOUNTPAYABLE-ITEMNO_ACC = '0000000010'.
    wa_ACCOUNTPAYABLE-VENDOR_NO  = 'IVP5360'.
    wa_ACCOUNTPAYABLE-GL_ACCOUNT = '0000211060'.
    wa_ACCOUNTPAYABLE-PMNTTRMS   = 'Z062'.
    append wa_ACCOUNTPAYABLE to ACCOUNTPAYABLE.
    wa_ACCOUNTGL-ITEMNO_ACC  = '0000000020'.
    wa_ACCOUNTGL-GL_ACCOUNT  = '0000114240'.
    wa_ACCOUNTGL-COMP_CODE   = '1025'.
    wa_ACCOUNTGL-PSTNG_DATE  = '20080602'.
    wa_ACCOUNTGL-doc_type    = 'KR'.
    wa_ACCOUNTGL-FISC_YEAR   = '2008'.
    append wa_ACCOUNTGL to ACCOUNTGL.
    wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000010'.
    wa_CURRENCYAMOUNT-amt_base = '1031'.
    wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
    append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
    clear wa_CURRENCYAMOUNT.
    wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000020'.
    wa_CURRENCYAMOUNT-amt_base = '1031'.
    wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
    append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
    CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
      EXPORTING
        DOCUMENTHEADER       = headerdata
      CUSTOMERCPD          =
    IMPORTING
      OBJ_TYPE             =
      OBJ_KEY              =
      OBJ_SYS              =
      TABLES
        ACCOUNTPAYABLE       = ACCOUNTPAYABLE
        ACCOUNTGL            = ACCOUNTGL
        ACCOUNTTAX           = ACCOUNTTAX
        CURRENCYAMOUNT       = CURRENCYAMOUNT
      PURCHASEORDER        =
      PURCHASEAMOUNT       =
        RETURN               =   RETURN
      CRITERIA             =
      VALUEFIELD           =
      EXTENSION1           =
             commit work.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'.

  • About MM-SUS base Goods receipt create invoice

    Dear all,
       We used MM-SUS,Now we want  base Goods receipt create invoice at SUS platform,Who can provide any idea or any config document?
    Thank you.

    please refer to the thread--->
    Re: MM-SUS scenario mapping of the Goodsreceipt for inbound delivery @SUS
    all the details of the report are discussed here along with the required additional configurations.

  • Create Goods Receipt PO from  AP Reserve Invoice (bug?)

    Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice".
    In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible to read the contents of this field with the UI-API, because <i>base type</i> is a combo box and only valid values can be returned.
    Is there a workaround to get a none valid value from a combobox?

    Hi Jurgen,
    It looks like it is a bug and that the same bug exists on the sales side of the DI API. Herewith a post that you can read about it.
    /thread/48329 [original link is broken]
    Hope it helps,
    Adele

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • Problems in creating Invoice using BAPI

    Hello Friends,
    I am using a BAPI BAPI_BILLINGDOC_CREATEMULTIPLE to create invoice from a sales order, but i am not able to change the payer value.
    The payer is by default taken from Sales-Order, even if i change it in Payer value passed to BAPI.
    Please suggest me a solution.
    Sandeep.

    To answer your question I would need to know what stack trace comes back with.
    I also need to know the set up.. Is the applet running on you personal machine and what operating system are you using.
    Lee

Maybe you are looking for

  • How can tear down the growing barriers to education using iphone?

    Recently, I have had a growing feeling that the avialability, meaningfulness, and ease of use of educational app on the iphone has gotten worse not better.  In fact it feels like there are a growing number of specific barriers to education using the

  • Incorrect syntax near the keyword 'AND'.

    Hi Friends, I have a requirement from SAP BI to SQL database. When I am triggering data from SAP BI, it is successfully sent to XI. In XI, it is also in success. But when I check in Message monitoring, I faced a error. Message processing failed. Caus

  • How can I reinstall my library to mew computer

    How do I get my itunes library reinstalled back to my computer.  My computer crashed and I had to do a system recovery, so I lost all my data.  Are my library files for my library stored with itunes?  If they are how do I reload them to my library fi

  • Adobe Reader unable to open pdf files

    when pdf files are double-clicked, nothing happens from Adobe Reader, pdf files are not available

  • Some text appears in cyrillic

    I know this is an apple font conflict since it only occurs in Mail and TextEdit. If I receive an email, it looks fine. When I reply and then the original person replies, quoted text from SENDER appears in cyrillic. All my quoted emails appear fine. T