Steps for performing Flat file to XML
hey,
does any one have steps for performing flat file (.csv) to XML conversion. how is the mapping in the design performed.
kalyan.
Kalyan,
Consider my example, I have input file as csv structure and want it to convert into .xml file thats it.
Input file
J,24
P,22
I want the output file like
<Emp_Details>
<F1>J</F1>
<F2>24</F2>
</Emp_Details>
<Emp_Details>
<F1>P</F1>
<F2>22</F2>
</Emp_Details>
I doesn't know whether the above matches exactly ur reqmt, but there is the option.
Step 1 : Create Scenario & Business service
http://www.flickr.com/photo_zoom.gne?id=699386732&size=o
Step 2: Create sender & receiver comm.channel
http://www.flickr.com/photo_zoom.gne?id=699386698&size=o
http://www.flickr.com/photo_zoom.gne?id=699386664&size=o
Step 3:Create all the objects in ID and cross verify below whether u've created everything.
http://www.flickr.com/photo_zoom.gne?id=699386690&size=o
Step 4: Activate and run the interface.
Your results :
http://www.flickr.com/photo_zoom.gne?id=699386686&size=o
Hope it helps!!!
Best regards,
raj.
Similar Messages
-
Error in Performing Flat-File Reconciliation
Hi All,
I was trying perform flat file reconcilation using the GTC Connector. The format of my flat file (PPSLocal.txt) is like this:
Account Name|Full Name|Domain|Last Logon Timestamp|Description|GUID|Mail|Employee ID|First Name|Last Name
PPS\SophosSAUPPS010|SophosSAUPPS010|PPS.LOCAL||Used for download of Sophos updates|EED86D86-750C-404A-9326-044A4DB07477||||
PPS\GBPPL-SI08$|GBPPL-SI08$|PPS.LOCAL|||79677F4D-8959-493E-9CF9-CDDDB175E40B||||
PPS\S6Services|Series 6 Services Account|PPS.LOCAL||Series 6 Services Account|B4F41EE2-6744-4064-95F6-74E017D0B9AF||||
I created a GTC Connector "OtherDomain" specified all the configuration;
Staging Directory (Parent identity data) /home/GTC
Archiving Directory /home/GTC/archive
File Prefix PPS
Specified Delimiter |
File Encoding UTF8
Source Date Format yyyy/MM/dd hh:mm:ss z
Reconcile Deletion of Multivalued Attribute Data check box unchecked
Reconciliation Type Full
After that i performed the connector configuration mapping and ran the respective schedule task which displayed the following error message on console:
Class/Medthod: SharedDriveReconTransportProvider/getFirstPage - Before calling: getAllData
*DEBUG,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider/getAllData entered.*
*DEBUG,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider/getReconFileList entered.*
*DEBUG,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider.EndsWithFilter/accept entered.*
*INFO,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Staging dir -->/home/GTC*
*INFO,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Number of files available -->0*
*DEBUG,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider/getReconFileList left.*
*ERROR,20 Aug 2009 09:08:49,202,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Problem encountered in reconciling the first page of data*
com.thortech.xl.gc.exception.ReconciliationTransportException: No Parent files in staging directory or necassary access(READ) permissions are missing
* at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getAllData(Unknown Source)*
* at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getFirstPage(Unknown Source)*
* at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)*
* at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)*
* at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.security.Security.runAs(Security.java:41)*
* at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)*
* at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)*
* at org.quartz.core.JobRunShell.run(JobRunShell.java:178)*
* at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)*
*ERROR,20 Aug 2009 09:08:49,202,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Reconciliation Encountered error:*
com.thortech.xl.gc.exception.ProviderException: No Parent files in staging directory or necassary access(READ) permissions are missing
* at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getFirstPage(Unknown Source)*
* at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)*
* at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)*
* at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)*
* at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
* at weblogic.security.service.SecurityManager.runAs(Unknown Source)*
* at weblogic.security.Security.runAs(Security.java:41)*
* at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)*
* at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)*
* at org.quartz.core.JobRunShell.run(JobRunShell.java:178)*
* at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)*
Caused by: com.thortech.xl.gc.exception.ReconciliationTransportException: No Parent files in staging directory or necassary access(READ) permissions are missing
* at com.thortech.xl.gc.impl.recon.SharedDriveReconTransportProvider.getAllData(Unknown Source)*
* ... 11 more*
*WARN,20 Aug 2009 09:08:49,203,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Though Reconciliation Scheduled task has encountered an error, Reconciliation Transport providers have been "ended" smoothly. Any provider operation that occurs during that "end" or "clean-up" phase would have been executed e.g. Data archival. In case you want that data to be a part of next Reconciliation execution, restore it from Staging. Provider logs must be containing details about storage entities that would have been archived*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider/end entered.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Medthod: SharedDriveReconTransportProvider/end - After calling: Re-setting instance variables*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Medthod: SharedDriveReconTransportProvider/end - After calling: Re-set over for instance variables*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.GC.PROVIDER.RECONCILIATIONTRANSPORT],Class/Method: SharedDriveReconTransportProvider/end left.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/run left.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/isSuccess entered.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/isSuccess left.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SERVER],Class/Method: SchedulerTaskLocater /removeLocalTask entered.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SERVER],Class/Method: SchedulerTaskLocater /removeLocalTask left.*
*DEBUG,20 Aug 2009 09:08:49,203,[XELLERATE.SERVER],Class/Method: QuartzWrapper/updateStatusToInactive entered.*
*DEBUG,20 Aug 2009 09:08:49,207,[XELLERATE.SERVER],Class/Method: QuartzWrapper/updateStatusToInactive left.*
*DEBUG,20 Aug 2009 09:08:49,207,[XELLERATE.SERVER],Class/Method: QuartzWrapper/updateTaskHistory entered.*
*DEBUG,20 Aug 2009 09:08:49,208,[XELLERATE.SERVER],Class/Method: QuartzWrapper/updateTaskHistory left.*
*DEBUG,20 Aug 2009 09:08:49,209,[XELLERATE.SERVER],Clearing Security Associations with thread executing Scheduled task*
*DEBUG,20 Aug 2009 09:08:49,210,[XELLERATE.SERVER],Class/Method: QuartzWrapper/run left.*
*DEBUG,20 Aug 2009 09:08:49,210,[XELLERATE.SERVER],Class/Method: QuartzWrapper/execute left.*
However, to my amazement, the reconciliation event for all the user are getting created in OIM Design console;
I have tried changing the directory /home/GTC permission to 777 also but it didnt help.
If anyone has any clue on this, kindly help.
Cheers,
SunnyAS you are saying that fiel is there.
Can you please tell me how your recon sch task is running, I mean to say at what interval or once or daily ?
If you are putting your file in parent form it is going to archive after recon. that';s correct and your recon manager is getting users that is also correct it means your recon si working fine.
Now to run this recon second time you have to put one more fiel with new records or updated records in the parent dir otherwise it shows error.
For me it is not showing any error.
As user774847 is saying that it is known issue, i can't comment on this as I am not getting this error. I get this error only when i don't put any flat file in parent dir and i run the sch task.
Just put new file or updated one for each time you run the SCh Task and make the SCh Task ONCE or Daily.
Let me know if errors are still coming -
Flat file to XML in SAP SFTP adapter
Hello All
I am trying to convert flat file to xml using SAP SFTP adapter.
Flat File is like below:
AABEN;20141106;20141106;45;0.00
AABOL;20141106;20141106;45;0.00
ABGRI;20141106;20141106;45;0.00
ADDEA;20141106;20141106;45;0.00
ALADA;20141106;20141106;45;58.43
AMSCH;20141106;20141106;45;0.00
ANOLV;20141106;20141106;45;0.00
ANROY;20141106;20141106;45;0.00
AVMCD;20141106;20141106;45;0.00
Message Type structure I created like below
In Server SFTP adapter in Module tab I am using "AF_Modules/MessageTransformBean" and conversion type ="StructPlain2XML"
I am getting error = "Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) "
I am not using any key field then please let me know how to overcome this issue.
I searched on SDN but did not get any perfect answer.
Thanks
Dheeraj KumarHello Dheeraj,
Thanks for your reply. I created a new discussion,
Flatfile to XML
Thanks well in advance for your help!
-Satish. -
Error in Flat File to XML conversion
Hi all,
I am trying to convert a flat file to XML using the Sender File Adapter and I am getting the following error message.
2006-01-23 17:23:00 EST: Error: Conversion of complete file content to XML format failed around position 0: Exception: ERROR converting document line no. 2 according to structure 'GL_FileUpload_SAPECC_Header_DT1':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
My flat file looks like this,
--Start
GL,GLI,1,RefTest,4011,Test,1234567890,12032005,12032005,GL,RK
GL,GLI,4011,3011,,,,,,AU,600,7000,8000,9000,5000,RK,,,,,,,,,,,,,,,,,,,,
---End
The adapter configuration is like this:
Document Name: GL_FileUpload_SAPECC_Item_MT1
Document Namespace: urn:corptech.qld.gov.au:sss_std_offering:gl
RecordSet Name: GL_FileUpload_SAPECC_Record_DT1
RecordSet Namespace: urn:corptech.qld.gov.au:sss_std_offering:gl
RecordSet Structure: GL_FileUpload_SAPECC_Header_DT1,1,GL_FileUpload_SAPECC_Item_DT1,*
RecordSet Sequence: Ascending
Key FieldName: TransType
On the Adapter Properties, I have got:
--Start
GL_FileUpload_SAPECC_Header_DT1.fieldNames: TransType,RowType,SequenceNo,ReferenceKey,SenderSystem,HeaderText,CompanyCode,DocumentDate,PostingDate,DocumentType,ReferenceNo
GL_FileUpload_SAPECC_Header_DT1.fieldSeparator: ,
GL_FileUpload_SAPECC_Item_DT1.fieldNames: TransType,RowType,SequenceNo,GLAccount,CostCentre,ProfitCentre,InternalOrder,WBSElement,TaxCode,Currency,GLAmount,VendorAmount,CustomerAmount,AssetAmount,DRCR,ItemText,VendorNo,CustomerNo,Name,Street,City,PostCode,PoBox,State,Country,BankKey,BankAccount,BankCountry,CalcTax,PaymentTerms,BaseDate,PaymentBlock,PaymentMethod,Assignment,AssetNo,AssetSubNo,AssetTransaction
GL_FileUpload_SAPECC_Item_DT1.fieldSeparator: ,
ignoreRecordsetName: true
GL_FileUpload_SAPECC_Header_DT1.keyFieldValue: GL
GL_FileUpload_SAPECC_Item_DT1.keyFieldValue: GL
---End
The structure defined on the data type looks like this,
--Start
GL_FileUpload_SAPECC_Record_DT1 Complex Type
GL_FileUpload_SAPECC_Header_DT1 Element
TransType Element
RowType Element
Sequence Number Element
GL_FileUpload_SAPECC_Item_DT1 Element
TransType Element
RowType Element
Sequence Number Element
GLAccount Element
---End
Any help or suggestion please.
Thank you.
Warm Regards,
RanjanHi, Ranjan.
First of all, let's look at the meaning of the error.
> ...Exception: ERROR converting document line no. 2 according to
> structure 'GL_FileUpload_SAPECC_Header_DT1':java.lang.Exception:
> ERROR in configuration: more elements in file csv structure than
> field names specified!
It seems that XI interpreted 2nd line as
Header_DT1 not as Item_DT1 that you meant.
> GL,GLI,4011,3011,,,,,,AU,600,7000,8000,9000,5000,RK,,,,,,,,,,,,,,,,,,,,
That's why it says this line has more elements than the structure
defined(Header_DT1)
And the reason why XI misinterpreted the above as Header is that
you used keyFieldValue with the same value.
> ...Header_DT1.keyFieldValue: GL
> ...Item_DT1.keyFieldValue: GL
According to the following help,
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
it says like the following.
Key Field Name
If you specified a variable number of substructures for Recordset
Structure, in other words, at least one substructure has the value
*, then the substructures must be identified by the parser from
their content. This means that a key field must be set with different
constants for the substructures. In this case, you must specify a key
field and the field name must occur in all substructures.
How about using different constants for header and item if possible?
Good luck. -
Flat File to XML mapping Problem
I am facing some issues in mapping from flat file to XML. I have not reached to the stage of actually executing the scenario and the problem has not advanced beyond mapping tests.
Following are structures of inbound flat file (as specified in content conversion parameters of sender adapter)
Document Name  MMADealerStatementInbound_MT
Recordset Name  MMADealerStmtInbound_Type
Recordset Structure 
BatchHeader,1,DealerHeader1,,DealerHeader2,,DealerDetail,,DealerAgeing,,Trailer,1
Recordset Sequence  Ascending
Key Field Name  RecordType
Key Field Type  String (Case Sensitive)
Following are structures of Outbound XML file needed
All DealerDetail nodes are lumped together in first DealerStmt nodes. They need to be distributed across many DealerStmt nodes.
Company CompanyName 25
Company CompanyAddress StreetAddress Company Street Address 50
Company CompanyAddress City Company City 40
Company CompanyAddress State Company State 3
Company CompanyAddress ZIP Company ZIP 10
Company CompanyAddress Country Company Country 3
Company RunParams RunDate Statement Run date 8
Company RunParams StmtPeriod Statement Period 20
DealerStmt 0-unbounded DealerNumber 10
DealerStmt 0-unbounded DealerName 35
DealerStmt 0-unbounded DealerAddress StreetAddress Dealer Street Address 50
DealerStmt 0-unbounded DealerAddress City Dealer City 40
DealerStmt 0-unbounded DealerAddress State Dealer State 3
DealerStmt 0-unbounded DealerAddress ZIP Dealer ZIP 10
DealerStmt 0-unbounded DealerAddress Region Dealer Region 4
DealerStmt 0-unbounded DealerRemitToAddress CompanyName Company Name 50
DealerStmt 0-unbounded DealerRemitToAddress StreetAddress1 Street Address 1 50
DealerStmt 0-unbounded DealerRemitToAddress StreetAddress2 Street Address 2 50
DealerStmt 0-unbounded DealerRemitToAddress StreetAddress3 Street Address 3 50
DealerStmt 0-unbounded DealerDetail 0-unbounded DocDate Document Date 8
DealerStmt 0-unbounded DealerDetail 0-unbounded InvoiceNumber Invoice Number 10
DealerStmt 0-unbounded DealerDetail 0-unbounded TransDescription Transaction Description 50
DealerStmt 0-unbounded DealerDetail 0-unbounded TransAmount Transaction Amount 16
DealerStmt 0-unbounded DealerDetail 0-unbounded AmountSign Amount Sign 1
DealerStmt 0-unbounded DealerAgeing CurrentBal Current Balance 15
DealerStmt 0-unbounded DealerAgeing Bal1to31days Balance 1 to 31 Days 15
DealerStmt 0-unbounded DealerAgeing BalOver31 Over 31 days Old 15
DealerStmt 0-unbounded DealerAgeing BalOver61 Over 61 days Old 15
DealerStmt 0-unbounded DealerAgeing BalOver92 Over 92 days Old 15
DealerStmt 0-unbounded DealerAgeing BalOver123 Over 123 days Old 15
Trailer DealersCount 5
Trailer TransCount 10
Trailer TotalAmount 20
Here is the mapping I used for this node.
/ns0:MMADealerStatementOutbound_MT/MMADealerStmtOutbound_Type/DealerStmt/DealerDetail=ifWithoutElse(stringEquals(/ns0:MMADealerStatementInbound_MT/MMADealerStmtInbound_Type/DealerDetail/RecordType=, const()), SplitByValue(/ns0:MMADealerStatementInbound_MT/MMADealerStmtInbound_Type/DealerDetail=))
My email address is [email protected] and i can send some screen shots to understand better.
I need help of XI mapping Gurus.
Thanks
RajeshHI,
Possible mention the source Message/Data Type and Target Data Type and Mapping Rules reuired. Then I think it may be useful to give some hints.
btw , What is the error in Mapping ?
Regards,
Moorthy -
Hi,
I have a requriment like source will be sending IDoc DELVRY03 in form of flatfile(fixed length).So i have to convert to XML so that PI can do transformation.I cant do file content conversion.Target is also IDoc DELVRY03.
Kinldy suggest me how to convery flat file into XML.
Regards,
Anitha M
Edited by: Anitha m on Aug 3, 2010 10:07 AMHi Anitha,
You should use File content conversion to convert flat file into XML file.
Please check the below link, which help you to know how to do it.
http://saptechnical .com/Tutorials/XI/Contentconversion/page2.htm
Please check the weblink given below for converting the file content:
http://help.sap.com/saphelp_srm40/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Thanks, -
How to convert flat file to XMl without key field value
Hi experts,
I have a input CSV Flat file which has got one HEADER line and Multiple Detail records.
I do not have any key field value to convert this FLAT file to XML using normal file content conversion.
Is there any module or Bean which can be used to convert this Flat File to XML.
Or any other remedy to overcome this problrm.
Thanks in advance.
Regards
PradeepHi Saurabh,
Thanks for the reply.
Ur understanding is perfectly alright.Lets say my file is like below.
Account Number,Account Name,Currency,Unclear Balance,Account Balance010205000033,VAISHNAVI SALES CORPN,0.00,0.00,350000.00
010205000034,CHAKKA ENTERPRISES,0.00,-641350.47,8649.53
010205000035,SEHGAL TRADING COMPANY,338665.00,-220.00,461115.00
010205000036,SHUBH LAXMI AGENCIES,0.00,0.00,0.00
010205000037,EMPIRE AGENCIES,0.00,-245.11,0.00
010205000038,PIONEER AGENCIES,0.00,-696386.00,303614.00
I am not using the first line in the mappiing.
Are you saying that I need to ignore the first line while doing the conversion using Recordset OFFSET ?
Or do I need to make a single structure taking all the fields from header as well as details and while defining the structure I need to ignore the fields from header?
Please suggest. -
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Hi XI Experts,
I am not getting output while creating a scenario of flat file to xml file. I have set the file content conversion parameter correctly...the file which is .txt is picking up but I m not getting the file in the output directory.
CAN ANYONE HELP ME.....PLS!!!
Thanks in advance...Hi,
The follwoing is the mapping str I created and also I have pasted the FCC parameters,
I want to send the .txt file which contains the data as
Sunil,Bangalore
Shetty,Bangalore
( for multiple records..)
Note : I m getting the o/p for single records...
Pls help me.....
Sender Target
Record Record
Row Row
Name string 1..unbounded ---> Name string 1..unbounded
Addr string 1..unbounded ---> Addr string 1..unbounded
Source Dir : c:/send
File Name : send.txt
Document Name : Message type name
Document Namespace : urn:....
Recordset Name : Record
Recordset Structure: Row,*
Row.fieldNames : Name,Addr
Row.fieldSeparator : ,
Row.processConfiguration : FromConfiguration
Row.endSeparator : 'nl'
Thanks in Advance.... -
Converting flat file to XML using JMS
Hi,
I want to convert flat file to xml. My sender adapter is JMS,
Can anyone tell me that how to do that conversion ? Conversion is very simple.
Can we use File content conversion in JMS Sender ? any link or blog ? or any other idea to achieve this ?
Regards
KulwinderHi,
The pdf has been removed from that link i suppose.
Anyways, go through the below help, everything that is there in "HowToConveModuleJMS.pdf" has been mentioned in this...
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Hope it would surely help you.
You can go through the below link, for better understanding..
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
Regards,
Swetha.
Edited by: Swetha Reddy on Feb 26, 2009 5:30 AM -
Flat File to XML using content conversion.
Hi Experts,
I am converting a flat file to xml structure.
i need the structure of xml like :
<LineA>
</LineA>
<LineB>
<LineC>
</LineC>
</LineB>
I am able to generate it in hierarchy
<LineA>
</LineA>
<LineB>
</LineB>
<LineC>
</LineC>
How should i write structure of Recordset so that for LineC so that it comes under the LineB tag ? I also dont want the name of recordset in my output, how can i do that ?
Kulwinder.Hi
Refer
File Receiver with Content Conversion
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Configuring the Receiver File/FTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
File content conversion sites
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Please see the below links for file content conversion..
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
File Content Conversion for Unequal Number of Columns
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
Content Conversion (Pattern/Random content in input file)
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
XI in the role of a FTP
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
File to R/3 via ABAP Proxy
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent -
IDOC to Flat File and XML ( Need both the Output)
Hi ,
My Scenario is IDOC to File .
I need o/p in 2 format . ie, 1) Flat File 2 ) XML file
I have a plan to go with Interface determination , 2 IM and what shd be the condition ?
or Else 2 Receiver detmination but condition ?
How to slove this ?
Need the Output from Idoc in 2 format ( Flat file and XML file )
Any Blog , Thread ...Tips...etc
Regards,
JudeHi Jude,
Do like this:
1. Create two inbound Service Interface (with the same target Message Type)
2. Create separate Operation mapping with the above service interfaces as target (with the same source service interface)
3. Create Interface Determination and include these two operation mapping (without any condition)
4. Create 2 receiver agreement (with two separate communication channel) for each of the target service Inetrface. In one channel use content conversion and the other one will give you normal XML output
Regards
Suraj -
Flat files to XML conversion module?
Hi Experts,
I would like to know from where I can have free download for flat files to XML conversion module which I can test in development server. Your help will be well appreciated.
Thanks and Regards,
Praveen.u have file adapter with FCC which does the flat file to XML conversion. wat is ur requirement?
refer the help or search on SDN for file content conversion.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
few examples:-
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Key value:
How to send a flat file with various field lengths and variable substructures to XI 3.0
File Receiver with Content Conversion
chirag -
URGENT : Program to convert flat file to XML file.
Hello,
Good Morning. I want an urgent program to convert a flat file seperated by '/' to an XML file format and store that in the the application server. If any one has done such a developement, could you please send me the code.
The flat file format is as below :
72/070414/114147/11973//100-//EA/00000000///04198//RRT0/RC23///////353825001511172/72/070414/123620/11973//1000//EA/00000000///04198//RRT0/RC23///////354762008125236/72/070414/125411/13814//1000//EA/00000000///04198//INV/ID06///////90000000002697/72/070414/140820/11973//1000//EA/00000000///04198//RRT0/RC23///////353057002479718/72/070414/145438/13814//1000//EA/00000000///04198//INV/ID06///////90000000002739/72/070414/145438/11973//1000-//EA/00000000///04198//INV/ID06///////353057002479718/72/070414/150008/13814//1000
It needs to be filtered by removing the '/' and also grouped based on two fields namely store number and transaction number. The sample XML output required is as below :
<?xml version="1.0" encoding="ISO-8859-1"?>
<MT_POLL07 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../MT_POLL07.xsd">
<MessageHeader>
<File>
<Name>C:/kai/perl/storemaster_home/stores/09100/inbound/POLL07.DOS</Name>
<CreatedDate>Wed Feb 7 13:09:15 2007</CreatedDate>
<TotalRecordNo>19</TotalRecordNo>
</File>
</MessageHeader>
<Transaction>
<TransactionHeader>
<TRANSACTION>20070414001559</TRANSACTION>
<STORE_NO>09100</STORE_NO>
<BOFTTP>72</BOFTTP>
</TransactionHeader>
<Item>
<BOFTDT>070414</BOFTDT>
<BOFTTM>114147</BOFTTM>
<BOFSKU>11973</BOFSKU>
<BOFUPC></BOFUPC>
<BOFQTY>100</BOFQTY>
<BOFQTN>-</BOFQTN>
<BOFCST>0</BOFCST>
<BOFCSN>+</BOFCSN>
<BOFUM>EA</BOFUM>
<BOFHRF>00000000</BOFHRF>
<BOFSRF></BOFSRF>
<BOFVND></BOFVND>
<BOFLOC>04198</BOFLOC>
<BOFEQT></BOFEQT>
<BOFEQN>+</BOFEQN>
<BOFRTP>RRT0</BOFRTP>
<BOFREA>RC23</BOFREA>
<BOFCID></BOFCID>
<BOFAUT></BOFAUT>
<BOFCUR></BOFCUR>
<BOFPTP></BOFPTP>
<BOFUPT></BOFUPT>
<BOFUMR></BOFUMR>
<BOFSRN>353825001511172</BOFSRN>
<GMNUMBER>1</GMNUMBER>
</Item>
<Item>
<BOFTDT>070414</BOFTDT>
<BOFTTM>123620</BOFTTM>
<BOFSKU>11973</BOFSKU>
<BOFUPC></BOFUPC>
<BOFQTY>1000</BOFQTY>
<BOFQTN>+</BOFQTN>
<BOFCST>0</BOFCST>
<BOFCSN>+</BOFCSN>
<BOFUM>EA</BOFUM>
<BOFHRF>00000000</BOFHRF>
<BOFSRF></BOFSRF>
<BOFVND></BOFVND>
<BOFLOC>04198</BOFLOC>
<BOFEQT></BOFEQT>
<BOFEQN>+</BOFEQN>
<BOFRTP>RRT0</BOFRTP>
<BOFREA>RC23</BOFREA>
<BOFCID></BOFCID>
<BOFAUT></BOFAUT>
<BOFCUR></BOFCUR>
<BOFPTP></BOFPTP>
<BOFUPT></BOFUPT>
<BOFUMR></BOFUMR>
<BOFSRN>354762008125236</BOFSRN>
<GMNUMBER>2</GMNUMBER>
</Item>
</Transaction>
</MT_POLL07>
Please send me the code : It is urgent. Thanks in advace. Points to be rewarded.hi !
Check with this thread discuss the same
http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
Flat file to XML
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Converting Idoc flat file representation to XML
how to convert flat file into IDOC-XML
Regds
Abhishek -
Convert the flat file to xml format.
hi,
I need to write a interface program in the R/3 to pull the flat file data from the unix application server and do some manipulation and place back into the unix application server in XML format, From the unix box XML file taken by the XI server.
pls give me some idea to convert the flat file to XML format, through any function module or any other logic is there...
with regards,
Thambee.Hi Thambe
in addition to the above posts
Program to convert flat file to XML file.
please download tool from this link:
http://www.download.com/Stylus-Studio-2008-XML-Enterprise-Suite/3000-7241_4-10399885.html?part=dl-StylusStu&subj=dl&tag=button&cdlpid=10399885
how to use:
http://www.stylusstudio.com/learn_convert_to_xml.html
http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
Flat file to XML
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Converting Idoc flat file representation to XML
how to convert flat file into IDOC-XML
Thanks
sandeep sharma
PS ; if helpful kindly reward points -
Convertion of flat file to XML using DOM
Hi!
I need help for convert a flat file to XML using DOM and by taking the validation of a specified DTD. Can any body help me in this regard.
Bye,
latfirst you have to decide how the flat file will map to xml. Will you use attributes or pcdata for your fields, or both? Will there be a hierarchy, or will it be mostly flat?
Once decided, you'd probably just use a BufferedReader to read the lines one at a time, and generate Dom nodes as appropriate, and stick them in the tree.
Maybe you are looking for
-
How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We h
-
I have a new Linksys router. When I load the accompanying CD it informs me that it supports OS 10.5.8 or later, OS 10.6.1 or later, and OS 10.7 or later. I am running 10.9.2, which apparently isn't supported by this Router. Any suggestions?
-
BPM Error in Transformation Step: Interface Mapping not found
Hi, Can you help me on this? I have a tranformation step in my BPM that combines a request and response message of a previous Send step to create a Source message for the next Send step. However, on my transformation step, I got the mapping error in
-
Configure replicas based on existing encrypted DB
I am researching SQL Server Always On. I have put together a configuration that uses an existing DB which is encrypted. It is NOT a TDE DB. I cannot find any examples of how to configure this setup and I'm having an issue where my secondary replica c
-
Backup and listing of Zen Xtra
If you've spent a lot of time creating your music database on a large-capacity Creative MP3 player (e,g, 30 - 40 Gb Jukebox Zen Xtra) then you want to make sure you have a backup of that database if that MP3 player fails. Considering the low cost of