‎2009 Jun 08 10:12 AM
Hi All,
I have a requirement to update a field(xblnr) in a BKPF table. Please let me know if there is any FM or BAPI available to do this.
Thanks,
Meenu.
‎2009 Jun 08 10:24 AM
‎2009 Jun 08 10:23 AM
Hi Meenu,
Chk this Function Module fi_document_change .
Regards,
Lakshman.
‎2009 Jun 08 10:24 AM
‎2009 Jun 08 11:00 AM
I tried with FM : FI_DOCUMENT_CHANGE. I gave all the required fields and BELNR,BUKRS and GJAHR as input. I am getting the error : No clear document selection possible for changing. No documentation is available for this FM. If anyone has used it can you pls provide with same code....and I am not sure How to use the FM : G_BKPF_BSEG_UPDATE.
Thanks,
Meenu.
‎2009 Jun 08 11:04 AM
Hi Meenu ,
Chk whether you have given the correct document number , fiscal year .
I have tried this with the same FM FI_DOCUMENT_CHANGE .It is working fine.
Regards,
Anuj
‎2009 Jun 08 11:33 AM
Hi Anuj,
I_AWREF is a mandatory field in the FM : FI_DOCUMENT_CHANGE. What are we suppose to here.
Thanks,
Meenu.
‎2009 Jun 08 12:31 PM
Hi Meenu ,
In AWTYP you need to give BKPF.
In AWREF field you need to give the Document number.
This is the portion of code where i have tried this.
i_accchg = 'XBLNR'.
i_accchg-oldval = w_sgtxt.
i_accchg-newval = new_txt.
append i_accchg.
UPDATING HEADER
call function 'FI_DOCUMENT_CHANGE'
exporting
i_awtyp = 'BKPF'
i_awref = m_belnr
i_aworg = i_aworg
i_lifnr = m_vendor
tables
t_accchg = i_accchg
exceptions
no_reference = 1
no_document = 2
many_documents = 3
others = 4.
Hope this helps you.
Regards,
Anuj
‎2009 Aug 05 7:39 AM
Hi Anuj,
I too have a similar requirement where in i need to update the Dunning area of already posted FI Document.
Will it work for this also.
Thanks
Tulasi.