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_ACC_DOCUMENT_POST

Former Member
0 Likes
2,845

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?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,344

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

10 REPLIES 10
Read only

Former Member
0 Likes
2,344

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 

Read only

0 Likes
2,344

Hi,

Thank you for the reply,how can i park non gl   using  bapi_acc_document_post ?

pls help me on this issue?

Read only

p291102
Active Contributor
0 Likes
2,344

It wont be possible with your BAPI.

BAPI_ACC_DOCUMENT_POST

If you want to achieve this you have to use

PRELIMINARY_POSTING_FB01 - function module

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,345

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

Read only

0 Likes
2,344

Hi,

Thank you for the reply....Can you please suggest any other bapi for this functionality??

Read only

0 Likes
2,344

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

Read only

0 Likes
2,344

Hi,

While using that bapi ....i got error like 'Specify the account number' .pls help to resolve the issue

?

Read only

Former Member
0 Likes
2,344

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

Read only

0 Likes
2,344

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??

Read only

0 Likes
2,344

Hi,

Please check below SCN post,

BR,

Vijay