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: 

doubt in testing bapi

Former Member
0 Kudos

hi,

i wrote one bapi to extract data from sap 4.7?

after writing the source code in se37?

how to test the bapi..

how to debug that code?

plz give brief steps?

thanks

Ruban

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

For testing use destination NONE.

13 REPLIES 13

former_member194669
Active Contributor
0 Kudos

Hi,

For testing

SE37-->type bapi name --> F8 --> F8

For debug & testing

SE37-->type bapi name --> F8 --> Ctrl+F7

ferry_lianto
Active Contributor
0 Kudos

Hi,

You can use Test Sequences (SE37) to test your custom BAPI along with BAPI BAPI_TRANSACTION_COMMIT.

1. Go to SE37.

2. Enter Function Module with your BAPI.

3. Go to Menu: Function Module -> Test -> Test Sequences.

4. Enter your BAPI name and next enter BAPI_TRANSACTION_COMMIT.

5. Click on Execute button.

6. Click on Execute button to run the test sequences. To debug, click on

Debugging button.

Regards,

Ferry Lianto

0 Kudos

hi,

I developed ZBapi (remote enabled Function module ) to extract PO

after writing the code..i have to activate...or before that i have to check or debug?

thanks

Ruban

0 Kudos

Hi,

First you need to activate and if any errors found clear then activate

then go for testing and debuging

ferry_lianto
Active Contributor
0 Kudos

Hi,

You need to check (CTRLF2) and activate (CTRLF3) in order to find out any syntax error occured for your ZBAPI.

Once eveything is fine then you can start testing or debugging your ZBAPI.

Regards,

Ferry Lianto

former_member194669
Active Contributor
0 Kudos

Hi,

For testing use destination NONE.

0 Kudos

Hi folks,

Thanks for ur replies..

when i press test/execute button in Zbapi

I am getting REC target (no need to give anything here)

what about test data, i have to get it from function guys..how to get test data?

in the import parameters(EBELN field) and Tables (ekko, EKPO,EKET,ADRC,EKKN)

what i have to fill in?

This bapi i am going to use..i am going to give other middleware people to use?

0 Kudos

hi,

can i get some sample data from any table?

thanks

Ruban

0 Kudos

Hi,

You as technical person goto ser11--> type EKKO and display table entries and find any EBELN value and paste into import parameter of the RFC and press F8 , and check whether you are getting values in tables?

a®s.

0 Kudos

hi,

actually i created remote enabled Z function module not ZBAPI..

Thanks

Ruban

0 Kudos

hi ars,

I could not able to assign points bec assigning point option is not active.

later if it is active i will assign points for all answers..

Thanks for ur immediate response.

Ruban

0 Kudos

hi,

when i went to se11..> typed EKKO table then display table

but i could not find any values..bec here i will get only that table field name and data element?

how to get the values for EBELN field?

Thanks

Ruban

Former Member
0 Kudos

hi