Application Development 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: 

Testing of Function Module

Former Member
0 Kudos

Hi,

I want to test the BAPI Function mudule for PO.how to test it in SE37.

please tell me the Step by Step procedure like how to give values and how to know the errors etc.

Regards,

Shobha Henry

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Shobha,

Just go to SE37 give ur FM name and put Breakpoint whereever u want.

and just give ur Tcode in ur command bar and execute .

and so on ,

Reward points if helpful.

Thanks

Naveen khan

3 REPLIES 3

Former Member
0 Kudos

Hi Shobha,

Just go to SE37 give ur FM name and put Breakpoint whereever u want.

and just give ur Tcode in ur command bar and execute .

and so on ,

Reward points if helpful.

Thanks

Naveen khan

messier31
Active Contributor
0 Kudos

hi,

It similar to like testing any function module. after execution you have to check the RETURN parameter to see how the bapi was executed.

you might want to call commit bapi in order to see if bapi really does the changes that you want ot do... In such case you to call commit bapi after your bapi call in se37 itself..

To do so

1. Go to trasanction SE37

2. Menu path: Function Module --> Test --> Test Sequence..

3. On the popup menu enter the sequence of func mode want to execute in series...

4. For example, for one of my test I executed bapis in these order.

BAPI_PS_INITIALIZATION

BAPI_BUS2054_CREATE_MULTI

BAPI_PS_PRECOMMIT

BAPI_TRANSACTION_COMMIT

Hope this helps you.

Enjoy SAP.

Pankaj Singh.

Former Member
0 Kudos

Hi,

I got some idea hoe to do Testing of FM.

thankyou for quick response.

Regards,

Shobha Henry.