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

Bapi for T-Code:fbs1

0 Likes
1,064

I want to creat documents by bapi:BAPI_ACC_DOCUMENT_POST.Sometime interface want to tell reversal date,but this FM has no this parameter(only reversal reason).

Thanks!

3 REPLIES 3
Read only

0 Likes
952

Now I use BDC instead of BAPI.

Read only

Former Member
0 Likes
952

Hi all. You can perform the following:

1. Add two columns in the upload file template

Reversal reason + reversal date

2. Reversal reason is populated as follows

Reveresal reason -> documentheader-reason_rev in BAPI_ACC_DOCUMENT_POST

3. Reversal date is updated using a separate function module

This must be updated in table TSTOR by using function TSTOR_INSERT.

The FBSI is then successfull and can also be reversed with F.81.

CHAN TAN HUA

Read only

0 Likes
952

hi Chan,

I am using BAPI_ACC_DOCUMENT_POST posted an accrual document and table TSTOR is updated.

however, BKPF-XSTOV and BKPF-STODT are not updated, so reversal date still missing from the document header.

Any step I had missed?

Regards,

Kathy