File-to-RFC Scenario Table Param are empty
Hello,
I create a file adapter to rfc adapter scenario. Thereto I implemented a RFC in SAP which has only a table param. Furthemore I mapped the XML-File, that will be read by the File Adapter sender, to the SAP RFC Table structure. However the scenario works in PI, that mean the xml file will be read by the file adapter and will be send to the RFC Adapter receiver which makes a rfc call to the SAP destination. However my rfc function in the SAP destination will be called, but the table param is empty. Hereto I call the statement in my rfc function:
if MORDERNOTIFY is not initial . I do not know what the reason is that the table param is empty? I also checked in the runtime workbench of the PI system and there is no error in the communication channels, the message will be send correctly, here is also an example message of the table structure:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:Z_RFB_ORDERCONFIRM xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
- <MORDERNOTIFY>
- <item>
<ZMELDUNGSTYP>ARU</ZMELDUNGSTYP>
<ZPARTNER>HUP</ZPARTNER>
<ZMELDUNGSNR>1</ZMELDUNGSNR>
<ZMELDUNGSDATUM>20080822</ZMELDUNGSDATUM>
<ZAUFTRAGSNR>5079440</ZAUFTRAGSNR>
<ZKONTAKT>Test</ZKONTAKT>
<ZWAGNNR>1211</ZWAGNNR>
<ZAUFTRAGSSTUFE>GP.1</ZAUFTRAGSSTUFE>
<ZSTATUS>1</ZSTATUS>
<ZABFAHRTSORT>Zug</ZABFAHRTSORT>
<ZBESTIMMUNGSORT>Bonn</ZBESTIMMUNGSORT>
<ZBEREITDATUM>20080822</ZBEREITDATUM>
<ZSCHADENSCODE>232</ZSCHADENSCODE>
<ZEINGRIFFSFRAGE>1</ZEINGRIFFSFRAGE>
<ZSMI>2</ZSMI>
<ZGEPLEINGANG>20080822</ZGEPLEINGANG>
<ZAUFTRAGSSTATUS>1</ZAUFTRAGSSTATUS>
<ZGEPLENDE>20080822</ZGEPLENDE>
<ZBEMERKUNGEN>Tes</ZBEMERKUNGEN>
</item>
</MORDERNOTIFY>
</ns1:Z_RFB_ORDERCONFIRM>
The SXMB_MONI also shows that everything is ok. I assume that there is a problem by mapping RFC-XML to binary RFC. I do not know what the reason is why the table above is empty sended to my system.
Kind regards,
Erkan
Hi ,
open the u r Funtional Module in Se37
And click on the Source Tab.
On the top menu : near "Patterns" u can see two kinds of Break point.
Break point with a Head on it is external break point
click on it , it wud be valid for 2 hrs.
hope u have kept u r file in test mode , once u r Adapter picks file u can see u reach u r external brk point.
Note: Donot make this break piont to be long time , because u can see Some JCO connection error in u r RWB , which is normal )
Test and lemme know
rgds
srini
Similar Messages
-
What are the connections to be done for file-to-RFC scenario in XI & R3 ?
Hi,
What are the connections to be done for file-to-RFC scenario in XI & R3 & also if it is RFC-to-File .
I need to know what type connections used for file-to-RFC in backend .
In SLD it should be Third Party or WEB AS ABAP..Hi Nandan,
Perform the following configurations...
<b>SAP XI</b>
<b>1) RFC Destination (SM59)</b>
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
<b>2) Create Port (IDX1)</b>
a) Select create new button
b) Enter the port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
<b>SAP R/3</b>
<b>1) RFC Destination (SM59)</b>
a) Choose create.
b) Specify the name of the RFC destination
c) Select connection type as 3 and save
d) In the technical settings tab enter the details SAP SID/URL and system number#.
e) Enter the Gateway host as same details above SID/URL.
f) Gateway service is 3300+system number#.
g) In the Logon /Security tab, enter the client user & Password details of Destination system.
h) Test the connection and remote logon.
<b>2) Create Port (We21)</b>
a) First Select Transactional RFC and then click create button
b) Enter the destination port name as SAP+SID (The starting char should be SAP)
c) Enter the destination client.
d) Enter the RFC Destination created in SAP R/3 towards other system.
e) Save
Regards
San
Remember to set the thread to solved when you have received a solution there is a Way. -
Multiple records are not loaded in FILE to RFC scenario
Hi ,
I did File- to-RFC scenario.. it was working fine.. but the problem is... from my file.. it was loading the first record only into the R/3 database.. what i have to do.. i'm new to XI..
generally a file must conatin multiple records.. but my scenario was performing.. that was loading only the first record of my file.. and remaining records it wa skipping..
plz provide me the solution..
Thanks
BabuHi
In message mapping, change the occurrence of the RFC to be 0 to unbounded.
Map the root node of the file xml structure to the RFC's root node.
In the interface mapping after selecting the source and the target message interface,change the occurrence of the target interface to 0 to unbounded i.e.RFC .
While doing the interface determination, you will find an option called Enhanced / Extended Select this and then select the Interface mapping.
Thanks -
File-PI-RFC scenario with extraction of contents in the filename
Hi All,
I am working on File to RFC scenario.
Here the file name is like 'ABCD_XYZ_1234_DATE' where the date is in yyyymmdd format.
I have to read this filename & the date in the filename is to be mapped with one of the RFC parameter.
Also how would I trigger the Interface if the file resides in PI server or on local mchine.
How to configure the processing parameters in sender comm channel if I want to read the file after every 15 mins?
Thanks,
Amit PatilHi,
By writing simple UDF in your mapping you can Acheive this
Try this Once
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String MyFileName = dynamicconfiguration.get(key);
String str[] = MyFileName.split("_");
return str1[1];
Map this to the date parameter(RFC) in the mapping .
If the file resides on Local machine then you can use FTP and if it is on PI server then NFS as Transport protocol.
If you want read the file for every 15 min there are 2 options
1) Set the poll interval time to 900 sec
2) Configure ATP in RWB
Configuring ATP in RWB :
http://www.dataxstream.com/2010/11/configuring-availability-time-planning-in-sap-pi/
Thank & Regards,
Deepthi -
Error while calling RFC adapter(FILE-XI-RFC scenario)
Hi,
I am trying for FILE-XI-RFC scenario. I am getting the following error. I have checked in message monitoring. The error is coming while calling the RFC adapter. Can any body tell what problem is this?
Regards,
Dhana
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.f23.sofd00001530a</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>2: Unable to find URL for Adapter Engine af.u7a.us4296</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.f23.sofd00001530a</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>Hi,
I did SLD check.
The status says 'Summary: Connection to SLD works correctly'.
But it fails while checking the access to XI profile.
Here is the status
Summary: Connection to SLD works correctly
Now checking access to the XI Profile
Properties of RFC destination LCRSAPRFC
RFC host:
%%RFCSERVER%%
program id: LCRSAPRFC_DZ1
gateway host:
gateway service:
Testing the RFC connection to the SLD java client...
RFC ping returned exception with message:
/ CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679#Transaction program not registere -
File to Rfc scenario,not updated in rfc
Hi,
File to RFC scenario,not updated in RFC?
i checked communication channels ,smq1,smq2,sm58,cache refresh.but issue was not solved.
Please advise where need to check?
Thanks
AmitaHi Amita,
First check whether the configuration between PI and ECC has been set up properly.
Are you using a stand RFC or custom RFC?
Import the RFC metadata from ECC to PI and use that structure in your service interface and configure the remaining objects that we normally do.
Now, try to process the file and check in the communication channel, whether file Adapter is able to pick up and send the message to PI system.
If the message is successfully processed through PI system then check the messages in Queues. Also, check the RFC communication channel in the adapter engine.
Follow the process, you might get some clue regarding the issue. -
Help me please with File-to-RFC scenario
Hi, I'm a beginner with XI and I have as problem with an interface.
This interface is a file-to-RFC scenario an it was working correctly a few days ago. Suddenly, the interface doesn´t work and we haven´t error message in sxi_monitor transaction. The queues are fine and we haven´t any sign that why the interface doesn´t work.
If someone´s had a similar problem and know how to solve it or someone can teld me a clue, please, help me!!
Thank youHI,
You can monitor the Communication Channel in RWB.
Go Component Monitoring in Runtimework Bench and click on Adapter Engine and select the Communicaiton Channel and select your channel name.
You can find any whether it is in active or not?
Also check the Message monitoring in RWB.
Regards
Sridhar Goli -
File to RFC scenario want to read file name
Hi All,
I am having file to RFC scenario in which i am having file name in format text_yyyymmdd.txt.
i want to read this file name and by separating the date in file name i have to pass this to one of the RFC date parameter.
please help me to sort out this.
Thanks
SwapnilHi,
By writing simple UDF in your mapping you can Acheive this
Try this Once
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String MyFileName = dynamicconfiguration.get(key);
String str[] = MyFileName.split("_");
return str1[1];
Map this to the date parameter(RFC) in the mapping .
Thank & Regards,
Deepthi
Edited by: Deepthi Muppasani on Sep 23, 2011 8:17 AM -
Step by Step Guide Details for RFC to File and File to RFC scenario
Hi Guru's
Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
thanks in advance.
Regards
RajHi Aaron,
I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
Edited by: Marshal on Oct 8, 2009 5:08 PM
I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
Edited by: Marshal on Oct 8, 2009 5:22 PM -
File to RFC scenario with no BPM
I want to create File to RFC scenario with no BPM. I want to invoke RFC synchronously to verify that I'm getting correct response back, but i dont wanna process the response. So, In SXMB_MONI i can check the response back from RFC right? Or do I need to have BPM if want to see the response back from RFC?
What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK?
Thanks,
DeepeshHi,
I need to have BPM if want to see the response back from RFC? ... yes
The BPM will help you find the response very comfortable.
What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK? ..Yes you can .
Regards
Agasthuri Doss -
Fixed Length of a field in the File-XI-RFC Scenario
Dear All,
I am doing one File-XI-RFC scenario in which user is sending me the file with some delivery nos (VBELN) in it and I am sending those all delivery nos to my RFC in R/3.
Now I want one conition to be put that if any delivery no is of less than 10 characters than that delivery no should not be sent to RFC rest the remaining will be processed to RFC.
I have put one UDF for this whose code is as follows:
int len = a.length();
if (len == 10)
int b=1;
b = (1/len);
return a;
But this code is not working. Please guide me how to solve this problem.
Regards,
N.JainHI,
Input is A : Delivery No take all the delivery no in one context.
for(i=0;i<A.length;i++)
int b= Integer.parseInt(A<i>); it will remove all the leading zeros if it has any.
int j=(new Integer(b).toString().length()); count the lenght of the Del no.
if(j>10)
result.addValue(A(i));
else
result.addValue("null"); will not send anything.
Thanks and Regards,
Chirag gohil -
Problem in storing data in BAPI in File to RFC Scenario
Hi everyone,
I m doing File to RFC Scenario.......I completed design and configuration part and actived the Communication Channels.....
Now when I check in Runtime workbench I am getting succefully executed both at outbound and Inbound Channels.......but
data is not updated in BAPI...........
I m getting following error when I check in Component monitoring......
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive: com.sap.aii.af.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive
Please help me out.......
Regards,
Sudheer.Hi
"I took Business Service as Service but not Business System.....Will it effect the scenario???......"
I suggest While dealing with the SAP Systems we should use Business systems.
Pls check the foolowing Threads for the above Query
RFC - Business Service
Re: business service for file to rfc
Regards
Abhijit -
Hi,
I am working on File to RFC Scenario. Can u tell me how to do this scenario using RFC Lookups.
Thanks,
Seenu.do a lookup from your mapping?
RFC Lookup -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
in case of 7.1, you can try - /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups -
File to RFC Scenario - Not working with AAE
I have a File to RFC Scenario (calling RFC /POSDW/CREATE_TRANSACTIONS_EXT) using AAE but it is failing with following error in PI .
MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to:
com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>.
But When I run the same scenario using IE instead of AAE, it is successful from PI. So probably there is nothing wrong in RFC channel configuration.
There's an OSS note-730870 on this error ,it says the XML document sent to RFC Adapter may not be RFC-XML but as I am using AAE, payload generated after technical routing cannot be viewed.
Could you all please suggest why this error is coming and solution for the same?
Thanks,
AnkitHi Debashish,Monica,
Thanks for your help, I checked this SAP note its question 16 do describe my problem but do not provide solution and as I am using AAE it does not allows me to see the target structure generated whereas if I use IE the target structure generated is sucessfully getting posted.
Also, the functional module is present in target system. I have reimported the RFC also.
Is there some AAE related configuration required to enable AAE with RFC which could be missing?
This is what I get in log as the RFC reciever is called..
06.09.2011 14:15:31 Information MP: entering1
06.09.2011 14:15:31 Information MP: processing local module localejbs/RfcAFBean
06.09.2011 14:15:31 Error MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
06.09.2011 14:15:31 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
06.09.2011 14:15:31 Error Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>.
Thanks,
Ankit -
Hi all,
I am working on File-xi-RFC scenario.
i have done IR and ID working.
Now I have Done test cofiguration there is NO ERROR ......working
File is picked .....as mode is delete.......working..
I check in Adapter Monitoring...............there i got a ERROR. That is..........below
"- Error: 2006-12-16 15:59:57 IST: Message processed for interface MIIS_filetorfc: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was "
please help me...........
what i have to do??
Regards,
Umesh Laxkarhi
wht i am suggesting u his...
Check whether UR RFC ie. SM59 t-code... its proterly working or not do test connections also actvate every thing ans see...
see the below link.. i hope it will be usefull...
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
regards,
vikram.c
Maybe you are looking for
-
Locked myself out of a hard drive...Help please!
I was playing around with info on a hard drive and I clicked "no access". I cant get it back. It is not even visible on my desktop. The only reason I did this is that I was looking for ways to keep other people out. How do I recover it???
-
My ipod touch shows up in Itunes, but does not display sync screen.
It does not sync or backup. The backup bar gets stuck at about 5%. I have removed and reinstalled iTunes several times and still nothing. I have also restored the ipod and that did nothing as well. Please help
-
itunes tod me i needed to re-install it, so i did but everytime i click on itunes on my desktop it comes up with "the file itunes litbrary.itl cannot be read because it was created by a newer version of itunes" what do i do now?
-
Digital signature stopped working in Acrobat Pro 9
My digital id functionality in signing PDFs has suddenly stopped working. I've tried using it with multiple documents and none are working. I tried to create a new digital id, but that doesn't work either. Here's the error message I'm getting: (pleas
-
Oracle 10g + Solaris + 32bit Sun Hardware
Does Oracle 10g (which has a default 64bit Solaris installation) work on solaris + 32bit Sun Hardware? thanks