cancel
Showing results for 
Search instead for 
Did you mean: 

What to write in ABAP program at R/3 to call proxy classes.

former_member203627
Participant
0 Kudos

Hi

I am working on R/3 to File scenario and using ABAP Proxy for outbound.

I have generated proxy in XI server and have coded the program in R/3 but can one tell me wht code needs to be written in ABAP program at R/3 end to connect to ABAP proxy. How those objects will be available in R/3 side.

Please help as it's urgent.

thanks

Ria

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
former_member203627
Participant
0 Kudos

Hi Rekha,

Thanks for the link, I did write this code already as follows.

data prxy type ref to zxico_zproxy_interface_po .

create object prxy.

data it type zxipurch_order_info_snd.

try.

it-purchorderinfo_snd-ebeln = '000010'.

it-purchorderinfo_snd-werks = '2320'.

it-purchorderinfo_snd-bedat = '10/11/2005'.

it-purchorderinfo_snd-potype = '0'.

call method prxy->execute_asynchronous

exporting

output = it.

commit work

.

catch cx_ai_system_fault .

data fault type ref to cx_ai_system_fault .

create object fault.

write 😕 fault->errortext.

endtry.

When I do syntex check it give me error message:

The type "ZXICO_ZPROXY_INTERFACE_PO" is unknown. SInce this object was created in XI client so is not available in the R/3 just wondering do i need to create this in R/3 side.

Regards

Ria

Former Member
0 Kudos

Hi Ria,

You will have to generate your proxy in R/3 not in XI.Create the proxy again in R/3 and try again.

Thanks.

Rekha

former_member203627
Participant
0 Kudos

Thanks Rekha,

I am working on 4.5B version, I guess I won't be able to generate proxy in R/3 is that correct.

Ria

Former Member
0 Kudos

Hi Ria,

You can use proxy method only for webas>=6.20.So

you wont be able to use proxy method in that case.

Thanks.

Rekha

former_member203627
Participant
0 Kudos

Rekha

In Such scenario is there any other alternative I can use. DO I need to use RFC adapter now to achieve this functionality since I am cann't use Proxy.

Regards

Ria