Regarding RFC to FIle
Hi Everyone,
Would anyone Please give me steps for RFC to File Scenario.
Thanks & Regards,
Varun
1) Create synch interfaces 4r source and target.
For RFC while creation of interface
input msgtype - Request msg
output msgtype - Response msg
2) Create 2 msg mappings.
inputmsgtype(file)----> Requestmsgtype(RFC)
Responsemsgtype(RFC)--->outputmsgtype(file)
3) Create 1 interface mapping choosing synch interfaces on
src and tgt side.
-->you ll get two tabs here request and response.
-->Click on request nd specify 1'st mapping
--> Click on response nd specify the 2nd mapping.
Refer this blog:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29&
Similar Messages
-
Regarding RFC to FILE - Multi Mapping
Hii
I am doing BAPI/RFC to File Asynchronous Scenario. The data is being Pushed from SAP via BAPI/RFC. For testing, I am sending the data form Test tool of RWB.
I am sending single BAPI/RFC with 3 PO, in the target I should get 3 files generated. I am using Multi Mapping. I am using Dynamic configuration for Filename and created UDF. My target filename should be Process_Order_%y%y%y%y%M%M%d%d%H%H%m%m%s%s
I had Mapped the UDF to the root node.
In the SXMB_MONI, I am able to see 3 files getting created. But in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first 2 PO's are missing.
When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated.
Any Inputs would be appreciated.
Regards,
Varun
Edited by: Varun Reddy on Jul 2, 2009 10:20 AMBut in the target folder I am getting onlly 1 file with the 3rd PO content and the file name is correct. The first 2 PO's are missing.
When I testted the same with out UDF using Add timestamp in the File Adapter, i am able to get 3 files generated
The files are not missing but the 1 and 2 files are getting overwritten by the 3 file........what is the name that is generated for the files by the UDF....i doubt it is the same name...and hence this is happening....
Whereas when you are using the Timestamp option you are getting all the files since the names are different......so that means you have to make some change in the file names so that you get all the three files....else there doesn't seem to be any workaround...
Regards,
Abhishek. -
Doubt regarding Sender adapter file content conversion to RFC
Hi Experts,
Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.
How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>testxml</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
I have configured sender file adapter with FCC like :
Document name as: MT_HSA_IDNumber
Document name space as: urn:passhe.com/UpdateIdNumberISA32
Record structure as: COMMIT_I,1,IDENTIFICATION,1
COMMIT_I.fieldNames : COMMIT_I
COMMIT_I.fieldFixedlengths: 1
IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO
IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8
i am getting error like this: even when i change source structure like below metioned:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT>
<COMMIT_I>X</COMMIT_I>
</COMMIT>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>idnumber1</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)
Please help me out
thanks
dhanushHi Dhanush,
Try giving the Sender FCC this way for the source structure you have mentioned above.
Record structure as: COMMIT,1,IDENTIFICATION,1
COMMIT.fieldNames : COMMIT_I
COMMIT.fieldFixedlengths: 1
Hope this helps.
Thanks and Regards,
Induja -
Hi,
I am Doing RFC to RFC to FILE. I want to execute RFC to RFC and I want to get RFC response to FILE.
1)Do I need to Define BPM for theScenario.
2) Should I configure Sync- Async Bridge for the above scenario.
2)For RFC's we do not ceate any Interfaces, then for RFC should I define Abstract Message Intergaces to use in BPM.
3) In order to get the RFC response to FILE, Shd I define Mapping between RFC response and File.then what would be the Interface Mapping?
Regards,
VarunHi Varun,
Sync/async communication enables a synchronous sender system to communicate with a receiver system that cannot process synchronous messages.
The central component of sync/async communication is the sync/async bridge, which enables the Integration Server to receive synchronous messages from a sender and send them to a receiver as asynchronous messages. Conversely, it can send the asynchronous response from the receiver back to the sender as a synchronous response.
To do this, you define an integration process, which is started as soon as a synchronous message is received from the sender system. The process uses a special receive step to open the sync/async bridge, sends the received message to the receiver system asynchronously, and waits for the asynchronous response to arrive from the receiver.
The Business Process Engine receives the asynchronous response from the receiver, correlates it with the corresponding query, and activates the waiting process, which then sends the response back to the sender synchronously.
1)Do I need to Define BPM for theScenario.
Yes
2) Should I configure Sync- Async Bridge for the above scenario.
Yes
2)For RFC's we do not ceate any Interfaces, then for RFC should I define Abstract Message Intergaces to use in BPM.
Just import ur RFC and use it.
3) In order to get the RFC response to FILE, Shd I define Mapping between RFC response and File.then what would be the Interface Mapping?
Yes.Interface mapping what ever u had done select that.
Procedure:
SyncReceive To Receive the payload synchronously from HTTPRequestInt interface
syncSend To Send the request payload Asynchronously from BPM to the File system
syncReceive To receive the response payload Asynchronously from Legacy File system to BPM
SyncSend To Send the response Synchronously from BPM to LegacySystem
Refer this blog
Bridging the Sync-Async bridge with Fork (XI)
Demonstrating Use of Synchronous-Asynchronous Bridge to Integrate Synchronous and Asynchronous systems using ccBPM in SAP Xi
Also go through these links:
http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c4/dc06418752ef6fe10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f9/66bf40ad090366e10000000a1550b0/RN_XI_DE_neu.pdf
Regards,
Vinod. -
Basic doubts Regarding the RFC to File scenario.
Hi All,
I'm doing a RFC to File scenario, so before starting the development i went through many blogs and sites to know more the about scenario. I'm confused in the step where we have to create a RFC (type TCP/IP) in sm59.
I have the following doubts :
1)whether to create the RFC in sender (which will be ECC system) or XI.
i.e., RFC in sender (ECC) pointing to xi system in sm59 of Sender(ECC)
or
in XI pointing to sender (ECC) system.
2) the program id maintained in RFC.
the program id is any name or the FM which is being imported in XI system.
Thanks in Advance,
Kind Regards,
Lalitkumar.Hi Lalitkumar,
1)whether to create the RFC in sender (which will be ECC system) or XI.
i.e., RFC in sender (ECC) pointing to xi system in sm59 of Sender(ECC)
or
in XI pointing to sender (ECC) system.
It should be in sender ECC.
2) the program id maintained in RFC.
the program id is any name or the FM which is being imported in XI system.
It can be any name but should be same in RFC destination and RFC adapter.
As stefen mentioned use ABAP proxy inspite of RFC as its better performance wise.
Regds,
Pinangshuk. -
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 -
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 -
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 -
Regarding RFC Sender Communication Channel
Hi All,
I am working on RFC sender channel, need some important information.
1). Can i use single RFC Sender Channel in Multiple Sender Agreements.
2). Can i use Program ID in Multiple Sender RFC Channels. I am having one RFC to File interface and another RFC to JDBC interface.
Do i need to create 2 sender channels and 2 RFC destinations with 2 Program Ids????.
Please give me clarifications.
Regards,
BaluIf i will use single sender RFC channel and Single Program ID for my all sender agreements, how that Single RFC channel
will identify the information like
In our sender agreement we configure not only the channel but also the Sender Interface (in your case RFC)......this is the factor which defines what to accept......in broader term we use the same concept of channel re-use in other cases also and the same work fine because of this Sender Interface.
I found Q28 interesting: https://service.sap.com/sap/support/notes/730870
In first read it may sound confusing...but after some more rreads you will know what the answer means in the SAP note.
Regards,
Abhishek. -
[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 -
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
Maybe you are looking for
-
Is there a way to see previous data usage if not the primary account holder?
I am not the primary account and therefore cannot look at bills to see previous usage. Is there anywhere on the website I could find this? I know in the past, I've been able to get the last 3 months (either from website or phone app, I don't remember
-
I already have a hard drive connected to my airport extreme, and ws wondering if i could use it as a network storage device. If so would I have to format it with two partitions , one for time machine and the other for network storage. Aprreciate any
-
The sound on my Ipod video doen't work
Is there anything I can do, or should I send it in to be serviced?
-
How can i find out what the modification history is of folder
What I mean is that I had a folder deleted out of another folder and I'm trying to find out when this might have happened and how. I'm pretty certain that it's not a hidden script or macro or virus or some other malicious means. I figure it's just an
-
Looking for Regex library to generate valid/invalid String
Hi- My project use MDA (domain object are specified from an XML file) and we generate the domain, transfer object, DAO, services and controllers, flex controller, flex services and flex .as files. Now we want to generate the Unit Test Case. Of course