Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

No Financial Accounting document found ( FI_DOCUMENT_CHANGE )

Former Member
0 Kudos

Hi experts,

i want to update the ZLSPR Field int the fb02 transaction. I tried using FI_DOCUMENT_CHANGE function module , i am getting No Financial Accounting document found error.

Please let me know how to update the payment block field (zlspr).

What are the parameter i should pass for this function module.

Please give me some input example for the input parameter and table.

thanks ,

reena.

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

better try to use LSMW or BDC for tcode FB09

A.

pole_li
Active Participant
0 Kudos
clear t_accchg[].
  concatenate item-bukrs item-gjahr into l_aworg.
  t_accchg-FDNAME = 'ZLSPR'.
  t_accchg-NEWVAL = 'XXX'.
  append t_accchg.
   CALL FUNCTION 'FI_DOCUMENT_CHANGE'
    EXPORTING
      i_awtyp                    = l_awtyp
      i_awref                    = l_belnr
      I_AWORG                    = l_aworg
*     I_AWSYS                    = ' '
*     I_KUNNR                    = ' '
*     I_LIFNR                    = ' '
*     I_OBZEI                    = ' '
      I_BUZEI                    = item-buzei
*     I_BSEGC                    =
*     X_LOCK                     = 'X'
    tables
      t_accchg                   = t_accchg
   EXCEPTIONS
     NO_REFERENCE               = 1
     NO_DOCUMENT                = 2
     MANY_DOCUMENTS             = 3
     WRONG_INPUT                = 4
     OVERWRITE_CREDITCARD       = 5
     OTHERS                     = 6
            .

May it helps

Pole

Former Member
0 Kudos

Hi Experts,

Thanks for u replies.

I am using FI_ITEMS_CHANGE function module.

Its working fine.

thanks & regards,

reena.