cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI gives error through JCo and works fine with JRA

0 Likes
476

I am trying to execute a BAPI - BAPI_PROCORD_RELEASE through MII. When i execute it through JCo it throws an error "Function not possible for the object" and when i execute it through JRA connection it runs fine. Can somebody help me why does this happen, i checked the request xml of both and found it to be same

Thanks

Anant

Accepted Solutions (0)

Answers (1)

Answers (1)

HariCS23
Contributor
0 Likes

Hello Anant, Can you try to put external break point in ECC and see if any value defaulted through Running with SE37 vs JCO vs JRA.

Thanks

Hari

0 Likes

Thanks Hari

I didn't actually get it, how can a breakpoint be put in the ECC while running through JCo. I am not very conversant with ECC.

Thanks

Anant

rutika_bodas
Participant
0 Likes

Hi Anant,

Go to the BAPI's source code and put an external breakpoint using the button on top with a 'Stop' mark on it.

When you execute the JCO function from MII, the execution will come and stop in your BAPI at the breakpoint taht you have set.

This is how you can compare JCO and JRA. Analyze the difference between the execution when flow stops on using JCO vs the flow while using JRA from MII side.

Thanks,

Rutika

0 Likes

Hi Rutika,

Thanks.. but are u sure that the by creating a breakpoint in the BAPI and calling it externally from MII will stop the code at the breakpoint.

I tried it but its not happening. I think there should be some queues where all the external calls can be checked

Thanks

Anant

HariCS23
Contributor
0 Likes

The user configured to call BAPI from MII and user logged in ECC should be same.

0 Likes

Yes it is same in both the places.

Thanks

Anant

HariCS23
Contributor
0 Likes

Make sure you open that function in SE37 with the same user and set external break point. It will work.