cancel
Showing results for 
Search instead for 
Did you mean: 

Example--> Call RFC from external Java Application

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Update: I need code example to call RFC from External Java application. Can onybody help me?

RGDS

RP

-


hi all.

i want to create my own log for each interface.

i saw this blog:

/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility

my doubt is how to catch the error that i see in SXI_MONITOR y put it in a Sub-Objetc.

For example: in sxi_monitor i get the error for my interface NMUCustomer: "No receiver could not be found" or "Error Mapping Traformation".

I created an Object called ZNMUCUSTOMER and a Sub-Objetc called ZERROR.

what i must do to get the error I see in monitor and assign it to Sub-Object??

Rgds.

Message was edited by:

Rodrigo Pertierra

Message was edited by:

Rodrigo Pertierra

Message was edited by:

Rodrigo Pertierra

Accepted Solutions (0)

Answers (2)

Answers (2)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

how can invoke RFC to complete the log from external java application without java proxy?

Rgds

RP

Message was edited by:

Rodrigo Pertierra

Former Member
0 Kudos

HI,

With Application Analysing by TC,SLG1 , you can see the erro for object also which was created with SLG0, this was explained above.link.

See traces can be captured by changing the trace level in SXMB_ADM.

also , in mapping we raise an appication exception when error occured , also we can handle through UDF, you can display the custome trace through UDF , by abstract trace.

http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/e6ad3ccdc9ff54e10000000a114084/content.htm

Regards

Chilla

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

<i>in mapping we raise an application exception when error occurred , also we can handle through UDF, you can display the custome trace through UDF , by abstract trace</i>

be patient with me please.

1. UDF, what's that means?, sorry my question. it seems common word

2. how to create an abstract trace?

3. how to manipulate custome trace?

Rgds.

Rodrigo

Former Member
0 Kudos

Hi,

By using UDF (user-defined functions), only mapping related errors can be captured. Other errors, such Receiver Determination errors, adapter errors, etc., cannot be captured.

By using the Alert Framework in XI, you can raise alerts for all types of errors, including those in the integration server and the adapters. In ABAP, you can use the transaction ALRTDISP to look at all the alerts (include filtering and sorting).

To configure alerts, pls take a look at:

http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

Regards,

Bill

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

now is too much clear li. thanks.

using an abap program log, could i get mapping related errors i catch in UDF an put them into a Sub-Objetc?

could i differentiate mapping related errors by interface? For example.

Object ZCUSTOMER

........>SubObject ZMAPPING

..................> 'Value of the TAG <material>' "Error mapping tranformation"

Object ZSALES

........>SubObject ZMAPPING

..................> 'Value of the TAG <BUKRS>' "Error mapping tranformation"

thanks

RP

Message was edited by:

Rodrigo Pertierra

Former Member
0 Kudos

Hi,

To create the Abstract trace.

In udf try

AbstractTrace trace = container.getTrace();

trace.addinfo(" error for mapping of custom");

i hope it is clear. I am trying to help , i am sure, i have enough Patience.

Regards

Chilla

Message was edited by:

Chandra Sekhar Chilla

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Chilla:

is posibble i get access to this Abstract Trace from my Abap Mapping program to get "error for mapping of custom"

Former Member
0 Kudos

Hi,

In UDF, you have access to all the sender and receiver information, e.g. business services, interfaces and namespaces, plus more, e.g. msgid. You can use these information anyway you want, e.g. update to a database, or send it into the trace log in the monitor.

Regards,

Bill

Former Member
0 Kudos

Hi,

Try and confirm if it is not possible.

Regards

Chilla

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

its to much complicated i think.

how can i send the error to Trace Log monitor and complete de SubObject?

there no necesary create an ABAP Program Log for this case?

Rgds RP

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi chilla,

at the moment I am not using any mapping program.

I need to execute my RFC from external Java Application without Java Proxy. How can i do this?? I was reading at SAP HELP and i Found i can do it using Jco. but how?

Rgds

RP

Message was edited by:

Rodrigo Pertierra

Former Member
0 Kudos

HI,

See the below link may be useful..

/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

Regards

Chilla

Former Member
0 Kudos

Hello,

You have totally confused...

Do you want to log the application errors in SAP SLG1.

Then..

1. From the receving system.?

2. From the mapping?

Form the receving system then you have to call the FM shown in Michal's web log and you can do that from the proxy..

Same is the case when you want to do that from ABAP mapping.

Now if you are writing a Java Mapping then!!!!! you will have to call the FM's form ur java code!!!.

Let me know what you are trying to achieve.

Regards,

Former Member
0 Kudos

Forgot to add for the Java Mapping you will have to do mapping look up.

Regards

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi SriHari

I have an external application Java that make the mapping and must invoke RFC, send parameters to complete the Log.

hope it's clear