cancel
Showing results for 
Search instead for 
Did you mean: 

file to rfc step by step

Former Member
0 Kudos

hi

can you please give the configurations step by step instructions for file to

RFC(BAPI) scenario.

i need to know what all steps needed in XI, IDES,IR&ID.(like rfc destination, port

creation, partner profiles...) i don't know all the transaction codes or what all steps I have to follow.

regards

Pradeep P N

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Pradeep,

i think u were mistaken in creating rfc destination, port and partner profile...

PLZ remember that while doing FILE to RFC scenario ,no need to create the rfc destination, port and partner profile...

i will explain u ...

In the SLD part (if u have the access) first create the product & SWCV...

after that add the product and client to the technical system for RFC side..

create the businees systems for file sender,file receiver and rfc receiver...

Now go to IR and import SWCV and create namespace..

-


>import the BAPI what ever u want...

-


> create the two DT's( for request and response)

-


> create the two MT's

-


>Total 5 interfaces have to create ( three abstract interfaces, one is Inbound & one is Outbound)

In the three abstract (two were abstract with asynchronous mode & one is abstract with synchronous mode which connnects to the RFC)

-


>create the two mappings (for request & response)

a,request mapping (filerequest to rfc request)

b,response mapping (rfc response to file response)

--->create one interface mapping..

-


>go to ID part..

assign 3 business systems (file sender,file receiver & rfc receiver)...

create the 3 communication channels(for file sender,file receiver & rfc receiver)..

and create sender agreements, receiver agreements,interface determination & receiver determination...

watch the blogs also..

thanx..

krish..

Former Member
0 Kudos

hi krishna kumar

thanks for your response,

i am very new to SAP and XI, your answers are very helpful, but there are some more doubts

1) why there is no need of RFC destination, ports or partner profile,

2)what is the need of five interfaces(I am not using BPM).

3)what is ithe need of these two thing

a,request mapping (filerequest to rfc request)

b,response mapping (rfc response to file response) (can you please give me some idea on above two things)

4) what is the need of three communication channels and three business systems?

regards

pradeep p n

Former Member
0 Kudos

hi pradeep,

i explained u abt File to RFC using BPM...

In BPM ..

first:--> use the receiver step to pick the file request...((abstractinterface(request msgtype) with asynchronous mode))

second---> use the send step as synchronous.....((abstractinterface with synchronous mode)

..

third---> use the send step as asynchronous......(abstractinterface(response msgtype) with asynchronous mode))

thanx..

krish..

Former Member
0 Kudos

Hi Pradeep,

<b>what is ithe need of these two thing

a,request mapping (filerequest to rfc request)

b,response mapping (rfc response to file response) (can you please give me some idea on above two things)</b>

Here our scenario is File to RFC,First let em discuss what is RFC..RFC is nothing but Remote Function call,The name itself saying that it is a Function..what normally a function do..It takes input value and it process the logic and it will return one value..hope you understood this concept.

So,let's come to our file to RFC scenario...For sending input values to RFC we need one interface that is nothing but File sender..The File sender will send the data to the RFC InputParameters and later it process the logic and and it will return the values..For receiving the values from RFC response to File Response...you can have doubt here why we need again File Response Mapping...see here in RFC will hold the Return Value but we need to get the return value so for getting the return value of RFC we need mapping program for File response.

And that too RFC is Synchoronous call.

Hope I am clear.

Please let me know if you have any queries...!

Thanks and Regards,

Chandu.

Former Member
0 Kudos

hi

chandrasekhar

i am doing a file to RFC scenario

my scenario is like this (When the returns document is picked up and processed byXXX(thirdparty), XXX will send a confirmation on the same. The necessary details will be stored in a 'Z' tables in SAP)

in this case any need of response mapping?

regards

Pradeep

pradeep p

Former Member
0 Kudos

Hi Pradeep,

One of the reasons for using a BPM is that,a file system will not support Application Acknowledgments. It will support only System Acknowledgments. So in order 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

http://help.sap.com/saphelp_nw04s/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm

Regards,

Abhy Thomas

Former Member
0 Kudos

hi abhy

i will clear my scenario, i have to pick up a xml file from a ftpserver and and i have to load the details in that table to SAP R/3. there is no need of acknowledgements, is there any need of bpm for this scenario?

regards

Pradeep

Former Member
0 Kudos

Pradeep,

their is no need to use BPM .get use the source and map with RFC structure.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

hi

while creating namespaces there is "connection data for import from sap system" in side we have to specify message <b>server and group</b>. is it must? what is the use of that one

regards

pradeep

Former Member
0 Kudos

not required.

Former Member
0 Kudos

Hi ,

You have to give only client and system name.You can leave the reamining parameters like message server and group.

Regards,

Former Member
0 Kudos

Hey Pradeep,

In this case you will not require a BPM... All that you will need to do is to create an asynchronous Message Interface for the RFC Request and use it at the target side instead of using the RFC directly as the Message Interface which is done normally as in the case of a synchronous scenario. The rest of the configurations remain very simple... If any other doubts pls ask....

Regards,

Abhy Thomas

Former Member
0 Kudos

hi abhi

can you please give me some ideas on "external definitions" for importing outside dtd file. can you give me some ideas on parameters like category, messages

regards

pradeep

Former Member
0 Kudos

we use external definations when we dont want to create data typein IR or when it not posible to data type in IR.

in IR under External defination we importthe external defination w\hich created . we can XML spy andtother toolsto create it.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

hi

i completed the IR part, now i am going to start ID part, can you please guide me for doing this. i am not sure where i have to create the communication channel(in business system or business service)

what all configuration i had to do there for file to rfc scenario.

regards

Pradeep P N

Former Member
0 Kudos

. i am not sure where i have to create the communication channel(in business system or business service)

create Communication channels as Buiness system .

for File to rfc create two comunicationchaneels one for sender file dapter andone receiverRFC adapter.

create Recivr determination in sender details give sendingFile system name interface name and namesapce. in reciverside i.e. interface determination give RFC Function module name and interface mapping.

and sender and receiver agreements

Regards

Sreeram.G.reddy

Former Member
0 Kudos

Hi,

When u have entry of the service in SLD u can make it in Buisness System otherwise buisness service...

Regards

Hemant

Former Member
0 Kudos

Hi,

U have to make :

When data is going outside the XI.

1) Reciver Determination

2)Interface Determination

3)Reciever Agreement

When data is coming inside the XI.

1) Sender Determination

2)Interface Determination

3)Reciever Agreement

Regards

Hemant

Former Member
0 Kudos

hi

can you please give the information for importing exicting business system to my business system(actually i have to use the same business system, which some other persons are using. is there any problem for accessing that system.

regards

Pradeep P N

Former Member
0 Kudos

you want have any problem . you can resuse the same business system. go to objects in directory and right on tht buinses system then se lect add to scenario option then select our scenario business system will be avialbe in our scenario

Regards

Sreeram.g.reddy

Former Member
0 Kudos

Hi,

you can also copy the object of that system..

Regards

Hemant

Former Member
0 Kudos

Hi Pradeep,

just use the existing Business System in ID.......right-click the existing BS......choose add to scenario......then select your scenario.........then that BS will be added to your scenario.....

For file to RFC, you need one Sender File adapter and one receiverr RFC adapter..

one interface determination, one sender agreement, one reciever agrrement and one reciver detremination.....

Thanks,

Rajeev Gupta

Former Member
0 Kudos

hi

thanks for all responses. i feel very happy because i am getting lot of informations even if my questions are wrong.

can you please give me some more idea on how we use external definitions, context objects and data type enchancement?

using external definitions how we create the message type and message interface?

regards

Pradeep P N

Former Member
0 Kudos

Hi Pradeep,

see external definitions are used when you have a DTD or XSD or WSDL file which defines how your node struc is defined......

then when you hav an ED, Then you go to create a MI for it....in MI, just choose the ED in msg......you dont need to create msg type for ED......

Thanks,

Rajeev Gupta

Message was edited by:

RAJEEV GUPTA

Former Member
0 Kudos

hi

it means there is no need of data types? i should create an ED and create MI using that one, then how we will do the message mapping with out data types?

can we use this ED for message mapping? how the data will appear in message mapping?

regards

Pradeep P N

Former Member
0 Kudos

Hi Pradeep,

if you have a dtd or xsd file, just create an ED for it.......no msg type will be created for it.......in msg mapping, you can select the ED msg in your scenario...then the heirarchy of nodes as said in your DTD will appear in msg mapping design tab as a normal heirarchy of nodes which you see of normal msg type in msg mapping......so basically by having dtd or xsd file for sturucture, you save your effort of manually creating the data type by yourself.......

Thanks,

Rajeev Gupta

Former Member
0 Kudos

hi

i created an ED and but in message mapping , i am not able to take ED, it is showing there but it is disabled. can you give me a solution for this.

in ED I selected category as dtd and messages as from doc type.

regards

Pradeep P N

null

Former Member
0 Kudos

you need to find the root element of our ED in selecting our Mapping.to find that you need to drill down to find it.

Former Member
0 Kudos

hi

could you please give me some information on ACTION and INTEGRATION SCENARIOS.

why we are using action and integration scenarios in our project?

regards

Pradeep P N

Former Member
0 Kudos

Hi Pradeep,

The purpose of INTEGRATION SCENARIOS -

(Ex : Suppose there is big apartment with 20 flores..you want to reach 9th flore..infront of apartment if you have the flow chart how to reach each flore you can safely and easily reach the 9th flore..because you have flow chart of apratment..evrything is given in the flow chart..

...flow chart is nothing but INTEGRATION SCENARIOS

ACTION is nothing but each what is the source and what is the target..i mean to based on our above example Gate is the source..from Gete you have to go lift..again from lift to 9th flore..each one is nothing but action.

You can create the configuration scenario based on INTEGRATION SCENARIOS also..

Tools -> Import INTEGRATION SCENARIO FROM IR

You can create the configuration scenario without ..IS also..

IS will mainly used B2B process..

Regards,

Venu.

Former Member
0 Kudos

hi ,

check below link..

/people/venkat.donela/blog/2006/02/17/companion-guide-to-integration-scenario

Regards,

Venu.

Former Member
0 Kudos

You use an integration scenario to define the message exchange and message flow for collaborative processes. Normally, these are processes between different business partners that are generally coupled by the exchange of messages.

The integration scenario provides you with a central point of access for all objects that you require for semantic and technical integration, for example interfaces, mappings, and software components.

You can integrate an executable integration process into an integration scenario.

The information entered in an integration scenario during the design phase is used as follows:

· During the configuration phase to map the collaborative process to the current productive system landscape.

In this phase you specify the business systems of the business partners on which the application components are installed. In this phase the integration scenario provides you with a central point of entry for the definition of all receiver determinations. These routing relations define the flow of messages in the productive system landscape.

What actions do:

Actions divide up the process flow of a business scenario. Actions in different application components can exchange messages with each other within a business scenario.

please reward points

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

hi

could you please give me the difference between<b> Internal and External t</b>ype of usage in Actions

regards

Pradeep P N

Former Member
0 Kudos

Internal Actions

Defined for a ‘separate’ software component version.

You can use internal actions in application components (of type Product Version or Main Instance) that (by using the product version) contain the same software component version in which the action is implemented.

External Actions

Defined for a software component version of a partner or for templates.

You can use external actions in application components (of type Template or Product Version) that (by using the product version) contain the same software component version in which the integration scenario is implemented.

Regards

sreeram.g.reddy

Former Member
0 Kudos

hi

I am doing the Integration scenario now, is it necessary to create the communication channel(In adapter object there is an option communication channel template) between two selected objects, while we are connecting two actions.

i think we can create communication channel in ID part (while using Integration Scenario Configutartor.).

could you please give me some idea about this portions,

regards

Pradeep P N

Former Member
0 Kudos

not required.

Former Member
0 Kudos

hi

Sreeram

not required means we can create it later in ID., In ID i tried to create new communication channelin IntegrationScenario Configurator but i am not able to create it, but it shows a list of existing communication channels. what will i do in this case ?

Thanx..

Pradeep P N

Former Member
0 Kudos

HI,

In Id if you got the error , it is already existed , then ..goto Objects tab and select the existed CC right click and add to your scenario. But before that check the BS is same or not.

In general CC template is not required in IR.But in some scenarios we must create.

Regards

Chilla..

<i>Points rewarded if it is helpful..</i>

Former Member
0 Kudos

Hi Pradeep,

we have to define the adapter objects while creating the Integration Scenario..

Former Member
0 Kudos

hi

i am loading a dtd file using external definitions, i selected the FROM THE FIRST EELMENT option, is it correct?

In external definition there are two feilds category and messages, if we select the category as dtd then there are two options FROM THE DOC TYPE and FROM THE FIRST ELEMENT,could you please give me the difference between these two things.

regards

Pradeep P N

Former Member
0 Kudos

Hi Pradeep,

in External Definitions:

on choosing FROM THE FIRST ELEMENT, you will get in messages tab the name of your first element in your DTD file......

on choosing FROM THE DOC TYPE, you will not get anything in messages tab..

Thanks,

Rajeev Gupta

Message was edited by:

RAJEEV GUPTA

Former Member
0 Kudos

hi

when i am using FROM THE DOC TYPE i am not able to create message interface. could you please give reason why it is so?

regards

Pradeep P N

Former Member
0 Kudos

you wont get because their no root element to select from it . so it does not find the root element

Former Member
0 Kudos

Hi Pradeep,

<i>when i am using FROM THE DOC TYPE i am not able to create message interface</i> - because XI cant decide to take which element as the start element for the ED msg type in msg interface.....

Thanks,

Rajeev Gupta

Former Member
0 Kudos

HI,

to create the message interface , you need the message type not data type.

So here if you create the ED with DTD, that will be possible to create message type.

If you want to creat the message interface with ED ,then create ED with WSDL not with DTD.

Regards

Chilla..

<i>Points rewarded if it is useful..</i>

Former Member
0 Kudos

hi

I am confused on your answer, i have a <b>dtd</b> file with me, by using this <b>dtd</b> file how can i build the ED by taking category as<b> wsdl</b>.

regards

Pradeep P N

null

Former Member
0 Kudos

you have dtd then import it in Datatype .then create Message Type .In mesage interfcae slect the MT, then you generate WSDL from Message Interface you option to generate WSDL file from Message interface.

Regards

Sreeram.G.Reddy

Message was edited by:

Sreeram Reddy

Former Member
0 Kudos

<i>ED by taking category as wsdl</i>

select dtd.....default value is wsdl

Former Member
0 Kudos

hi

while executing i am getting some error like shown below

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_MM_TestFileToRFCPradeep_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_TestFileToRFCPradeep_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

i tested the mapping in IR and tested the configurations in ID both are success, but finally executing it is shown like this. could you please help me in correcting this error.

regards

Pradeep P N

null

Former Member
0 Kudos

Pradeep,

their is an error in our mapping. can you take the xml from payload and test it in mapping ofmappingtest tool

Regards

sreeram.g.reddy

Former Member
0 Kudos

HI

thank you Sreeram. you are correct. i directly put the dtd file to ftp and tried that was the mistake. actually i had to take the code from message mapping. ..

here i have one problem i have to do a file to bapi using webservice. i don't know what is webservice, or where we are using this webservice in file to bapi. could you please help me in doing this one..?

thanks

Pradeep P N

null

Former Member
0 Kudos

Pradeep,

To work in file to RFC.

1.create File adapter to pick up file.

2.RFC adapter to post datain to R/3.

3. Define DT,MT,Interface,mapping and Inteface mapping IR.

4. Import the RFC into IR.

5. IN ID create receiver ,interface detemination ,sender,reciver agreements and systems.

chekc the blogs

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Regards

Sreeram.G.Reddy

former_member91687
Active Contributor
0 Kudos

Hi,

You can refer this blog for a file to RFC scenario.

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Using a BPM or not would depend on whether you need to make a sync or an async call.

Partner profile are not required in this case, to configure reciver RFC adapter refer this:

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm">Configuring the reciever RFC adapter</a>

Regards,

Chandra

prabhu_s2
Active Contributor
0 Kudos

pradeep

first u need to create a product version under s/w catalogin SLd and also create technical sytem and business system. once after dping that import the vesion u have created in sld to ir from ir. for file strucuttre u need create DT, MT, MI and mapping. in id u need to do the configuration. for rfc u nede to create the connectivity in sm59 transcation. this is the very brief overview.

u can catch to this blog:

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit