Skip to Content
0
Former Member
Oct 04, 2006 at 09:46 AM

FB08 Doc. reverse post

649 Views

Hi experts,

Iam trying to post the reverse document using

<b>BAPI_ACC_DOCUMENT_REV_POST</b> function module.

I have passed all the parameters properly.


        rev-obj_type = bkpf-awtyp.
        rev-obj_key  = bkpf-awkey.
        rev-obj_sys  = 'ABB_100'.
        rev-obj_key_r  = bkpf-awkey.
        tab_docheader-bus_act    = bkpf-glvor.

      CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
        EXPORTING
          reversal = rev
          bus_act  = tab_docheader-bus_act
        TABLES
          return   = tab_return.

In the tab_return iam getting the following error.

Error in document: BKPFF 120600005010102006 ABB_100	
Document BKPFF BKPFF ABB_100 cannot be reversed	
Reversal in component Financial Accounting not possible	
<b>Reversal not possible, accounting document for the ref. does not exist</b>	

What does it mean?Can any one explain me where iam doing wrong?

or is there any example using fm CALL_FB08?

Reward guaranteed,

thanks

kaki