cancel
Showing results for 
Search instead for 
Did you mean: 

Can RFC be called asynchronously?

Former Member
0 Kudos

Hi

My scenario is file->xi->RFC

My RFC doesnt contain any export parameter.It only updates the FF_5 transaction by taking the file as input parameter.

The code is as follows

***********************************************

FUNCTION Z_RFC_BANK.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(FILEINPUT) TYPE STRING

*"----


data:table type standard table of string initial size 0.

data:wa_table type string.

data:p_mode type FEBFORMAT.

DATA BIN TYPE string.

data :p_file type RFPDO1-FEBAUSZF.

data:TARGETFILE LIKE EPSF-EPSPATH.

targetfile = 'E:\usr\sap\DEV\DVEBMGS00\data\COVDATA'.

wa_table = FILEINPUT.

append wa_table to table.

OPEN DATASET TARGETFILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

loop at table into wa_table.

BIN = wa_table.

TRANSFER BIN TO TARGETFILE.

endloop.

CLOSE DATASET TARGETFILE.

SUBMIT RFEBKA00 USING SELECTION-SET 'ZASD' AND RETURN.

ENDFUNCTION.

************************************

My question is can i declare an asynchronous message interface for ths RFC? because it doesnt return anything.

Thanks

Debraj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi Debraj,

check this below give link which tells about using Asynchronous RFC's(this may give you an idea when u can use ur RFC asynchronously and how?).:)

==>http://help.sap.com/saphelp_nw04s/helpdata/en/22/042592488911d189490000e829fbbd/frameset.htm

cheers,

Sundararamaprasad.

Former Member
0 Kudos

Thanks Ravi

In the time of message mapping should i have to create one asynchronous message interface for the RFC.Or i can directly map with the RFC like IDoc?

Debraj

Former Member
0 Kudos

Deb

I think you need to have a Message interface outbound based on the request structure in RFC

Former Member
0 Kudos

Yes you can use directly, just like the IDOC.

Regards,

Ravi

Note : Please reward for the helpful answers.

Former Member
0 Kudos

Debraj,

You can do that wihtout any issues. In fact you call an RFC asynchronously even if the RFC has got export parameters. You just don't use the response message.

Regards,

Ravi

Note : Please reward the posts that help you.