FI Posting document - - Function module

hi,
<b>Problem:</b>
I've FI parked documents in system, n now i want to post them. I cant use batch input bcoz it inserts duplicate entry in controlling. so i need alternative of batch input, i mean any funcution module which will post all documents in bulk.
Transaction: FBV0
Thanks in advance.
Sal.

Hi Salahuddin,
take a look to this link:
Duplicate Controlling Document (FI)
regards Andreas

Similar Messages

  • Regarding a Change Document Function Module ----- VERY VERY Urgent

    I am using a Change Document Function module "CHANGEDOCUMENT_READ". It is taking a long time.
    I am using the parameters:
    Start date is the first date of the current month
    Enddate as last date of the current month
    Object class as 'MATERIAL'
    Table Name as 'MBEW'

    Hi ,
    When you want to read the change documents, please follow the below process.
    1. Read the change documents headers with function modules
    call function 'CHANGEDOCUMENT_READ_HEADERS'
           exporting
                date_of_change             = cdhdr-udate
                objectclass                = cdhdr-objectclas
                objectid                   = cdhdr-objectid
                time_of_change             = '000000'
                username                   = cdhdr-username
           tables
                i_cdhdr                    = gt_cdhdr
           exceptions
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                others                     = 4.
    2. From above step you will get data of change documents very quickly into Itab (gt_cdhdr)
    3. Read the details on change documents with functiion module by using Itab in loop for each document.
      loop at gt_cdhdr.
        call function 'CHANGEDOCUMENT_READ_POSITIONS'
             exporting
                  changenumber            = gt_cdhdr-changenr
             importing
                  header                  = cdhdr
             tables
                  editpos                 = gt_cdshw
             exceptions
                  no_position_found       = 1
                  wrong_access_to_archive = 2
                  others                  = 3.
    Above is the best way to read the change documents.
    Rewards please if above info is useful.
    Thanks.

  • Billing Document Function Module

    Is there any function module to find out Billing Document is of which transaction type i.e. whether it is a Sales order Billing Document or it is a Service Order Billing Document or is an UBB Contract Billing Document.

    I have a FI object to be generated so input screen variable are all FI fields. Now I have to connect this to the sales order. I can retrieve the GL account from the input given.
    So now i need to find the billing document related to the GL account, which can be done through table BSEG. AS BSEG is a cluster table, at runtime it takes very long time to retrieve the data. So can u suggest me any other method to get billing document.
    , like any Function module etc.

  • Code sample for using change document function modules

    Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
    Thanks!

    hi check this..
    CHANGEDOCUMENT_READ_HEADERS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    CHANGEDOCUMENT_READ_POSITIONS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    Check this link.
    http://www.sap-img.com/mm001.htm
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM

  • ALE  error Function module not allowed: AFS_RETAIL_ARTMAS_IDOC_INPUT.

    Hi Gurus,
    By ALE config I am trying to send material from one client to another  ( MATMAS )
    I have created two logical systems and assigned them to corresponding clients.
    Created a RFC destination and assigned logical systems.
    Created Distribution model in sending client.
    Created partner profile in both clients.
    Created Material and send to receiving system using BD10 tcode.
    I checked Idoc status in Sending system, Idoc status is 03-Data is passed to port OK, status 30-Idoc ready for dispatch and status 01- Idoc generated.
    But in receving system (Inbound Idoc)- I got status- 51-Application document not posted and Function module not allowed: AFS_RETAIL_ARTMAS_IDOC_INPUT.
    I also checked partner profiles in both systmes- both r same.
    IAny help in this regard is appreciated.
    Thanks,
    Bluesh

    On receiver system...
    1 - goto WE20
    2 - locate the sender logical system (partner)
    3 - in Inbound grid select message type MATMAS (double click)
    4 - change "Process code" AFSA to MATM (probably AFSA is the actual code)
    5 - save and reprocess the IDocs using BD87
    Note: Process code AFSA is deafult but the scenarios need a spefic code that is MATM
    Best Regards,
    Josieudes Claudio
    Edited by: Josieudes de Sousa Cláudio on Jul 12, 2011 9:06 PM

  • Custom function module raises exception CX_SY_NO_HANDLER

    Hi there!
    Does any one here know what this exception is?
    CX_SY_NO_HANDLER
    It is raised when I try to call a custom function module within a rule routine in a transformation.
    I've checked the input and output parameters and they're consistent.
    Thanks in advance for any help!
    Best Regards,
    Luís Andrade.

    Siggi!!
    First of all, let me tell you that I am a great fan of yours! I have learned a great deal from your posts about function modules and extractors.
    The note you referred is not applicable in my case, since we're running sp14.
    One thing I forgot to mention was that this FM is a copy of another FM, with minor modifications. I'm going to try to create a brand-new FM and paste the code in it.
    Best Regards,
    Luís Andrade.

  • Regarding function module documentation

    when iam clicking the function module documentation.it is displaying message as document function module is not available in EN.How to get the documentation in EN

    Hi Rao,
    Click on the Function module documentation in the application toolbar of function builder, it takes you to either PC editor or Line Editor, enter the corresponding documentation there and activate and come back, now activate your FM, it should work fine.
    Regards:-
    Santosh.D
    P.S. Mark usefull answers

  • Function Modules documentation.

    Hello Hi,
    I'm just wondering if there is any documentations about function modules?
    I am looking at some ABAP codes and it is somehow calling some function modules such as FIAA_DEPR_RECALCULATE, DEPR_RECALCULATE, AM_SHOW_POST_DEPR but I'm not sure what exactly they are doing.
    I know there is SE84 that i can check import / export / tables... but it's not a documentation explaining what the purpose of these function modules are. There is Documentation in the menu, but it always says "Document (function module) is not available in language EN" (I tried DE, but not working either)
    May I ask where I can obtain more information about these?
    thanks in advanced.
    Regards
    Matthew.

    Hi Mathew,
    Not all function modules from SAP will have associated documentation, you will have to first check if the FM is released by SAP or not, this you can do by checking the Released on field on the attributes tab of the FM. If you have a date here, then it means it is released and it will have associated documentation, you can read this by clicking on the documentation button on the application toolbar of SE37.
    For FMs that do not have documentation, and you want to know the functionality of it, sufficient comments are written in the code and these comments are in German most of the times, you might need to use Language on Google tools to translate it to English :).
    Regards,
    Chen
    Edited by: Chen K V on Jul 5, 2011 11:00 AM

  • Wher do find the function modules

    hi all there are 5000 preexiting function groups and 30,000 function modules and more they say....... my question is where do we find them ? and is it explained in there ........how do we know their purpose....
                                                                                    thnk you
                                                                                    santo.
    Message was edited by:
            santhosh jagannathan

    Well -- have you ACTUALLY tried doing  this. Most of the time you'll get  a SAP message  "Document Function module name in Language EN (or whatever) doesn't exist.
    (Some of the newer fmods do have some documentation as well as the BAPI's but great swathes of the old FM's don't).
    That still also doesn't relate to the original point --there isn't any point in learning what all these do --you are simply wasting "Brain Power and capacity".
    It's much better to find out when you've got real problems to sort out or processes to analyze.
    That's one of the HUGE differences between experienced developers and relative newbies.
    With SAP there really is TOO MUCH info to absorb totally - especially in a short time.
    Pick your area and just go through the forums, google, use colleagues etc etc.
    The fact that i might know what a quantum computer is or that function module xxxxxx is used in say the PP module won't make me per-se a better devloper.
    Cheers
    jimbo

  • Function module - post new G/L document

    What function module can I use to post a new document in FI?
    BR.

    Hi,
    Please refer to the link below and see if it helps
    Re: Posting Key in BAPI_ACC_DOCUMENT_POST
    Regards
    K.R

  • Posting a document by using function Module POSTING_INTERFACE_CLEARING

    Hi Gurus,
    I have a problem while using the function module POSTING_INTERFACE_CLEARING.
    My custom code is using the FM POSTING_INTERFACE_CLEARING to clear a document form one GL account and post a document in another GL account.
    after the document is posted 2 line items will created in the 2 GL accounts.
    But some of the fields are not being populated in the one of the line item for the document created (Reference fields) but the other line item has the reference fields has values being populated.
    I am passing the required values in the custom code to this FM.
    Please help me in this.
    Edited by: Anand Sirgapuram on Jun 3, 2009 2:34 PM

    Hi Anand,
    Could you please specify which reference fields are not getting populated?
    I think this is the standard behaviour of POSTING_INTERFACE_CLEARING. All the values in the first line item are populated, while in second line item only some of the fields like posting key, account number, account currency, amount, company code and business partner are populated.
    If you need to populate other values, I guess you will have to search for some enhancement points inside the FM POSTING_INTERFACE_CLEARING after the 'call transaction' statement.
    Regards
    Radhika

  • Functional module which get triggered after posting of the document F-22

    Hi,
    I am posting the documents using the transaction F-22. I need to update some table after the documet will get post.
    I try to find out the BTE'S in the transaction FIBF but unable to find it out.
    Can anyone help me to find out the relvant functional module which will get triggered after the posting of the documents.
    Please help me with this.
    Thanks in advanced.
    Regards,
    Darshana

    Hi Harini,
    It is also not get triggered while i am posting the documents.
    Can you please suggest me some more functional modules.
    Thanks in advanced.
    Regards,
    Darshana

  • Migo no to posted Accounting document no Function module

    hi,
    Is there any function modules where i export MBLNR (gr no) and get the corresponding ACCONTUING DOCUMENT details.
    or
    tell me how to track the via database with high perfrormance
    Points assured.
    regards,
    Prabhu

    check this
    'AC_DOCUMENT_RECORD'
    Re: How to trace back the SO number from existing BSEG Document number,
    Regards
    Peram

  • BAPI FUNCTION MODULE  BAPI_ACC_DOCUMENT_POST : How to give posting keys?

    Hi ,
    i am using BAPI_ACC_DOCUMENT_POST to post accounting document. This accounting document is used to post amount from reconcilation account to bank GL account.the table parameter am using is ACCOUNTGL (in the function module)Now i want to give posting keys to the function module parameter. can anyone please guide me how to give posting keys?
    Edited by: Santhosh Kumar  Cheekoti on Dec 18, 2008 7:48 AM

    Hi,
    As pointed out in one of the previous post, posting key will be decided by the BAPI depending on the sign of the amount. Have a look at bthe following code:-
    DATA: doc_header LIKE BAPIACHE09,
          criteria   LIKE BAPIACKEC9 OCCURS 0 WITH HEADER LINE,
          doc_item   LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
          doc_ar     LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
          doc_values LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
          return     LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
          extension1 like BAPIACEXTC occurs 0 with header line,
          obj_type   LIKE bapiache08-obj_type,
          obj_key    LIKE bapiache02-obj_key,
          obj_sys    LIKE bapiache02-obj_sys,
          docnum     LIKE bkpf-belnr.
    *DATA:
    *       ITEMNO_ACC     POSNR_ACC
    *       FIELDNAME     FIELDNAME
    *       CHARACTER     ACPI_RKE_CRIGEN
    * Fill Document Header
    doc_header-bus_act = 'RFBU'.
    doc_header-bus_act = 'RMRP'.
    *doc_header-bus_act = 'SD00'.
    doc_header-username = sy-uname.
    doc_header-header_txt = 'TEST BOC BAPI POSTING'.
    doc_header-comp_code = 'IN10'.
    doc_header-compo_acc = 'FICA'.
    doc_header-doc_date = '20060127'.
    doc_header-pstng_date = sy-datlo.
    doc_header-doc_type = 'SA'.
    ** Fill Line 1 of Document Item
    *doc_item-itemno_acc = '1'.
    *doc_item-gl_account = '0000500001'.
    *doc_item-pstng_date = sy-datum.
    *doc_item-item_text = 'TEST POSTING DEBIT ITEM'.
    *doc_item-costcenter = ''.
    *doc_item-quantity = '1'.
    *doc_item-base_uom = 'ST'.
    *APPEND doc_item.
    *CLEAR doc_item.
    ** Fill Line 2 of Document Item
    *doc_item-itemno_acc = '2'.
    *doc_item-customer = '0000000016'.
    *doc_item-gl_account = '0000000016'.
    *doc_item-pstng_date = sy-datlo.
    *doc_item-item_text = 'TEST POSTING CREDIT ITEM'.
    *APPEND doc_item.
    *CLEAR doc_item.
    doc_ar-itemno_acc = '1'.
    doc_ar-gl_account = '0000500001'.
    doc_ar-pstng_date = sy-datum.
    doc_ar-item_text = 'TEST POSTING DEBIT ITEM'.
    doc_ar-costcenter = ''.
    doc_ar-quantity = '1'.
    doc_ar-base_uom = 'ST'.
    APPEND doc_ar.
    CLEAR doc_ar.
    * Fill Line 2 of Document Item
    doc_ar-itemno_acc = '2'.
    doc_ar-customer = '0000000016'.
    doc_ar-gl_account = '0000000016'.
    doc_ar-pstng_date = sy-datlo.
    doc_ar-item_text = 'TEST POSTING CREDIT ITEM'.
    doc_ar-stat_con = ' '.
    doc_ar-costcenter = '0000201681'.
    APPEND doc_ar.
    CLEAR doc_ar.
    * Fill Line 1 of Document Value.
    doc_values-itemno_acc = '1'.
    doc_values-currency_iso = 'INR'.
    doc_values-amt_doccur = '200.00'.
    doc_values-currency = 'INR'.
    doc_values-CURR_TYPE = '00'.  "Doc currency
    APPEND doc_values.
    CLEAR doc_values.
    * Fill Line 2 of Document Value
    doc_values-itemno_acc = '2'.
    doc_values-currency_iso = 'INR'.
    doc_values-amt_doccur = '200.00-'.
    doc_values-currency = 'INR'.
    doc_values-curr_type = '00'.  "Doc currency
    APPEND doc_values.
    CLEAR doc_values.
    * Add tax code in extension1 table.
    extension1-field1 = 'BAPI CALL'.
    APPEND EXTENSION1.
    * Fill CRITERIA for CO-PA
    *refresh criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'ARTNR'.
    *criteria-CHARACTER     = '000000000001312251'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'WERKS'.
    *criteria-CHARACTER     = 'IN91'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'KNDNR'.
    *criteria-CHARACTER     = '0000000016'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'FKART'.
    *criteria-CHARACTER     = 'ZIN2'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'KAUFN'.
    *criteria-CHARACTER     = '0000000633'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'KDPOS'.
    *criteria-CHARACTER     = '000010'.
    *Append criteria.
    *criteria-ITEMNO_ACC = '1'.
    *criteria-FIELDNAME     = 'VKGRP'.
    *criteria-CHARACTER     = '009'.
    **Append criteria.
    * All tables filled - now call BAPI.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
      EXPORTING
        documentheader       = doc_header
      IMPORTING
        OBJ_TYPE             = doc_header-obj_type
        OBJ_KEY              = doc_header-obj_key
        OBJ_SYS              = doc_header-obj_sys
      TABLES
    *    criteria             = criteria
        accountgl            = doc_item
        ACCOUNTRECEIVABLE    = doc_ar
        currencyamount       = doc_values
        return               = return
        EXTENSION1           = EXTENSION1.
    LOOP AT return WHERE type = 'E'.
      EXIT.
    ENDLOOP.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader       = doc_header
      IMPORTING
        OBJ_TYPE             = doc_header-obj_type
        OBJ_KEY              = doc_header-obj_key
        OBJ_SYS              = doc_header-obj_sys
      TABLES
    *    criteria             = criteria
        accountgl            = doc_item
        currencyamount       = doc_values
        return               = return
        EXTENSION1           = EXTENSION1.
    LOOP AT return WHERE type = 'E'.
      EXIT.
    ENDLOOP.
    IF sy-subrc EQ 0.
      WRITE: / 'BAPI call failed - debug and fix!'.
    ELSE.
      CLEAR return.
      REFRESH return.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
       IMPORTING
         return        = return.
      WRITE: / 'BAPI call worked!!'.
      WRITE: / doc_header-obj_key, ' posted'.
    ENDIF.
    Regards
    Raju Chitale
    Edited by: Raju Chitale on Dec 18, 2008 8:31 AM

  • Function module for reversing documents

    Is there a function module for posting reversal documents like F08 transaction.....

    Hi,
    We have BAPI's to reverse the documents.
    Check with 'BAPIREVERSE in SE37.
    Right now iam not on the systemto go indepth.
    Thanks,
    Deepak.

Maybe you are looking for

  • Before i did the update for Lion I had a icon for find my iPhone. Now its gone how do I find that icon on my Mac book pro

    Ok I am very unplease with this new Mac Book pro. i guess its not the computer but man when you get on any windows computer, they are all about the same and easy to use. i am having alot of problems trying to find things like where to burn a home mad

  • Dual Boot Selection with two SSD Installed

    I have two SAMSUNG SSD's installed in the W540. SSD #1  -- Microsoft Windows 7 Professional SSD #2 -- Microsoft Windows 7 Ultimate The SSD's had a complete install of each Microsoft Windows operating system without using the dual boot manager. I sele

  • Oracle Application Server 10g Disaster Recovery

    Hi all, This is regarding Disaster Recovery approach for Oracle Application Server 10g. There are two environments Active (DC-PROD) and Stand-By (DR-PROD). Each environment have 2 nodes where OAS Instances are installed in both nodes and each environ

  • 2 SSIDs and VLANs on each AP

    I'm new to configuring IOS wireless APs, in particular, a couple of 1142Ns in autonomous mode and looking for examples/answers. These APs will be connected to the POE ports on an ASA 5505 firewall. I'm also configuring the 5505. The requirements are

  • Activating Workflow Purchase Order Material Management:

    Hi: I am working in the Workflow for Purchaser Order. Actually I have to notify when an Order have been created. I am using the BUS2012 and also using as basis the Workflow WS20000075. My problem is that I pre-configured Workflow in the transaction S