BAPI for Vendor Non-PO Invoice processed through MIR7 Transaction

Hi All,
I have a requirement where i will get data from flat file. Using this data Vendor Non-PO Invoice
will be processed through MIR7 transaction with Multiple line items - Invoice Upload Parking the document for vendor non-po invoices.
The data is in below format in flat file:
Header fields in 1st line
Dr. Key related fields in 2nd line
Cr. Key related fields in 3rd line
Header fields in 4th line
Dr. Key related fields in 5th line
Cr. Key related fields in 6th line
etc .... in flat file
In these main fields coming in from flat file are: comp.code, doc.type, vendor no,
Debit/Credit indicatorSHKZG, G/L a/c no, inv/post dates etc..
My issues:
1. I am planning to use F.M BAPI_INCOMINGINVOICE_PARK is it the correct F.M!
But Here PO number seems to be mandatory for this F.M but it is not available as per our flat file,
if so can anybody suggest a BAPI for Vendor Non-PO Invoice parking for MIR7 transaction!
2. What are the parameters need to be used for from above flat file data especially for 2 line itemshttp://Dr./Cr. data other than header data. So as per Header & 2 Line items http://Dr. & Cr. Data which parameters will be updated with which data in above flat file! can anybody clarify!
3. Also in flat file WorkflowNo is available in which parameter this fields will need to be filled & also by doing this will it trigger workflow automatically!
Can anybody clarify about above points!
Thanks in advance.
Thanks,
Deep.

Hello Deep,
I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
data: headerdata like bapi_incinv_create_header value is initial,
        table_item type table of bapi_incinv_create_item,
        gl_account like bapi_incinv_create_gl_account,
        table_gl type table of bapi_incinv_create_gl_account.
* fill headerdata and table_gl, leaving table_item empty
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
      HEADERDATA                = HEADERDATA
*   ADDRESSDATA               =
    IMPORTING
      INVOICEDOCNUMBER          = lv_docnr
      FISCALYEAR                = lv_year
    TABLES
      ITEMDATA                  = table_item
*      ACCOUNTINGDATA            = table_acc
      GLACCOUNTDATA             = table_gl
*   MATERIALDATA              =
*      TAXDATA                   = table_tax
*   WITHTAXDATA               =
*   VENDORITEMSPLITDATA       =
      RETURN                    = lt_return.
This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty.

Similar Messages

  • Bapi for vendor non po invoice parking

    Hello,
    We have a requirement to Create a Non PO Invoice and also parking invoice.
    I could able to create Vendor Invoice (Non PO) using BAPI: BAPI_ACC_DOCUMENT_POST.
    But i am unable to find a BAPI for Parking the Vendor Invoice (Non PO). When i try to use BDC on FB01 transaction for creating Parking Vendor Invoice, it is throwing an error that "Parking Invoice creation is not allowed in batch input".
    Can anybody help me for creating Parking Invoice (Non PO).
    Note: There is a BAPI: BAPI_INCOMINGINVOICE_PARK, which wont support for Non PO Invoice creation. It is PO based.
    Thanks in Advance for your support.
    Thanks & Regards,
    Sreedhar.

    Hi,
    Please see the given link, hope It will help you.
    Re: BAPI to Park the Invoice Document
    Regards,
    Shamma

  • 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

  • Function Module/BAPI for posting of Parked Invoice/Documnet

    Dear all,
    Please provide me.
    Function Module/BAPI for posting of Parked Invoice/Documnet
    Regards
    Ricky

    Hi Ricky,
    What about MR_POST_PP_INVOICE?
    In my current project, though, we had to develop a function module for this.
    Regards,
    Eli

  • BAPI for VENDOR

    Hi,
    I am designing my custom screen for Vendor Create and Vendor Update. ( In WEB DYNPRO).
    I am looking for a BAPI for Vendor Create and Vedor Update.
    I have seen 2 BAPI's :  BAPI_VENDOR_CHANGE,
                                      BAPI_VENDOR_CREATE.
    But, these BAPI's are directly opening XK01 and XK02 transactions insted of taking the data as input paramaters.
    Can you please tell me any other BAPI's which takes the data as input for update or create. (VENDOR).
    Regards
    Sandeep Reddy

    Hi
    I think there are BAPI via dialog only, so they call the transaction, but u can create a your rfc fm creates a vendor by bdc and then call it by your webdyndro
    Max

  • Want to change the BSEG-SGTXT while process through the transaction:FF_5

    Hi,
    I want to change the value in BSEG-SGTXT during the process through the transaction:FF_5.
    Can any one suggest any BADI or User Exit to update the SGTXT.
    Regards,
    Hema T

    Hi
    If your text is going to remain content based certain transaction types or text in the note to payee field then you can use the below functionality.
    Advantage no ABAP help required.
    Define Search String :
    Strg Name : Text
    Strng : Test (say if you want to find the word "test" in the incoming record. You refer the help doc on Search string for combinations)
    Mapping : (keep it blank)
    In Search string use :
    1)
    Company code :
    House bank id:
    Account id:
    Int algthm :  (if you are using any)
    Strg name: Check
    Target field: BDC Field name1 BSEG-SGTXT
    2)
    Company code :
    House bank id:
    Account id:
    Int algthm : (if you are using any)
    Strg name: Text
    Target field: BDC Field value1 "text that you want to enter in the Bseg- sgtxt field"
    3)
    Company code :
    House bank id:
    Account id:
    Int algthm : (if you are using any)
    Strg name: Check
    Target field: BDC Acct type1 0
    0: First line, posting area 1
    1: First line, posting area 2
    2: Second line, posting area 1
    3: Second line, posting area 2
    Regards
    Nikhil

  • 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

  • Inbound Idoc type for posting Non-PO Invoice

    Hi,
    I am looking for an inbound Idoc type to post Non-PO Invoice.  The Idoc types INVOIC01 and INVOIC02 helps me to post the invoice with reference to PO.  But I am looking for the Idoc type to post the invoices without reference to PO i.e., For example to post the transaction FB60 (Enter vendor invoice without ref to purchase order).
    with regards,
    suresh

    Hello Deep,
    I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
    data: headerdata like bapi_incinv_create_header value is initial,
            table_item type table of bapi_incinv_create_item,
            gl_account like bapi_incinv_create_gl_account,
            table_gl type table of bapi_incinv_create_gl_account.
    * fill headerdata and table_gl, leaving table_item empty
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
        EXPORTING
          HEADERDATA                = HEADERDATA
    *   ADDRESSDATA               =
        IMPORTING
          INVOICEDOCNUMBER          = lv_docnr
          FISCALYEAR                = lv_year
        TABLES
          ITEMDATA                  = table_item
    *      ACCOUNTINGDATA            = table_acc
          GLACCOUNTDATA             = table_gl
    *   MATERIALDATA              =
    *      TAXDATA                   = table_tax
    *   WITHTAXDATA               =
    *   VENDORITEMSPLITDATA       =
          RETURN                    = lt_return.
    This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty.

  • Bapi for vendor payment with details of tunover and blocked payment

    Dear all
    I want to know whether any BAPI available for the details of vendor payment made and the open item with  blocked payment (with the reason for the blocked payment) and the turnover of the vendor for a particular fiscal year...................
    The client want to get the output as mentioned below.
    e.g...
    PO no : 45629810
    Inv.No : 73409 (Vendor's Invoice no.)
    Payment : Paid amt with date and details
    Payment : Outstanding (Due and Over Due with no.of days)
    Blocked Payment : Amt with the reason for blocking the payment.
    Turn Over : Total turn over for that fiscal year.
    This is an urgent req. from my client,i will be very grateful if any one can  help me over this issue ..............
    Appreciate for any relevant answers and suggestion ...........
    I am in ECC 6.0
    Regards
    Praveen

    Hello Raj,
    Unfortunately there is no BAPI for payment detals and other company code data. The only possibility is via direct input (external data transfer).
    Please have a look at the following Easy-Access-path:
    SAP Menu
    -> Accounting
      -> Bank Applications
       -> Loans Management
        -> Environment
         -> External Data Transfer
    Within this menu entry you find diverse functions. Please start the function KCLJ to transfer data. Before you can do this you need to
    prepare the transfer by creating your own transfer structure and so on. You can get further information on what to do here by navigating to
    "Help   > Application help" within transaction KCLJ. From here you get to the right area of SAP library.
    Thanks Amber

  • BAPI for J1IJ depot excise invoice required

    Hi All,
    Please let me know the BAPI to create depot excise invoice with J1IJ from a delivery.This require to automate the process.
    Please let me know the parameters also.
    Thanks'
    Mukul Kumar

    Hi Mukul,
    CIN does not support any BAPIs for goods receipts and excise updates.
    However, CIN uses MB_MIGO_BADI definition and CIN_PLUG_IN_TO_MIGO implementation. You can create multiple implementations of this BAdI. You can use the same BAdI for single step capture and post of excise invoice in MIGO.
    Regards,
    Rajasree..

  • BAPI for Vendor master?

    Hi Folks,
    1.Is there any BAPI available for Vendor Master?
    2.In LSMW if I am having a flat file of 4 records and I am updating only one of them which one will get uploaded? All the 4 or only the one which I had updated?
    I had never worked on LSWM,so kindly let me know.
    3.Do anyone here have a bdc for XK01?
    K.Kiran.
    Message was edited by:
            Kiran K

    Hi
    Go to trxn BAPI, go by Alphabetical tab, check the BAPIs available for Vendor.
    If you have 4 records in the file, all 4 will be processed (doesnt mean they will be updated, depends if you have changed any data) even if you update one in the file.
    So, for a file of 4 records (with only 1 updated rrecord)
    Processed records: 4
    Updated records: 1
    Regards,
    Raj

  • Taxability of Vendor non-PO Invoices

    Hi All,
    We are using tcode FB01 and/or FB60 to post non-PO invoices. The invoice will accrue taxes ifthe expense account line item is entered first and then the offsetting vendor line is entered.  If the vendor line item is entered first and expense line item is entered second then the tax will not accrue for the invoice. The data entered for the document is same in both cases, the only difference is the order of which line item is posted first.
    Has anyone experienced this type of issue or has any idea what may be causing this. Should not the result be same irrespective which line is entered first as data for expense and vendor line items is exactly same in both cases. We are using an external SAP add-on for taxes. 

    Hi ,
    Please check in integration may be you have defined condition which says first line should be expense and only then tax will deduct . when you post  invoice on which tax is not deducting please take your ABAPer help and edbugg so that you can find out exact point and cause of error .
    many Thank

  • BAPIs for Vendor Balances

    Hi!
    I need a BAPI for extract the Vendor Balances and other for load the Vendor Balances.
    Do they exist?

    try to search in Se37
    BAPI_AP_ACC_GETBALANCEDITEMS   Vendor Account Clearing Transactions in a given Period
    BAPI_AP_ACC_GETCURRENTBALANCE  Vendor Account Closing Balance in Current Fiscal Year
    BAPI_AP_ACC_GETKEYDATEBALANCE  Vendor Account Balance at Key Date
    BAPI_AP_ACC_GETPERIODBALANCES  Posting Period Balances per Vendor Account in Current Fiscal Year
    regards
    Prabhu

  • BAPI for Vendor Master Creation

    Hi,
    I've seen alot of messages regarding Vendor Master Creation but I didnt find any clear answer.
    What Bapi can we use for Vendor Master Creation?
    I saw the BAPI_VENDOR_CREATE (for online) but there are no parameters given.
    Pls help.
    Thanks!

    Hi Donna.
    I would like to suggest my opinion,
    1. Go To Transaction BAPI.
    2. In the Alphabetical (Window).
    3. Vendor.
    4. Click the Node, Go To Create.
    5. Click the Create Node.
    6. Vendor and return will be seen.
    7. Check the dictionary references for both Vendor Node and Return node.
    8. Fields of the structures will be observed.
    Hope this works out well.
    Good Luck & Regards.
    Harsh Dave

  • BAPI for vendor credit memo posting by FB65

    Hi guys,
    I need a BAPI to post vendor credit note by FB65.
    I am trying BAPI_ACC_DOCUMENT_POST, but I cannot find the fields to fill with the information we input at FB65 Payment tab, such as: Inv. Ref (document, year and item ).
    Could anybody help me?
    Cheers,
    Karla.

    HI ,
    Please Find below the relevant code to Fill the Fields while calling the BAPI for FB65
    step1.
    First of all fill the wa_bapiheader.
    *header data
        wa_bapiheader-username = sy-uname.
        wa_bapiheader-comp_code = wa_final-bukrs.
        wa_bapiheader-doc_date = sy-datum.
        wa_bapiheader-pstng_date = sy-datum.
        wa_bapiheader-doc_type = c_blart.
        wa_bapiheader-ref_doc_no = 'GROWPAY'.   "Can be the refrence text
        w_waers = wa_final-waers.
    Step2.
    Fill this internal table. i_currencyamount  and i_accountgl.
    i_final will be the Internal table conating all the Relevant data for Posting the Document.
    Loop at  i_final into wa_final.
    ADD 1 TO w_acc_lno.
        wa_accountgl-itemno_acc = w_acc_lno.        
        wa_accountgl-gl_account = wa_final-saknr.    "G/L Account
        wa_accountgl-plant = wa_final-werks.             " Plant
        wa_accountgl-costcenter = wa_final-kostl.       " Cost Center
        wa_accountgl-cond_type = wa_final-knumv.    "From EKKO for the Purchase Order
        wa_accountgl-po_number = wa_final-ebeln.    " Purchase Order no
        wa_accountgl-po_item = wa_final-ebelp.         " Line item in PO
        APPEND wa_accountgl TO i_accountgl.
        CLEAR : wa_accountgl.
        wa_currencyamount-itemno_acc = w_acc_lno.
        wa_currencyamount-currency = wa_final-waers.
        wa_currencyamount-amt_doccur = wa_final-kbetr.
        w_sum = w_sum + wa_final-kbetr.
        APPEND wa_currencyamount TO i_currencyamount.     " G/L line item
        CLEAR : wa_currencyamount.
    *item  data
          wa_accountpayable-itemno_acc = 1.
          wa_accountpayable-vendor_no = wa_final-lifnr.
          APPEND wa_accountpayable TO i_accountpayable.
    *Amount for the vendor line item.
          CLEAR : wa_currencyamount.
          wa_currencyamount-itemno_acc = 1.
          wa_currencyamount-currency = w_waers.
          wa_currencyamount-amt_doccur = 0 - w_sum.
          INSERT  wa_currencyamount INTO i_currencyamount INDEX 1.
    Step 3.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
              EXPORTING
                documentheader = wa_bapiheader
              TABLES
                accountgl           = i_accountgl
                currencyamount = i_currencyamount
                accountpayable = i_accountpayable
                return                 = i_result_out.
    i_result_out will conatin the messages returned by the BAPI.
        based on i_resuklt_out that is if the posting is Successful....call commit
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                     Wait = X.
    Endloop.
    I hope the above code may solve your problem....Thanks
    Regards ,
    Sonu Krishna.
    Edited by: Sonu Krishna PV on Aug 6, 2009 11:03 AM

Maybe you are looking for

  • No internet with Thunderbolt to Firewire adapter

    I bought a Thunderbolt to Firewire adapter, and i used it to connect a Iomega drive I previously used as USB. When running OSX, no problem. But when i boot the computer under Windows 7 (not SP1), if the adapter is connected, then the computer says th

  • Vol is low even though adj all the way up.

    I have set up and adjusted vol high and still is low how can I correct this problem ?

  • How do I get tbird to open in full window screen, ie maximize

    I asked this before and deleted message because the solution worked. However, the solution only worked for that one day. I reopened today and the window size is again at 'normal' and I do not remember how to fix this so tbird is at FULL screen on my

  • Several hour delay in receiving emails sent from mail?

    for 3 years i've had a pop email account with yahoo and it has worked flawlessly with my apple mail program until a few days ago when people started telling me that the emails i sent took several hours to reach them. so, using mail, i sent myself a t

  • ITunes indicates updates available but none listed

    iTunes indicates there are new updates available (currently lists 5) but when I click on the bottom right icon, I am then told there are no apps to download. Why does it indicate there are apps to download ? and how do I fix ? I can successfully down