Scenario File-XI-RFC-File
hi,
I have send a file to a RFC using XI.The RFC.response is being received by XI correctly in XI Monitor.
Now,I need to send this RFC.response to Flat file.
For this,What i need to do? The only way is using BPM?
¿all the interfaces should be async?
Can any body help me step by step in this regard..........
I'm with XI 3.0 SP9.
Regards,
Antonio.
Hi Antonio,
In the <b>Integration Repository</b> (Design) :
1. Create Data type, Message Type for Input file and Output file.
2. Import the RFC.
3. Now create Message Interface for both input (outbound type, asynchronus)and output (inbound type, asynchronus) files. Create Abstract Intefaces (asynchronus) for these two files.
4. Create a synchronus Message interface for the RFC.
5. Create the request (input file and RFC) and response( RFC.response and output file) Message Mapping.
6. Create Interface Mapping (between the synchronus inteface created in step 4 and RFC)
7. Create a <b>BPM</b> (Integration Process)with receive (input file), send (synchronus) and send(asynchronus).
In <b>Integration Directory</b> (Configuration)
1.Create new Scenario. Assign the Business System from which RFC is being picked and new Business Service.
2.Specify three communication channel. One each for input (sender) and output file (receiver) and one for RFC (Receiver).
3. Create the Integration Process.
4. Create a sender Agreement (between File Service and RFC(Business System))
5. Do three Receiver Determination and Corresponding Interface Determination
a. File Service and BPM
b. BPM and RFC(Business System)
c. RFC and File Service
6. Create two Receiver Agreement
a. BPM and RFC (Business System)
b. BPM and File Service.
Hope this will be helpful.
Regards
Suraj
Similar Messages
-
File to rfc (file has multiple records)
Hi Guys,
I have a filr to rfc scenario..
I created a Z table with ITAB in import tab and field names and then a BAPi using se37...
The BAPI source code is just one line
Modify Ztable from ITAB
I first tried wth input file having one record, and in scenario runs successfully to update the Z table, checked in se 16
Now when the input file has more than one record, but ZBAPI has just 1..1 ITAB tab
Ho can I do multiple inserts using the same rfc/bapi??
Regards,
TejaHi,
As Prateek suggested 2 opionts, so I think option 2 is best for your otherwise option 1 can lead into performance issues.
Make sure that you have declard your internal table ITAB as standard table of ztable. e.g.
DATA: ITAB type standard table of ztable,
WA_ITAB type ztable.
if you do like this and import the BAPI in XI then you can see the occurence of target has been changed as 0..unbounded
Finally, when you have multiple records in your internal table then loop on it and update the table. e.g.
Loop at itab into wa_itab.
Modify Ztable from WA_ITAB.
Clear:wa_itab.
Endloop.
Regards,
Sarvesh -
I had created the BPM scenario excatly (I believe) as per the BLOG provided by Arpit (very helpful).
It does pick the input file and gets the response (as seen from the payload) but does not write the output file. Tried several options for last 3 days but could not suceed till date.
In SXMB_MONI it creates 3 entries and do not see any error even in the workflow
Sender Service Sender Interface Receiver Service Receiver Interface Pipeline Inbound Outbound
ADR100 FileRequest_OUT_MI File_RFC_BP FileRequest_AI CENTRAL XIRA PE Asynchronous
File_RFC_BP FileDetails_Sync_AI ADR100 BAPI_COMPANY_GETDETAIL CENTRAL PE Synchronous
ADR100 BAPI_COMPANY_GETDETAIL File_RFC_BP FileDetails_Sync_AI CENTRAL PE Synchronous
Any help will be appreciated
ThanksHi,
Please chk the status of your bpm in SXI_CACHE for a return code of 0.If its not then you got error in the process.
Rectify the errors and reimport the bpm in ID and redo the agreements.Hope this helps.
Regards
Priyanka -
ERROR IN FILE--XI--RFC SCENARIO. BAPI did not UPDATE the DATABASE TABLE
Hi
I have created a scenario FILE -XI- RFC
File is picked by file adapter - Its working fine
I have used BPM
In RFC side i used BAPI_INCOMINGINVOICE_CREATE
Its working fine and return an Invoice Number and Fisical year .
When i Check this in the R/3 System , in Invoice no Does not Exist .
Message mapping is ok
SXMB_MONI all are ok
Receiver file i got the invoice no and fisical year .
The Problem is " DATABASE TABLE DID NOT UPDATED "
So should i do BAPI_COMMIT seperately ........
Any solution ................
VERY VERY URGENT .....
thanks in advance
B.Judehi jude,
Commit Control for Single BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values , S, I, and W are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
<b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
Regards,
Mandeep Virk -
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 -
Dear Friends,
My scenario is File to RFC , file is picking from third party and that file parameters are updated in ecc and response is updated in third party system
using XI.
For this one I created data types,message types,message interfaces and message mapping for sender , receiver and response.
In interface mapping I have small doubt i.e how many interface mappings needed for this scenario.
In integration directory how many receiver determination and interface determination needed.
please suggest me.
Regards,
Shalini ShahHi Shalini,
U need to create 2 interfaces at sender side(1 is for file request & 2nd for file response) and one interface at ur receiver side for RFC.
Refer File to RFC blogs with out BPM u may find lot of stuff to ur requirement.
Regards,
Edited by: farook shaik on Sep 20, 2008 7:53 AM
Edited by: farook shaik on Sep 20, 2008 7:55 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 -
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 -
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 -
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 -
Hi,
Iam doing File to RFC(BAPI) Asynchronous.
Iam using the BAPI BAPI_SALESORDER_CREATEFROMDAT2
Te Fields iam passing for sale order creation are
DocType : OR
Material : 723300
Quantity : 10
Partner Role : SP (sold to party)
Partner Number : 100006
With these fields Iam able to create the order in R/3. When I call the same BAPI from XI and pass the same values Iam getting an error saying OR is not defined. Then I had to debug the BAPI. The fields DocType, Partner Role have conversion routines. If I pass OR they will convert them into TA like wise SP would be converted to AG. This conversion is taking place when i execute BAPi in r/3 directly.
But when I execute it from XI Iam getting the error.
If I pass TA instead of OR , AG instead of SP it works for me.
Why BAPI is not able convert them when i call it from XI.
What can I do in this scenario. I cannot all the time search for the routine and pass that value. Also my input file would be using OR, SP and all.
Please suggest me what I need to do to overcome this
Thank you
Radhika.Hi Radhika,
Yes....BAPI can execute with any values(test mode).But if you are passing values to the BAPI from XI or any external system, have to pass the conversion routine values ie TA or AG.Otherwise you get errors as u said.
To overcome this problem,You can use the Inbound proxy and bu using conversion exits in the proxy ,can solve the problem and we can pass the actual values like OR,SP etc.
Regards,
Sekhar D -
Problem in file to rfc scenario without using BPM concept
hi ,
I have configured the file to rfc scenatio and in that i have created a synchronous message interface .i have even aaded modules to my sender adapter .
I have one sender aggrement , 2 receiver aggrement , 1 interface determination , and 1 receiver determination .
the problem that i am facing is that i am able to perform the operations on r3 side succesfully but i am not getting the response back in xi .
can any one pls help me in getting out of this problem .
with regards
Bhawarlal ChoudharyHi Amit ,
My scenario is for creating the notification ( in plant maintenance) . every time i transmit a file a new notification nos is generated and even i am able to see it in SAP . in RWB when i check my communication channel i am not getting any response . The synchronous process seems to be working fine according to me do i need to even create a FRC communiation channel for sender as i have not done that .
with regards
Bhawarlal Choudhary -
Error in File to RFC scenario: ATTRIBUTE_WRONG_INTF
Hello,
My scenario is going from File to RFC which is simply writing to an SAP table.
My mapping seems OK and tests OK but in SXMB_MONI I get red flag and error below:
<?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>XIAdapter</SAP:Category>
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_WRONG_INTF</SAP:Code>
<SAP:P1>ZDWM_POS_UPDATE</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Unable to interpret IDoc interface ZDWM_POS_UPDATE</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
The posts I see in the forums with this text have to do with an external deffinition being incorrect. I don't have an ED, it is mapping right to our custom RFC interface ZDWM_POS_UPDATE.
Does anyone have any ideas or pointers for troubleshooting this?
Many thanks,
AaronHi Aron,
You should not create any message interfaces refering to RFC.Infact RFC acts both like Message type and Messge interface.
In interface determination choose ALL radio button and choose Idoc itself instead of interface.
Also the interface mapping should be b/w Fileinterface<-->RFC directly (no need of interface)
Hope this helps.
Regards,
Divya -
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 -
File to RFC with multiple records using BPM Scenario Error...!!!
Hello Guru's,
I have done the File to RFC with multiple records using BPM scenario as per the Materiel available in the sdn.sap. This involves BAPI (BAPI_MATERIEL_AVAILABILITY). I have done exactly the same what is their in the materiel. SXI_CACHE is also giving return value " 0 ". File is getting deleted from the source directory, but no file in target directory. SXMB_MONI is also showing no error (black Flag). BPM is also error free. Checked the interfaces also.
Can any one tell me what mistake would i have done.
Thanks in advance.Hi,
There is one similar discussion I found,
FTP TO RFC using BPM
Thanks
Swarup
Maybe you are looking for
-
How to convert DWF files to PDF on a Mac
1. Download McDwiff: http://www.macdwf.com/ 2. Open DWF file with McDwiff 3. Adjust page setup to suit 4. File > Print > Save as PDF Note: I did find I had to wait for a wee bit after opening and before printing or the entire contents wouldn't be inc
-
Writing an Audio plugin for Final Cut Pro
Hi all There doesnt seem to be much info out there about writing plugins for FCP... I've looked at FXBuilder and FXScript, but they only seem to deal with video. I want to write a plugin that will normalize all of the clips on my timeline (I know nor
-
My Iphone will not let me update the apps, it says that I am in the US store and must switch to the Canadian store, which is where I live, but it never has done this before. How do I switch? I log on my computer and it is the same in the Itunes store
-
Nav Bar "previous" and "next" buttons not appearing in Firefox or Internet browser. Oddly, they do appear in Chrome -- but then nothing else appears. Dynamic content appears in both Internet Explorer and Firefox -- aftering changing ContentList to
-
Iam trying Mysql in weblogic 5.0 ERRR
These are the property file settings weblogic.jdbc.connectionPool.zmisPool=\ url=jdbc:mysql://localhost:3306/ZMIS,\ driver=org.gjt.mm.mysql.Driver,\ loginDelaySecs=1,\ initialCapacity=4,\ maxCapacity=10,\ capacityIncrement=2,\ allowShrinking=true,\ s