BAPI/FM to update accounting document (FB02 transaction code )

Hi ,
Please let me know is there any BAPI/FM to update base line date and discount at header lelvel in accounting document
(FB02 transaction code ) . basically to update vendor open invoices documents
thanks
Naveen

Ok i finally figures out how to get around this issue.
USe FM: PRELIMINARY_POSTING_DOC_WRITE

Similar Messages

  • BAPI to Change an Accounting Document

    Hi,
        Is there a BAPI function module to Change an Accounting Document...?? Do let me know please.
         If there is no BAPI, then please suggest a reliable function module which can change accounting Documents and capture messages (without dialog)
    Regards,
    Aditya

    Hi,
           I don't think there is a BAPI to change an accounting document.
           One function module which comes close is FI_DOCUMENT_CHANGE but I am told this function module throws error messages on screen.
           The only reliable solution would be to do a CALL TRANSACTION (in background mode) inside a custom RFC function module
    Regards,
    Aditya

  • BAPI to Park the Account document

    Dear All,
    I need a BAPI to PARK an account document. Will you please help me out in finding the exact BAPI for this.
    Thanks in advance,
    Ranjan

    check this BAPI and its documentation
    <b>BAPI_INCOMINGINVOICE_PARK</b>
    regards
    Prabhu

  • I want to change my simulate view of document in transaction code F-02

    Dear all
    I want to change my simulate view of document in transaction code F-02 and want to display line item text there in my simulation.The standard layout in edit option"FB00" is "SAP01 SAP standard".This is in Doc. overview line layout.
    I want to add line item text in the line layout by copying the same.can any body tell me the menu path for resolving my problem
    Thanks in advance
    Regards
    Requester

    Hi,
    Use transaction O7E6 and create your own variant and then set up using transaction FB00.
    Award points if helpful.
    Sadie Gajanand

  • How to get which tables are being updated by running any transaction code

    Hi experts,
    please tell me how to find which system table are being updated after running any transaction code .
    please tell me the procedure to find that.
    Thanks & Regards,
    Yogesh

    Hi yogesh patil,
    for the dbtable..
    goto technical settings and activate the log...
    it will tells u..
    transaction...Table history (SCU3)
    Log data changes
    The logging flag defines whether changes to the data records of a table
    should be logged. If logging is activated, every change (with UPDATE,
    DELETE) to an existing data record by a user or an application program
    is recorded in a log table in the database.
    Note: Activating logging slows down accesses that change the table.
    First of all, a record must be written in the log table for each change.
    Secondly, many users access this log table in parallel. This could cause
    lock situations even though the users are working with different
    application tables.
    Dependencies
    Logging only takes place if parameter rec/client in the system profile
    is set correctly. Setting the flag on its own does not cause the table
    changes to be logged.
    The existing logs can be displayed with Transaction Table history (SCU3)
    Reward points if helpful

  • BAPI/Function to change Accounting Document

    Hi All,
    I have requirements to change Assignment field and text field in the accounting document for each item.
    Anyone know BAPI/Function to do that?
    Thanks,
    Victor.

    Hi Sandipan,
    I can't find Change accounting document BAPI from the link that you gave.
    Manually, how user change  the text and assignment fields is using FB02 t-code and double click each line item, from there we can change the text and assignment fields.
    I tried to record those steps and will create BDC program for that. But the problem is for each line item the subsequent screen can be vary and i think it depends on the G/L account that tied for each line item.
    So i don't think BDC is a good idea to do this.
    Any suggestion guys to do this?
    Best Regards,
    Victor.

  • Enhancement for updating accounting document in MIGO

    When doing MIGO, material document gets generated in background. I would like to pass this material document num (mkpf-mblnr) to the assignment field of GR/IR line item of accounting document (BSEG-ZUONR)

    Hi, Thanks for u r response. it is giving problem
    My requirement :  Transaction is : MIGO
    Before posting of material document, update material document number in assignment field of GR/IR line item of accounting document (WE) at number commitment stage
    Update MKPF-MBLNR (Material Document Number) in BSEG-ZUONR
    but already i tried AC_DOCUMENT i got a problem .
    What i did,
    first use MB_DOCUMENT_BADI  with  method
                 mb_document_before_update.
    here i tried to get the material document and export into memory
    after use AC_DOCUMENT With method
                   change_after_check.
    here Import the material document doc num and pass it to Assignment field in
    but it is not working
    when i debug first trigger the   AC_DOCUMENT   And then it goes to   MB_DOCUMENT_BADI
    Plese help me regarding this.
    Edited by: vsreelakshmi on Feb 9, 2012 5:23 AM
    Edited by: vsreelakshmi on Feb 9, 2012 5:29 AM

  • BAPI to change existing accounting document

    Is there a bapi to update an existing account document ?
    I want to change BKPF-BKTXT in an already existing document.
    I understand BAPI_ACC_DOCUMENT_POST is used to create a new document so I am hoping there is a BAPI to change an existing document.
    Any help appreciated ?

    ED,
    Check this
    1.  BAPI_ACC_DOCUMENT_REV_POST    (OR)
    2.  BAPI_ACCOUNTING_DOCUMENT_CHANGE
    Don't forget to reward if useful..

  • Change Accounting Document FB02 without BDC

    Hi All,
    I want to created ABAP program for Change Accounting Document Information like transaction FB02.
    but i dont want to use BDC, cause i don't want to give user authorization FB02,
    Can somebody give me the solution.
    Best Regards,
    Ferry

    Hi,
    Use the concept of Transaction variants.(Transaction SHD0) You need not copy the standard program for FB02, Just create a transaction variant for FB02 and assign a custom transaction code(also called variant transaction) to access the transaction
    Also you can assign authorizations for the custom transaction.
    Using transaction variant, you can hide some fields(business critical), input disable, make mandatory and default some values on the screen fields of FB02.
    Also note: If you active the transaction variant as Standard variant, then when ever you call FB02, the transaction variant is called with the screens(of the transaction variant)
    Documentation for transaction variants is available in SHD0 -> Application tool bar -> icon
    Hope this helps
    Regards
    Shiva

  • BAPI for copying an Accounting Document

    Hi,
    I have to copy an existing accounting document and create a New Accounting document.
    For creating i will use BAPI_ACC_DOCUMENT_POST.
    If there is a function module for this, please suggest.
    Please let me know how to copy the existing accntg document??
    Regards,
    Saurabh

    Hi Sourabh,
    try passing obj_key with your source document number in
    BAPI_ACC_DOCUMENT_POST.
    I am not sure whether that will work or not.
    The round about way will be select the document details FI tables and pass it BAPI_ACC_DOCUMENT_POST.
    Hope this helps you.
    Thanks,
    Arun

  • Recurring document on transaction code F.14

    Hi All,
    I got problem with this user complaining on the recurring document when she try to execute on the above transaction code. At first she create few documents with success then when she try to do the next step, which is to create posting documents from recurring documents, the error occurred. with the message:
    Session FEB09 was not created.
    Message No. FB202
    Diagnosis
    You have started the report SAPF120
    System Response
    No recurring document could be selected which would have corresponded to the selection criteria you specified. The session FEB09 was therefore not created.
    Plz help and assist me to solve this issue. appreciate ur help. Thanx in advance.

    Hi,
    Use transaction O7E6 and create your own variant and then set up using transaction FB00.
    Award points if helpful.
    Sadie Gajanand

  • Any FM to Read Documents from transaction code CRMD_ORDER(Service Request)

    Hi All,
    Please advice, if any function module to read(extract) Document attached to a created Service Request using Transaction code "CRMD_ORDER". The document is stored in the header level "DOCUMENTS" tab. My requirement is to read the documents stored in this tab and then attach them to a mail. Please do help.
    Thanks
    Nagesh Thanneeru.

    Hi All,
    Can you please tell me what are the input parameters for this function module.
    This is for service order item type where the document is attached.
    Is there a function module to read these details.
    Regards,
    Dhruv

  • BAPI  :  CHANGE  Assignment  OF  FI DOCUMENT (FB02)

    I want change  Assignment of a document  , Is there any BAPI or FM to  do it ?
    help please  !  THS

    Hi,
    you can use BAPI_ACC_DOCUMENT_POST for updating assignment field of FB02.
    Structure used in BAPI is BAPIACGL09 which is at item level and field used here is ALLOC_NMBR which is pointing to ZUONR [assignment number.
    Thanks
    Sudharshan

  • Error while reversing the asset accounting document through t code AB08

    Hello All,
    i have one query where the user has scrapped the assets through T code ABAVN in the month Dec 2009 with doc date of Nov 30th 2009. Now he realised that the posting was wrong and he wants to reverse it in 1st of Jan 2010 with the t code AB08. when we click on the reverse button in t code AB08, system is by defaultly taking the fiscal year, posting date and period, only we need to give the reason code. here user is trying to give the reversal date manually and making the posting. Now system is giving an error "Reversal in different fiscal year is not possible" with the message AA487.
    we are using SAP ECC 5.0 and i got SAP 1393737 for this and it is mention that there is a program error and needs to implement the program corrections.
    Please can any one suggest me, is that correct approach or should i need to follow the another work around to resolve this issue.
    Thanks in advance.
    Regards,
    Venkat

    Reversal in different fiscal year is not possible in the Standard        
    system since it will affect your balance sheet and other accounting      
    legal report.                                                                               
    It is not possible in FI-AA to reverse       
    a document in this way,  "because of the calculation of depreciation"                                                                               
    The reasons are:                                                                               
    1. The reconciliation of FI and FI-AA must be ensured, and therefore     
       Posting and Asset Value Date must be in the same fiscal year.                                                                               
    2. Depreciation of aquisitions posted in the previous year, are          
      not automatically corrected, when you post a reversal.                                                                               
    One way is to open the previous period(previous fiscal year) and post    
    the reversal to the same fiscal year. PLEASE NOTE THIS IS ONLY IF YOU    
    HAVE NOT EXECUTED YEAR END CLOSING TRANSACTIONS.     
    Blaz

  • How to use Bapi BAPI_ACC_DOCUMENT_POST for g/l account document posting

    Hi all,
    I am using BAPI_ACC_DOCUMENT_POST bapi for g/l account documents posting.as I am first time using BAPI in my program.can anyone give details about how to use this BAPI for document postings.what importing parameters need to be passed , which exporting parameters need to be passed and which tables need to be used.  
    Thanks in advance.
    Regards,
    Harshada

    Moderator message - Please search before asking - post locked
    Rob

Maybe you are looking for

  • How to get the finished date of production order

    hi guys now i want to get the finished date of production date.  when i search in the table afko , i found the field GLTRI is '0000.00.00'. BUT IN the production order display view , the confirm date is '2007.1.1'. so how can i get the confirm date w

  • Query Designer Issues Post System Copy

    Hi All - We have just performed a system copy from our production to our QA systems.  Now, when we trying to view a report from Query Designer in our QA environment, we are being prompted for a username and password - which is trying to log in to our

  • Auto Updating using the built in updater?

    Is there any command line options that would give me the ability to download updates and install them automatically using the built in program updater without user intervention? (ie: command line "check for updates" for Acrobat) I have several users

  • Rownum greater than query

    Hi all, first of all, what I am aware about... I am aware about the fact, that ROWNUM filters, inside the query which is to be filtered by rownum, are incorrect. That is this is incorrect: select * from <table> where rownum < 20; Also I am aware, tha

  • ODBC throwsqlException error

    I am trying to communicate between an Oracle 9.2.0.4 database on AIX 5.2 and applications sitting on Windows 2000 Professional, using the Oracle ODBC driver. I have tried a number of the drivers but they bring back the message 'oracle.jdbc.dbaccess.D