2013 Nov 26 12:03 PM
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
Message no. FL393,how I solve this issue.....
2013 Nov 26 12:07 PM
Change the type so that they meet RFC requirements. Read the ABAP help on CALL FUNCTION RFC for details.
2013 Nov 26 12:13 PM
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...
2013 Nov 26 12:11 PM
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
2013 Nov 26 12:16 PM
2013 Nov 26 12:21 PM
2013 Nov 26 12:17 PM
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.
2013 Nov 26 12:22 PM
But it can't execute in backgroud task when i call this FM in report.
2013 Nov 26 1:07 PM
ok so now error is resolved and we need to find how to execute in background task..right?
2013 Nov 26 6:46 PM
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
2013 Nov 27 4:48 AM
2013 Nov 27 4:49 AM
2013 Nov 27 5:17 AM
Hi,
Try call the FM as below
CALL FUNCTION 'ZK_XX' IN BACKGROUND TASK
EXPORTING.......
Thanks
Naresh Bammidi
2013 Nov 27 5:26 AM
2013 Nov 27 5:30 AM
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.
2013 Nov 27 5:33 AM
What error do you get...? Can you please attach a screen shot of the FM attributes?
2013 Nov 27 5:45 AM
Hello Mr. Madan can u plz explain me about im_handler->m_linkage-rfcdest ...
2013 Nov 27 5:56 AM
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.
2013 Nov 27 5:58 AM
That is the RFC destination name ,if the called FM is in other server you have add the addition DESTINATION
Thanks
Naresh Bammidi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |