RFC to File scenerio
Hi,
I've created one RFC to file scenerio, but I am not able to get the file at destination
1. created one program in R/3 to execute the RFC which is in R/3 only.
2. created RFC Destination in R/3
3. same is maintained in Sender Communication channel
I've tested the configuration in ID, it is execting successfully without any error.
so I m expecting that when i execute the program in R/3 it should generate file... but it is not getting anyting.
pl let me know the possible cause... or direct me where should I look at for finding the problem.
-Thanks,
Hi,
Check few basic but important things at R3 side as well.
1. Is your RFC Remote-enabled?
2. Have you imported the updated RFC from R3 into XI repository?
3. Have you used Commit work in your ABAP program?
4. Check if your code looks like as mentioned below..
CALL FUNCTION 'Your RFC name here'
IN BACKGROUND TASK
DESTINATION 'RFC Destination name of type T'
TABLES
COMMIT WORK.
you can refer this wiki... https://wiki.sdn.sap.com/wiki/display/XI/RFCtoFILE
Regards,
Sarvesh
Similar Messages
-
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 -
Issue in File to RFC to File Scenario with BPM using Block Step
Hi Everybody,
I am doing File to RFC to File Scenario for multiple records using BPM using Block Step. The File Message is getting posted and after that, the message is getting stuck up in the qRFC Monitor (Inbound Queue).
After seeing the message in Inbound Queue, I am trying to execute and release the message. But when i execute the LUW, it says " Function module doesnt exist or EXCEPTION raised" in Inbound queue.
Could somebody suggest me the outcome of this? What does this mean and how to
release the stuck up message in Queue.
Thanks and Regards,
N.Jayanth KumarHi Rajesh,
After going through the blog, i saw the trace messages. It says
" The exception occurred (program: CL_SWF_XI_INBOUND=============CP, include CL_SWF_XI_INBOUND=============CM00F, line: 19)"
Regards,
N.Jayanth Kumar -
Issue in Sync-Async bridge(RFC to File) scenario
Hi All,
My scenario id RFC to file synchronous scenario.Following the below link, I configured everything and its working fine. I am working on SAP PI 7.31 Dual Stack.
http://scn.sap.com/blogs/henrique/2007/08/02/syncasync-scenarios-without-bpm
As mentioned in the above link, I created the file with Message Id as file name and correlating with the message id(Using WaitResponse and Notify beans).Its working fine. But I don't want the file name to be as Message Id. Then in that case, please suggest me how can I correlate the request and response messages.What are the possible ways of doing it.
Thanks,
Madhurimathere is not a best way, just what you need to archive, take the file name as you mentioned is not the best practice, so you can use another parameter provided by SAP.
To evaluate the following attributes in the PI message header, set the corresponding indicators:
○ File Name (technical name: FileName)
○ Directory (technical name: Directory)
○ File Type (technical name: FileType)
○ File Encoding (technical name: FileEncoding)
do any of them are good for you?
Rdgs -
RFC destination for RFC to File scenario
Hi,
I m creating a TCP/IP RFC destination in R/3 system for my RFC to File scenario.
Step 1:
For this a Registered server program is created in Jco RFc Destinations with,
Program Id : pgm1
Gateway host : PI's host
Gateway service : PI's service
application server host: ECC's host
system numer : ECC's number
client : ECC's client
logon user : ECC user
password : pwd
Step 2:
In SM59, TCP/IP connection the following parameters are given:
Program ID : pgm1
Gateway host : PI's host -
> is this correct
Gateway service : PI's service -
> is this correct
Step 3:
So i am calling the RFC in ABAP program (R/3 system) like:
CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'
IN BACKGROUND TASK DESTINATION 'Z_HR_OUTBOUND_DATA2'
Step 4:
In PI side,
for RFC sender I am passing :
Application server : PI server
Application server service: PI host
program ID: pgm1 which was created in the previos step
For RFC Metadata Repository Parameter, i am passing all the values related to R/3
Please let me know whether the steps and values i given is correct.
B'cos even if i give ECC's information in Gateway host and Gateway service the scenario works fine and if i PI's info then also it works fine.
so i am confused as which is the correct method. pls clarifyOk I will try to explain....
Assumptions: R3_TO_XI is the name of RFC which I created in ECC of type T.
While creating the RFC in ECC we mention a unique name which is called Progaram ID. Now the same program id we mention in our sender RFC CC.
So now when an ABAP Progarm (where you will call this RFC with it's destination) is scheduled/triggered with the code as mentioned below then since the DESTINATION ('R3_TO_XI') mentioned here contain the same program id which we have mentioned in our sender CC, invokes the adapter in PI and soon after that all pipeline steps get executed in XI.
CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
IN BACKGROUND TASK
DESTINATION 'R3_TO_XI'
TABLES
comp_detail = company_detail.
COMMIT WORK.
Regards,
Sarvesh -
Complete file not displayed in File server(Idoc - XI File scenerio)
Hi,
Am working on Idoc-XI-File scenerio.
The target file is getting generated properly and complete xml n Adapter Monitoring in RWB.
But in the file server(in the directory)only part of the xml is displayed.The size of the file is 82KB.
Is there any configuration need to see the complete file in File Server.Hi Amit,
This could be due to Network. How far is the file server from XI server?
I suggest putting the file in to local machine or in the same network and check whether it is OK.
- Pinkle -
Error Handling on RFC - XI - File Scenario
I have an R/3 RFC -> XI -> FILE scenario that works, but does not adequately handle the error of my R/3 to XI connection being down.
The RFC call is async since I was under the impression that I had to do a "to file" scenario that way.
CALL FUNCTION 'ZXO_SAP2RFC'
IN BACKGROUND TASK
DESTINATION wa-rfc_dest_1
EXPORTING
request = request
rfc_header = rfc_header.
COMMIT WORK AND WAIT.
IF sy-subrc <> 0.
[error handling]
If my rfc destination is down (for example when XI is down), this RFC call is still getting a sy-subrc of '0' (so my error handling does not kick in).
Any suggestions?Hi Keith,
your scenario is working correctly. If XI is down you will find your message queued in transaction SM58, where you can restart it manually. Usually there should be standard job for report RSARFCEX, which is periodicly trieing to restard the message.
Asynchr Call (tRFC) means that your program continues completly undependent from that call.
Make a test: Change temporary the called machine in SM59 destination to senseless value and execute your programm. Your message should be in SM58. Then correct the destination and wait a few minutes...
Regards,
Udo -
CC error in RFC to File Scenario
Hi ,
While am trying to do end-to-end test for a RFC to file Scenario. Am getting this below error. Please help me to proceed further.
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '2008-08-13' too long (>8 for 2. column) - must stop', probably configuration error in file adapter (XML parser error)'
Regards,
HemanthikaHi,
Please go through this Blog
RFC Scenario using BPM --Starter Kit
check this blog on how to configure sender rfc adapter.
The specified item was not found.
I hope it helps,
Regards,
Surya -
[RFC to File]Problem about Changing file name in message mapping.
Hi,
my problem:
Type:RFC to File
I change the file name in message mapping.
when I call the RFC to send the data twice at the same time, both of the output file names are changed while I only want to change the second output file name.
thanks
SamIn my MM, the input values to these variables (var1, var2 and var3) are (<ZZCOMBI>array,G499999,END_FIFC0029) ,
var1 is an array of input <ZZCOMBI> item list;
var2 is get from a property file by call another UDF;
var3 is constant value.
the test input data :
I send the data for the first time:
- <rfc:Z_IFCFR821_ZIFCTT82100010 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <T_ZIFCTS82100010>
- <item>
<ZZCOMBI>G000002G000002</ZZCOMBI>
<ZZKYKBN>*</ZZKYKBN>
<ENAME_VE />
<ENAME_Z5 />
</item>
</T_ZIFCTS82100010>
</rfc:Z_IFCFR821_ZIFCTT82100010>
so the input values to these variables (var1, var2 and var3) are (G000002G000002,G499999,END_FIFC0029)
the output file name(File1) :END_FIFC002920090413-171534-053.dat
output record: G000002G000002
because the data what I send is the last record, the system send the dummy data for the second time by program.
- <rfc:Z_IFCFR821_ZIFCTT82100010 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <T_ZIFCTS82100010>
- <item>
<ZZCOMBI>G499999</ZZCOMBI>
<ZZKYKBN />
<ENAME_VE />
<ENAME_Z5 />
</item>
</T_ZIFCTS82100010>
</rfc:Z_IFCFR821_ZIFCTT82100010>
so the input values to these variables (var1, var2 and var3) are (G499999,G499999,END_FIFC0029)
the output file name(File2) :END_FIFC002920090413-171533-928.dat
output record: G499999
I find that File2(20090413-171533-928) was ouput before File1(20090413-171534-053 ) from the time stamp.
I am not sure about that "XI will create a message ID for each message and the messages are independent." as you mentioned above.
Best regards
Sam
Edited by: YONGHE ZHOU on Apr 15, 2009 3:59 AM -
Hi,
We are doing a RFC to file scenario where our o/p file is in XML format.
The required o/p file format is :
<?xml version="1.0" ?>
<MAT_GROUP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<HEADER>
<MINISTRY_CODE>TOT</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
</HEADER>
<DETAILS>
<MATERIAL_GROUP>
<CODE>THIRDPRTY</CODE>
<END_DATE xsi:nil="true" />
</MATERIAL_GROUP>
</DETAILS>
</MAT_GROUP>
But i am using a graphical mapping which gives me the following o/p
<?xml version="1.0" encoding="utf-8" ?>
<xsi:MAT_GROUP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<HEADER>
<MINISTRY_CODE>TOT</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
</HEADER>
<DETAILS>
<MATERIAL_GROUP>
<CODE>THIRDPRTY</CODE>
<END_DATE>0000-00-00</END_DATE>
</MATERIAL_GROUP>
</DETAILS>
</MAT_GROUP>
can u let me know how to remove xsi which is before MAT_GROUP and how to changed the END_DATE with xsi:nil="true"
I tried to do XSLT mapping using ALTOVA by following the steps given in the link [url]http://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping(forBeginners) but when i copy the XSD code from DT and save it as XML/XSD file and trying to Insert it into ALTOVA Mapforce it is not able to create the schema and shows the following error:
An error has occurred when generating an XML schema for the file C:\Documents and Settings\ISSUSER\Desktop\Gebiz\xml code\header_rcv1.xml.
Nothing to generate. Maybe all root elements are in known namespaces (e.g. 'http://www.w3.org/2001/XMLSchema').
Can anyone guide me...
Thanks.can we use multiple types of mapping at the same time?
Keep the JAVA mapping as the last one in the Interface Mapping.....and yes you can use multiple mapings (types of mappngs) in the same Interface Mapping.
If you remove the namespace from Message Type then too you will see xml encoding tag in the output.....to remove this xml encoding you have to use the JAVA mapping.
b'cos we also want to remove xsi in the o/p file
You want to remove only xsi?
Regards,
Abhishek.
Edited by: abhishek salvi on May 27, 2010 4:57 PM -
Hi,
Can somebody help me to view this thread. I am learning XI using RFC to File and I have got some difficulties in undestanding the Adapter Configuration.
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step from Michal.
When I select this thread, I get blank page.
ThanksHello MK and Shabarish,
I need a little more help from you.
Here is XI Scenario.
Want to send Material info using RFM from system A to System B via XI.
Process: In System A, I create an RFM and send the data via dest paramter.
It looks like this.
Call Function
dest 'SYSTEMA_SENDER'
1. I created T - RFC Destination in systemA.
RFC Name SYSTEMA_SENDER
gateway host gbdsc1 ( using smgw)
serveric sapgw11
Program id SystemA_Sender
Registered server program, unicode.
2. In XI box, in Integration configuration, Created RFC sender channel with the following paramter
Adapter Type RFC - Sender
RFC Server Parameter -
Applcation server(Gateway) gbdsc1 ( As in RFC dest System A )
App service(gateway) sapgw11
Program ID SystemA_Sender
RFC Metadata repository
Application Servr ( What do I enter here is it System A)
System Number
Logon on User
Logon pw
Client
Language
Finally,
In system A when I do connection test I get the following errors
Error: Program SystemA_Sender not registered
Location SAP-Gateway on gbdsc1/sapgw11
Detail:TP SystemA_Sender not registered
and other errors
Can you identify any correction required for the above RFC destination and RFC configuration?
Do I need to register the program and if so how?
Your help is deeply appreciated.
Regards -
Triggering RFC FM in R3 for the RFC to File scenario
Hi All,
I am Developing a RFC-XI-FILE scenario where i am unable to triger an RFC from the source system(R/3) .I have used the RFC-FM : ZBAPI_COMPANY_GETDETAIL ( which is remote enable) i havent written any source code in the function module : just i have created only the parameters in the table as :
Tables:
COMPANY_DETAIL LIKE T880
i have created a source code in the se38 of R/3 to call this function module as :
DATA: COMPANY_DETAIL TYPE STANDARD TABLE OF T880 with header line .
selection-screen begin of block blk1 with frame title text-001.
PARAMETERS : COMP_ID TYPE BAPI0014_2-COMPANY.
selection-screen end of block blk1.
start-of-selection .
SELECT RCOMP
NAME1
CNTRY
LANGU
STRET
CITY
FROM T880
INTO CORRESPONDING FIELDS OF TABLE COMPANY_DETAIL
WHERE RCOMP = COMP_ID.
CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
IN BACKGROUND TASK
DESTINATION 'SENDRFC'
TABLES
COMP_DETAIL = COMPANY_DETAIL.
COMMIT WORK.
I have created RFC destination in R/3 as : SENDRFC of type T with the programid : SENDRFC_PORTAL this same program id is used in the XI sever for the sender RFC adapter .
When i execute the above program in R/3 the changes are reflecting in the XI when i checked in the SXMB_MONI.
Please sugest the correct source code if the above source code is wrong and provide me the exact process to do .
Regards,
Bharat .Hi bharat,
>>When i execute the above program in R/3 the changes are reflecting in the XI when i checked in the SXMB_MONI.
That means your RFC was called and the data was sent to XI.
>>Please sugest the correct source code if the above source code is wrong and provide me the exact process to do .
Since XI was called the source code is correct.
Am I missing something here? Can you provide some details about your requirement/error.
Regards
Suraj -
File to Rfc to File in pi7.1
Hiii,,
Iam trying file to rfc to file scenario...when iam montoring sender commuication channel it shows below mentioned error...wat may the issue..help me out
"Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.service.administration.api.cpa.CPAChannelStoppedException: Channel stopped by administrative task.. Setting message to status failed"
With Regards..
DineshHi,
I checked the namespace its rite...whether i have to check the same namespace in sap system...if yes, where to find it..
I guess your File CC configuration is not correct. Namespace will be your source interface namespace in PI. This is a very basic question and should be searched on SDN / SAP Help before posting here.
Go through this SAP Help ...
http://help.sap.com/saphelp_nw04/Helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
Regards,
Neetesh -
Hi All,
I am working on SAP PI 7.31 dual stack. I have configured a simple RFC to File scenario with aysnchronous interface. I am using classic configuration.
In Sender RFC channel monitoring I am getting the below exception and the file is not created.
"Error in processing caused by : com.sap.aii.af.lib.mp.module.ModuleException : call to messaging system failed: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message xxxxxxxxxxx(OUTBOUND) expired".
Please suggest me what could be the issue.
Thanks,
MadhurimaHi Madhu
As the log says the function module is try to execute synchronously.
But as per your requirement it should be asynchronous. Please remove all the export parameters from the function module.
Then re-import the function module in PI and adjust mapping and operation mapping.
Stop and start the RFC sender adapter so that it will get the new metadata of the function module.
The function module should have only import parameters so that it will act like a asynchronous interface. -
How to catch the CC's error in the alert inbox(RFC to File)
Dear All,
I'm now have a question about catching the CC's error.
The interface is RFC to File, when the sender CC had a error(for example:RFC adapter's connection information was wrong) , there was not error message in the alert inbox even though I set all the condition of the alert rule with "*".
where is the problem?
thanks,
SamHey
First of all check SLG1 if any alerts were triggered for the error.
Secondly uncheck "Suppress multiple alerts of this rule" option in alert configuration in RWB,it might be checked right now.
Thanks
Aamir
Maybe you are looking for
-
DataSource 0HR_ATT is not defined in the source system
Hi Gurus, When I am trying load data for HR Master data Attribute it is not loading any anything. I checked that datasource in Rsa3 at R/3 side there it is showing "DataSource 0HR_xx_attr is not defined in the source system", can anybody give me the
-
ISU- Reversal of Payment document
I have scenario where I was not able to reverse a particular payment document. We posted a payment document(say 1001) through FP05 has hit an invoice and it was cleared. Both have got clearing doc as same payment doc number. We did reset clearing usi
-
Data at the client's is kept in two complementary databases that need to be consolidated in one report (P&L, Cash Flow,Balance Sheet).Currently, reports on separate databases is possible but they would like financial reports to incorporate accounts
-
Local disks are in FAIL status after installing the cluster
The /var/adm/messages log isn't giving me much info to go on. This has happened twice now. After installing the cluster, my local disks are in a FAIL status and the cluster is not giving me much information why. It's a two-node cluster w/ x2100 M2s.
-
Import or log and transfer? does it matter?
I am a handful of .mov's I'm using for a project and usually I just left click and import the folder full of .mov's. Does that have drawbacks? Or should I log and transfer? or does it matter?