Skip to Content
avatar image
Former Member

BAPI to change Accounting Document Header

Hi Folks,

I have a requirement to go into an existing document (Billing Doc.) and change the Reference field (XBLNR). The business requirement is specifically to modify the BKPF-XBLNR field to contain a new reference. Is there a BAPI that can be used to modify accounting header details? All the accounting BAPI's I can find seem to be for posting a new record.

Points will be rewarded for helpful answers

Cheers,

Steve

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 16, 2007 at 04:03 AM

    Hi,

    Try with

    1. BAPI_ACC_GL_POSTING_POST

    2. BAPI_ACC_DOCUMENT_POST

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member .Subramony A R .Subramony Ramakrishnan

      Hi a®s,

      In using these BAPI's, do I need to re-create each line item from the original document in order for the change document to post?

      In that case, is there a 'Get' bapi that can return these values ready for 're' posting?

      Cheers,

      Steve

  • avatar image
    Former Member
    Aug 21, 2007 at 01:53 AM

    It turned out there is a function module (FI_DOCUMENT_CHANGE) that updates the required fields for me.

    Thanks for your help

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Stephen,

      I saw your requirement which was you posted, I have also similar requirement but i need to change Reference field value ( BKPF-XBLNR) in Transaction code - FB02. So if you used function module

      (FI_DOCUMENT_CHANGE)  and got exact requirement can you help me how did you done and how you passed parameter there.


      Thanks,