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

Regarding posting FI document

Former Member
0 Likes
906

Hello,

We are using BAPI's: BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST for posting the FI documents,

Every things works fine, but when the case GL has automatic postings the BAPI is not considering the automatic postings and it gets poated through BAPI, but in real case it should not get posted when a GL has Automatic postings,

Can some one who had experienced or any view in considering the check on automatic postings, we can manually code before we call BAPi and ignore the GL to be posted but can we have an option to enhance the standard BAPI , may be with the extensions is it possible?

or any enhancements on this ?

Thanks in adv,

Sailaja

3 REPLIES 3
Read only

Former Member
0 Likes
768

Dear Sailaja,

If the GL is flagged for automatic postings, we use BAPI_ACC_DOCUMENT_POST to automate the postings and to bypass normal transaction codes.

If you want to avoid these kind of postings, validate GL is flagged for automatic posting or not in your Z program it self while populating GL account into BAPI structure.

If SKB1-XINTB = 'X'

  "Raise a message

endif.

Thanks and Regards,

Chandra

Read only

0 Likes
768

Hi Chandra,

Yes i am handling that validation in Z program, but i need the samething which can be handled in standard BAPI itself so we can avoid this validation in all the Z programs we use, can we use any enhancement or any BADI.. if available?

Can this be possible is my query..

Thanks in Adv,

Sailaja

Read only

0 Likes
768

Hi,

If you want to restrict inside the BAPI, the best way is by using substitution. If required write a exit in the Substitution with the help of FI  consultant.

Thanks and Regards,

Chandra