View previous topic :: View next topic
Author
Message
Мальцев Участник Joined: 28 Sep 2007 Posts: 31
Posted: Mon Dec 03, 2007 2:07 pm Post subject: RFC
Привет!
Подскажите, как сделать rfc функциональный модуль?
Какие доп. настройки требуются?
Back to top
july7 Старший специалист Joined: 10 Oct 2007 Posts: 109 Location: Киров
Back to top
Мальцев Участник Joined: 28 Sep 2007 Posts: 31
Posted: Mon Dec 03, 2007 2:36 pm Post subject:
Отличный хелп, спасибо!
Back to top
vga Мастер Age: 165 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Mon Dec 03, 2007 3:32 pm Post subject:
Насколько помню, есть ограничение: Параметры можно передавать только по значению.
Back to top
Мальцев Участник Joined: 28 Sep 2007 Posts: 31
Posted: Mon Dec 03, 2007 4:59 pm Post subject:
Какой функцией проверить, что удаленная система, в которой мы собираемся вызывать rfc функцию, доступна?
Back to top
vga Мастер Age: 165 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Tue Dec 04, 2007 10:24 am Post subject:
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 пустышка
Back to top
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.