SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

RFC



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Мальцев
Участник
Участник



Joined: 28 Sep 2007
Posts: 31

PostPosted: Mon Dec 03, 2007 2:07 pm    Post subject: RFC Reply with quote

Привет!
Подскажите, как сделать rfc функциональный модуль?
Какие доп. настройки требуются?
Back to top
View user's profile Send private message
july7
Старший специалист
Старший специалист



Joined: 10 Oct 2007
Posts: 109
Location: Киров

PostPosted: Mon Dec 03, 2007 2:25 pm    Post subject: Reply with quote

Вот пример: http://saptechnical.com/Tutorials/ABAP/RFCCall/Page1.htm
Back to top
View user's profile Send private message
Мальцев
Участник
Участник



Joined: 28 Sep 2007
Posts: 31

PostPosted: Mon Dec 03, 2007 2:36 pm    Post subject: Reply with quote

Отличный хелп, спасибо!
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 160
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Mon Dec 03, 2007 3:32 pm    Post subject: Reply with quote

Насколько помню, есть ограничение: Параметры можно передавать только по значению.
Back to top
View user's profile Send private message Blog Visit poster's website
Мальцев
Участник
Участник



Joined: 28 Sep 2007
Posts: 31

PostPosted: Mon Dec 03, 2007 4:59 pm    Post subject: Reply with quote

Какой функцией проверить, что удаленная система, в которой мы собираемся вызывать rfc функцию, доступна?
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 160
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Dec 04, 2007 10:24 am    Post subject: Reply with quote

Ferry Lianto wrote:
You can use this FM RFC_VERIFY_DESTINATION if your release is greater than 4.6C.
Check this sample code from Craig Cmehil's weblog.


CALL FUNCTION 'RFC_VERIFY_DESTINATION'
EXPORTING
DESTINATION = TMP
TIMEOUT = 10
EXCEPTIONS
INTERNAL_FAILURE = 1
TIMEOUT = 2
DEST_COMMUNICATION_FAILURE = 3
DEST_SYSTEM_FAILURE = 4
UPDATE_FAILURE = 5
NO_UPDATE_AUTHORITY = 6
OTHERS = 7.

IF SY-SUBRC EQ '0'.
"* Do code here
ENDIF.

or you can also use this FM RFC_PING and check this sample code from other thread.


DATA : IT_RFCSI LIKE RFCSI OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'RFC_PING'
DESTINATION IT_SLS-SYST
EXCEPTIONS
SYSTEM_FAILURE = 1
MESSAGE RFC_MESS1
COMMUNICATION_FAILURE = 2
MESSAGE RFC_MESS1.

IF NOT RFC_MESS1 IS INITIAL.
MESSAGE I000(YHPA0K) WITH RFC_MESS1.
ELSE.
CALL FUNCTION 'RFC_SYSTEM_INFO'
DESTINATION IT_SLS-SYST
IMPORTING
RFCSI_EXPORT = IT_RFCSI
EXCEPTIONS
COMMUNICATION_FAILURE = 1
MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2
MESSAGE MSG_TEXT.

MESSAGE I001 WITH 'Connection to '(029)
IT_SLS-SYST
'Succeeded'(030).
ENDIF.
ENDIF.



Also please check FM RFC_CHECK_DESTINATION and RFC_CHECK_DESTINATION_ID.


Regards,
Ferry Lianto


В 4.6C RFC_PING пустышка Sad
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.