Accounting: Document Posting BAPI's

Guru's,
I'm using the following BAPI to post Vendor and Customer Document Posting.
BAPI_ACC_DOCUMENt_POST.
But the problem is, we are not able to pass the Posting Key in this BAPI.we tried many scenarios, but we are failed in all the ways.
Could you guys give me if there is any other BAPI which do the same operation as BAPI_ACC_DOCUMENT_POST.
Please advice me on this, i want to use only BAPI's to do this.
Thanks in advance.
Regards,
Adi.

Hi,
see this:
Re: BAPI FUNCTION MODULE  BAPI_ACC_DOCUMENT_POST : How to give posting keys
regards
Arjun

Similar Messages

  • BAPI for Accounting Document Posting

    What is the name of BAPI for Accounting Document Posting and how can I run it?

    Hi ,
    Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
    Regards,
    L Srikanthan.

  • 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

  • Text in accounting document posted against Excise invoice

    Hi,
       We have a requirement that the accounting document posted against excise invoice ( J1IEX) should display a text ( Vendor name and PO No.).
      We have tried entering the text at the time of capture and posting the excise invoice.But this does not reflect in the accounting document text field.
    However we can maintain the same afterwards from transaction FAGLL03.
    Is there any option that we can maintain the same at the time of capturing and posting the excise invoice.
    Also,if I think of defaulting the same ( Vendor name and Po no) is ther any user exit OR BAPI.
    Rajesh

    hi
    yes is their in this go to spro->img->Logistics - General->Tax on Goods Movements->India->Basic Settings->Maintain Excise Groups
    in this for your excise group in *migo settings please put the tick mark in post ei in migo the at the time of migo only the excise invoice will be posted. no need of doing the ji1ex here.
    Thanking you

  • How to update Assignment field in Accounting Document through BAPI ?

    I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?

    Hey,
    I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
    -Kiran
    *Please reward useful answers

  • Accounting Document Post with Ledger Group

    Hi,
    I am trying you post accounting document using 'BAPI_ACC_DOCUMENT_POST', But my requirement is to post the acc documents with 'Ledger Group', I couldn't find any parameter in the  above mentioned BAPI. If anyone come accross same requirement please share your knowledge and suggest me how to proceed with this.
    Before posting this thread I searched for the threads with same category, but i couldn't find sufficient information.
    Regards,
    Narayan

    Hi Navitha,
    I am doing migration as It's a one time activity, If I implement BADI  it will be triggered whenever accounting document posting happens, Is there any other way to pass Ledger group like other BAPI / FM etc ?
    Regards,
    Narayan
    Edited by: narayanasamy rajagopal on Sep 30, 2009 11:08 AM

  • Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

    Hi All,
    I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
    Any pointers to this would be highly appreciated.
    Regards,
    Chaitanya

    Hi,
    put a  break in subroutine FORM fill_acchd
    and execute the bapi.
    Here you have:
      CLEAR gs_acchd.
      MOVE-CORRESPONDING gs_aw TO gs_acchd.
      gs_acchd-usnam = gs_bapi_acchd-username.
      gs_acchd-awsys = gs_bapi_acchd-obj_sys.
      gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
      gs_acchd-glvor = gs_bapi_acchd-bus_act.
      gs_acchd-tcode = sy-tcode.
      gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
    Check if there is something wrong there.
    Best regards

  • Question on account document posting...

    Hi,
    I am interfacing between 2 systems, one being ECC 6.0 and another the 4.6 system. I am calling the FM ALE_ACC_DOCUMENT_POST with document header containing the BELNR which i assume to be the invoice number (billing document number). Now this is passed to 4.6, and the  BAPI BAPI_ACC_DOCUMENT_POST is called. When this posts (creates) the invoices in 4.6, the VBELN is blank and BELNR is getting the value as it was in ECC 6.0.
    4.6 uses external number range for accounting documents.
    I have a report in 4.6 which checks for bsid-vbeln which I assume to be the invoice number for open  invoices. Right ? But this field happens to be blank for the invoices that got transferred from ECC 6.0. For all other invoices that were create in 4.6, the value in VBELN and BELNR are same.
    I assume that BELNR needs to be set in VBELN too for the invoices passed from ECC 6.0. Am I right ?
    I am not able to do that ALE_ACC_DOCUMENT_POST  FM as there is no field to do so. So how should I achieve this. Hope I am clear.
    thks

    An accounting doc no is an invoice for particular doc types.
    find that accounting doc type which is an invoice
    use SD00 (Billing Document) to pass corresponding billing data to accounting.
    regards
    Arjun
    Edited by: Arjun Subhash on Dec 18, 2008 2:45 PM

  • How to add line items to Accounting Document posted through MIRO ?

    I need to perform Additional posting when Posting through MIRO transaction..i tried with INVOICE_UPDATE BADI but this was not useful...Please let me know if there is any way to add additional posting to Accounting Document created through MIRO.
    If any user exit , BADI ot BTE present?

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

  • BSEG Update during accounting document post

    Hello ALL,
    Need an idea to update a custom field in BSEG. The field should get updated once the A/C document gets generated but not yet saved in database. The BTEs are not helpful as its NOT allowing to change the T_BSEG entries. Substitution also not helpful as its gets triggered quite prior to the actual generation of accounting document in the system. The important part is the updation shouldn't be transaction specific. Means whenever an accounting document gets generated that exit/badi/bte should trigger to update that custom entry.
    Many Thanks for the suggestion.
    Somnath

    Hello Ankur Agrawal,
    Thanks a lot for your help.
    I got the item text from the mentioned BADI.  I will get back to this post if it works.
    Thank again for your quick reply.
    Kind Regards,
    Bryan

  • BADI/EXIT for MIGO for accounting  document posting

    Hi
    I am using MIGO where SAP post Mat Document and Accountying document.
    This Uses FM  'MB_POST_GOODS_MOVEMENT  < Include LMIGOKG1>, once this FM executed both MKPF and BKPF data gets filled . I can see tha data for MKPF in debug but I am not able to see data for Accounting Document.Even I cant see the Acc. document no assigned by SAP
    I need to change some fieds for Acc. Document <BSEG-VBUND>
    Can any one help me to find in which structure or table I can get data for Accounting document

    am using the method POST_DOCUMENT,
    am writing the code like..
    sample code..
    DATA: wa_mseg type mseg,
    wa_mch1 type mch1,
    wa_ausp type ausp.
    loop at it_mseg into wa_mseg.
    *select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                               and charg = wa_mseg-charg.
    if sy-subrc is initial.
    *select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                                   and klart = '023'.
    if sy-subrc is initial.
    if wa_ausp-atwrt EQ 'ACCEPTED'.
    continue.
    else.
    if wa_ausp-atwrt EQ 'REJECTED'.
    call function 'popup_to_display_text'.
    endif.
    endif.
    endif.
    endif.
    endloop.
    when i debug ,i find no data in the mch1 table ..
    any help..
    thanx

  • Copy mvt 561W with no accounting document posting

    Hi all,
    I want to copy movement type 561w (special stock - consignment) to a new one, but that mvt should not post any accounting document as this mvt will be used for processing consignment stock which does not need to be maintained price & value but quantity.
    Please help!
    Best,

    if you sold the material already, then the material is owned by your customer, that makes it clear why it should not have a value in your books.
    561W does not work because special stock W is stock that is owned by you, hence it is valuated.
    here are some alternatives:
    you can create a second material master (type UNBW) and receive the customer owned material to that new material.
    you can create a vendor master as equivalent to your customer and receive the material as vendor consignment stock. this will as well create no accounting documents, except you use parts of the quantity for own purposes .
    you create a return order and receive the material into return stock Return stock is non-valuated. When the customer finally has space to get the material, you just cancel the return delviery.

  • Accounting document posting enhancement

    Dear All,
         I am having requirement of exchange gain/loss should go only loss g/l account. since it is client level setting i cannot change this & it is required only for 1 of the group companies. other cos follow std process it gain/loss based on the transaction. Can anyone suggest is there any function module /exit which i can use & change the G/L account NO while posting accounting document automatically by system through hard coding of G/L at program level.
    Early reply is helpfull .
    Thanks
    Pramod

    Hi Pramod,
    note 127178  (and  126192) offers a solution with exit_sapliedi_001 to post to several G/Ls instead of only one.
    regards Bernhard

  • Accounting Document Posting

    Hello All,
           During MIGO GR against Production Order due to a dump in a customized BADI, the Material Document gets generated but Accounting Document Doesn't generated. Now we have solved the problem and dump is not coming. Now our requirement is to do account posting for the document( some 18 documents ) for which the material document is generated due to dump but Accounting document doesn't created. Can somebody tell me about the way to achieve this.
    Thanks and Regards
    Animesh Sundriyal

    Hi dear Animesh,
    Yes there is a program that can allow this automatically
    Please use SE38
    Then program RGURECGLFLEX
    Then, you can put the documents number in selection and can try first with test run, if it seems correct, run it in real mode
    Hope this help
    Regards
    Tarek
    Edited by: Tarek AYACHI on Sep 23, 2011 1:13 PM

  • About Billing - accounting document posting date

    Hi Experts,
    I do billing on 2010.10.30(SAT),but when i posted the document.
    Accounting document default posting date is 2010.11.01.
    How can i config the posting date as current date.

    Hi,
    Please check your factory calendar. Sunday may be decalred as non working day in your factory claendar. Kindly check what is the factory calendar assigned in your Company code, Plant and Sales Organisaions and change it. This will resolve your issue.
    Regards
    Vijay

Maybe you are looking for