cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Sync RFC from a report prog

Former Member
0 Kudos

Hi Everybody,

COuld you guys pls tell me how to execute Sync RFC using a report. I have written this code but it gives error.

data wa type c.

CALL FUNCTION 'Z_HR_NO_ALTINN_TX' DESTINATION 'Q3A2X7A'

exporting

PASSWORD = 'k'

importing

status = wa.

commit work.

Pls guide.

Regards,

Ashish

Accepted Solutions (0)

Answers (4)

Answers (4)

STALANKI
Active Contributor
0 Kudos

try setting the timeout parameter in the J2EEADMIN SERVICE-RFC ADAPTER to a big value.

Former Member
0 Kudos

thanks Sravya Talanki for your answer but I didn´t understand it.

I am working with an abap-report and not with an j2ee application...has anyone another idea to avoid my "rfc_external_abort"?

Former Member
0 Kudos

Hi,

possible solution could be a ConversionException in you RFC Adapter because of mismatching data types in your source and receiver message.

Just goto RWB an monitor the Processing Details for Cluster Node Server of your adapter in the Channel Monitoring.

Afterwards you have to adjust your importing or exporting structure of the used RFC function module.

Cheers,

André

Former Member
0 Kudos

@Ashish Goyal

Did you solve your problem?

I have an "rfc_externbal_abort" error in my abap-programm too.

Shabarish_Nair
Active Contributor
0 Kudos

try,

CALL FUNCTION 'Z_HR_NO_ALTINN_TX' DESTINATION 'Q3A2X7A' <b>IN BACKGROUND TASK</b>

exporting

PASSWORD = 'k'

importing

status = wa.

commit work.

Also post the error that u r getting here.

Former Member
0 Kudos

Hi Shabarish,

When i execute the program as adviced by you. I get the error message:

CALL FUNCTION 'Z_HR_NO_ALTINN_TX' IN BACKGROUND TASK DESTINATION 'Q3A2X7A'

exporting

PASSWORD = 'k'

importing

status = wa.

commit work.

CALL FUNCTION IN BACKGROUND TASK DOESN"T ALLOW IMPORTING PARAMETERS.

Ashish

MichalKrawczyk
Active Contributor
0 Kudos

hi,

no commit needes in case of sync

is your RFC dest working?

is it done in XI (the whole flow) ?

Regards,

michal

Former Member
0 Kudos

Thanks Michal for your reply.

To answer your questions:

I tried with commit work.

data wa type c.

CALL FUNCTION 'Z_HR_NO_ALTINN_TX' DESTINATION 'Q3A2X7A'

exporting

PASSWORD = 'k'

importing

status = wa.

2) Yes my RFC Destination is working.

3) Sorry I didn't get your third question. Could you pls elaborate a bit more.

This is the error i get when i execute the above report.

<b>ShrtText</b>

"call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryEx

<b>What happened?</b>

Error in ABAP application program.

The current ABAP program "Z_ALTINN_TEST" had to be terminated because

the

statements could not be executed.

This is probably due to an error in the ABAP program.

The error occurred in an RFC call to another system.

The target system has also written a short dump.

Consult this short dump for more precise information about

the cause of the error.

<b>Error analysis</b>

An error occurred when executing a REMOTE FUNCTION CALL.

It was logged under the name "RFC_EXTERNAL_ABORT"

on the called page.

Ashish

MichalKrawczyk
Active Contributor
0 Kudos

hi,

where is that RFC supposed to execute?

on XI ? if so you need to create the flow in XI

which will handle it

Regards,

michal

Former Member
0 Kudos

Hi,

First make sure that the function module you have created is remote enabled.

Then make sure that your report is correctly populating the export parameters of the RFC.

Then check with the RFC destination.

Thanks and Regards,

Sudheer.

Former Member
0 Kudos

Michal, I am using this RFC in RFC(Sync) ---> XI ---> SOAP(Sync) scenario. I have created one Receiver Determination, Interface Determination, Sender and Receiver aggrement.

My R/3 is a business System and Soap is a Business Service.

Ashish

stefan_grube
Active Contributor
0 Kudos

> <b>ShrtText</b>

> "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryEx

Your ABAP code is well. The PI is reached. The error message comes from PI.