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

need some debugging tips or ideas to debug a standard bapi

Former Member
0 Likes
604

hello abap gurus

I am trying to debug my program which is calling a standard bapi BAPI_QUOTATION_CREATEFROMDATA2.

When i try to call this program I am getting an error message '112 enter sold-to-party'. I have been sending that variable but still keep getting this error message. However, when I run manually I don't see this.

I have been calling committ transaction bapi also.

So my question is as follows.

BAPI_QUOTATION_CREATEFROMDATA2 calls several other functions which inturn are calling other functions and so on.

So I want to see if there is an easier way to search this function tree to see where exactly this message

'112 Enter Sold-To-Party' is getting generated.

Your help will be highly appreciated.

Thanks

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

Hi,

First just put on the debugger by giving /h. Once the control stops at the first statement then use breakpoint---->Break Point at statement-->give the statement as 'message' thus it will put the break points on for all 'Message' statements in the pgm. Keep on observing the control till it comes to the error code you are interested in.

OR

If you know the message code then SE91---->Give message class & Message no & use ;Where use' button. Put the break point on all those statements.

I hope this helps,

Regards

Raju Chitale

1 REPLY 1
Read only

Former Member
0 Likes
505

Hi,

First just put on the debugger by giving /h. Once the control stops at the first statement then use breakpoint---->Break Point at statement-->give the statement as 'message' thus it will put the break points on for all 'Message' statements in the pgm. Keep on observing the control till it comes to the error code you are interested in.

OR

If you know the message code then SE91---->Give message class & Message no & use ;Where use' button. Put the break point on all those statements.

I hope this helps,

Regards

Raju Chitale