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: 

Exception condition CNTL_ERROR raised

Former Member
0 Kudos

Hi everybody

I try to create a Business Partner of t_code "BPV1", and I used to create the t_code "sm35" to do a recording of the t_code "BPV1.

1. I tested my recodring a then hasn't problems.

2.I create a function module with this recording and then I tested, it hasn't problems.

3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.

4. But when PI consume and get service of my ABAP Proxy dump this error

"Exception condition CNTL_ERROR raised"

The cancelation class was : RABAX_STATE

I think that the problem is my recording but I tested all and it hasn't problems. The problem display only qhen PI try to consume my service of ABAP Proxy.

2 REPLIES 2

Former Member
0 Kudos

HI,

2.I create a function module with this recording and then I tested, it hasn't problems.

I presume you tested the FM in SE37, try this call this FM in a test report program and call the FM in "BACKGROUND TASK" or call the FM in normal way and schedule the report to run in the background and see the results.

3. This function I invoque on ABAP Proxy, then I tested the ABAP Proxy. it hasn't no problems.

Again I presume you tested the FM in SPROXY, create a report program and create an instance of the proxy class and invoke the schedule the report to run in background.

The reason why the call from PI is failing because the BDC recording you have done has some control elements that need GUI support, now when you try using SE37/SPROXY the GUI is available and hence your testing went smooth.

4. But when PI consume and get service of my ABAP Proxy dump this error

When the call is made from PI, there is no GUI available and hence the program terminates.

Solution: I am sure there are BAPI's available with which you can create partners, try and look for a BAPI which can do this.

Regards,

Chen

Former Member
0 Kudos

Is necessary find a BAPI