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

Similar Messages

  • 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

  • Error occurs, BAPI_ACC_DOCUMENT_CHECK for creation of accounting document

    Hi Experts,
    I am creating accounting document using BAPI_ACC_DOCUMENT_CHECK  Bapi F.M.  Profit segment number  is mandatory ( T.code KEDR)  for G/L account 411103 .when i am using this G/L account for creation of accounting document, occurs below error message.
    1.Field  Prof. Segmt  is required field  for G/L account 0495 411103
    2. Account 411103 requires an  assignment  to a CO Object.
    Please let me know how i can resolve this problem using with BAPI.
    Thanks
    Jaya Reddy

    The BAPI you have mentioned is used to check whether a posting to accounting is possible.  You can use the Bapi "BAPI_ACC_DOCUMENT_POST" for posting accounting documents.  Depending on the GL account configuration you have to pass PROFIT CENTER / COST CENTER to the BAPI.
    Regards
    vinod

  • 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

  • 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

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • What is the BAPI for creating BP account / contact ?

    Hello experts,
    what is the BAPI for creating BP account / contact ?
    Please replay me as erarly as possible. Urgent requirment.
    Thanks,
    HP

    Hi,
    I think it is for bua1.
    Below are other bapi's which migt be useful:-
    BAPI_BPCONTACT_ADD_TO_ASGN BAPI Partner Sales Activity AddToAssigned
    BAPI_BPCONTACT_CHANGE BAPI Change Partner Sales Activity
    BAPI_BPCONTACT_CREATEFROMDATA BAPI Partner Sales Activity Create from Data
    BAPI_BPCONTACT_CREATEWITHDIA BAPI Partner Sales Activity - Create from Data Dialog
    regards
    Sandipan

  • BAPI for counting without inventory document?

    Hi,
    Is there a BAPI for counting without inventory document? Eg transaction MI10.
    Best regards,
    Morten

    Hi Morten,
    Can checkout these FMs:
    <b>BAPI_MATPHYSINV_GETDETAIL  </b>
    Read items for a physical inventory document     
    <b>BAPI_MATPHYSINV_GETITEMS    </b>
      Read list of physical inventory documents with items 
    <b>BAPI_MATPHYSINV_GETLIST       </b>
    Read list of phys. inv. documents                
    <b>BAPI_MATPHYSINV_POSTDIFF    </b>
      Post differences for certain items in a phys. inv. document
    Regards,
    Raj

  • 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.

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • FM/BAPI for creation of Material Document (similar to Transaction MB1C)

    Hi Gurus,
    Good day.
    Are you guys aware of FMs / BAPIs that can produce Material Documents (similar to the Function of Transaction MB1C)?
    Thank you very much!
    Best regards.
    Brando

    hi
    in addition to BAPI_GOODSMVT_CREATE ,you can try user exits as well like
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0002 Customer function exit: Segment text in material document item
    MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc
    hope this helps
    regards
    Aakash Banga

  • Separate line item for taxes in accounting document of MIGO

    All SAP Gurus,
    As we can have separate line item for Freight amount (Freight amt credited) in accounting document for MIGO.
    Similarly is it possible to have separate line item for tax amount which is inventoried.
    Regards,

    Hi Rajan,
    Freight is from pricing procedure whereas tax is from taxing procedure.
    Tax cannot be shown in separate g/l in MIGO.
    Reason:
    If u wanna show tax as separate item then we need to debit tax a/c in migo as well as it has to go to inventory which is not possible(double accounting enrty on debit side).
    I too tried to do the same by specifying 2 for posting indicator and selecting non deductible for the nonsetoff account key used in the taxing proceudre in OBCN but it is behaving like setoff tax.
    U can also try doing the same and then check.
    Reg
    Raja

  • BAPI for Posting the WIP document with respect to profit center

    Hi All,
    as per the SAP standards SAP posts the WIP revaluation to the profit center of the subcomponents instead of profit center of the manufactured material..
    But now i have write a logic to  make correcting entries for WIP revaluation to the Profit Center of the Manufactured Product.
    I have to  Post an accounting document with the adjustment posting (Revaluation Document) as of the last day of the Period.
    If the Revaluation Amount is POSITIVE, the DEBIT is to Profit Center of the Manufactured Material and CREDIT is to the Profit Center of Subcomponent Material/ Activity.
    If the Revaluation Amount is NEGATIVE, the CREDIT is to Profit Center of the Manufactured Material and DEBIT is to the Profit Center of Subcomponent Material/ Activity.
    Can any one suggest me the  Function module which available to post the this type of document ?
    Regards,
    Praveen

    Hi Ajit,
    My requirement is to get the total of GL balances for the respective profit center.
    But in Report i didn't found profit center parameter.
    Thanks

  • 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

  • Which iDoc/FM for Inbound AB Accounting Document ?

    We need to generate an iDoc from an external source which will create an AB Accounting Document in SAP R/3 (transaction would be FB01). There would appear to be various possible candidates with regards to Basic Types, Message Types, Function Modules etc, for example :
    Message Basic Type FM
    FIDCC2 FIDCCP02 IDOC_INPUT_FIDCC2
    ACC_DOCUMENT ACC_DOCUMENT02 BAPI_IDOC_INPUTP
    We are running 4.70 110. I would appreciate some guidance as to the most appropriate iDoc/Message/FM to use.
    Many thanks,
    Paul Read.

    Found answer through trial-and-error.

Maybe you are looking for