Sending IDocs via RFC Adapter
Hello!
In an itegration scenario, we need to send (non XML) IDocs via RFC to a remote R/3 system (4.6C). As we don't want to get these IDocs persisted on the target system, it's intended to address the remote functions directly.
Now the problem:
- RFC Adapter only works with XML IDocs (so we cannot transfrom back to native IDoc)
- IDoc-Adapter sends native IDocs, but only to IDOC_INBOUND_ASYNCHRONOUS on target system (and the Idocs will be persisted)
In a next step, we also tried to implement a workaround with a local ABAP proxy on the XI system. But it seems, that it's not allowed to call a abap proxy locally on the integration engine.
Has anybody any idea to solve this problem? Maybe I'm thinking too complicated Help is highly appreciated!
Cheers,
Matthias
Hi,
what kind of document you want to post?
most (many) IDOCs use BAPIs so you can
just call the BAPI (RFC) from XI
>>>But it seems, that it's not allowed to call a abap proxy locally on the integration engine.
you can call it on another client on the XI
(which is set as application system in SXMB_ADM)
Regards,
michal
Similar Messages
-
Problems with sending IDOC via RFC from Unicode to NonUnic
Hello
I have following problem, sending an IDOC via RFC from Unicode to Non Unicode System. IDoc is not sent with error: codepage of receiver system cant determined. receiver destination was: Message no. B1999
I have tried different options in sm59, but it didnt help.
Any ideas? The recipient system is rather old, version 4.0hey,
I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps.. -
How to use IDOC and RFC adapter in 1 scenario?
We have AAA field and BBB field and we want to send AAA field to receiver sap system using IDOC adapter and BBB field to receiver sap system using RFC adapter. But how to use IDOC and RFC adapter in 1 scenario and how to map and what are the design and configuration objects we require to create?
To achieve this you have to use
Two Interface Determinations
Two Communication Channels (IDOC & RFC)
& Two Receiver Aggrements.
Use the Enhanced Interface determination and give your conditions there. Based on you condition your interface mapping will be triggered and data will be sent to IDOC & RFC respectively. -
How to Send Appointment via mail adapter
Hi Guys,
I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
This is payload content of appointment which got from Exchange server to gmail:
_=_NextPart_001_01C71EC0.97A011C6
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable
When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
Where: China
~*~*~**
This is calendar content
_=_NextPart_001_01C71EC0.97A011C6
Content-class: urn:content-classes:calendarmessage
Content-Type: text/calendar;
method=REQUEST;
name="meeting.ics"
Content-Transfer-Encoding: 8bit
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20061213T141132Z
DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
SUMMARY:This is calendar test
UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
010000000CA9F127EA8947844BC4DD47F269BDEA9
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
LOCATION:Shanghai
DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
DESCRIPTION:This is calendar content\N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20061213T141132Z
LAST-MODIFIED:20061213T141133Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:367904726
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
END:VEVENT
END:VCALENDAR
_=_NextPart_001_01C71EC0.97A011C6--
My question is
1. How to generate this kind of payload in mail adapter module?
2. It is possible to send appointment via mail adapter?
Following i can get from other system, even using mail package check or not using mail package check.
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+08.00) Kuala Lumpur/Singapore
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070608T025852Z
DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
SUMMARY:This is meeting request with attachment
UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
010000000C5E16D144D1612498C0EF7E2115EFEC4
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
":MAILTO:roc*@**
ORGANIZER;CN="Xu,y":MAILTO:roc*@**
LOCATION:India labs
DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
DESCRIPTION:This is content! <<shanghai.txt>> \N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20070608T025925Z
LAST-MODIFIED:20070618T033505Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
X-MICROSOFT-CDO-OWNERAPPTID:1468557271
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
END:VEVENT
END:VCALENDAR
Thanks & regards
RockyHi
have a look at this
You can use Java/ABAP proxies to do this job for you..
Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
Thanks -
Getting error code 37 while sending IDOC via WE19
Hello experts,
I am facing a very unlikely error which is preventing me from testing my scenario.
I dont have XI quality server and hence I am using my development server as both dev and quality. Hence I need to connect both dev and quality SAP R/3 system to my XI dev system. While I have done all the configurations in my XI and both SAP R/3 systems, its giving me error when i am trying to send IDOC from quality system.
In quality R/3 i have done the following:
1) Created RFC for my XI dev server
2) Created port for this RFC
3) Created partner profile adding all required IDOCS in the outbound parameters
4) Created distribution channel for all the idocs
In XI dev system i have done the following:
1) Created RFC for both dev and quality of R/3
2) Created port for both the RFCs
3) Maintained the IDOC metadata for both the ports
Now when I am pusing IDOC via dev of r/3 (we19) is working fine but when I am doing the same from quality of r/3 its giving me status code of idoc as 37 that says "An error was identified in the control record while adding an IDoc. The sender port SAPQTY_510 is invalid."
But I have created this sender port SAPQTY_510 in my XI dev system and have also maintained the idoc metadata. I dont know why this error is coming.
Can anyone please point out what mistake i have done or if i missed sometig as I am trying to connect 2 r/3 systems to one XI system.
Its really urgent hence your help will be highly apreciated.
Thanks,
Yashhi yash,
where you created SAPQTY_510 ,it should be created in R/3 Quality RFC destinations.
In XI DEV create port like SAPxxx WHERE xxx is SID of quality system.
actually we are getting confused.
i guess you used same name SAPQTY_510 in quality R/3 and XI DEV .
In error it says sender port SAPQTY_510 is invalid mean port of Source not XI DEV(receiver).
just try to use some other name say SAPXXX_QUA and confirm the error.
when IDOC is sent to XI DEV ,port of XIDEV SAPQTY_510 has nothing to play any role .
just check whether rfc destination of sender port (QUALITY R/3)you used is of type 3.
so please check at which port error is coming.
Thanks & Regards,
Rama Krishna
Edited by: rama krishna talluri on Mar 5, 2008 10:02 AM -
Send PO via rfc XML with BC 4.7
Hi Gurus,
I have to send the Purchase Order to vendor via rfc XML with business connector 4.7. The vendor should receive the order via ebp XML. We are not using XI we use xCBL. SRM Server 5.5 Standalone.
i use zbbp_PO_send_xml badi for this purpose. We are able to send the data as rfc XML. But the smartform attachment is not working.
Can any one specify me the exact steps involved in this.
Please reply asap as there is an urgency in the task.
Points assured to helpful answers.
Cheers,
LokeshWe are getting a similar error -
Any ideas on what parameters we need to pass or configure?
JCO.ServerThread-1 [13:15:27:437]: [JNI-LAYER] RFC.incomingRequestHandler() before dispatchRequest("IDOC_INBOUND_ASYNCHRONOUS")
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect() enter, [SUCCESS]
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect() before RfcOpenEx("CLIENT="110" USER="ALEWM1" PASSWD=********** LANG="EN" SYSNR="00" ASHOST="atlun02.celanese.com" R3NAME="atlun02.celanese.com" TRACE="1" TOUPPER="0"")
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect() after RfcOpenEx("CLIENT="110" USER="ALEWM1" PASSWD=********** LANG="EN" SYSNR="00" ASHOST="atlun02.celanese.com" R3NAME="atlun02.celanese.com" TRACE="1" TOUPPER="0"") = 0
with error: RFC_ERROR_PROGRAM No entry for 'atlun02.celanese.com' found in 'C:\WINDOWS\sapmsg.ini'
JCO.ServerThread-1 [13:15:27:515]: [JAV-LAYER] JCO.PoolManager.releaseClient: Cannot release client equals null
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.incomingRequestHandler() caught the following exception: com.sap.mw.idoc.IDoc$Exception: (2) IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "LOIPRO01" is unavailable.
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.incomingRequestHandler() Exception.message = "The meta data for the IDoc type "LOIPRO01" is unavailable."
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.abort() enter, [SUCCESS]
JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.abort() before RfcAbort(1,"The meta data for the IDoc type "LOIPRO01" is unavailable.") -
Sending files via File Adapter through FTP having a HTTP proxy as firewall
Dear experts,
I am having a issue trying to send a file via FTP with the File Adapter. My client has a HTTP proxy with authentification required as firewall in order to send files via FTP.
I've tried several solutions but I cannot find a way to add the proxy name, user and password in the communication channel.
Any ideas?
Thanks in advance.
Best RegardsHi,
Unfortunately those changes didn't work. The adapter is not able to establish a connection within the FTP server. These are the parameters I added:
-Dhttp.proxy.user=<usename>
-Dhttp.proxy.password=<userpassword>
-Dhttp.proxyHost=<proxy.domain...>
-Dhttp.proxyPort=80
-Dhttp.nonProxyHost="*domain1.com domain2com"
-Dhttps.proxy.user=<usename>
-Dhttps.proxy.password=<userpassword>
-Dhttps.proxyHost=<proxy.domain...>
-Dhttps.proxyPort=80
-Dhttps.nonProxyHost="*domain1.com domain2com"
And just in case, we tried with these other parameters at the same time.
-Dftp.proxy.user=<usename>
-Dftp.proxy.password=<userpassword>
-Dftp.proxyHost=<proxy.domain...>
-Ddftp.proxyPort=80
-Dftp.nonProxyHost="*domain1.com domain2com"
The errors in the adapter engine's log are:
Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
Error Exception caught by adapter framework: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
By the way, we are using PI 7.0.
Thanks in advance
Edited by: SAPIMSA . on Apr 20, 2011 4:08 PM -
RFC_SYS_EXCEPTION when sending IDOC via tRFC from external program to R/3
Hi all,
using the RFCSDK 6.40 and writing a program in C which sends IDOC' s using tRFC to SAP.
When I send my EDI_DC40 and EDI_DD40 tables to R/3 with:
TCHAR strFktName[] = (_T("IDOC_INBOUND_ASYNCHRONOUS"));
rfc_rc = ::RfcIndirectCallEx (m_rfc_handle,
strFktName,
exporting,
tables,
rfc_tid);
--> rfc_rc gets back an RFC_SYS_EXCEPTION
When I check for
RfcLastErrorEx(&m_error_info);
--> I get back:
Beim Empfangen von Daten für einen Rfc-Call ist ein Fehler aufgetreten
(in english --> an error occured when reciving data from rfc-call)
dump check in R/3 tells:
Fehleranalyse
Beim Ausführen eines Remote Function Calls trat ein Fehler auf.
"RFC_GET4"
Zustand der Verbindung.. " "
Interner Fehlercode..... "RFC_GET4"
Any idea what goes wrong here?
Already checked very detailed the data I send to R/3 - but it doesent matter what I send - I get the same error every time.
Thanks,
RobertReviving an old thread...
I'm getting a similar error making RFC calls from a stand-alone program to an ABAP server using JCo:
RFC_GET4, GET_ID-3c05 LINE 990
Any ideas?
Thanks.
Tim -
Send idocs or RFC from R/3 to biztalk
hi All,
We have an requirement of transferring master data from R/3 to biztalk whenever any cahnge to the master data is made.
We are contemplating using IDocs or RFC to do this transfer. If it were a R/3 to R/3 transfer then I have come across many docs where it is stated that idocs is by far a better option than RFC but I am just wondering if same applies when we do it to biztalk.
The reason I had the above doubt was because I dont know if we can use ALE as means of transporting the idocs ( i vaguely remember creating partner profiles. since biztalk is not a SAP system how can I create a partner profile for it ).
I was wondering if someone has come across a similar situation and probably point me in the right direction.
thanks,
GautamHi Gautam,
Yes, IDoc can be trigerred by configuring change pointer from SAP R/3 on change in master data. There are many ways to integrate SAP with Biztalk. Have a look at these links for more details -
1. http://www.microsoft.com/isv/sap/technology/interop/biztalk.aspx
2. http://download.microsoft.com/download/5/7/f/57f1490e-8a8d-497b-bbae-ec2a44b3799f/BizTalkSAPXIInterop.pdf
3. http://social.msdn.microsoft.com/Search/en-US?query=idoc%20from%20sap&ac=8
Regards,
Sunil Chandra -
IDoc via RFC problem between certified app and SAP ECC 5.0 on AS/400
Greetings.
I'm not sure this is the best forum for this question but here it goes:
Ever since 2000, we have our certified application for HR-PDC interface. We never had any problem that would be hard to resolve.
Recently, we had a customer who installed our app to exchange data with SAP ECC 5.0 on an AS/400 machine (first time interfacing with this platform for us).
We already checked all user permissions and every SAP note that mentioned this problem but it still doesn't work: when receiving and IDoc (just any), we get the error IDOCTYPE_READ_COMPLETE:OBJECT_UNKNOWN.
Permissions for user are SAP_ALL and SAP_NEW and the IDocs used are the ones stated in the HR-PDC interface (for example, HRCC1DNPERSON, for instance).
I traced down the problem by examining the .trc files (RFC trace files) and I found where the problem lies: IDOCTYPE_READ_COMPLETE is being passed the IDoc Basic Type HRCC1DNPERSON and it should be HRCC1DNPERSON01. I did the same tracing for another installation (not AS/400 with SAP 4.6) and everything goes fine: IDOCTYPE_READ_COMPLETE is called with correct HRCC1DNPERSON01.
I'm wondering if this could be a problem in SAP 5.0 for AS/400 as we already have other customers running the same version on different platforms and everything just goes fine.
Any clues, anyone?
Thanks and regards,
André Baptistahi
we have a similary problem with our certified as400 application. Our client has the version 4.6C service pack 51 and patch 2161. Data transfert by RFC is ok but we have problems since the installation of the patch 2252. The RFC function RFCaccept do not run any more : the log
<i>argc = 2
argv[0] = 'HLSAP45A/HLKA15C'
argv[1] = '-DCP03'
Fri Nov 24 14:21:53 2006 *
<== RfcAccept rfc_handle = RFC_HANDLE_NULL
<== RfcLastError
RFC operation/code: RfcAccept
ERROR/EXCEPTION
key : RFC_IO5
status : CODE=CM_PRODUCT_SPECIFIC_ERROR STATUS=??? DATA=??? ID=???
message : LOCATION CPIC (TCP/IP) on local host
ERROR connection to partner broken
TIME Fri Nov 24 14:21:53 2006
RELEASE 45A
COMPONENT NI (network interface)
VERSION 31
RC -6
MODULE nio4i.c
LINE 891
DETAIL NiPRea
internal: IO HANDLE=1 DRV=??? LINE=1369 CODE=5
<== RfcClose </i>
Do you have solve your problem ?
thanks -
Sending Attachments via SOAP Adapter
Hi Everyone,
We have the requirement to send the text files as attachement using SOAP Adapter. Can anyone help me how to do it in XI and the structure of WSDL. Or any document which can help me getting this done.
Any help appreciated.
Thanks in advance
LaksI understand i need to add teh WSDL file in the repository .
Yes, it would be like any other soap receiver scenario wherein you need to import the wsdl under external definitions.
Like it should be cabable of receiving as attachments ?
Yes, it should be. This will help in creating one.
/people/baris.buyuktanir2/blog/2007/03/06/how-to-create-a-web-service-with-attachments-soap-with-attachments
Is there anything i need to do in Repository part ? If your sender sends the file as attachment using the option "Addition files", then the message will be forwarded directly with attachment to soap receiver. There would be no need for any additional setting in repository.
Regards,
Prateek -
Which tags you are talking about? Is your pdf is the payload or an attachment? May be you can look at swapping of payload if you can send the PDF as an attachment.
VJHi Mario,
Have a look at the blog by michal
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417100%29ID0975923150DB01234155231841994144End?blog=/pub/wlg/2849
If you have the pdf in your payload you can make it as an attachment using PAyloadSwap bean. Just give a try
Regards
Suraj -
Character encoding sending EDIFACT via ftp adapter
Hi,
we are about to start sending EDIFACT invoices to a customer and are having trouble with national characters in the payload.
The customer expects ISO-8859-1 encoding and as far as I can tell B2B seem to generate the message in UTF-8.
I have tried to specify Encoding ISO-8859-1 on the output channel specification and have redeployed the agreement,
but it does not make any difference.
Any help is greatly appreciated.
Thanks
MikaelThis will mean that all incoming and outgoing messages will be in ISO-8859-1Yes, entire B2B processing will be done in the specified encoding.
Is there no way to specify this on agreement or possibly partner level?Unfortunately, there is no other way to specify encoding as of now. You may consider filing an enhancement request with Oracle Support and Oracle B2B prod dev may address this issue on priority if it is major blocker for you.
Regards,
Anuj -
RFC to XML-RFC Parsing issue in RFC Adapter as Sender
Hi all,
I tried to use RFC adapter as a sender. The scenario I am trying to achieve is R3 -> RFC Adapter Sender --> BPM --> RFC Adapter Receiver --> SAP Auto-ID system.
The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails. Everything works as expected, except the RFC Adapter Sender.
The RFC I am calling has an input table. The input data I use works fine if I call it via SE37 or remotely from another SAP system. However, if I call it via RFC adapter, when XI parses the data into RFC-XML format, the input data is all messed up.
DATA: BEGIN OF ID_STR,
ID_VERSION(8) TYPE C,
ID(96) TYPE C,
ELEMENT_NAME(50) TYPE C,
ELEMENT_VALUE(128) TYPE C,
END OF ID_STR.
DATA: it_id LIKE TABLE OF ID_STR,
ls_id LIKE ID_STR.
ls_id-ID_VERSION = 'EPC_1.30'.
ls_id-ID = '30340242206DC3C00000000A'.
ls_id-element_name = 'BATCH_ID'.
ls_id-element_value = 'BATCH001'.
APPEND ls_id TO it_id.
CALL FUNCTION '/AIN/UI_MOBILE_MSG_SEND'
IN BACKGROUND TASK
DESTINATION 'RFC_UPDATEAII'
EXPORTING
IV_BUSINESS_PROCESS = '09'
IV_COMMAND = 'DO'
IV_ACTION_TYPE = 'APL2'
IV_PRT_ID = '31140242200000000F000000'
IV_DEVGRP_EXTID = 'MOBILE'
TABLES
IT_ID = it_id
commit work.
And the parsed RFC-XML message is:
<?xml version="1.0" encoding="UTF-8" ?>
<rfc:_-AIN_-UI_MOBILE_MSG_SEND
xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<IV_ACTION_TYPE>APL2</IV_ACTION_TYPE>
<IV_BTD_EXTID />
<IV_BTD_TYPE />
<IV_BUSINESS_PROCESS>09</IV_BUSINESS_PROCESS>
<IV_COMMAND>DO</IV_COMMAND>
<IV_DEVGRP_EXTID>MOBILE</IV_DEVGRP_EXTID>
<IV_LOC_EXTID />
<IV_LOC_TYPE />
<IV_PRT_ID>31140242200000000F000000</IV_PRT_ID>
<IV_PRT_ID_VERSION />
<IV_REASON_CODE />
<IV_UNAME/>
<ET_RETURN />
<IT_ID>
<item>
<ID_VERSION>EPC_1.30</ID_VERSION>
<ID>206DC3C00000000A BATCH_ID</ID>
<ELEMENT_NAME />
<ELEMENT_VALUE />
</item>
</IT_ID>
</rfc:_-AIN_-UI_MOBILE_MSG_SEND>
You can see the data in the table is all wrong, it should be:
<IT_ID>
<item>
<ID_VERSION>EPC_1.30</ID_VERSION>
<ID>30340242206DC3C00000000A</ID>
<ELEMENT_NAME>BATCH_ID</ELEMENT_NAME>
<ELEMENT_VALUE>BATCH001</ELEMENT_VALUE>
</item>
</IT_ID>
The calling system is a 4.6C non-unicode system, and the destination system is a unicode system (this does not matter since the first part of the integration is between R3 and XI). There is no config found on R3 side to specify non-unicode because it is a rather old system. In XI RFC Adapter config, I checked non-unicode checkbox (I also tested it with this unchecked, but still the same issue).
Have any of you seen this problem and how you resolve it?
Thanks a lot for your help!
Regards,
HartHi Hart
long time no seen - hope you remember me
>The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails
there is an easy way (guess max 3-4 hours) to solve all of your issues
and get rid of a BPM
use IDOC - XI - ABAP Proxy
then you will have IDOC and ABAP Proxy that always log the message on both ends (and you can restart ABAP proxies easily in AII - and every AII supports ABAP proxies) + you get rid of a BPM as it's not necessary as far as I understand (as it's asyn communication right?)
maybe you can go this way and IDOCs always work...
good luck,
Regards,
Michal Krawczyk
http://mypigenie.com XI/PI FAQ -
Send idoc to other system via SOAP
Hi,
I intend to implement an interface with other system non SAP, to send idocs via SOAP.
I've read some documentation on sdn but i'm very confused about Was / XI / BSP and some others terms.
Please, can someone help me, driving me to the right way and where to start ?
I don't know either if this the best solution to send many idocs... I'm talking about 10000 idocs each time.
In advance, thanks.Vitor,
I suppose u want to distribute data of Idocs to a system which accepts SOAP request. For the same u can use XI with necessary distribution model on R/3 side to post the IDoc to XI and XI SOAP receiver adapter making a call to necessary SOAP server to post the data.
Regards
Rajeev
Maybe you are looking for
-
How do I set my older version of Pages as the default when opening files?
I currently have two versions (Pages '08 3.0.3 and Pages '09 4.2) on my computer. I am finding that when others send me a document created in the older version of Pages, when I open it, it converts it to the newer version. If I make changes and send
-
Dear Experts, We need period wise report for this transaction code (FAGLB03). Is there any possibility. Thanks Balu
-
Does Create as table command works in sql server
Hi friends, does Create as table command works in sql server,if yes pls help me with syntax
-
Applications server 10g - page cannot be found error please help!!
hi, after installing applications server 10g on windows when i try and access the admin page with the link provided from install and getting started page (http://oracle.itec.local/em) i keep on getting page cannot be displayed error! please help!!
-
How to get higher resolution previews in HDR Pro
I often make HDR images by exporting a bracket from lightroom into photoshop via right click>merge to HDR in photoshop. When the dialog comes up it is always a very low resolution preview. When I go to zoom in (cmd +) the resolution remains the sam