Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem occured in making standard FM remote enabled

Former Member
0 Likes
3,474

Hi,

     I have create ZFM of  POSTING_INTERFACE_CLEARING and when i try to make it remote enabled

     inorder to execute it in background task,error message displayed

     You can only use LIKE and TYPE to specify types in RFC

      Message no. FL393,how I solve this issue.....

18 REPLIES 18
Read only

matt
Active Contributor
0 Likes
2,660

Change the type so that they meet RFC requirements. Read the ABAP help on CALL FUNCTION RFC for details.

Read only

Former Member
0 Likes
2,660

I have used LIKE in typing in import and export,what my problem is I m making copy of standard FM inorder to execute it in background task please help me out...

Read only

former_member191569
Active Participant
0 Likes
2,660

Hello Tiya,

when you enable a FM as RFC, one of the restrictions is that the FM must have all the parameters with the typification TYPE or LIKE.

IF you check POSTING_INTERFACE_CLEARING parameters, you will see that it has a parameters I_NO_AUTH that do not use either TYPE or LIKE typification.

Add TYPE typification to this parameter in your Z-RFC with the data type CHAR1.

David

Read only

0 Likes
2,660

Thanks David.It works...

Read only

0 Likes
2,660

This message was moderated.

Read only

Former Member
0 Likes
2,660

Hello,

You have to change the following parameters of your FM in order to get it to work:

e.g.:

Importing

I_NO_AUTH type c

In RFC's you have to explicitly declare your parameters types.

Read only

0 Likes
2,660

But it can't execute in backgroud task when i call this FM in report.

Read only

0 Likes
2,660

ok so now error is resolved and we need to find how to execute in background task..right?

Read only

0 Likes
2,660

Tiya,

even though its RFC enabled, still you can use it as a normal function module in your report for background task or in other ABAP code.

Enabling RFC is nothing but publishing this function module to outside SAP world to interact with.

So Still its SAP function module .

Thanks

SaiKrishna

Read only

0 Likes
2,660

yes...

Read only

0 Likes
2,660

Bt how I resolve my problem?????

Read only

0 Likes
2,660

Hi,

Try call the FM as below

CALL FUNCTION 'ZK_XX' IN BACKGROUND TASK

            EXPORTING.......

Thanks

Naresh Bammidi

Read only

0 Likes
2,660

Hello Naresh I try this bt still dosen't work....

Read only

0 Likes
2,660

 

CALL FUNCTION FM NAME IN BACKGROUND TASK
AS SEPARATE UNIT
DESTINATION im_handler->m_linkage-rfcdest
EXPORTING
objtype = l_bor_objtype
objkey = l_bor_objkey
event = l_bor_event
rectype = l_bor_rectype
exceptions_allowed = space
TABLES


event_container = lt_event_container.

Read only

0 Likes
2,660

What error do you get...? Can you please attach a screen shot of the FM attributes?

Read only

0 Likes
2,660

Hello Mr. Madan can u plz explain me about im_handler->m_linkage-rfcdest ...

Read only

0 Likes
2,660

HiTiya

It is an example. In case your FM is going to run in same system give destination as NONE. Please check the other example of receiving results which i have give you, you will be able to get the results using that syntax.

CALL FUNCTION FM NAME IN BACKGROUND TASK
AS SEPARATE UNIT
DESTINATION NONE

EXPORTING
objtype = l_bor_objtype
objkey = l_bor_objkey
event = l_bor_event
rectype = l_bor_rectype
exceptions_allowed = space
TABLES


event_container = lt_event_container.

Read only

0 Likes
2,660

That is the RFC destination name ,if the called FM is in other server you have add the addition DESTINATION

Thanks

Naresh Bammidi