cancel
Showing results for 
Search instead for 
Did you mean: 

Error in activation of ABAP Proxy

Former Member
0 Kudos

Hi Experts

I am developing an interface between BW 3.5 and SAP-XI. Business scenario is: XI loading csv files as records into the delta que in BW.

I have created a SOAP connection DataSource (begins with "6"), and established a delta que. Init and Delta InfoPackages work fine (there are 0 recors in the delta que).

In t-code SPROXY I created a new Proxy under the relevant component that was developed in the XI.

When I hit the Activation button for the proxy, I get an error message about a syntax error in the Interface of the generated ABAP class for the proxy: (6AZMM_GLOBAL is the name of the Datasource)

" You can only refer to the object type ZCX___BI0__QI6AZMM_GLOBAL_RFC using "REF TO". "

I have tried to play around with generated ABAP but no luck!

Where could be the problem, on BW / XI side? I didn't find any relevant threads or notes...

Please help...

Thanks,

Yaniv

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

In the SPROXY transaction , create the corresponding class and interface and save it to the package $TMP . Now save it and activate .

Hope this will solve your problem

Regards,

Jude

Former Member
0 Kudos

Hey Jude

thanks for the quick and clear response.

Unfortunatly, I have already tried to created the SPROXY under $TMP but the error still occurs.

Also, I've tried various names but the error remains...

Yaniv

Answers (2)

Answers (2)

Former Member
0 Kudos

Don't rely on SAP generated code, use your ABAP skills/intuition ...

Former Member
0 Kudos

Hi ,

Check ur code . Find if any syntax error is there .

or Paste the error , so that it will be easily for us to find a solution

Regards,

Jude

Former Member
0 Kudos

Hi

I haven't inserted any code yet...

here is the code for which the error appears:

interface ZMMII_INVENTORY_VISIBILITY_IN
  public .


  methods EXECUTE_ASYNCHRONOUS
    importing
      !INPUT type ZMMCX___BI0__QI6AZMM_GLOBAL_RF
    raising
      ZMMCX___BI0__QI6AZMM_GLOBAL_RF .
endinterface.

the error refers to the line :

!INPUT type ZMMCX___BI0__QI6AZMM_GLOBAL_RF

I tried to add "REF TO" to this line and the interface was indeeded activated, but then I couldn't use INPUT in the main generated class since INPUT is of "TYPE REF TO"

Former Member
0 Kudos

Hi

INPUT is nothing but an internal table with deep structure , Check your Message type in the XI , Both should be same .

why you have ! INPUT it shd be INPUT right ....

or else Delete all the Interface , method , class ....Now go to SPROXY , redo the same process again , and save it in the Package $ TMP ( Local object ) save and activate it

Regards,

Jude

Former Member
0 Kudos

Hi

I already did all the stuff that you asked... (deletion fo all objects and re-generating new ones, removing "!" before INPUT )

unfortunatly, nothing worked ...

Former Member
0 Kudos

Hi ,

whats your scenario , Its OUTBOUND or INBOUND . Create the the interface and class correctly ....

Regards,

Jude

Former Member
0 Kudos

The scenario is INBOUND.

Any way, you wrote that INPUT is just a deep structure and it made me think...

Finally, instead of using:

TYPE ZMMCX___BI0__QI6AZMM_GLOBAL_RF

I used another structre:

TYPE ZMMINVENTORY_VISIBILITY_IN_IB2

(this is another generated structure)

AND EVERYTHING WORKED

So, thanks for the hint, it was helpfull

Yaniv

Former Member
0 Kudos

Hi ,

Great , the structure which you have given is nothing but the MT ( Message type ) in XI

So , finally solved . great .

Regards,

Jude