File 2 RFC scenario
We have a scenario, file 2 RFC, file is picked from FTP.
File is CSV file and has Invoices in it. After every invoice, there is a bapi call.
How to handle this.
Any docs or links or blogs would help me.
-Naveen.
Hi Naveen,
File system will not support Application Acknowledgements. It will support only System Acknowledgements. So inorder to handle this we need to have a BPM.
Your scenario can be addressed like this..
File->XI(BPM)->R/3(RFC)
Please go through these links and see if it helps....
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Scenario File-XI-RFC-File
http://help.sap.com/saphelp_nw04s/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Hope This is Useful.....:-)
Regards,
Abhy
Similar Messages
-
File-to-File/RFC scenario with reading filename
Hi,
i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
Scenario:
- A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
- The file must now go through a business process (not necessary the file, but i need the filename in the business process).
- The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
- The collected data are send via SOAP to a receiver system
- The file itself has to be stored in a directory via File-Adapter.
Here's my problem:
- Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
- Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
- How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
- Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
Thanks in advance,
msIf all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
VJ -
Hi guys,
I have a scenario where file is picked up from one file system(A) and is put in
file system(B) .
Now there is R/3 system which will pick up the files from file system(B)
by a already developed abap program.
But the problem is R3 doesnot want ot poll the File system (B) every 10 min
to see the file has arrived or not. it needs a trigger in form of RFC from XI
After R3 gets a trigger , it will pick up the file from file system(B).
How can we do this using BPM
RegardsHi Madhusudhan,
Without using BPM, u can poll the file system B and trigger the RFC..
Else if you want to use BPM, include the following steps
receive step(Receives file input)
send step(Post file to o/p directory)
another send step to trigger the RFC
In between somewhere you need to initialize the message interface container elemnt which you'll use to trigger the RFC -
Problem with File-RFC..
Hello friends,
I am doing File - RFC scenario.
When I send data from XI, its going fine but the records are not created in RFC
when I try to create records with test data in SE37, its able to create records
Where could the things be wrong?
why were the records not created?
file is picked, receiver side CC is green, checkered flag
no inbound or outbound queues in XI
if the data is being accepted by the RFC, then it would have created records in RFC, i guess there is some problem in accepting the data sent by Xi and processing it as records of RFC
coz with test data, the RFC is working gud
There are no items in the Queue on the R3 side.
please help on how to check where do I have to check if the data is coming in or not or how to trace it?
stuck with it since last 4 days
help !!!!hi nikhil,
you should try to put an infinite loop on your RFC function, something like:
data a.
while a eq space. endwhile.
Then from SM50 you should be able to see if the FM has been called; if so, you should see the 'blocked' process and be able to debug it.
If not, then XI is not calling properly the FM; you should check your receiver agreement and, eventually, if there something wrong with the alignment in CPA cache(both from the Integration Directory and SXI_CACHE transaction)
Regards,
Paolo -
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 -
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 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 -
BPM not starting in a File - RFC- File scenario
Hi,
For testing purpose with BPM, I have the following scenario:
File (FTP server) -> RFC (BAPI_COMPANY_GETDETAIL) -> File (FTP Server)
Under SXMB_MONI, I can see my message beeing procces with the black/white flag. opening it, I have, on the left top, the two lines:
CENTRAL Client 001 (my XI client) XXXXXXMEssage number
PE_ADAPTER Cleint 001 XXXXXXMEssage number
No error messages, the only stuff I noticed is the following in the trace, but I don't know how to deal with:
- <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_BPE-ENTER_PLSRV">
<Trace level="3" type="T">Processing mode is</Trace>
<Trace level="3" type="T">created BPE proxy for message 27A64735F7914F440E54E0701C944C36</Trace>
<Trace level="1" type="T">--start sender interface action determination</Trace>
<Trace level="1" type="T">select interface FileRequest_OUT_MI</Trace>
<Trace level="1" type="T">select interface namespace http://polyright.com/xi/HR</Trace>
<Trace level="1" type="T">--start receiver interface action determination</Trace>
<Trace level="1" type="T">Loop 0000000001</Trace>
<Trace level="1" type="T">select interface FileRequest_AI</Trace>
<Trace level="1" type="T">select interface namespace http://polyright.com/xi/HR</Trace>
<Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
<Trace level="1" type="T">Hence set action to DEL</Trace>
<Trace level="3" type="T">inserted message into pipeline PE_ADAPTER</Trace>
<Trace level="1" type="Timestamp">2008-09-15T08:18:06Z CET qRFC raised on XBQO$PE_WS90000003</Trace>
</Trace>
Does anyone has any suggestion ?
In SXMB_MONI_BPE, I don't see anything. Seems like the BPM process never started.Check these threads :
RFC Scenario using BPM --Starter Kit
1. Use Sender File adapter with QOS as EOIO.
2. Use a BPM with a 1:N mapping and a Block with For Each as the mode. Wrap this with an excpetion handler block to send the alert.
Look into this blog for exception handling and reconilation,
Reconciliation of Messages in BPM -
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 -
Mapping error in file(FCC) to rfc scenario
Hi,
i am trying to implement mapping in file (fcc) to rfc scenario. the source file is getting picked up, but the problem is arising during mapping. i am unable to generate the target structure. i am attaching mapping structure as follows
Source Structure Target Structure: RFC
storesales -POSDW-CREATE_TRANSACTIONS_EXT
recordset it_transaction
gmd_site_101 item
gmd_site_102
gmd_site_103
gmd_site_104
here the recorset is mapped to item, and fields of subnode gmd_site_101 is mapped to fields of subnode item. similarly, for the other subnodes. but when testing with xml file, the target field is not getting generated. in FCC parameters, ignorerecordset name is set to "true".
any help would be very helpful..thanks in advance.
warm regards,
kartzhi
You can test the data using payload from SXMB_MONI in message mapping test tool so as you can get to know the reason of failure.
It would be better if you paste the error you are getting over there.
Check if you have maintained the namespace in CC or not. it should be same maintained if you have kept namespace in message type.
Also check in FCC parameters you must have used ignoreRecordsetName = true
Regards
Raj -
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 using BPM : a synchronous one
Hi All
I am doing File>RFC>File scenario using BPM with help of the blog
RFC Scenario using BPM --Starter Kit
here everything is explained but i am getting error while the processing of BPM part
Input file is being picked (this part is success) but rest BPM and response i am not getting back in .
interface names
filereq_MI >Filetoabstract_MI>Sync_MI>RFCtoabstract_MI>Fileres_MI
(abstract means its an abstract interface)
i have configuered the Integration process as follows
Start>Recieve>synch_send>send>end
step : Recieve
mode : asynch
message:Filetoabstract_MI
step : synch_send
mode : synch
synch interface : synch_send
req message:Filetoabstract_MI
res message : RFCtoabstract_MI
step : send
mode : asynch
message:RFCtoabstract_MI
and i have given interface mapping during second (synch_send) step but here mapping is giving problem its showing exception error during mapping
error is there
1) Integration process ---> file
2) Integration process-->R/3 systemHi,
Configure the Integration Engine According to this Blog and Trigger the Process again
Configuration of a Central Integration Server
Regards
Seshagiri -
Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario
Hi All,
I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
[File - RFC - File without a BPM - Possible from SP 19.;
but I am getting error java.lang.NullPointer Exception in Audit log of sender communication channel when it enters in ResponseOnewayBean.
I had implemented the same in PI 7.0 but there it was working fine.
Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
Please help me in resolving as it is priority task for me
Thanks,
AmitSometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
Regards,
Prateek -
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
Maybe you are looking for
-
my wife and i both have iphone 4. they were set up with 1 icloud account. we now both have separate apple id's. I would like to set up a different icloud account on my phone with my apple id and password separate from my wife.
-
How do i make flash movies?
yes im new to flash, and i dont know how to make like, animated movies and such
-
Default XI parameters in 7.1, soap sender.
Hi, I have a quick question about Default XI Parameters in Soap sender adapter in PI 7.1. Why are they not present in PI 7.1( sender interface and sender NS )? which are mandatory parameters in 7.0. I was guessing that , this ways we can create a gen
-
Has anyone else had the screws fall out of the bottom of 2012 2013 Macbook Pro Retina?
Apple tried to repair my Macbook Pro Retina when I first got it. They took the back off, replaced the motherboard (which was not the problem), and returned it to me the next day (via FedEx). When I got the machine back, half of the screws on the back
-
How to override component default events
How to override the scroll panel default click event to custom event.