Application Development and Automation 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: 
Read only

FM or BAPI for resetting Documents

Former Member
0 Likes
2,705

Hi all,

Is there any FM or BAPI available for resettign and reversing documents in FBRA. I have a FM for reversing document but i don't have a FM or BAPI for resetting documents. If any one knows answer for this, please suggest me.

Thanks and Regards,

Subbu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,627

Hi,

There is a Funcation Module CALL_FBRA.

This should do the job for you to reset the documents.

Regards,

Ram

Hi all,

Is there any FM or BAPI available for resettign and reversing documents in FBRA. I have a FM for reversing document but i don't have a FM or BAPI for resetting documents. If any one knows answer for this, please suggest me.

Thanks and Regards,

Subbu.

2 REPLIES 2
Read only

Former Member
0 Likes
1,628

Hi,

There is a Funcation Module CALL_FBRA.

This should do the job for you to reset the documents.

Regards,

Ram

Read only

Former Member
0 Likes
1,627

HOPE THIS WILL HELP

Reset cleared items (FBRA)

After executing the data in FBRA, the accounting document will be moved from BSAK table to BSIK, after executing the below function module one can check in these table. Never try to select accounting document from BSEG table, it's a cluster table. Try to use key fields when firing query on BASK table. *---Declaration for fun mod

DATA: d_bukrs LIKE rf05r-bukrs,

d_belnr LIKE rf05r-augbl,

d_gjahr LIKE rf05r-gjahr,

it_rf05r_acct LIKE rf05r_acct OCCURS 0 WITH HEADER LINE.

LOOP AT it_bsak.

CLEAR: d_bukrs, d_belnr, d_gjahr.

d_bukrs = it_bsak-bukrs.

d_belnr = it_bsak-augbl.

d_gjahr = it_bsak-gjahr.

*---Fuction module to run FBRA

CALL FUNCTION 'CALL_FBRA'

EXPORTING

i_bukrs = d_bukrs

i_augbl = d_belnr

i_gjahr = d_gjahr

TABLES

t_accnt = it_rf05r_acct

EXCEPTIONS

not_possible = 1

OTHERS = 2.

Endloop.