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

FI document Psting during PGI

Former Member
0 Likes
1,182

Hi ,

I need help while posting the FI document during PGI. The requirement is to add line items in FI documents.

Tried with couple of things:

1) BAPI_ACC_GL_POSTING_POST

2) BAPI_ACC_DOCUMENT_POST

3) OPEN_FI_PERFORM_00001120_P

4) EXIT_SAPLFMR4_002

5) BADI : AC_DOCUMENT

All helped in changing not adding extra lines.

Any help is much appreciated.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
969

Hello,

BAPI_ACC_DOCUMENT_POST will resolve your purpose.

If you want to check for errors before posting use BAPI_ACC_DOCUMENT_CHECK. Its almost like test run for the other BAPI.

But there is no provision to pass Posting Key and Special G/L indicator to this FM. Inorder to do that use BTE.

Make a z-fm of the process RWBAPI01 and pass the values.

Hope it helps!!!!

Rgrds,

Sravan

Hi ,

I need help while posting the FI document during PGI. The requirement is to add line items in FI documents.

Tried with couple of things:

1) BAPI_ACC_GL_POSTING_POST

2) BAPI_ACC_DOCUMENT_POST

3) OPEN_FI_PERFORM_00001120_P

4) EXIT_SAPLFMR4_002

5) BADI : AC_DOCUMENT

All helped in changing not adding extra lines.

Any help is much appreciated.

Regards

2 REPLIES 2
Read only

Former Member
0 Likes
970

Hello,

BAPI_ACC_DOCUMENT_POST will resolve your purpose.

If you want to check for errors before posting use BAPI_ACC_DOCUMENT_CHECK. Its almost like test run for the other BAPI.

But there is no provision to pass Posting Key and Special G/L indicator to this FM. Inorder to do that use BTE.

Make a z-fm of the process RWBAPI01 and pass the values.

Hope it helps!!!!

Rgrds,

Sravan

Read only

0 Likes
969

Hi,

BAPI_ACC_DOCUMENT_POST   is for posting additional documents.

The issue gets resolved by using EXIT EXIT_SAPLFMR4_002 and writing appropriate code to fetch values .

Thanks for taking time and responsing.

Shefali