04-28-2010 6:38 AM
Hi,
When we post through normal F-02 with 50 posting key to GL account, tax is calculated with negative amount and is shown in BSET. But when we do this through BAPI_ACC_DOCUMENT_POST, the negative amount is not posted to BSET.
Thanks,
Sourya.
04-28-2010 6:53 AM
Hi,
While populating the structure "currencyamount" you have to pass negative amount for the records related to posting key '50'.
Regards
Vinod
04-28-2010 6:44 AM
In BAPI_ACC_DOCUMENT_POST you cannot populate reversal Code in the BAPI header.
You can either use BDC or RFBIBL00
04-28-2010 6:50 AM
Hi,
But how to use BDC for this requirement.
Thanks,
Sourya Prakash.
04-28-2010 7:00 AM
04-28-2010 6:53 AM
Hi,
While populating the structure "currencyamount" you have to pass negative amount for the records related to posting key '50'.
Regards
Vinod
04-28-2010 7:14 AM
I think here is meant: structure BBTAX
e.g.:
IF GSTEUER-BSCHL = '40'.
GSTEUER-BSCHL = '50'.
ELSE.
GSTEUER-BSCHL = '40'.
ENDIF.
GSTEUER-WRBTR = GSTEUER-WRBTR * -1.
COLLECT GSTEUER.
LOOP AT GSTEUER.
ZBTAX = BBTAX. "Initialization
MOVE: GSTEUER-MWSKZ TO ZBTAX-MWSKZ.
IF GSTEUER-WRBTR < 0.
MOVE '50' TO ZBTAX-BSCHL.
ELSE.
MOVE '40' TO ZBTAX-BSCHL.
ENDIF.
WRITE GSTEUER-WRBTR TO ZBTAX-FWSTE NO-SIGN CURRENCY XBKPF-WAERS.
TRANSFER ZBTAX TO OUT.
-> please read program docu to rfbibl00
A.