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

PRELIMINARY_POSTING_FB01 Test run only

Former Member
0 Likes
1,606

Hi,

I'm using FM PRELIMINARY_POSTING_FB01 to park FI documents.

Is there a way to test first if PRELIMINARY_POSTING_FB01 would successfully park a document without the document actually being parked?

Rollback work does not seem to work. Do you have any suggestions? Thanks.

Regards,

Chris

Hi,

I'm using FM PRELIMINARY_POSTING_FB01 to park FI documents.

Is there a way to test first if PRELIMINARY_POSTING_FB01 would successfully park a document without the document actually being parked?

Rollback work does not seem to work. Do you have any suggestions? Thanks.

Regards,

Chris

6 REPLIES 6
Read only

Former Member
0 Likes
1,277

Hi,

You can try the FM in SE37 and check these table entries

T_BKPF

T_BSEG

T_BSEC

T_BSET

T_BSEZ

T_BKORM

T_THEAD

T_SPLTTAB

T_SPLTWT

also pass

i_tcode       = 'FB01'

i_xcmpl       = 'X'  " Completion status

Thanks.

Read only

0 Likes
1,277

Hi Benson,

What i'm asking for is like a simulation run for the the FM without parking documents being created for the program.

Not how to test it in SE37.

I can park using the FM already. I want to be able to simulate first before i park.

Regards

Read only

0 Likes
1,277

Hi Chris,

You could check or simulate first using the BAPI - BAPI_ACC_GL_POSTING_CHECK and then park the documents using the BAPI - BAPI_ACC_GL_POSTING_POST.

You could also check the FM - PRELIMINARY_POSTING_POST_CHECK first.  But the above solution we have tried and works.

Hope it helps.

Thanks,

Tooshar Bendale

Read only

0 Likes
1,277

Hi Tooshar,

I appreciate the response. This is what i have in mind. Might as well proceed with this. Thanks again.

Regards,

Chris

Read only

0 Likes
1,277

Hi Tooshar,

Last time i checked, people were having issues when parking with BAPI_ACC_GL_POSTING_POST. Like when displaying in FB03.

Could you point me to a thread where BAPI_ACC_GL_POSTING_POST actually works without issues?

Would appreciate that.

Thanks.

Read only

0 Likes
1,277

Hi Chris,

We have faced the same issue very recently.

Sadly, we could not find a standard BAPI to park document.

But yes there is a way out.

You can use BAPI BAPI_ACC_DOCUMENT_POST.

But, there are couple of things you might want to do.

1. Create an implementaion for BADI BADI_ACC_DOCUMENT.

2. Pass a text like "PARK_DOC" or something to extension2 to parameter of the BAPI (to uniquely identify that this is for parking).

3. Inside BADI method IF_EX_ACC_DOCUMENT~CHANGE, change the value of c_acchd-status_new to "2".

This will work fine for sure.

Do let me know if this is useful and do get back to me if you need more info.

Thanks,

Sreekanth