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

checking before calling BAPI FM

Former Member
0 Likes
481

Hi,

Do we need to check the master data before passing the internal table to function moodule.If the master data is not existing then anyway the bapi will give error , then why do we need to check the master data before passing the internal table to bapi FM.

Rgds,

Sanjay

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
424

HI Generally BAPI does all the validations same as available in the standard transaction.

But i have also faced some situation in CMS module BAPI's , the plausibility checks were done independently.

3 REPLIES 3
Read only

Former Member
0 Likes
424

Hi,

if you set proper checks within the program there won't be any unnecessary function calls or method call or subroutine call

which can cause exceptions, performance issues and longer processing time.

As in your case BAPI would handle the exception if there are no contents but still if you don't a check point it will call the BAPI simply and execute it right.

Regards,

Ranjith Nambiar

Read only

0 Likes
424

Hi,

Generally , I have found programs doing the checks before passing to BAPI , is it proper practice or it is not required .I want to use BAPI_ACC_DOCUMENT_POST , so should i check the master data like gl/account,cost centre before calling the bapi.

Rgds,

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
425

HI Generally BAPI does all the validations same as available in the standard transaction.

But i have also faced some situation in CMS module BAPI's , the plausibility checks were done independently.