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

Remove G/L Entry

Former Member
0 Likes
1,332

Hi,

Do you know the best way to remove a G/L entry?

Using FBL3 you see accounting document entries from 2002 that need removed from a given G/L account. Surprising the auditors, as well as, the end-user requested this!

Possibly a function/bapi, but not sure.

Best regards

Jim

Hi,

Do you know the best way to remove a G/L entry?

Using FBL3 you see accounting document entries from 2002 that need removed from a given G/L account. Surprising the auditors, as well as, the end-user requested this!

Possibly a function/bapi, but not sure.

Best regards

Jim

4 REPLIES 4
Read only

Former Member
0 Likes
854

BAPI_ACC_GL_POSTING_REV_POST Accounting: Post General G/L Posting Reversal

See if this bapi is of any use to you.

Regards,

Ravi

Read only

0 Likes
854

Would you have a snipit of code or table info on how to properly format the functions obj_type, obj_key, and obj_sys.

Best regards

Read only

0 Likes
854

Hi

Those informations depends on which operation has created a certain document, you can see it in the header data, they usually indicate which document has created FI document.

So if you have to reverse the document 1/2006 of company Z000:

SELECT SINGLE * FROM BKPF WHERE BUKRS = 'Z000'

AND BELNR = '0000000001'

AND GJAHR = '2006'.

BAPIACREV-OBJ_TYPE = BKPF-AWTYP

BAPIACREV-OBJ_KEY = BKPF-AWKEY

BAPIACREV-OBJ_SYS = BKPF-AWSYS

........

Max

Read only

Former Member
0 Likes
854

Hi Jim

I believe it depends on what does REMOVE mean for you.

You can't delete a FI document from SAP, but you can reverse it: the document'll be in SAP, but the total amount for that G/L'll be zero.

So if you need to do that you can trx F.80 for mass reversal.

But if you need to delete the documents from database, you need to archive those documents, in this case see the trx SARA.

Max