BAPI - For Clearing Vendors by using Document Number in F-51.

Hi One and All,
As I have searched Forum before posting, I found few BAPI's and FM's which are not helpful for my requirement.
     a. 'BAPI_PAYM_ITEM_POST_CLEARING'
     b. 'POSTING_INTERFACE_CLEARING' and soon.
I am Posting the Vendor Invoice as in F-43 Using 'BAPI_ACC_DOCUMENT_POST' , Now I want to Clear these generated Document no.s in F-51.
By manually I can do it, But I need a BAPI / FM to do Clear a bunch of Vendor Document Numbers.
Welcome for all suggestions.
Regards,
Suneel G

Hi Suneel,
The FM is the correct one,,,! But you have the Above Exception,,,
Read the RFBIBL00 Documentation,,, Look how to pass the data in a Batch I/P....
Now lets put a break there,,, The RFBIBL00 Still calls the FM 'POSTING_INTERFACE_CLEARING', By this, the error may(I am not sure, But there is a chance) trigger again...!
The Alternate Solution may be, The FM 'POSTING_INTERFACE_CLEARING' calls
Include LFIPIF00 And if yo utry to look into that include,
  FT-PROGRAM  = REP_NAME_A.
  FT-DYNPRO   = '0105'.
  FT-DYNBEGIN = 'X'.
  APPEND FT.
  IF NOT BELNS IS INITIAL.
    CLEAR FT.
    FT-FNAM     = 'RF05A-BELNS'.
    FT-FVAL     = BELNS.
    APPEND FT.
  ENDIF.
  IF NOT BUKRS IS INITIAL.
    CLEAR FT.
    FT-FNAM     = 'BKPF-BUKRS'.
    FT-FVAL     = BUKRS.
    APPEND FT.
  ENDIF.
  IF NOT GJAHS IS INITIAL.
    CLEAR FT.
    FT-FNAM     = 'RF05A-GJAHS'.
    FT-FVAL     = GJAHS.
    APPEND FT.
  ENDIF.
  IF NOT BUDAT IS INITIAL.
    CLEAR FT.
    FT-FNAM     = 'BSIS-BUDAT'.
    FT-FVAL     = BUDAT.
    APPEND FT.
  ENDIF.
  CLEAR FT.
  FT-FNAM     = 'BDC_OKCODE'.
  FT-FVAL     = '/11'.
  APPEND FT.
  PERFORM TRANSAKTION_BEENDEN USING P_NO_AUTH.
I have seen the 100's of lines like the above code...! Which means You can simple write a BDC for your requirement...(Its just an alternate when no other option)
Thanks & regards,
Dileep .C

Similar Messages

  • BAPI for clearing vendor invoice

    Dear SAP Guru's,
                                 I need to make clearing of the invoice made for particular vendors on daily basis, i have tried to look in the forum but i find regarding the posting of vendor invoice but ---
    My requirement is to schedule a z-program which will automatically clear the vendor invoice. i am looking for any relevant BAPI that can be used for the said purpose.
    Thanks in advance,
    Rahul

    Hi Rahul,
    Hey did you get any BAPI to clear vendor invoice.
    Regards
    Neeraj Sharma

  • BAPI for Clear Vendor (F-44 transaction)

    Hello,
    I have two documents. One is of Z5 document type(MM Invoice Reversal) and other is of RE document type (Invoice - gross). I clear them using F-44 (Clear Vendor Transaction). Is their any BAPI through which i carry out the same process as it is in F-44 transaction >?
    Thanks,
    Shehryar.
    Edited by: shehryar dahar on Sep 17, 2008 7:08 AM

    hii
    try using  BAPI_PAYIT_POST_CLEARING 
    regards
    twinkal

  • Need BAPI to clear a payment using invoice number.

    Hi,
    I have a requirement. Payments are done through a another system and after the payment  a inbound is send to SAP system with the invoice number. in SAP the paymenst should be updated to cleared using that inbound for that invoice number.
    Is there any BAPI to do this.
    Thanks
    Sachin
    Edited by: sachin Sambharia on May 24, 2011 12:05 PM

    Hi,
    Check- BAPI_ACC_INVOICE_RECEIPT_POST
    Regards
    Milind Sonalkar

  • Who does know which bapi for Clearing,sucu as F-32 F-44  ,thank you!

    i want to find a bapi for Clearing,such as F-32 F-44 ,
    but i can't find it ,i don't kown whether have such bapi,
    who can tell me ,thank you very much!

    You can use the report RFBIBL00.
    Please read the documentation of this report to have a better idea.
    Generally, this report can post all type of FI douments like document creation, clearing of the documents. So, I think this will solve your purpose.
    Regards,
    Naimesh Patel

  • EBS : clearing AR invoice through document number

    Hi,
    In EBS, I am using document number serach algorithm.
    But I get the below error.
    From FEBA, if I try to clear, I get the below error. Seems, system is not able to figure out the customer.
    Please let me know, where it is going wrong.
    Regards
    SR

    HI Sanil,
    Here is the bank file snap .Tag 86 has the document number to be cleared.
    Below is the posting rule.
    belwo is the alogorithm assignment
    I have not defined any search string. An I expect document number from tag 86 should be used for clearing.
    Regards
    SR

  • BAPI for clear open item in FI module

    Hiu2026
    Anybody knows if there is a BAPI for clear open item in FI module?
    Manually we can use F-03 or F-04 for clearing open item.

    http://www.se80.co.uk/sapfms/b/bapi/bapi_ctraccontractaccount_clr.htm

  • Bapi for clearing reversed items of invoices

    Hi,
    Is there a BAPI for clearing invoice against its reversed item and down payment against its invoice.
    I know we can do it using BDC but was looking for a BAPI.
    I greatly appreciate feedback.

    Hi,
        Use this
    BAPI_PAYIT_POST_CLEARING
    <b>Reward points</b>
    Regards

  • BAPI for clearing documents -Using Transaction F-44

    Hi all,
       Is there any BAPI which can be used for clearing docs using transaction F-44.
    I have already seen threads on SDN for the same but couldn't find any BAPI.
    Regards
    Taranam

    I have the same question as you ,  please tell me if you had known , thanks !
    Edited by: HB WANG on Mar 4, 2008 4:08 PM

  • F-30 Post with clearing screen 734, need document number with line item

    We are trying to use the 'line item' selection for F-30 transfer postings, for when we are only clearing certain line items for a document number. I have seen this done at other clients, but when we go to the line item in additional selections, it gives us screen 731, which only has a line item number; it is grayed out where the document number should be. We need screen 734 which has both line item and document number; I cannot find how to get this in there in configuration. Can someone tell me how I get this in? Thanks!

    We are trying to use the 'line item' selection for F-30 transfer postings, for when we are only clearing certain line items for a document number. I have seen this done at other clients, but when we go to the line item in additional selections, it gives us screen 731, which only has a line item number; it is grayed out where the document number should be. We need screen 734 in SAPMF05A which has both line item and document number; I cannot find how to get this in there in configuration. Can someone tell me how I get this in? Thanks!

  • Bapi for F-63 changing parked document

    hi all!
      I need bapi or fm for changing parked document for f-63 transaction.if any one knows just send me,
    Thanks in advance

    Hi Raj,
    This is the Bapi for parking for that transaction check wether it is useful to you
    'BAPI_INCOMINGINVOICE_PARK'.
    Also check this link for more number of bapis
    http://www.sapbapi.com/bapi-list/ It is really very helpful 
    Regards,
    Sana.

  • Fm for status based on sales document number

    Hello Gurus,
    Can you please provide me the function module to get status( open, complete, inprocess) based on Sales document Number.
    Thanks

    Hi,
    Use FM BAPI_SALESORDER_GETSTATUS for getting the status of the Sales Order.
    Also:
    Check the given requirementcorrectly once again
    Because for sales order we don't use the field OBJNR (object no) to find the ststau
    Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
    and will read the STATUS of the Order
    So for sales order we don't have that field OBJNR
    if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
    Or use the table VBUK to find the Sales order status
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

  • Help Rgd. BAPI for Creation of Inbound delivery Document

    Hi all,
    I need a Bapi to create inbound delivery document without using PO reference. I have seen the below BAPIs. i) BAPI_IBDLV_CREATE_FROM_OBDLV, 
    ii) BAPI_GOODSMVT_CREATE. I am not sure whether they are for creating inbound delivery document without using PO reference.
    It will be of great use if anyone can give me the BAPI for the purpose and the mandatory parameters or sample test data for the BAPI.
    Thanks in Advance,
    Rakesh.

    If you create the inbound delivery->check the purchase order in the tabstrip "Confirmations" on item level. There are three fields: "Confirmation control key", "Order acknowl." and "acknowl. required".
    Ckeck if there is a value in "confirmation control key".
    You should get the same error if you try to create VL31N in dialog mode, not only by using the bapi.
    Rgds,
    JP

  • BAPI for Creation of Inbound delivery Document

    Hi
    I have found a BAPI for Creating Inbound delivery Document, BBP_INB_DELIVERY_CREATE. I filled the below parameters and executed it.
    IS_INB_DELIVERY_HEADER     
        DELIV_DATE                     11.04.2007                           
    IT_INB_DELIVERY_DETAIL                                       
                MATERIAL                       1096               
                VEND_MAT                                          
                MATL_DESC                      SHARP CAMERA111    
                DELIV_QTY                               795,000   
                UNIT                           KG                 
                PO_NUMBER                      4500000011         
                PO_ITEM                        00010              
    I recieve a error 'This function is only possible for items with confirmation key'.
    I dont know whether the error is with the data. Is there any other fields to be filled.
    It will be of great help if anyone provide me with any input. ;>)
    Thanks in Advance
    Rakesh

    If you create the inbound delivery->check the purchase order in the tabstrip "Confirmations" on item level. There are three fields: "Confirmation control key", "Order acknowl." and "acknowl. required".
    Ckeck if there is a value in "confirmation control key".
    You should get the same error if you try to create VL31N in dialog mode, not only by using the bapi.
    Rgds,
    JP

  • 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

Maybe you are looking for