‎2014 Feb 18 8:11 AM
Hi,
I am using the bapi_acc_document_post to park an gl .How can i do this ?
I found that i need to implement Business Transaction Event (BTE) RWBAPI01( status of the document to "parked" (the field T_ACCHD-STATUS_NEW is changed to 2 or 3) ).pls help on this issue?
‎2014 Feb 18 10:33 AM
First, did you read 1951302 - Document parking through BAPI_ACC_DOCUMENT_POST, maybe your system is too up-to-date and does no longer allow the old BAdI/Exit trick
Regards,
Raymond
‎2014 Feb 18 8:44 AM
You can implement it without using BTE.
Did you check this code?
Park GL Acct Document using BAPIs - Code Gallery - SCN Wiki.
The status of the document is set to 2, to show its parked.
MOVE 2 TO t_acchd-status_new. "to mark this is Park Document
‎2014 Feb 18 9:58 AM
Hi,
Thank you for the reply,how can i park non gl using bapi_acc_document_post ?
pls help me on this issue?
‎2014 Feb 18 8:59 AM
It wont be possible with your BAPI.
If you want to achieve this you have to use
PRELIMINARY_POSTING_FB01 - function module
‎2014 Feb 18 10:33 AM
First, did you read 1951302 - Document parking through BAPI_ACC_DOCUMENT_POST, maybe your system is too up-to-date and does no longer allow the old BAdI/Exit trick
Regards,
Raymond
‎2014 Feb 18 11:24 AM
Hi,
Thank you for the reply....Can you please suggest any other bapi for this functionality??
‎2014 Feb 18 12:11 PM
As already written PRELIMINARY_POSTING_FB01 is widely used even if not released. Also read carefully the OSS document, SAP suggests reports that generate Batch Input, so don't expect an official BAPI.
Regards,
Raymond
‎2014 Feb 19 11:31 AM
Hi,
While using that bapi ....i got error like 'Specify the account number' .pls help to resolve the issue
?
‎2014 Feb 18 11:51 AM
Hi ,
Please use below BAPI or your purpose to park documents.
CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
EXPORTING
fs006_fb01 = lw_fs006_fb01
i_tcode = 'FB01'
i_tcode_int = 'FB01'
TABLES
t_bkpf = lt_bkpf
t_bseg = lt_bseg
t_bsec = lt_bsec
t_bset = lt_bset
t_bsez = lt_bsez.
BR,
Vijay
‎2014 Feb 19 7:20 AM
Hi,
i am getting an error while use this bapi ' specify the account number'.
In the bapi I am passing
t_bkpf--------------------
company code
document date
document type -----------------------> 'KR'
posting date
period
reference document number
IN BSEG
G/l Account
profit center
cost center
orderid
allocated number
vendor no
pls help to resolve this issue??
‎2014 Feb 20 10:17 AM