Can we use BAPI BAPI_ACC_DOCUMENT_POST to upload the vendor invoice?

Hi,
Can anybody tell me, can we use bapi BAPI_ACC_DOCUMENT_POST to upload the vender invoice?
If yes, then which parameters we have to pass, and if no, then which is the other BAPI which is used for
this purpose?
Regards,
Mrunal

Hi Mrunal,
Yes you can use BAPI_ACC_DOCUMENT_POST to upload vendor invoices.
Parameters which are required to be passed are :
Import tab :
DOCUMENTHEADER: Mandatory fields for this specififed in documentation for this.
Table tab:
ACCOUNTGL: Enteries aganist GL account will be populated in this(check documentation for mandatory fields)
ACCOUNTPAYABLE: Enteries aganist vendors will be populated in this(check documentation for mandatory fields)
CURRENCYAMOUNT: in this currency amount aganist GL and vendor entries will specified.
ITEMNO_ACC field will act as identifier as to amount belongs to which GL or vendor enteries.
This much parameter are required to post vendor invoices.
Regards,
Brajvir

Similar Messages

  • Using bapi how to upload the data into sap database?

    hi dear all,
                  im facing problem with bapi ? let me edcuate on bapi ..
    i will be  waiting for reply.
    my e-id :[email protected]
    thanks&regards
    shiva.

    Hi
    A BAPI is a method of a SAP Business Object. BAPI enables SAP and third party applications to interact and integrate
    with each other at the Business Object / Process level.
    Check this link to know more about BAPI.
    http://www.sapgenie.com/abap/bapi/example.htm
    http://sappoint.com/abap/
    Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a
    typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional.
    BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form
    of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The
    transaction is then started using this internal table as the input and executed in the background.
    In ‘Call Transaction’, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling.
    It can also be used for real-time interfaces and custom error handling & logging features. .
    To know more about BDC,
    check the link.
    http://sappoint.com/abap/
    Main differences are...
    In case of bdc data transfer takes place from flat file into sap system ie the file existing in sap system to sap sytem
    where is bapi's r remotly enabled function modules which are assigned to some business objects n used to transfer the data between different business partners who are using different systems other than sap.
    not only that...
    when you plan to upgrade your system version then bdc willnot support those upgradations where as bapi's will support.
    http://www.sap-img.com/abap/ale-bapi.htm
    SAP BAPI
    BAPI STEPS
    Hope this helps.
    ashish

  • Block the Vendor Invoice & Vendor Invoice Payment

    Hi Experts,
    I need more information about Block the Vendor Invoice & Vendor Invoice Payment.
    and laso is there is any standard report is there to see the blocked invoices
    Thanks

    Hi Mazid,
    In F110
    On the Status tab, choose the Proposal (change) button.
    Select All accounting clerks and choose Enter. The list of vendors and amounts to be paid displays.
    To review invoices for a particular vendor, double-click that vendor's line. A list of invoices displays.
    To block a particular invoice for the payment run, put the cursor on that invoice and choose the Change button.
    Enter the payment block indicator and choose   Continue.
    To unblock a particular invoice for the payment run, put the cursor on that invoice and select the Change button.
    Delete the payment block indicator and choose   Continue.
    Try MRBR for to Review and Release Blocked Invoices, you can also use transaction FBL1N to list the vendor open items and change the payment block within the transaction
    Assign points if useful
    Regards
    Genie

  • Account document post using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am using the BAPI BAPI_ACC_DOCUMENT_POST to post account doument. It is working fine.
    Here I need to pass contrac number to item.
    We have one parameter REALESTATE to pass cotract number.
    Because it is a realestate, it taking contract type as 9 by default.
    But I need to pass other contract number of diffrent type.
    How we can pass the other than realestate contract number using BAPI BAPI_ACC_DOCUMENT_POST ?
    Thanks in advance.
    Sadasiva.

    I am already did the same thing, it is creating document but it is not adding the contract number to item.
    I am also filling the parameter REALESTATE with contract number, it is adding properly and contract type is taking as 9(means realestate).
    But I need to add other contract types also, for that I tried with other parameter what you mentioned.
    Thank you for your reply.
    Sadasiva.
    Edited by: Sadasiva Rao Athota on Dec 9, 2008 2:38 PM

  • F-04 (Vendor Clearing using BAPI-BAPI_ACC_DOCUMENT_POST)

    Hello all,
    i am using a BAPI - BAPI_ACC_DOCUMENT_POST for posting and clearing vendor payments but problem is that i m getting error that 'Account 3252995 in company code 5219 cannot be directly posted to', can anyone please help me?
    Regards saurabh.

    Hi Saurabh,
    I´m looking for a BAPI to clear Accounts Payable open itens (as F-30, F-28 or FB05) and I saw in your previous message that it´s possible to do this using BAPI BAPI_ACC_DOCUMENT_POST, please, could you give a clue to sove this issue? Any additional information would be well accept.
    Best Regards,
    Ivan Spellmeier

  • Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

    Hi All,
    I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
    Any pointers to this would be highly appreciated.
    Regards,
    Chaitanya

    Hi,
    put a  break in subroutine FORM fill_acchd
    and execute the bapi.
    Here you have:
      CLEAR gs_acchd.
      MOVE-CORRESPONDING gs_aw TO gs_acchd.
      gs_acchd-usnam = gs_bapi_acchd-username.
      gs_acchd-awsys = gs_bapi_acchd-obj_sys.
      gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
      gs_acchd-glvor = gs_bapi_acchd-bus_act.
      gs_acchd-tcode = sy-tcode.
      gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
    Check if there is something wrong there.
    Best regards

  • How can i use BAPI to insert a few records  into standard table

    Can anyone help me with how can i use BAPI to insert some records into a standard table from an internal table?

    Hi,
    First of All try to Explain your Question first.
    This is a general question without mentioning the Table you want to Update.
    Please give the details before posting a question  so it will help people to understand your Problem.
    Regards
    Sandipan

  • How to use Bapi -  'BAPI_ACC_DOCUMENT_POST'

    Hi Gurus,
    I want to use Bapi - 'BAPI_ACC_DOCUMENT_POST'.
    The below code gived message that - Document posted successfully: BKPFF 180000046710012010 DW1CLNT100
    but the document number gererated is not getting stored in any of BKPF or BSEG tables.
    The Bapi should work in the same way as FB01
    Please check and let me know your valuable suggestions on why document number is not getting saved.
    DATA: lwa_header  TYPE bapiache09,
          lt_ar       TYPE TABLE OF bapiacar09,
          lwa_ar      TYPE bapiacar09,
          lt_return   TYPE TABLE OF bapiret2,
          lwa_return  TYPE bapiret2,
          lt_curr     TYPE TABLE OF bapiaccr09,
          lwa_curr    TYPE bapiaccr09.
    *Start
    DATA : it_accountgl  TYPE STANDARD TABLE OF bapiacgl09 ,
           lwa_accountgl TYPE bapiacgl09.
    *End
    CLEAR: lwa_header, lt_ar, lwa_ar, lt_return, lwa_return, lt_curr, lwa_curr.
    lwa_header-bus_act      = 'BKPF'.
    lwa_header-username     = 'GOWDA'.
    lwa_header-comp_code    = '1001'.
    lwa_header-doc_date     = '20091102'.
    lwa_header-pstng_date   = '20091102'.
    lwa_header-trans_date   = '20091102'.
    lwa_header-fisc_year    = '2010'.
    lwa_header-fis_period   = '06'.
    lwa_header-doc_type     = 'DR'.
    lwa_accountgl-itemno_acc = '0000000001'.
    lwa_accountgl-gl_account = '0020000000'.
    lwa_accountgl-tax_code   = 'V1'.
    lwa_accountgl-item_text  = 'BAPI Test G/L line item'.
    APPEND lwa_accountgl TO it_accountgl.
    *lwa_ar-itemno_acc  = '0000000001'.
    *lwa_ar-customer    = '4000000006'.
    *lwa_ar-gl_account  = '0012110000'.
    **lwa_ar-gl_account  = '0020000000'.
    *lwa_ar-profit_ctr  = '0000000217'.
    *APPEND lwa_ar TO lt_ar.
    lwa_curr-itemno_acc = '0000000001'.
    lwa_curr-curr_type  = '00'.
    lwa_curr-currency   = 'USD'.
    lwa_curr-amt_base   = '100.00'.
    APPEND lwa_curr TO lt_curr.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader    = lwa_header
      TABLES
        accountgl         = it_accountgl
        accountreceivable = lt_ar
        currencyamount    = lt_curr
        return            = lt_return.
    COMMIT WORK.
    DATA: bt_return LIKE bapiret2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'
      IMPORTING
        return = bt_return.
    LOOP AT lt_return INTO lwa_return.
      WRITE: / lwa_return-message.
    ENDLOOP.

    Hi Avi
    check this code  may you get some hint
    DATA gd_documentheader LIKE bapiache09.
    DATA l_type            LIKE gd_documentheader-obj_type.
    DATA l_key             LIKE gd_documentheader-obj_key.
    DATA l_sys             LIKE gd_documentheader-obj_sys.
    DATA it_accountgl      LIKE TABLE OF bapiacgl09 WITH HEADER LINE.
    DATA it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE.
    DATA it_return         LIKE TABLE OF bapiret2   WITH HEADER LINE.
    DATA it_return1        LIKE TABLE OF bapiret2   WITH HEADER LINE.
    gd_documentheader-username   = sy-uname.
    gd_documentheader-header_txt = 'BAPI Test'.
    gd_documentheader-comp_code  =  'RS01'.
    gd_documentheader-fisc_year  = '2008'.
    *gd_documentheader-doc_date   = '0'.
    *gd_documentheader-pstng_date = sy-datum.
    gd_documentheader-bus_act    = 'RMRP'.
    gd_documentheader-fis_period = '11'.
    gd_documentheader-doc_type = 'DW'.
    CLEAR it_accountgl.
    it_accountgl-itemno_acc     = 1.
    it_accountgl-gl_account     = '0011500000'.
    it_accountgl-tax_code       = 'V0'.
    it_accountgl-item_text      = 'BAPI Test G/L line item'.
    it_accountgl-customer       = 'AG0460'.
    *it_accountgl-profit_ctr     = '0000002002'.
    it_accountgl-de_cre_ind     = 'H'.
    it_accountgl-comp_code      = 'RS01'.
    it_accountgl-doc_type       = 'DR'.
    *it_accountgl-fis_period     = '06'.
    *it_accountgl-fisc_year      = '2009'.
    it_accountgl-pstng_date     = sy-datum.
    APPEND it_accountgl.
    CLEAR it_currencyamount.
    it_currencyamount-itemno_acc   = 1.
    it_currencyamount-curr_type    = '00'.
    it_currencyamount-currency     = 'INR'.
    it_currencyamount-amt_base     = '100'.
    APPEND it_currencyamount.
    CLEAR it_currencyamount.
    it_currencyamount-itemno_acc   = 2.
    it_currencyamount-curr_type    = '00'.
    it_currencyamount-currency     = 'INR'.
    it_currencyamount-amt_base     = '100'.
    APPEND it_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader = gd_documentheader
      IMPORTING
        obj_type       = l_type
        obj_key        = l_key
        obj_sys        = l_sys
      TABLES
        accountgl      = it_accountgl
        currencyamount = it_currencyamount
        return         = it_return.
    WAIT UP TO 10 SECONDS.
    IF sy-subrc IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDIF.
    Regards
    Nilesh

  • Can I update Java patches without uploading the SCAs

    There is no FTP service on the HP-UX.  User root is not available for me.
    With user <sid>adm, can I apply Java patches without uploading the SCAs?

    Why can't you use third party tools to copy the files to your *nix server?
    You can use WinSCP software to copy the files from your desktop to your *nix server (Even FTP not avilable, it use SFTP).
    Regards,
    Nick Loy

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • My wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the photo

    my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?

    my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?

  • Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Our experience is a little different, we have different iTunes accounts for different family members, each family member has their own iTunes library on their own mac, each mac uses my Apple ID for homesharing and we are able to play purchased content from each library on the Apple TV.

  • Can i use two icloud accounts on the same computer?

    can i use two icloud accounts on the same computer?

    You can have content from two iTunes Store accounts in one library, and multiple libraries on a computer.
    (98306)

  • Can I use two apple TV on the same wifi system?

    Can I use twoo apple tv on the same wifi system??

    Winston, what sort of set up do you have for 10 apple tvs? - I currently have 2 and cannot stream different movies successfully at the same time to both of them from a single macbook pro. I am looking at upgrading to a system with a macbook mini or server streaming different content to 3-5 apple tvs. Currently all streaming is on the same channel and via 2 airport extremes and a new express. Still finding the system very very slow.

  • Can I use 2 Time Capsules on the same network

    Can I use 2 Time Capsules on the same network
    Posted: Jul 23, 2009 1:49 PM Reply Email
    Here is what I want to do. I currently have a time capsule used for one end of the house. Currently my 2 kids rooms are in an addition that I have run a cable from the time capsule to each of their rooms. If I want to give them wireless for that part of the house could I add another TC, for wireless and they can both backup their macbooks to that time capsule.
    So Can I add a 2nd time capsule to extend by "N" network, or should I just go with an AP express or extreme and let them each have their own HD backup for each macbook?
    Brett

    Have bought many reconditioned (Refurb) product from Apple site and have always been happy with them. To date none have failed me and we have been Apple customers since 2006. With that said when you buy Refurbs make sure you know what model you are getting. The current TCs on the Apple site are last generation. The way to tell is to check the model number against the current one. Easy way to do this is to put both in the shopping cart and compare the model numbers. The Refurb model number is FB277LL/A and the new TC model is MB765LL/A. The first digits identify whether a Refurb or new, the rest should be the same if they are the same model number.
    Before you buy, now which model number you want and then check other sites to compare prices. I recently purchased a new TC on Amazon for a better price then the Apple Store Site. For larger Refurb purchases like MBPs, we choose to buy directly from Apple; but for peripherals we often buy from OWC, Amazon, and other sites. Hope this helps.

Maybe you are looking for

  • I keep trying to resolve Safari website problems with my 2 iPads -

    I hate iPads at the moment.  I keep trying to resolve problems I am having with my iPads -2of them- one an iPad2 and the other a mini- so it is not my iPads.  I cannot log into many of my online accounts with Safari on any of my iPads. It seems to be

  • USB drive doesn't appear

    Often when I plug my USB drive (Seagate) into the USB port, it does not appear in the Finder. I have to reboot the computer for it to appear. Is there a reason why this happens, and is there anything I can do besides reboot? thanks Scott

  • Function module to Post picking quantity & PGI

    hi all, i want to post picking quantity and do PGI for the given delivery document . please let me know if there is any BAPI or function module to do that . thanks in advace, aswin.

  • Javascript Error - Portal content

    Hi Everyone, We have EP7.0 Java Add-In ABAP Stack installation. The problem occuring is - In Portal Content, when i cick on Right Click -> New iView it gives me a Java Script error message stating - 'me' is undefined. Can anyone please help, why am i

  • Abap code with relevant capital lettres and small letters

    Hi all, i wrote my code in capital letters and i want to change tables and data objects and other stuff into small letters .Is there any option in abap editor to change the code  as per the SAP standards. Thanks, Madhu