Wednesday, June 3, 2015

AUTO invoice create using BAPI with the reference of sales order



 data i_bapivbrk like bapivbrk occurs with header line.
  data i_bapiret1 like bapiret1 occurs with header line.
  data i_bapivbrksuccess like bapivbrksuccess occurs with header line.


  i_bapivbrk-doc_number zsalesdocument.
  i_bapivbrk-ref_doc zsalesdocument.
  i_bapivbrk-ref_doc_ca 'C'.
  append i_bapivbrk.


   call function 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    tables
    billingdatain         i_bapivbrk
    return                i_bapiret1
    success               i_bapivbrksuccess.

   invoice_no i_bapivbrksuccess-bill_doc.

    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
      wait          'X'.

8 comments:

  1. #Download SAP Training Video, SAP Ebooks and SAP IDES ECC6 at http://www.sapvisual.com

    ReplyDelete
  2. I am planning to join sap abap with them after reading your blog.
    Hope the best will turn out.
    Call them at 8122241286 in chennai.
    www.thecreatingexperts.com

    ReplyDelete
  3. We provide sap abap technical course, call us to know more about us and join with us.
    Call them at 8122241286 in chennai.
    www.thecreatingexperts.com

    ReplyDelete
  4. It was so nice article.I was really satisified by seeing this article sap training videos.

    ReplyDelete
  5. I have been a blogger too but you post much technical details. Thank you for sharing your knowledge. The creating experts was my first trainer in SAP ABAP got in depth learning from them

    http://thecreatingexperts.com/sap-abap-training-in-chennai/


    contact +91-08122241286

    ReplyDelete
  6. SAP ABAP training is provided in CHENNAI.

    THE CREATING EXPERTS is one of the leading trainer in SAP who provides real time training

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    contact 8122241286

    ReplyDelete