BAPI for FB60 Posting

Hi,
I would like to do the Invoice posting by modifying the tax base amount and tax amount(as against system computing on its own) through FB60 transaction code. Is there any suitable bapi I can use to achieve this scenario. I am not sure whether we can use the  BAPI_ACC_DOCUMENT_POST to solve this.Please suggest.
Thanks,
Ram

Hi,
Yes. You can use the BAPI BAPI_ACC_DOCUMENT_POST to post the vendor Invoices. Use the below tables parameter structures of BAPI.
ACCOUNTGL                    LIKE    BAPIACGL09    G/L account item
ACCOUNTRECEIVABLE    LIKE    BAPIACAR09    Customer Item
ACCOUNTPAYABLE          LIKE    BAPIACAP09    Vendor Item
ACCOUNTTAX                   LIKE    BAPIACTX09    Tax item
CURRENCYAMOUNT        LIKE     BAPIACCR09    Currency Items
Fill the corresponding structures for line items and call this BAPI.
Regards
Gangadhar

Similar Messages

  • Bapi for Transfer posting with clearing

    Hello,
    please let me know the bapi for Transfer posting with clearing for transcation F-04 or FB05.
    quick reply wil be helpfull.
    Thanks,
    ram

    Hi
    I don't know in release greater than 4.7, but there isn't that BAPI.
    There's a BAPI to post a document, but the clearing is an internal transaction so I don't believe there's a BAPI for it.
    Anyway you can try to create one using the std BDC RFBIBL00: it suppoerts that transaction.
    Max

  • Reg : BAPI For FB60

    Hi All,
    Can Any one Tell me which bapi should i use for fb60 transaction i have tried BAPI_INCOMINGINVOICE_PARK but it is asking PO as mandatory field but i don't have po for this scenario.
    i have tried BAPI_ACC_DOCUMENT_POST but its not having a export parameter to give the invoice number.
    So can anyone suggest me which bapi i have to go without referring the po.
    Regards,
    Karthik.

    Hi Sudharshan,
    Thanks For your quick response could you provide any sample program for this type of scenario so that it is easy to understand .I have tried BAPI_ACC_DOCUMENT_POST but in the ACCOUNTTAX  tables its asking me to fill the posting date but its not there ,so can you provide any sample program.

  • Problem in BAPI for stock posting from quality inspection  to unrestricted usage

    Hi all,
    I am using BAPI_GOODSMVT_CREATE for  stock posting from quality inspection  to unrestricted usage Stock against quality inspection lot(not by MB1B) using mvt type 321.The material doc gets created by the BAPI,but actual stock posting is not taking place ie.the stock doesn’t get reflected in QA33/32 and QA11 also .Can any one suggest what must be wrong?The inputs given are as follows:
    GOODSMVT_HEADER:
    PSTNG_DATE =30/07/2014, DOC_DATE = 30/07/2014, REF_DOC_NO = INSP LOT NO.
    GOODSMVT_CODE:
    GM_CODE:  ‘04’ .
    GOODSMVT_ITEM:
    MATERIAL = MATERIAL NO
    PLANT = PLANTCODE
    STGE_LOC = ‘WIP’
    BATCH = BATCHNO
    MOVE_TYPE   = ‘321’
    ENTRY_QNT = 100
    ENTRY_UOM =  ‘EA’
    ORDERID =  Prd ord no.
    After executing this I used BAPI_TRANSACTION_COMMIT also. I am able to see the posted qty in MMBE,but it is not reflecting in QA11/33/32.
    Kindly help me.

    Hi Naveen,
    Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
    BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
    Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot.

  • BAPI for  FB60 park vendor invoice

    Hi SAP Gurus,
    Please let me know what is the BAPI for Park Vendor invoice in FB60.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on Dec 9, 2008 7:21 AM
    Message was edited by: Jürgen L.

    Hi Preethi,
    I ahev checked this BApi this is for With PO and i need for without refernce to PO.
    only Vendor number, GL account numbers, amount, date and other details.
    Please suggest.
    Thanks in advance
    Vinod

  • "Change" BAPI for FB60

    Is there a BAPI for changing/updating documents that were created by FB60?

    BAPI_INCOMINGINVOICE*,  package MRM, object IncomingInvoice,  are linked to transacton MIRO; not FB60 which is "pure" FI and not MM.
    Look for FI BAPI via objects like AcctngInvoiceReceipt, package ACID, with BAPI BAPI_ACC_PYMNTBLK_UPDATE_POST or BAPI_ACC_INVOICE_REV_POST and BAPI_ACC_INVOICE_RECEIPT_POST.
    Regards

  • Bapi for transfer posting

    Estimated,
    I have to make a move between storage location of material that is blocked with status (movement 325). For that I'm trying on the Bapi MB_CREATE_GOODS_MOVEMENT and run with the same parameters as when I review the transaction MIGO_TR, but the structure EMSEG gives me the message number M7096 "Goods movement not possible with mvmt type 325". What could be wrong? and tried doing the Bapi commit, but still gives me error. It also showed the Bapi BAPI_GOODSMVT_CREATE and throws me the same message. Please I am desperate.
    Thanks.

    Hi,
    You can't use function module MB_CREATE_GOODS_MOVEMENT for movement 325, since that function module is used for Goods Issue for delivery.
    You should use bapi "BAPI_GOODSMVT_CREATE" for this movement 325 instead.
    Passing GOODSMVT_CODE = 04 (for Transfer Posting)
    The following thread has a sample code of above BAPI, then do adjustment accordingly as per your requirement.
    Re: i want to Stock upload with movement 561 and t code is mb1c
    Cheers,

  • BAPI for FBV0:  Post park document

    Hi ABAPERS,
    Is there any BAPI for the transaction FBV0.If so please tell me the name of the bapi.
    Thanks,
    N.K.C

    Hi,
    Check BAPI
    PRELIMINARY_POSTING_POST_ALL
    Regards,
    Neenu.

  • Bapi for FB60 - Park an invoice

    Hi gurus,
    Im trying to park an invoice in transaction FB60. i allready tried an batch inout but it's giving me an error, that i can't park an invoice using a batch input in transaction FB60... Don't know why, if someone can explain me why i cant park using an batch input i'll be appreciated..
    Anyway , is it any bapi that i can use to park an invoice to transaction FB60??
    Thanks in advance,
    Best Regards

    I worked with the FV60 transaction and able to park the invoice successfully by batch input method. I am pasting the sample code. Try with the below code::
    Populating the Header Details
      PERFORM bdc_dynpro   USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '/ECCDE'.
      PERFORM bdc_field   USING 'INVFO-ACCNT'  pv_vendor.
      MOVE pv_invoice_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field  USING 'INVFO-BLDAT'  lw_fdate.
      PERFORM bdc_field  USING 'INVFO-XBLNR'  vendor_invoice.
      IF pr_posting_date IS INITIAL.
        MOVE sy-datum TO pr_posting_date.
      ENDIF.                           
      CLEAR: lw_date, lw_fdate.
      MOVE pr_posting_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field USING 'INVFO-BUDAT'  lw_fdate.
      PERFORM bdc_field USING 'INVFO-SGTXT'   pv_text.
      PERFORM bdc_dynpro  USING 'SAPLACHD'  '1000'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=ENTR'.
      PERFORM bdc_field  USING 'BKPF-BUKRS'  pv_bukrs.
    Populating the Item Details
      LOOP AT pr_item_details INTO fs_item_details.
        IF sy-tabix NE 1.
          PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.
          PERFORM bdc_field  USING 'BDC_OKCODE'  '=0005'.
          PERFORM bdc_field  USING 'ACGL_ITEM-MARKSP(01)'  'X'.
        ENDIF.                             " If sy-tabix...
        PERFORM bdc_dynpro   USING 'SAPMF05A'   '1100'.
        PERFORM bdc_field  USING 'BDC_OKCODE'  '/00'.
        PERFORM bdc_field  USING 'ACGL_ITEM-HKONT(01)'
                                              fs_item_details-expense.
        PERFORM bdc_field  USING 'ACGL_ITEM-WRBTR(01)'   lw_amount.
          PERFORM bdc_field  USING 'ACGL_ITEM-MWSKZ(01)'   pv_tax.
        PERFORM bdc_field    USING 'ACGL_ITEM-KOSTL(01)'   pv_costcenter.
        PERFORM bdc_field    USING 'ACGL_ITEM-SGTXT(01)'
                                              fs_item_details-item_text.
        lw_totamount = lw_totamount + lw_amount.
      ENDLOOP.                          
      lw_totamount = lw_totamount + lw_taxamount.
      PERFORM bdc_dynpro USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=PBBP'.
      PERFORM bdc_field  USING 'INVFO-WRBTR'         lw_totamount.
      PERFORM bdc_field USING 'INVFO-WMWST'         lw_taxamount.
      CALL TRANSACTION 'FV60' USING    t_bdc_data
                              MODE     lw_mode
                              UPDATE   c_update
                              MESSAGES INTO t_bdcmsgcoll.
    **ignore the variable used
    Regards,
    Kiran Bobbala

  • BAPI for Invoce posting with F-43

    Hi friends,
    we are posting Vendor Invoices manually with T-code F-43, now we need to automate the process, can BAPI_ACC_INVOICE_RECEIPT_POST be used for the same purpose.
    Thanks

    Hi Max,
    could not find any FM with name BAPI_ACC_DOCUMENT_POST.
    regards

  • BAPI for FB60

    Hi all,
    I need to park a document using FB60 tansaction. I need to use BAPI to do the job. Which BAPI can i use to park the document?
    When the document is park, how do i know the status? Which database table stored the information that is pass via BAPI?
    Please Advice. Thanks
    Regards,
    Rayden

    Use BAPI_INCOMINGINVOICE_PARK
    Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
    Also tables ITEMDATA and RETURN are mandatory.
    Check the following sample code
    LOOP AT i_ekbe INTO wa_ekbe.
    CLEAR: wa_invoice_header,
    i_invoice_item,
    i_return,
    v_inv_doc_no,
    v_fisc_year,
    wa_return.
    REFRESH: i_invoice_item,
    i_return.
    Appending Invoice header Work Area
    wa_invoice_header-invoice_ind = c_x.
    wa_invoice_header-doc_date = sy-datum.
    wa_invoice_header-pstng_date = wa_ekbe-budat.
    wa_invoice_header-comp_code = c_100.
    wa_invoice_header-gross_amount =
    wa_invoice_header-currency = c_usd.
    wa_invoice_header-calc_tax_ind = c_x.
    Appending Invoice item data
    i_invoice_item-invoice_doc_item = '0001'.
    i_invoice_item-po_number = wa_ekbe-ebeln.
    i_invoice_item-po_item = wa_ekbe-ebelp.
    i_invoice_item-tax_code = ' '.
    i_invoice_item-item_amount = '20.00'.
    i_invoice_item-quantity = '10.000'.
    i_invoice_item-ref_doc = '5600000634'.
    i_invoice_item-ref_doc_year = '2006'.
    i_invoice_item-ref_doc_it = '10'.
    i_invoice_item-po_unit = 'EA'.
    i_invoice_item-COND_TYPE = 'VPRS'.
    APPEND i_invoice_item.
    Calling module BAPI_INCOMINGINVOICE_PARK
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
    headerdata = wa_invoice_header
    ADDRESSDATA =
    IMPORTING
    invoicedocnumber = v_inv_doc_no
    fiscalyear = v_fisc_year
    TABLES
    itemdata = i_invoice_item
    NFMETALLITMS =
    ACCOUNTINGDATA =
    GLACCOUNTDATA = i_gla
    MATERIALDATA = i_mat
    TAXDATA =
    WITHTAXDATA =
    VENDORITEMSPLITDATA =
    return = i_return.
    READ TABLE i_return INTO wa_return
    WITH KEY type = c_e.
    IF sy-subrc EQ 0.
    ENDIF.
    ENDLOOP.
    Hope this helps
    Vinodh Balakrishnan

  • Need Bapi for posting docuemtn through - FB60

    Hi Friends..
    I need a Bapi for Transaction FB60.I tried with lot of option including BAPI_INCOMINGINVOICE_CREATE.But I didn't get a proper one.
    No Bapi have a Vendor input field.Plz help me to identify the right Bapi for FB60.
    Thanks
    Gowrishankar

    Hi,
      Check the link given: ["Change" BAPI for FB60]
    Regards,
    Naveen M.

  • Function Module/BAPI for Posting with Residual Clearing

    Hello All,
    I want to know whether any Function Module/BAPI avaialble for posting with residual clearing (FB05). Can we do residual clearing using the FM "Posting_Interface_Clearing"?
    Please let me know how this can be handled.
    Thanks in advance.
    With Regards,
    Senthil.

    Hi senthil ,
    Look at these threads
    POSTING_INTERFACE_CLEARING
    bapi for Transfer posting with clearing
    BAPI_ACC_GL_POSTING_POST for FB05
    Question about POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_START
    Regards,
    Gaurav

  • BAPI For PGI against sales order

    Dear all,
                 I want BAPI for PGI(Post Goods Issue) against sales order.Can anybody suggest BAPI for this?

    Hi,
    Please check the link given below:
    bapi for PGI
    Hope it will help you.
    Thanks & Regards,
    Sarita singh Rathour

  • BAPI for MIRO Incoming Invoice

    Hi All,
    I want BAPI for MIRO Posting ie for Incoming Invoice.
    .here MIRO is being done with Delivery Note number
    Following are the necessary entries for MIRO Posting
    Invoice date
    Reference
    Amount
    Calculate Tax
    Tax amount
    Delivery Note
    Vednor
    Business Area
    Please suggest me suitable BAPI for MIRO Incoming Invoice Posting with sample code.
    immediately.Please give some sample code for my reference.
    Rewards will be given.
    Regards.
    Ulhas

    Hi,
    BAPI for Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_CREATE
    The method can only carry out your function if no error messages were
    generated in the Return table. This is the case if the header data and
    all the items were processed successfully.
    Transaction control is not implemented. The calling program therefore
    has to execute the Commit Work itself after this method has been
    successfully called (in other words, if no errors were reported in the
    Return parameter).

Maybe you are looking for

  • ~messageline.dim always 1, even when more than 1 message generated in ABAP

    Can anyone help explain how the ITS ~messageline gets populated. In my transaction I am creating a number of warning messages. However, the ITS is only displaying 1 each time. I am using the following code, but ~messageline.dim is always 1. `repeat w

  • [SOLVED] broken libraries after update

    I'm getting this error when trying to start akregator: error while loading shared libraries: /usr/lib/libkontactinterface.so.4: invalid ELF header When I run the file command on /usr/lib there are several files that are identified only as "data" incl

  • Getting music from mac fotmatted ipod to my itunes on windows

    my friend let me borrow his ipod to get music from to put onto my computer then ipod...but it says its mac formatted and i have windows. i tried to change it but it said things will be erased and i dont want to mess up his ipod. how can i get his mus

  • ZEN NANO PLUS PROBL

    Songs are not playing back that are loaded on the device. The names of the songs display on device but will not play...it skips the songs. I've updated the firmware. I've tried deleting all of the music on the device and reloaded and a few songs will

  • How to create a new Structure of Data screen and screen sequence

    Hi, Can you give any link or explain all the steps required to create a new structure of data screen and how to assign it to our comapnay code or plant etc.  also when i check the screen ref. which is assign to material type in OUR system i ROH but i