BAPI for park invoice

I would lik to create a park invoice in my program, just simulation the t-code "MIR7", so, i found that there have a BAPI "BAPI_INCOMINGINVOICE_PARK" seems to be fulfill my requirement, after call the BAPI in my program, the result is not as same as use MRI7. here is my code, is it any problem or the BAPI is not used for this purpose. thanks!
   select * from ekko
      where ebeln = p_ebeln.
      wa_inv_header-doc_type = 'RE'.
      wa_inv_header-doc_date = sy-datum.
      wa_inv_header-pstng_date = sy-datum.
      wa_inv_header-ref_doc_no = ekko-ebeln.
      wa_inv_header-comp_code = ekko-bukrs.
      wa_inv_header-currency = ekko-waers.
      wa_inv_header-del_costs_taxc = 'P0'.
    endselect.
    select * from ekpo
      where ebeln = p_ebeln.
      select single * from mseg where ebeln = ekpo-ebeln and
                               ebelp = ekpo-ebelp.
      gt_inv_item-invoice_doc_item = '1'.
      gt_inv_item-REF_DOC = mseg-mblnr.
      gt_inv_item-REF_DOC_YEAR = mseg-mjahr.
      gt_inv_item-REF_DOC_IT = mseg-zeile.
      gt_inv_item-po_number = ekpo-ebeln.
      gt_inv_item-po_item   = ekpo-ebelp.
      gt_inv_item-tax_code = ekpo-mwskz.
      gt_inv_item-item_amount = ekpo-netwr.
      gt_inv_item-quantity = ekpo-menge.
      gt_inv_item-po_unit = ekpo-meins.
      append gt_inv_item.
      gt_afs_inv_item-invoice_doc_item = 1.
      gt_afs_inv_item-po_number = ekpo-ebeln.
      gt_afs_inv_item-po_item   = ekpo-ebelp.
      gt_afs_inv_item-sched_line = '1'.
      gt_afs_inv_item-afs_flag = 'X'.
      append gt_afs_inv_item.
    endselect.
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
      EXPORTING
        HEADERDATA                = wa_inv_header
      IMPORTING
        INVOICEDOCNUMBER          = wa_inv_no
      TABLES
        ITEMDATA                  = gt_inv_item
        /AFS/ITEMDATA             = gt_afs_inv_item
        RETURN                    = gt_ret

Hi Portfolio,
I guess You are not passing ISO code Currency to BAPI- HEADER.
I that You passing or not.
regards,
sg

Similar Messages

  • BAPI for Vendor invoice Park FV60

    Hi All,
       Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
       BAPI_INCOMINGINVOICE_PARK  - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
       GLaccounts data.
      and i tryed for another  BAPI_ACC_DOCUMENT_POST   but is not working its not related to my requiremment it seems...
    Can any one know better about the process to do this.. pleas let me know..?
      Can anybody did the same, if ues please share with me... its very urgent it need it...
    Thanks,

    use bapi: BAPI_INCOMINGINVOICE_PARK

  • BAPI for FI invoice parking

    Hi,
    Is there a BAPI for FI invoice parking?
    Regards,
    Arun Mohan

    Hello Arun,
    U can try with these:
    ACC4                           FI/CO: BAPIs for UPDATE
    BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_RECEIPT_POST  Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
    ACC6                           Accounting: BAPIs for UPDATE II
    BAPI_ACC_INVOICE_REV_CHECK     Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_REV_POST      Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
    MRM_BAPI                       Invoice Verification BAPIs
    BAPI_INCOMINGINVOICE_CANCEL    Invoice Verification: reverse invoice
    BAPI_INCOMINGINVOICE_CREATE    Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_GETDETAIL Invoice Verification: display invoice
    BAPI_INCOMINGINVOICE_GETLIST   Invoice Verification: list invoices
    BAPI_INCOMINGINVOICE_PARK      Invoice Verification: Park Invoice
    BAPI_INCOMINGINVOICE_RELEASE   Invoice Verification: release invoice
    BAPI_INCOMINGINVOICE_SAVE      Invoice Verification: Flag Invoice for Background Processing
    If useful reward.
    Vasanth

  • BAPI For Parking FI Document

    Dear All
    Is there any BAPI or Function Module available for parking the document in FI.
    regards
    Amit Hiremath

    Hi Armit,
    have a look to this thread:
    Re: BAPI for Parking non-PO Invoices?
    regards Andreas

  • Business object type for parked invoices

    Hi,
    We are using documentum to store documents that have been attached to business object types in SAP. The business object types are configured in transaction OAC3 to point to a pre-configured content repository.
    Having this configuration allows the object type to use the "services for objects" option, enabling it to store attachments.
    The business object types for invoices have been configured and we are able to store attachments. However this does not seem to work for "Parked invoices". The configuration in the "services for objects" component is not there and the feature to store the attachment is disabled.
    As the configuration needs to be done for all object types that need to be able to store attachments, maybe someone here can indicate what the object type is for parked invoices. Alternatively, maybe there is a way to look up the various business object types.
    Any help you can provide is appreciated.
    Thanks.
    Kind Regards,
    Giwan

    Hi ,
    Thank You for your reply.
    I created inquiry . it takes BUS2031.But BUS2031 is used for quotation.But that inquiry is open in VA12(Change Inquiry) Transaction,not open in VA22(Change Quotation).
    Is there any setting for BOR object types to Document Types.
    Please give me a reply as early as possible.It's very urgent.
    Thanks,
    Saritha

  • Std workflow for Parked Invoices?

    hi guys
    are there any std workflows for parked invoices? Our requirement is that once the Finance clerk creates a customer or vendor invoice he should only be able to park it and not post the invoice. Once the invoice is parked then the system should trigger a workflow and a notification neeeds to be sent to the approver to approve the invoice. Once it is done the finance clerk will post the invoice.
    I switched on the event trace and did a trace on while creating a parked invoice. No event is triggered when the document is parked. If i post the document the event POSTED of object FIPP is triggerd. So since we dont have any std events raised when a document is parked is it possible to have a workflow?

    Hi,
    The event FIPP.CREATED is raise via the customizing (SPRO)
    Financial Accounting -> Financial Accounting global setting -> document -> document parking -> create workflow variant for parking documents.
                                      Assign co.code to a workflow variant for parking documents.
    Have a look at ws10000051.
    Regards,
    Ronit.

  • WF for parked invoices

    I need to create a workflow for parked invoices and I have a couple of questions.
    (1) I am copying template WS20001003, but at the end of the WF I want someone to post the invoice, however this WF doent allow you to do that, is there a SAP standard way of doing this or do I need to create my own subtype and method?
    (2) another requirement I have is for the AP clerk to choose who to send the WF too, and that perosn can then reject the WF and send it back to the AP clerk, who then will resend it to someone else.  I can figure out how to let the AP clerk choose who to send the WF to but how do I allow it to get passed back?

    Hi,
    I think your first requirement can be achieved thru authorization. Give only the concerned person the authorization to post the document.
    Regards,
    Raj

  • Bapi for parking documents

    Hello!
    Does anyone know a BAPI for parking documents that works ok? (in spanish we call "documentos apartados")
    I have read about it on the internet and it seems that there is no bapi for it.
    I have found bapi for preliminars.... but nothing about parking.
    Thanks you in advance!
    Sabrina.

    Hi,
    If I understand your requirement correctly, you can use BAPI 'BAPI_ACC_GL_POSTING_POST' to park the FI documents. Fill the required interface parameters and call this BAPI.
    Let me know if the requirement is different.
    Regards
    Gangadhar

  • Need BAPI for Parking G/L Account

    Hi All,
    I need BAPI for Parking G/L account document.
    Please let me know.
    Regards
    R.Ragu
    Useful Answers will be rewarded.

    Hi Ragu.
    Try these:
    BAPI_GL_ACC_EXISTENCECHECK
    BAPI_GL_ACC_GETDETAIL
    BAPI_GL_ACC_GETLIST
    For further details GoTo->Transaction BAPI->Alphabetical->General Ledger Account.
    Good Luck & Regards
    Harsh
    Edited by: Harsh Dave on Jul 11, 2008 10:14 AM

  • FM/BAPI for Parking a document ( FBV1 )

    Hi Experts,
    We have a requirement where we need to POST a document & then Park It.
    We are able to post a document using "BAPI_ACC_DOCUMENT_POST ".
    But we are unable to find a FM/BAPI for Parking a document.
    We cannot use BDC as the document type is not fixed. The transaction has different screens for each document type.
    Any pointers to FM/BAPI or any other alternative solution to Park a document.
    Thanks,
    Best regards,
    Prashant

    Hi Prashant,
       Refer the below link it will help u.
    https://forums.sdn.sap.com/click.jspa?searchID=11002520&messageID=3632073
    https://forums.sdn.sap.com/click.jspa?searchID=11002520&messageID=3475534
    Regards
    Kiran Sure

  • Required BAPI for Vendor Invoice park

    Hi,
    I need to create vendor invoice upload program which support the withholding functionlity also.
    Normally for vendor invoice parking we use FV60 transaction code. is there any standared BAPI which does vendor invoice park.
    please let me know.
    With Regards!
    kannan.ja

    use bapi: BAPI_INCOMINGINVOICE_PARK

  • BAPI FOR PARKING FI INVOICE

    All,
    Is there any BAPI  to park FI docuemnt in SAP nit MIRO ?
    Best Rgds
    SumaMani

    Hi ,
    Check BAPI_INCOMINGINVOICE_PARK .
    Hope this helps
    SJ

  • BAPI for Vendor Invoice

    Hi all:
       we are working on MM invoice posting process , and we use BAPI_INCOMINGINVOICE_PARK to create parked invoice , and we also find way to post the parked invoce (PreliminaryPost method of BO BUS2081) , but before post , we may change the data of parked invoice , it could be done in R/3 , but we could not find a BAPI /Function Module for it , anyone could help us on it ? A BAPI or Function module which could change the parked invoice .
    Thank you very much

    Hi,
    Try the following BAPI's,
    WSII_O_BAPI_IINV_PARK, WSII_BADI_BAPI_IINV_PARK_AFTER and WSII_BADI_BAPI_IINV_PARK_BEFOR.
    Reward if helpful.
    Chandrasekhar K

  • BAPI for Parking

    HI friends,
    Is there any BAPI through which we can PARK the documents (receivables, payables and general ledger)
    BAPI_ACC_DOCUMENT_POST  posts the documents for receivables, payables and general ledger documents
    Instead of Posting can we do parking. If so how can we ?
    Thanks in advance.
    With regards,
    Murthy

    Hi,
       Check below link.
    Re: park invoice for F-43
    Thanks,
    Asit Purbey.

  • Batch Input for Parked Invoice (FB60) - Lag in creation ???

    Hi folks,
    I'm using a batch input on FB60 so as to generate a parked invoice. Furthermore, I'm calling it in complex posting 'cause sometimes it implies posting on asset (posting keys 70 and 75).
    The point is that the batch input works fine, but sometimes in the exact same situtation, with non rationnal explanation.
    I'm using this :
      sl_bdcoption-dismode = 'N'.
      sl_bdcoption-racommit = 'X'.
      sl_bdcoption-nobinpt = 'X'.
      sl_bdcoption-updmode = 'L'.    " or A or S, still the same
      CALL TRANSACTION 'FB60' USING tl_bdcdata
                              MESSAGES INTO tl_messtab
                              OPTIONS FROM sl_bdcoption.
      COMMIT WORK AND WAIT.
    so that I can catch the number of my created invoice from the message table. Indeed I need this to update BKPF which has some custom fields (on the Basis Data tab). All the transactional controls on my custom fields are deactivated through an Export to Memory and I know how the screen displays with the option sl_bdcoption-nobinpt = 'X', both set before the call.
    First I thought my bug was coming from the Update Mode in structure sl_bdcoption, but I've tried to set it to A, S or even L. I've tried many options from that structure, but the bug remains random...
    How can I be sure that the call is ended and that my new invoice is created ?
    Any oher way I can do this ? Any BAPI I haven't found ?
    Thx in advance for your help,
    NH

    Thx, I'll try the E mode. I hope it will solve that issue, it's driving me mad
    Actually, even if the context I'm using the Batch Input seems complex, due to the complex posting, the invoice I generate in that particular program is quite simple.
    I was hoping that someone has already saw that table half empty
    Do you think it may come from the exit in FI used to add some custom fields on the 'Basis Data' tab ?
    NH

Maybe you are looking for

  • Mini-Dvi to HDMI or S-video, also sound issues

    Hello, I want to connect my iMac with a Mini-Dvi port to a TV and want to hear the sound from the TV. What adapters will i need to hook it up to a HDMI port, and will this connection also produce sound on the TV? If that can't be done can I use a s-v

  • Using a report layout in background mode

    Is is possible to apply a saved report layout like you apply to the alv grid to a csv file run in background mode?

  • How do I "Save As" a file?

    Scenario: I used Barcode Scanner to scan the barcode for some software (an Android .apk) file. It offered me: - Email to someone - SMS to someone - Open in browser So I did the third. It then asked me: "Native browser or Firefox?". The native browser

  • NCS and non US keyboard layout - Guest - Email ID and @

    Problem: The problem is that we cannot email the Guest Account Details to the guest, because the popup where we fill in the email of the guest - Email ID - Does not recognise the @ when using non US Keyboard layout. When i use my local keyboard layou

  • AFRC values not available completely

    Hi Experts             In the table  AFRC, RUECK , RMZHL values are not available completely, whats the reason, and how to get these values from the tables except AFRU based on the AUFNR value. Thanks in advance. Regards Rajaram