BAPI supporting f-30 - transfer with clearing

I need to use f-30 ' transfer with clearing' to clear over 1000 documents at a time.
Do you know of a BAPI in 4.7 that implements this functionality?
Thank you
Chris

Hi,
Please find the code below:
LOOP AT it_upload_rec.
    header-bus_act = 'RFBU'.
    header-doc_date = it_upload_rec-bldat.
    header-pstng_date = it_upload_rec-budat.               header-header_txt = 'F-02 Posting'.
    header-comp_code = 'PL10'.
    header-doc_type = 'SA'.
    header-username = sy-uname.
    APPEND header.
    CLEAR header.
    account_gl-itemno_acc = '1'.
    account_gl-gl_account = it_upload_rec-account1.
    APPEND account_gl.
    CLEAR account_gl.
    account_payable-itemno_acc = '2'.
    account_payable-vendor_no = it_upload_rec-account2.
    APPEND account_payable.
    CLEAR account_payable.
    currency_amount-itemno_acc = '1'.
    currency_amount-currency = 'INR'.
    currency_amount-amt_doccur = it_upload_rec-amount.
    APPEND currency_amount.
    CLEAR currency_amount.
  ENDLOOP.
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader          = header
*   CUSTOMERCPD             =
*   CONTRACTHEADER          =
   IMPORTING
  obj_type = gv_obj_type
  obj_key = gv_obj_key
  obj_sys = gv_obj_sys
    TABLES
     accountgl               = account_gl
   ACCOUNTRECEIVABLE       =
     accountpayable          = account_payable
*   ACCOUNTTAX              =
      currencyamount          = currency_amount
*   CRITERIA                =
*   VALUEFIELD              =
*   EXTENSION1              =
    return                  = it_return
*   PAYMENTCARD             =
*   CONTRACTITEM            =
*   EXTENSION2              =
*   REALESTATE              =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
KR Jaideep,

Similar Messages

  • Transfer with clearing (F-51) w/o Vat amount.

    Hi,
    I need to transfer with clearing (Tcode F-51) an open vendor item which has an amount of VAT (Gross amount 1210: vendor amount 1000, VAT amount 210).
    The open item was posted with special G/L indicator (down payment), tax code, amount:1000 and vat amount: 210.
    The problem is that I only need to transfer the vendor amount (1000) and not the amount of the vat. 
    When I see the line ítem by Tcode FBL1N I see correct the open item for the amount of 1000. Then, when I try to transfer the amount the system shows me 1210 in the line item.
    Any idea?
    Thanks
    Cecilia

    hi,
    Use T code - F-51
    give posting 31 opposite vendor number (SGL Ind) enter give amount what ever you want to transfer and select Choose open items tab and select vendor code and select Spl gl indicator - Click on Process open item  -  select that particular line item - and go to residual tab given Tax amount then simulate
    check accounting entry and Post
    check in FBL1N both vendors
    Thanking you
    Mahesh

  • Transfer With Clearing VS. Transfer without Clearing

    Hi,
    In SAP There are the folloiwng two transactions
    1. Transfer with clearing (F-30)
    2. Transfer without Clearing (F-21)
    Functionality standpoint, what is the difference between those two? When we should use which one?
    Also, if we have an AR open item, can we create a new transfer document to transfer the amount to a new payer with reference to the existing document number belonging the open AR Item?
    Thanks a lot,
    Bijoy.

    Hi
    1. f-21 is used when you receive advance or adhoc payment from customer and you are not sure which invoice you need to allocate it.
    2. f-30 is used to receive payment from customer and you can clear the open items against this payment.
    Regards,
    Suraj

  • BAPI for F.04 (Posting with Clearing)

    Hi Experts,
    I got 2  Function Modules for F.04. T.code,
    1. BAPI_ACC_DOCUMENT_POST.
    2. BAPI_ACC_GL_POSTING_POST.
    please tell me which one is more suitable and if possible  then please provide code
    Thanks & Regards,
    Vimarsh B.

    Hi,
    Please find the code below:
    LOOP AT it_upload_rec.
        header-bus_act = 'RFBU'.
        header-doc_date = it_upload_rec-bldat.
        header-pstng_date = it_upload_rec-budat.               header-header_txt = 'F-02 Posting'.
        header-comp_code = 'PL10'.
        header-doc_type = 'SA'.
        header-username = sy-uname.
        APPEND header.
        CLEAR header.
        account_gl-itemno_acc = '1'.
        account_gl-gl_account = it_upload_rec-account1.
        APPEND account_gl.
        CLEAR account_gl.
        account_payable-itemno_acc = '2'.
        account_payable-vendor_no = it_upload_rec-account2.
        APPEND account_payable.
        CLEAR account_payable.
        currency_amount-itemno_acc = '1'.
        currency_amount-currency = 'INR'.
        currency_amount-amt_doccur = it_upload_rec-amount.
        APPEND currency_amount.
        CLEAR currency_amount.
      ENDLOOP.
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader          = header
    *   CUSTOMERCPD             =
    *   CONTRACTHEADER          =
       IMPORTING
      obj_type = gv_obj_type
      obj_key = gv_obj_key
      obj_sys = gv_obj_sys
        TABLES
         accountgl               = account_gl
       ACCOUNTRECEIVABLE       =
         accountpayable          = account_payable
    *   ACCOUNTTAX              =
          currencyamount          = currency_amount
    *   CRITERIA                =
    *   VALUEFIELD              =
    *   EXTENSION1              =
        return                  = it_return
    *   PAYMENTCARD             =
    *   CONTRACTITEM            =
    *   EXTENSION2              =
    *   REALESTATE              =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    KR Jaideep,

  • BAPI for transfer with posting -FB05 (transaction f-04)

    We are running R/3 4.7.
    Does anyone know if there is a BAPI that will do a transfer with clearing for GL accounts? The SAP transaction for GL transfer with clearing is F-04. If so could you let me know the name of the BAPI.
    Thank you
    Chris

    Hi Christopher,
    Have a glance at the link below, here you can find list of BAPI's
    http://www.sapbapi.com/bapi-list/
    Regards,
    Soundarya.

  • BAPI for Posting with clearing

    Hi all,
    Is there any BAPI which can do posting with clearing?Generally we can acheive this through a transaction F-04.BAPI required which can acheive the functionality of F-04.Any Inputs will be highly appreciated with points.
    Thanks and Regards
    Kiran

    hi,
    check this function module.
    POSTING_INTERFACE_CLEARING.

  • 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

  • Post with Clearing: BAPI for clearing open items

    Hi,
    I'm looking for a way to use the logic of transaction F-30 (Post with Clearing) in an external application. I want to clear open items. Is there a BAPI or something else for it? While debugging transaction F-30 I found the function module POST_DOCUMENT together with function module FI_DOCUMENT_PROCESS which are used to actually clear the selected open items. But there is lot more coding around these function modules that might be needed/important. So, is there a BAPI that puts all together? Or what's the best way to do it at all?
    Regards,
    Robert

    Hi,
    BAPI_CR_ACC_GETOLDESTOPENITEM BAPI/BUS1010: Determine Oldest Open Item .... BAPI_AR_ACC_GETBALANCEDITEMS Customer account clearing transactions
    thanks
    abdul

  • Similar with FB05,how should i process 'transfer posting with clearing'?

    Hi my friends,
         Customers provide an excel file that contains detial of invoices paid(Doc No, Customer No, Invoice No, Payment Amount), then i need to implement FB05 Function and transfer posting with clearing.
          I'd like to use FM 'Posting_interface_clearing', but i am not clear how i should set two parameters: payment amount and  rfopt-xrptz ( editing options->open items -> enter payment amount for residual items ).
         I refer to Program RFBIBL00, and who tell me how to fill value in  the two table FTPost and FTClear.

    hi,
    use rfbibl00 with tcode FB05 and structueres <b>BSELK and BSELP</b>
    -> look documentation with se38 to that report
    A.

  • F-30 authorisation with transfer posting with clearing only

    Dear Gurus,
    In transaction F-30(posting with clearing), I want to give a user authorisation only for transfer posting with clearing.
    that is, i do not want him to use outgoing payment, incoming payment and credit memo options but use the option posting with clearing only.
    other users can use all options.
    Pl let me know how this is possible.
    Regards,

    Hello,
    Try using Screen variant and assign to that particular user or else use a User Exit which will immediately come out of the screen if that user tries to use any other postings. And the best option would be to control through authorizations for that particular user. Check with your basis consultant.
    regards,
    radhika

  • Transfer posting with clearing .with out clearing

    Hi
    How we do Transfer posting with clearing /with out clearing
    whats the purpose
    Many Tha

    hi with clearing means u r paid that amount directly
    for example first u can give/receive advace from customer/vendor thru f-29/f-48
    purchase/sales the items theru fb6o/fb70
    transfer the values from spl g.l to normal g.l f-39/f-54
    normal a/c clearing is f-32/f-44
    above process is called with clearing
    without clearing means u have purchase/sales for one person
    after that that amount is transferred another  person that is called withou clearing
    example
    purchase/sales the items theru fb6o/fb70
    transfer the values form one customer/vendor to another customer/vendro thru f-31/f-51 i think it will be helpful.

  • Transfer posting with clearing missing line item

    we create a customer FI invoice 300 USD for one customer A, reconcill. account is 1019500, we do fb05 transfer posting clearing, thus another account is temporary account :1015600, the clearing document type  is Z1,
    (40) Dr: 1015600 300 uSD
    (17)Cr:  customer A 300 USD
    in FBl3n for 1015600, we see line item 300 USD, in FBL3N for 1019500, we also see line item 300
    but in FBL5N for customer, we can't see document type Z1 and line item 300, why this happens
    my document type Z1 already set intercompany posting and customer account type allowed.
    I tried post incoming payment, also can't see line item, but for invoice, we can see line item.
    why clearing doc not appearing in customer line item?

    I choose all items,
    the funny thing is the invoice 300 USD is in cleared status, thus no open item,  but the customer balance is not correct, it should be 0, not 300 USD.
    why it is cleared , but bal is not zero and line item doesn't show this cleared doc?.

  • Unable to clear open items through post with Clearing F-04

    Hi Experts,
    I want to clear one GL code through transaction F- 04 Post with Clearing.
    When I clear the open items throgh f-04, (Document types UA , KR , MJ ) it posts the document but again it makes a new line item as a open item with same amount.New line item shows in a list as a open item. ( I tryed F-03 as well)
    I am unable to unable to understand the exact functionality of transacion F-04.
    Can anyone explain me please ? Please advice if I am missing anthing on this.
    Thanks,
    Manasi

    Hi Manasi,
    As the name suggest, F-04 allows you to POST to one account by CLEARING another account.
    For example you have a provision account which needs to be adjusted when the actual expense is paid -  this how it will be done -
    Give the document header details, select "Transfer posting with clearing", enter the posting key (40), give the GL account (expense account as per the example) and go to the next screen.
    Give the amount and other details for the line items and then select "choose open item" from the menu. The new screen will ask you to give an account where you will give the provision account (the account from which the open item needs to be cleared).
    Press enter and you will get the list of open items for the GL account from where you can proceed like any other clearing.
    Hope this clarifies. Do revert in case of any further queries.
    Thanks and Regards,
    anit

  • Post with clearing: FB05  No open items were found

    Hi,
    I am using FB05 (have selected 'transfer posting with clearing) to clear the vendor open items and post to a GL account, but I encounter the message 'No open items were found' (Msg F5 170) eventhough the vendor has open  items and morever it is not blocked.
    Any reason why this error.
    Tks,
    SS

    There can be any number of reasons why a standard transaction does not pick up open items for your vendor account. Some possible reasons are:
    - outside date range, if you are giving a date range
    - they might be special g/l transactions, not normal line items
    - they migh not be open line items, but noted items
    - the items might not be open anymore when FB05 is being run
    Do a little more investigation into your system - we can only give suggestions from here.
    Regards
    Gulshan

  • TCode: F-30 (Post with Clearing)

    Hi experts,
    I faced problem when want to post thru transaction code: F-30.
    I Logon SAP with my User ID: FIN-AAA
    Transaction Code: F-30
    Document Date: 08.12.2009
    Posting Date: 08.12.2009
    Document Type: DN
    Currency: USD
    Doc Header Text: Clearing
    Clearing Text: Clearing
    Select radio button: Transfer posting with clearing
    Choose Open line item: 2 lines with same amount attached.
    Then, select Document Tab > Simulate
    Result: Prompt up error message: "Enter line items first of all or choose open items."
    But i tried another User ID: FIN-CCC
    Same step and posting:
    Result: Prompt up successful message: "2 items were selected"
    I had checked on all authority for T-Code: F-30, and attached all roles into User ID: FIN-AAA.
    But, still found same error.
    How I want to solve this issue?

    HI,
    First you need to enter Debit line item if you are clearing credit balance or credit line item if you are clearing debit blance.
    Posting keys for customer: 07 or 17
    Postking keys for Vendor: 27 or 37.
    Posting keys for GL: 40 or 50
    System is asking you want to clear againt which either gl or customer or vendor. This is the meaning of the error.

Maybe you are looking for

  • Open advances given to vendor-urgent

    Hi,    I want to know list of purchase orders which have open advances.   plz suggest me the report or transaction name where i will get this details of vendor/ purchase order and balance advance amount.

  • Automatic clearing for G/L account

    Hi Experts, the program is SAPF124, T-code is F.13. i have one requirment, please provide  valuable solutions.... my object current functionality is the program checks tolerance limit and it will post this amt into perticular account.in this program

  • Mysql_num_row in java

    hi im designing a database program with java but i cant find the way to return the number of column count which is appropriate to my query in php i used to mysql_num_row function are there anything like this in java? Ps: I'm using mysql-connector-jav

  • Facebook yahoo and world app not working by wifi

    hi  i am using blackberry curve 9300 software 6.0 bundle 2949 (v6.0.0.668) my facebook yahoo and workd app are not working i am really worried plz help me asap .  its given me a messege that (you are currently on a service plan that doest not support

  • I want to move Lightroom 5 (stand-alone) to a new PC but keep getting asked to purchase a CC subscription (I have Photoshop on CC already).

    Here is the thing: I have a subscription to CC, Photoshop CC. I have a full version of Lightroom which is NOT the CC version. I would like to now move Lightroom to my new PC. I downloaded Lightroom but it will not accept my original serial number. In