BPM- scenario RFC - XI - receive file - - SOAP - return answer to RFC
Hello everybody,
I have the scenario
RFC call a BPM
In the BPM, I have to receive information from a file ( generated by another system 4 times in a day)
Mix the data of the file with the data of RFC
Send them a SOAP
send the reply to the RFC
My problem is : how to receive the file on demand because in file adapter ( sender ), the definition is only by interval of time?
Is there anybody who can help me?
Thanks in advance and best regards.
Eric.
Hi Eric,
in sender file adapter, we just have polling interval - so in your receive step in BPM you have to wait for the source file.....
i do not think any other workaround will be feasible for your this case
Regards,
Rajeev Gupta
Similar Messages
-
BPM scenario to send same file data two RFC function modules
Hi,
Scenario:same file need to send the data to two different RFC functions.
so in this case i need to use two receive steps or only one receive step? beause file should be places in the archive after second rfc triggered.
but this scenario client need to go with BPM only .I am new to BPM.please suggest the steps and process need to follow for this scenario.Hi,
You will have one async receive step to start the BPM from your file interface, 2 synchronous send steps for each RFC, and an async receive step to archive.
Don't use the transformation steps in BPM, as it decreases performance. You can use the same abstract interface for your file format in the send steps, but specify different Send Contexts for the receive steps. In Configuration, use a condition on Context object ProcessStep = Send Context from your BPM, and route to the correct RFC interface, using a mapping from your file to the RFC.
Hope this helps !
kr,
Peter Glas -
Posting a File with Date Time using FTP in a BPM scenario
Hi All,
I have got a following requirement within the BPM ::-
Step 1: We receive a file from an external system using FTPS with File Content Conversion Mode. The file is a comma separated file.
Step 2 : We need to write the same file without any changes in data elements to another File System. The file to be written will be comma separated.
Step 3 : The data will be mapped to an RFC and there will be a RFC Call to the ECC system.
Step 4 : On successful call to RFC, the file will be dumped into the SAP File system also.
The issue here is in Step 2. The additional requirement for Step 2 is to name the file with the following convention -
ABCDEF_<Date in MMDDYYYY>_<Time in HHMMSS>_<Time in ms>_data.txt
Can you help me on how to configure this from within the BPM ? I have seen blogs and replies in forum on using UDF's for the same. I am not sure on how to do this in BPM.
Please help !!!
Thanks,
AmitHi,
I dont think you required BPM in this case,you can achieve this requirement using Multi mapping.
3 Receive comunication channels
1)to send file to receive File directory9Content conversion required)
2)RFC Receiver Communication channel to make a cal to SAP ECC to send RFC..
3)One more File communication channel to send data to SAP File System.
refer below blog.
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Regarding r file name use dynam ic configuration UDF or ASMA to chnage file name format to your desired format,if you decided to use UDF then map root nod of receiver file structure in multimapping.
Regards,
Raj -
Receive File Adapter - Error in CallSAPAdapter Name not known
Using xml to File Adapter. Just want to store the xml file somewhere ie on XI Server in folder E:\usr\sap\interface\XMLfiles
Getting error in Adapter Engine - Exception caught by adapter framework: Object not found in lookup of CallSAPAdapter.
Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of CallSAPAdapter.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of CallSAPAdapter..
Receiver Adapter configured to receive file write a .tmp version no conversion so set type to Binary.
I can see the Communication Channel in the monitor green.
Any ideas to find the problem
thanks,I tried changing the communication channel as suggested with no further success. I have viewed the LogViewer on the server in cluster->server->logs defaultTrace.trc and com.sap.xi -> xi.log with no more information available.
So is it that I cannot do a simple XML send to file receiver and leave its content unchanged?
My test message payload was of the order
<?xml version="1.0"?><LIST><S_STX><C_STDS><D_STDS1>... with all the data in.
Adapter type = file
Receiver
Transport Protocol = File System (NFS)
Message Protocol = File
Adapter Engine = Integration Server
Target Directory = E:/usr/sap/Interfaces/XMLFiles (and tried it with /usr/sap/interface/XMLFiles)
Create filedirectory = ticked
Filename filename.xml
File Construction Mode = add timestamp
Write Mode = use temporary file
Temporary filename scheme = filename.tmp
Filetype = Binary
Module Tab
1 localejbs/CallSAPAdapter Local Enterprise Bean 0
and thats it.
On testing from the Integration Engine it reaches the Adapter Engine and reports the error as stated in my first post.
The message data is of the construct
- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP:Header>
- <sap:Main xmlns:sap="http://sap.com/xi/XI/Message/30" versionMajor="3" versionMinor="0" SOAP:mustUnderstand="1" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
<sap:MessageClass>ApplicationMessage</sap:MessageClass>
<sap:ProcessingMode>asynchronous</sap:ProcessingMode>
<sap:MessageId>09c99665-f3cf-d247-993b-8cb46c37d820</sap:MessageId>
<sap:TimeSent>2007-09-19T16:42:31Z</sap:TimeSent>
- <sap:Sender>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty">AS2</sap:Party>
<sap:Service>XMLFILE</sap:Service>
</sap:Sender>
- <sap:Receiver>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty">MyCompany</sap:Party>
<sap:Service>XMLFILE</sap:Service>
</sap:Receiver>
<sap:Interface namespace="http://warburtons.com/genhdr">MI_XMLFILE_V3</sap:Interface>
</sap:Main>
- <sap:ReliableMessaging xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<sap:QualityOfService>ExactlyOnce</sap:QualityOfService>
</sap:ReliableMessaging>
- <sap:Diagnostic xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<sap:TraceLevel>Information</sap:TraceLevel>
<sap:Logging>Off</sap:Logging>
</sap:Diagnostic>
- <sap:HopList xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
- <sap:Hop timeStamp="2007-09-19T16:42:31Z" wasRead="false">
<sap:Engine type="IS">is.00.srvsapxidev</sap:Engine>
<sap:Adapter namespace="http://sap.com/xi/XI/System">XI</sap:Adapter>
<sap:MessageId>09c99665-f3cf-d247-993b-8cb46c37d820</sap:MessageId>
- <sap:Branch>
<sap:MessageId>707ecbbd-a474-514d-b731-f4003c38c4df</sap:MessageId>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty">ASD</sap:Party>
<sap:Service>IP_I_XMLFILE_Collect</sap:Service>
</sap:Branch>
- <sap:Branch>
<sap:MessageId>09c99665-f3cf-d247-993b-8cb46c37d820</sap:MessageId>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty">MyCompany</sap:Party>
<sap:Service>XMLFILE</sap:Service>
</sap:Branch>
<sap:Info>3.0</sap:Info>
</sap:Hop>
- <sap:Hop timeStamp="2007-09-19T16:44:56Z" wasRead="false">
<sap:Engine type="AE">af.xid.srvsapxidev</sap:Engine>
<sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
<sap:MessageId>09c99665-f3cf-d247-993b-8cb46c37d820</sap:MessageId>
</sap:Hop>
</sap:HopList>
</SOAP:Header>
- <SOAP:Body>
- <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7">
- <sap:Payload xlink:type="simple" xlink:href="cid:[email protected]">
<sap:Name>PayloadName</sap:Name>
<sap:Description>PayloadDescription</sap:Description>
<sap:Type>Application</sap:Type>
</sap:Payload>
</sap:Manifest>
</SOAP:Body>
</SOAP:Envelope>
The Payload is
<?xml version="1.0" ?>
- <LIST>
etc
Message status
2007-09-19 17:44:56 Success Message successfully received by messaging system. Profile: XI URL: http://srvsapxidev:50000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSER
2007-09-19 17:44:56 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
2007-09-19 17:44:56 Success Message successfully put into the queue.
2007-09-19 17:44:56 Success The message was successfully retrieved from the receive queue.
2007-09-19 17:44:56 Success The message status set to DLNG.
2007-09-19 17:44:56 Success Delivering to channel: CC_toMyCompany_XMLFILE
2007-09-19 17:44:56 Error Exception caught by adapter framework: Object not found in lookup of CallSAPAdapter.
2007-09-19 17:44:56 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of CallSAPAdapter.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of CallSAPAdapter..
2007-09-19 17:44:56 Success The asynchronous message was successfully scheduled to be delivered at Wed Sep 19 17:49:56 BST 2007.
2007-09-19 17:44:56 Success The message status set to WAIT.
Now I have been reading all the documentation available and forum questions in this area but there is a lot of information but not quite for what I am currently trying to do. I need to preserve the xml file as xml for further processing. This is just a resting place for the file as I am trying to cut down a long running (over a day) collect BPM scenario by collecting the files in the directory then triggering the collect scenario to read in the files from this directory and perform all the processing and mapping in one chunk of short time. (But that is another story)
Any more suggestions appreciated could the SAPCallAdapter not be where I think it is? Does my directory and filename case have to be exact lower and upper case. (I will test this tomorrow)...and let you know if any difference and continue to read the links put on by the other person who answered.
thanks, -
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 -
File to RFC to File with BPM Scenario
Hi all,
I am trying to implement a Sender File ( async ) to RFC (sync ) to Receiver File with a BPM. I using the blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1926. [original link is broken] But it doesnt work. First message FileRequestOut is correct in SXMB-MONI, but the second is showing a error. I checked in SXMB-MONI-BPE and I say in workitem is follow message:
Message Error Workflow
Error handling for work item 000000001714
Work item 000000001714: Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed
No reference message specified when sending a response
No reference message specified when sending a response
I configured my BPM scenario in this way:
( Sender File Adapter )
First Step
Receiver Step ( Asynchronous )
Mode: Asynchronous
Receive Message: File Request
( Receiver RFC Adapter )
Second Step
Send Step ( Synchronous )
Mode: Synchronous
Request Message: File Request
Response Message: File Response
Receiver From: Send Context
( Receiver File Adapter )
Third Step
Send Step (Asynchronous )
Mode: Asynchronous
Receive Message: File Response
Receiver From: Send Context
I have changed it, many times and I can get solve it. About my configuration objects, I think it is ok, because a tested my Interfaces in Configuration Test Tools it was ok. ( Receiver Det. Interface Mapping, etc )
I have seen in SDN, this error maybe Sencond Step must be Synchronous e Third Step must be Synchronous too. Is it true? In other hand, I have seen, it is possible to use a Async / Sync Brigde.
Could you help me about this problem?
Thanks for help
Best regards
Fábio Ferri
Consultant XI/ABAP/NetweaverHi ,
<b><i> I have seen in SDN, this error maybe Sencond Step must be Synchronous e Third Step must be Synchronous too. Is it true? In other hand, I have seen, it is possible to use a Async / Sync Brigde.</i></b>
In BPM did u used as
Recive Step Async
Synchronous Send Step
Send Step is Async
<i><b> it is possible to use a Async / Sync Brigde.</b></i>
No need to use Asyn Sync Step for this
Assign poins if u found hepful
Best Regards.,
V.Rangarajan -
In my scnario file soap rfc i have used BPM.Even though the file is not picking up & its not calling webservices.Basically my requirement is i need to send a file which has to call webservice and the response has to get back to rfc.i am tring to work on this weblogs
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
I am able to get response for rfc to soap,but i want to work on a scenario file-soap-rfc and the response has to come to file.
Can any one please help me out.
Thanks
sriramThanks moorthy for your response
I have already configured receiver determination from file to bpm,even i bpm after sync step i have taken asyn
step..
In adapter Framework
Channelscn8_OB Sender Adapter v2727 for Party '', Service 'DEV_Integration_Server':
Configured at 2006-05-11 10:56:36 GMT-07:00
History:
- 2006-05-11 11:08:37 GMT-07:00: Polling interval started. Length: 60.000 s
- 2006-05-11 11:08:37 GMT-07:00: Processing finished successfully
- 2006-05-11 11:08:36 GMT-07:00: Processing started
- 2006-05-11 11:07:37 GMT-07:00: Polling interval started. Length: 60.000 s
- 2006-05-11 11:07:37 GMT-07:00: Processing finished successfully
But the file is not picked from directory
But i could not see any response from soap adapter,
Thanks
sriram -
Need inputs for FILE-Webservice-File using BPM scenario
Hello All,
can any one tell me how to do the file-webservice(soap adapter)-file with out BPM.
If we cant do with out BPM then, please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
Thanks and Regards,
chinnaHi Chinna,
Check this links for the receiver side SOAP configuration
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
Sender side File adapter configuration is as usual
> please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
It is a synchronous scenario so you need to create the two message interfacess for the sender (one is for request message and another is for response message). For receiver you don't need to create any message interfaces, because the WSDL internally having the two messages (request and response).
Regards
Ramesh -
File to IDOC scenario: Create customer master and then return customer no
Hi all.
I have a scenario to pass xml file to sap XI to generate IDOC to create customer master in SAP. My problem is that I need to return customer no. created in SAP from IDOC. Is there any solution to do this? Someone told me that BPM could be used for doing this but I don't know the steps.I have no problem in create customer master in SAP. My only problem is how to return customer no. Any help would be appreciate. Thank you.
Best Regards,
Pavin>>u can use synch-Asynch bridge using BPM
This can not be done via sync-async bridge.There are 2 reasons for this
1.He has file adapter as sender and that doesn't support synchronous scenarios.
2.He has standard IDOC as receiver.there is no way you can fetch customer# from IDOC without writing a custom program,Thats why i said he need to either use RFC/Proxy or do some custom development.
Thanx
Aamir -
BPM synchronous file - soap - file
Hi Friends,
I am working on scenario in which I am going pick up XML file from my system using File adapter and send to partner using SOAP adapter and in response I am going to receive an XML file that I have to store in some folder in my system.
Without doing any configuration in IR , and configuring only ID I was able to get response that I can see in SXMB_MONI but I am not able to save it.
1) Is there any way I can save that response without configuring any thing in IR?
2) I got some details from SDN that it can be done by using BPM in IR. If so please let me knw general approach that I should take to achieve above requirement.
Thanks.....may be we can achieve this by using the FILE sync flow as mentioned in this doc:
https://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29
You will have to include the response message in the FILE_OB_SYNC MI appropriately.....and as described you will be using two file channels...one sender and other receiver....so the receiver will paste the file to the desired location.....you can avoid BPM then....
IF your SP is not compatible then you need to use BPM:
Receive(FILE) ->Transformation(IfNeeded)>SyncSend(SOAP)>Transformation(IfNeeded)-->SendAsync(FILE)
Regards,
Abhishek. -
File-Soap-File scenario with asynch - synch bridge
Hi,
I am new to PI and I'm trying to develop a FIle-SOAP-File scenario with asynch-synch bridge. These are the components in my integration builder:
Business Component to act as both the sender and receiver
1 outbound communication channel to pick up the file from ftp server
1 SOAP communication channel
1 inbound communication channel to write file to the ftp server
receiver determination
interface determination
sender agreement
receiver agreement
In my outbound channel, I am using:
Processing sequence:
1 AF_Modules/RequestResponseBean Local Enterprise Bean 1
2 CallSapAdapter Local Enterprise Bean 2
3 AF_Modules/ResponseOnewayBean Local Enterprise Bean 3
Module configuration:
1 passThrough true
3 receiverChannel inbound communication channel to write file to the ftp server
3 receiverService Business component where the channel above is found.
When I run the scenario, I am able to get the file from ftp server, map it to SOAP format according to the wsdl, forward the message to SOAP adapter, send it to web service, get the response back from web service, map the data to a regular file format. However, it fails to write back to the ftp server. I am getting Java null pointer error at AF_Modules/ResponseOnewayBean.
2010-07-28 15:48:01 Information SOAP: completed the processing
2010-07-28 15:48:01 Information SOAP: continuing to response message 2ce3ec60-9a9a-11df-b109-00145ec5c1ae
2010-07-28 15:48:01 Information The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System.
2010-07-28 15:48:01 Information The message status was set to DLVD.
2010-07-28 15:48:02 Information The message was successfully transmitted to endpoint http://vs06cs01.sce.com:8000/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.
2010-07-28 15:48:02 Information The message status was set to DLVD.
2010-07-28 15:48:02 Information The application sent the message synchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
2010-07-28 15:48:02 Information MP: processing local module localejbs/AF_Modules/ResponseOnewayBean
2010-07-28 15:48:02 Error MP: exception caught with cause java.lang.NullPointerException:
2010-07-28 15:48:02 Error File processing failed with java.lang.NullPointerException:
Had anyone encountered this error? Any suggestions is greatly appreciated.
Thanks.Thanks for the replies. I checked my module parameters and I realized that i entered the wrond business service. I fixed that and ensure that all 3 channels are running.
I ran the scenario again and it does not give me Java Null pointer exception. However, it gives me a different errror.
2010-07-29 08:52:31 Information The message status was set to DLVD.
2010-07-29 08:52:31 Information MP: processing local module localejbs/AF_Modules/ResponseOnewayBean
2010-07-29 08:52:31 Error MP: exception caught with cause com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
2010-07-29 08:52:31 Error File processing failed with com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
I am trying to check all my settings again. Any pointers regarding the errors above?
Thank you. -
Sender RFC Adapter-- XI-- File Receiver Adapter ?
Dear Expert,
we are on PI 7.0 & R/3 system 4.7E WAS < 6.20. We have a scenario where in there are some huge downloads are required from R/3 to FTP File Location. For such scenarios Normally Poxy is suggested but Due to WAs Version limitation we cannot use Proxy. The other alternative is to use SENDER RFc adapter using RFC destination with XI. we have configured the RFC destination it is working fine.
I am able to receive the message also in XI. But whenever i am running this RFC in R/3 it is giving me the shot dump as follows. :
<b>call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:</b>
The File is also getting written to the destination properly. But in XI also i get the following error.
<b> <?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="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
<SAP:P1>http://Test/Zbilldwd ZBILLDWD_FILE_IM</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Interface mapping http://Test/Zbilldwd ZBILLDWD_FILE_IM does not exist in runtime cache</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error></b>
What could be the reason of this.? As well i am geting 3 error messages in XI.
I have defined this interface as Inbound / Async Message interface with input message as output file structure. ( Is this configuration is OKAY ?)
pl. help me to solve this error.
Regards,
UmeshHI,
Check your configuration from the message it states that it can not find out the mapping program.
Check the configuration Receiver and interface determination whether you are using the same which is designed in repository.
Thanks and Regards,
Chirag Gohil -
Hi Experts,
I am getting the below error for File to File BPM scenario.
<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="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Message is not used by any processes</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Could you please tell me, why I am getting this error.
Regards
SaraIR IP
FileTOFile_BPM
1. Receive Step (Used MI_Abs_Async)
2. Send Step (Used MI_Abs_Async)
Please find the below configurations which I hv done in ID
IP in ID
BPM_FileToFile
Business Service & CC
1. SENDER_SERVICE
CC: File_Sender_BPM
2. RECEIVER_SERVICE
CC:File_Receiver_BPM
3. Receiver Determination:
a) Sender Service : SENDER_SERVICE
Sender Interface : MI_Outbound_Async
Receiver Service : BPM_FileToFile
Receiver Interface : MI_Abs_Async
Mapping : IM_File
b) Sender Service : BPM_FileToFile
Sender Interface : MI_Abs_Async
Receiver Service : RECEIVER_SERVICE
Receiver Interface : MI_Inbound_Async
Receiver Agreement : File_receiver_BPM -
Receiver File channel for XML files: with carriage return
Hi all,
we are using a receiver FILE channel to generate an XML file that is sent to an external partner.
The XML file looks good in a parser (IExplorer). But in fact there are not carriage return / line feeds between the XML tags
of the XML payload in the file.
Our partner now requires the XML file in a more vertical structure which means: for every tag a separate line (like it is displayed in a parser)
Does anybody know a more general way to convert to a vertical XML structure (so with carriage return line feed).
There is one entry in the SDN dealing with this topic but suggesting using an UDF. I think this is a very specific way.
I don't think it is a good way to change/enhance the message mapping just because of a general formating change.
Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
any experiences? suggestions? examples?
Thank you very much
best regards
Hans
examples:
original by XI receiver FILE adapter
<?xml version="1.0" encoding="UTF-8"?>
<MT_batchStatus><type>BS</type><header><message><messageSender>SENDER</messageSender><messageDate>20090723143720</messageDate> ... and so on
required:
<?xml version="1.0" encoding="UTF-8"?>
<MT_batchStatus>
<type>BS</type>
<header>
<message>
<messageSender>SENDER</messageSender>
<messageDate>20090723143720</messageDate>
... and so on>
Hans Georg Walter wrote:
> Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
> any experiences? suggestions? examples?
In such a case, the best is to write an generic XSLT or Java mapping that will attempt to do the pretty printing/formatting of the xml.
The advantage of a generic one is that you can reuse the same class/jar for many other scenarios.
so the flow will be as below in your interface mapping;
1. your specific source to target mapping
2. the generic formatting class -
Doubt about RFC Destination in FILE to IDOC Async scenario
hi
In FILE-XI-IDOC Async Scenario we are creating RFC Destination in R/3 and XI.
For Asyn we don't want response But We are Creating RFC Destination in R/3 also.
Any specific reason.
Thanks in advance.First you need to have a clear understading of how the idoc adapters works.
In xi we create rfc destination and specify that in the port maintenance on the idoc adapter so that we can establish a connection to the sender / receiver system which contains the IDOC METADATA (IDX2) that is required by the idoc adapter to convert the native idoc into idoc xml format.
In R/3 as sender we create rfc destination so that when the idoc has to be transported to the xi system first it will be sent to trfc port that rfc desination that u define the trfc port contains that the target system address(IP) and logon parameters req.So idoc can be sent to the desired destination.
In R/3 as a receiver to facilitate communication we define rfc dest, partner profile and specify the inbound parameters so that idoc can be posted.
Hope this answers your ques.
cheers
*Raj*
*POINTS IF SATISFIED WITH ANSWER.
Maybe you are looking for
-
I signed out of Game Center and now it won't accept my old name when I try and log in. . I used my same email and needed to create a new password, however, this created a new game center account without my old scores. How can I find my old account?
-
Rounding minutes up or down when using a to_char function
Hi, this is my query: select (to_char(incident_date, 'HH24:MI')) Time from cla_event Incident_Date column has a date and time in it. The above query pulls the time which is what I require. I do however want the hour to be rounded down if less than 30
-
Hi, One of the table column in my ALV table displays Sales order with line item separated by "-". For Ex : 70000174 - 10. The sales order number should be a link in the table. When we click on Sales order number it should display another view. How ca
-
Still puzzled by RF pass through
T2100 box. The RF passthrough on/off setting does not seem to do anything. If the box is either on or in low eco standby the RF signal is passed through. If it is in high eco standby (or off) the signal is not passed through. Thisi regardless of the
-
Big flaw in Leopard regarding External Drives and DISK UTILITY
My macbook pro with Leopard 10.5.3. is not recognizing my drives and does not let me use or move files into them. File corruption in drives. Does not mount or unmount. THe disk utility cannot repair these problems. Now I'm at the 3rd drive getting co