cancel
Showing results for 
Search instead for 
Did you mean: 

for proxy any coding required

Former Member
0 Kudos

i have never done any proxies so is there any coding required in ABAP part, i am using ABAP proxies

thanking you

sridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Here is the sample code

Report <report name>.

data prxy type ref to <Interfacename>.

create object prxy.

data it type <Message type>.

try.

it-mt_file_input_proxy-detail-name = 'Sravya'.

it-mt_file_input_proxy-detail-lname = 'text'.

it-mt_file_input_proxy-detail-address = 'NetWeaver'.

call method prxy->execute_asynchronous

exporting

output = it.

commit work

.

**TRY.

call method <Interfacename>=>execute_asynchronous

exporting

    • CONTROLLER =

output = it

.

  • CATCH CX_AI_SYSTEM_FAULT .

*ENDTRY.

catch cx_ai_system_fault .

data fault type ref to cx_ai_system_fault .

create object fault.

write 😕 fault->errortext.

write:/'error occured'.

endtry.

Try this it may help u...

Regards

Yuga

Answers (2)

Answers (2)

Former Member
0 Kudos

Sri,

Since we are creating the classes and structures from XI repository objects through SPROXY transaction in R/3. we need to write a ABAP code to use of those classes and methods.

Regards,

Yuva

Former Member
0 Kudos

Thank you yuva,

i will greatfulll if you give a simple sample coding

thanking you

sridhar

Former Member
0 Kudos

sri,

Go through this blog; it describes about simple scenario with ABAP proxy as outbound. A report triggers the Proxy.

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Note:

If you want to test the Proxy for outbound, you could use the SPROXY transaction to test it, were proxy will be triggered manually. An sample XML will be generated.

<<Rate - if its usefull>>

Former Member
0 Kudos

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy u can find the sample code also there

also have a look at http://help.sap.com/saphelp_nw2004s/helpdata/en/81/845f3c31727d59e10000000a114084/frameset.htm for basics

regards,

Pratibha

Former Member
0 Kudos

Hi Sridhar,

Just go through this and you will come to know everything.

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm

ABAP Server Proxies By Siva Maranani

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm

Regards,

Sarvesh