Displaced content from sender RFC in payload - PI 7.0
Hello,
we have a strange behaviour here.
After implementing a scenario with HTTP->PI->RFC
which works fine transporting a structure to an R/3, we wanted implement another scenario RFC->PI->HTTP (RFC is async).
Problem when testing it:
The RFC hands over a structure which contains in the first field a order number (so leading zeros are cut).
The cutting of the zeros results in a displacing of the rest of all fields. So filling the payload PI is in some trouble and adds an error code #... in some fields.
This is why we identified the problem, because the error codes run into error during mapping.
We reimported the RFC more than once, changing the structure to be sure that we can se a successful update of the RFC structure in the repository. Everything fine, but the error is still the same.
Now we convert on the R/3 side the order no. field:
Instead of leading zeros we replaced them with '9' ´s.
Then we correct this in mapping.
But this is not a solution!
Is there anybody who had the same effect on his XI/PI using sender RFC?
If you can offer a solution for that..... would be great!
Best regards
Dirk
Hello,
this is another idea but would do the same as our '9'-solution. It would solve the specific issue but will not remove the problem itself.
We had a hint from somebody in our company internal forum:
"If you had used a custom RFC pls make use of conversion routines for the order no field. in a std rfc this would have been handeled implicitly."
Will discuss this with the developer and come back.
We got the answer:
On R/3 side there is a customer table which provides the data. There is conversion routine ALPHA already added to several fields. But only field "orderno" is resulting in trouble. We do now a move to a workarea based on a new defined structure instead of moving the select result based on the table structure to the RFC. In the structure we defined order no. as a simple CHAR field w/o any conversion behind.
So now it is working!
regards
Dirk
Edited by: Dirk Meinhard on Feb 20, 2008 6:28 PM
Similar Messages
-
Hi all,
Currently I am working on RFC synchronous call with out using BMP.
Here we have developed two asynchronous RFC call to achieve the above requirement.
Here are the details,
1. A call from FILE-XI-RFC (Receiver), for sending the selection criteria
2. Another call from (Sender) RFC-XI-FILE for sending the response back.
Here I am going to call 2 RFCs to get the response back. Here when I am working with the scenario (2) i.e., sender RFC, I have done all the design and configuration part of it.
And when am trying to test this sender rfc from a sample ABAP report (with COMMIT WORK) the RFC gets executed without any error but when I check in SM58 all the back ground tasks gets queued and are not getting processed further.
Can anyone please help me out? Is it a configuration problem in XI or in ABAP.
Please help me. Its very urgent for me.
Thanks in advance,
-kanth.Hi,
did you try to push the entries in SM58 -> F6 ?
do you see any error ?
also check out my blog:
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
to see if your RFC to XI is correct - you can test it from sm59
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Sender RFC Adapter , Sender File Adapter - Payload Compression
Sender RFC Adapter or the Sender File Adapter compress the payload of any spaces in between the tags or remove any spaces at the start and end of the payload.
We need to pass the spaces as is in the message payload to the receiving system?
Is there a way to do it in PI 7.1.Hi Vikrant,
Preserving white spaces while reading a file from FTP
NameA.fieldContentFormatting
- Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
- Specify nothing to ensure that the value remains unaltered.
For RFC you need to check your payload to see whether spaces are coming from R/3 itself or not.
Regards
joel -
Sender RFC from Third Party System
I have a vendor who is actually communicating through RFC from third party Application to SAP R/3. Now we are trying have XI in between. Where as with minimal impact on both sides.
Solution.
1. Have the RFC made as ZRFC in XI. Let the vendor call the RFC in XI ABAP and internally make an RFC call through XI Interface to R/3 as Sync Interface. Because we need to report the information back to the system where the request initiated.
2. Have RFC INI file copied as SAP Suggests under one of the folders. Develop the regular RFC to RFC Interface via XI.
Is there any other alternatives other than the above mentioned solutions? Or out of those 2, which one will provide the best performance
Appreciate any feedback. Please adviceThat's exactly what we are trying to achieve here. By Eliminating direct connection R/3, we are placing XI in between. But with the budget/timeline constraints from the Partner side, we are trying to have minimal change on the partner side. They might not change something to web service etc...
Here is the text about INI file
You can configure the non-SAP RFC client to connect to the sender communication channel in the following ways:
■ By defining the parameters PROGID, gateway-host, and gateway-service within the saprfc.ini-file using RFC-SDK.
■ By using appropriate parameters in the function RfcOpenEx.
If you use the saprfc.ini-file, the respective RFC destination has to be of type R.
All the parameter values used within the saprfc.ini-file or with the function RfcOpenEx should match the entries maintained within the corresponding sender communication channel.
Example for the saprfc.ini-file is as follows:
DEST=RFCCLIENTEXT
TYPE=R
PROGID=P106646.HKExternalClient
GWHOST=pwdf2153
GWSERV=sapgw40
Please check the following link, for the same text on RFC Sender
[Help.SAP|http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm]
Using the same Sender RFC for non-SAP System, please share any ideas -
Use sender from payload: Sender not in payload
Hi,
I am currently facing problems with a IDoc -> XI -> Proxy(XI) sceanrio.
The Idoc is received by XI without any problems. No message mapping is required for this scenario. However, the message keeps getting stuck in the Inbound queue (SMQ2). The status text says "Use sender from payload: Sender not in payload".
Can anyone help me out on this?
Thanks,
KrishneelCheck this related problem:
ATTRIBUTE_IDOC_METADATA : Sender not in payload
Regards,
Abhishek. -
Sender RFC Scenario Error:Payload Is Missing
I am facing an issue in 'RFC2JDBC' scenario which is mentioned below:
here our scenario is 'RFC2JDBC'.here our 'RFC' is having 2 fields in tables parameter
i.e. empno & empname.
the results of the 'RFC' is coming as:
Personnel Number Employee Name
00000100 Rasmiraj
00000200 Tanmay
00000300 Kanhu
00000400 Debabrata
00000500 shantanu
i am triggering the 'rtfc' through a program.
when i am triggering the 'RFC',in monitor of PI it's coming as sucessful.however in the payload one of the field value is missing i.e. employee name.(same also updating in the legacy database)
in the payload it's appearing as:
[ <?xml version="1.0" encoding="UTF-8" ?>
- <rfc:ZSAM_SEND_RFC_PI xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <EMP_DTLS>
- <item>
<EMPNO>00000100</EMPNO>
<EMPNAME />
</item>
- <item>
<EMPNO>00000200</EMPNO>
<EMPNAME />
</item>
- <item>
<EMPNO>00000300</EMPNO>
<EMPNAME />
</item>
- <item>
<EMPNO>00000400</EMPNO>
<EMPNAME>a</EMPNAME>
</item>
- <item>
<EMPNO>00000500</EMPNO>
<EMPNAME />
</item>
</EMP_DTLS>
</rfc:ZSAM_SEND_RFC_PI> ]
please,suggest.(here,we are using sender 'RFC' communication channel & an 'RFC'destination of type 'T'(with parameter registered server program,gateway host,gateway service)Hi rasmiraj tripathy,
I am also facing the same problem (Sender or Payload is missing) while integrating R3 to B1 using IDOC. When I resend IDOC, it capture by B1iSN but doesn't work, it gives me error. When I look into xml document, it is found that there is no receiver payload.
My R3 system is non-unicode and it is difficult to change it to unicode as it requires updation.
Can you please confirm that this error is coming due to Non-Unicode, and can be resolved by setting it to Unicode.
Note: There is no double definition of any object. -
Sender RFC Adapter - Data to be sent from R/3
I am working on a scenario where I have to send data from an RFC-enabled function module from R/3 to a file server via XI. The entire scenario is asynchronous.
Sender: RFC Adapter
Receiver: File Adapter
I have done all design and the configuration. Both communication channels are working. I have the RFC destination also set up correctly in R/3.
However, when I run my ABAP program where the RFC-enabled function module is called, I get a shortdump with the message <b>"senderAgreement not found: lookup of binding via CPA-cache failed for".</b>
Plus: " The error occurred during an RFC call to another system."
Could someone kidly help?Hi,
Follow these steps :
1. import the ECC_ Server into ID if not done
2. Refresh Cache : Tcode SXI_CACHE
3. Please check for Sender agreement config
4. Check out the parameters when R/3 calls back XI, it passes the SYS-ID and client number and checks the same in the Integration Configuration Under Business System Service-> Adapter Specific Identifiers. The R/3 System ID and the client Number
Also check out these blogs..
/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
regards
Aashish Sinha
PS : Reward points if helpful -
Sending content from iPod to a WiFi Direct Sony TV
Hello!
i recently buyed a Sony televisionKDL-46HX820, with WiFi Direct conexion technology.
Using Tv application, I have connected the TV with my iPod Touch. The problem is that I cant send content from the iPod to the TV (i.e.: Music or Photos in the iPod).
Do you know any way to do it or any application that will fit my requeriments?
Thanks in advance!Hello!
i recently buyed a Sony televisionKDL-46HX820, with WiFi Direct conexion technology.
Using Tv application, I have connected the TV with my iPod Touch. The problem is that I cant send content from the iPod to the TV (i.e.: Music or Photos in the iPod).
Do you know any way to do it or any application that will fit my requeriments?
Thanks in advance! -
Error: Copy sender from payload: Sender not in payload
Hi all.
I generated a new WSDL with XI. when i posted it with XML Spy in SXI_MONITOR got this error:
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
<SAP:P1>Copy sender from payload: Sender not in payload</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error: Copy sender from payload: Sender not in payload</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
WSDL could be wrong?
Rgds
RPHi,
it's not a WSLD error it's IDOC
have a look at my answer here:
Re: Error: Sender Not in Payload
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Problems with sender RFC from R/3 4.6D
Hi all,
I have configured a sender RFC channel on XI cluster. Immediately after channel activation everything looks fine on backend system (R/3 4.6D):
But after some time (e.g. one hour) the connection somehow stops working.
The u201CTest connectionu201D says u201CProgram ID not registered u2026 u201D and also XI hosts is not listed in u201Clogged on clientsu201D any more.
By restarting the Sender RFC from Communication channel monitor the communication is reestablished. But after an hour it breaks down again.
The strange thing is that this problem occurs only when RFC sender channel is configured on XI cluster with two nodes (our production XI on MSCA). If the same is configured on a stand alone XI (which is our development system) the connection is working fine all the time.
Also the problem happens only when connecting XI cluster with R/3 4.6 D system. When the same connection is established with ERP 5.0 or ECC 6.0 it is working fine.
Setting the property initalRfcClientConnextCheck to false didnu2019t help.
Thanks for helping.
Janostransaction SMGW(gateway monitor) and choose menu option 'Goto --> Logged on clients'.
make sure that the there is an entry in the program id is same as program id in the RFC sender channel...if not try making a change in the RCF channel and activating again
Edited by: Tarang Shah on Feb 8, 2010 6:48 PM -
How to trigger sender rfc from r3 system
Hi experts,
can any body send documents about " how to trigger sender rfc from r3 system"
regards
sandeep.HI Sandeep,
To send RFC data on timely basis you can schedule the programs.
In Partner Profile use setting collect program. Use program RSEOUT00 to send data at particular time.
You can schedule the report RSEOUT00 according to your requirements. So it flushes all the idocs in the background as per your schedule this program.
Plese refer the below thread, it will help you.
Re: Triggering Idocs from sender side
Idoc triggering from a transaction
Cheers..
Vasu
<i>** Reward Points if found useful **</i> -
How do I send content from computer to HDTV using airplay via apple tv?
How do I wirelessly send content from my computer to my HDTV using airplay via appletv?
Basic airplay is done through iTunes.
If you wish to mirror you need a Mac from 2011 or later, running OSX 10.8 or later
http://support.apple.com/kb/ht5404 -
I upgraded to Mavericks about 6 weeks ago. Starting 2 weeks ago when I send an email and check in the "sent" folder that it has been sent I notice that the content has been substituted. Instead of what I just wrote the sent email contains content from an older unrelated email. Any idea what's going on and especially what I can do about it?
Thanks RexBack up all data. Rebuild the mailbox.
-
CALL_FUNCTION_REMOTE_ERROR when trying to call Sender RFC
I am trying to use the sender RFC adapter without much luck. I have written a small ABAP program to call the function - it contains the lines:
call function 'mi_rfc_check_picking'
destination 'ZXI-DEV'
When I run this, I get an error "CALL_FUNCTION_REMOTE_ERROR".
"JCO.Server could not find server function 'mi_rfc_check_picking'"
I have not been able to find any clear documentation that specifies what the function name should be set to - mi_rfc_check_picking is the name of my sender message interface as defined in XI. I have tried putting this value in upper and lower case without luck.
In component monitoring in XI, under the RFC sender I get the following error message:
- Error: 2006-08-16 12:08:17 EST: com.sap.mw.jco.JCO$Exception: (123) JCO_ERROR_FUNCTION_NOT_FOUND: JCO.Server could not find server function 'mi_rfc_check_picking'
Can anyone confirm what the RFC name should be? Or offer any other suggestions to help resolve the issue?
Regards,
JasonHi Jason,
Also Check if the RFC is remote enabled..
Please go through this link to know more about the same...
http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/content.htm
Also just see if you have used BAPI_TRANSACTION_COMMIT.
And finally, Try checking the userid auth. for RFC destination,if it has remotes access.
To check the same, you just have to do a remote logon from SM59 transaction.
Regards,
Abhy -
Parsing Content From A Site That Requires Authentication
Ive been scanning websites using the Java HTML parser from htmlparser.sourceforge.net to gather useful data into a more easily used format, in this case it is stored in a mySQL database.
The problem that has stumped me for the past few days is how to get around the login authenication page required to access content from the website www.racingpost.com . I am a registered user but am having difficulty logging in via Java and managing the cookies to bypass the login page HTML I keep getting instead of the race data.
I am unsure when and where I should be passing cookies around. Also logging in using POST is confusing me.
Thanks for any help you can offer.this should help you out with posting to a URL. It is taken from:
http://javaalmanac.com/egs/java.net/Post.html
// e135. Sending a POST Request Using a URL
try {
// Construct data
String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
// Send data
URL url = new URL("http://hostname:80/cgi");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
// Get the response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
// Process line...
wr.close();
rd.close();
} catch (Exception e) {
}
Maybe you are looking for
-
In Pages 09' how do I change the background colors on the templates?
I have been trying to change the background on one of the templates from red to green for a while. I can't figure it out and i can't find answers online any where that are helpful at all. I just need to changes the background color to what I want i
-
We're using Pages to develop PDF documents. Is there a way to incorporate video (flv, swf, mov, etc) in PDF documents? When I export to PDF all that appears is a black placeholder where the video originally resided.
-
What are the new [bond_interfaces] in initscripts?
Is this for explicitly naming certain devices as discussed in this thread: http://bbs.archlinux.org/viewtopic.php?t=8676&start=15 ? If it - why the complex initscripts? wireless_tools and net-tools both provide tools for naming interfaces. As the r
-
Shared services registration failing during configuration of EPMA 11.1.1.3
Hi All, I am currently woking on essbase and no knowledge of planning so trying to upgrade my knowledge. I installed epma 11.1.1.3 on windows 2003 VMware work station as I have windows 7 laptop. installed oracle 10g created a database (epma) created
-
NEED HELP IN INSTALLING WINDOW XP SP2..
Hello Admin, I have a New LENOVO 3000 H100 (5311-2BA) can someone guide me how to install the Microsoft WIndow XP SP2., because it keeps restarting after I installed the Microsoft Window XP SP2..?? Please appreciate my wrong grammar because I ca