IDOC-EDI Conversion usinf File content cpnversion
Hi all,
I need to convert an IDOC to EDI. I went through a few threads where I underrstood We dont need seeburger adapter for the same. It can also be done using File COntent Conversion. Can someone guide me with the steps.
Is it necessary to use seeburger adaps. Any related blogs would be helpful.
Regards,
Vinithra
Hi Vinithra,
--> refer the below link
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b8db75-e481-2d10-7e94-81e1e29594e9?quicklink=index&overridelayout=true
the above may not explain exactly as per your requirement but gives some idea.
-->We can not use any custom adapter module for conversion of IDOC to EDI.For IDOC adaper module will be disabled.(as oer my knowledge)
Thanks
Similar Messages
-
Error Message: Conversion of file content to XML failed at position 0: sun.
Hi Experts,
i strugle with a File 2 IDOC Scenario.
In the sender communication channel monitoring I get the error message:
Conversion of file content to XML failed at position 0: sun.io.MalformedInputException
Unfortunately I am not getting any further information and I do not know where the file-adapters problem is.
Tthe .fieldSeparator = # . Can this be the problem, that the file-adapter-engine can not handle # within file conversion? I also tried it with .fieldSeparator = '#' . But the error message is the same.
I am glad for any hints.
Thank you for your help in advance.
Regards,
UdoHi Udo,
The error is due to wrong intput.
putting # might be a reson.
You Can try (,) or a space as a field separater.
Can you test this once.
Have to defined the field separated?
Regards,
Sumit Gupta -
ERROR :Conversion of file content to XML failed at position 0
Hi Frnds,
I have a File to File scenario, while testing I am getting the following error:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'TA_830':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
Can any one please tell me why Iam getting this error even I have provided the following informantion in channel configuration. Here TA_830 is the record name.
TA_830.processFieldNames fromConfiguration
TA_830.fieldNames SEG_NUM,PROCESS_DATE,PAYEE_BCODE,ISSUE_SEQ_NUM,CR_DATE,PAYER_BCODE,PAYER_ID,ENTRY_SEQ_NUM,TRAN_TYPE,PAYMENT_TYPE,PROCESS_FLAG,REF_NUM,PAYER_ACC,VAL_DATE,ISO_CURRENCY,AMOUNT,RESV_11,SEG_NUM,EXCHG_RATE,ADDR1,ADDR2,ADDR3,ADDR4,RESV_18,SEG_NUM,BANK_ID,BANK_CODE,ADDR1,ADDR2,ADDR3,ADDR4,RESV_5,SEG_NUM,ACCOUNT,ADDR1,ADDR2,ADDR3,ADDR4,RESV_6,SEG_NUM,MESSAGE1,MESSAGE2,MESSAGE3,MESSAGE4,RESV_6,SEG_NUM,MESSAGE1,MESSAGE2,MESSAGE3,MESSAGE4,RESV_6,SEG_NUM,PROCESS_DATE,PAYEE_BCODE,ISSUE_SEQ_NUM,CR_DATE,PAYER_BCODE,PAYER_ID,ENTRY_SEQ_NUM,TRAN_TYPE,PAYMENT_TYPE,PROCESS_FLAG,TOTAL_AMOUNT,RESV_59
TA_830.fieldFixedLengths 2,6,12,5,6,7,5,5,3,1,1,16,24,6,3,15,11,2,12,24,24,24,24,18,2,1,24,24,24,24,24,5,2,24,24,24,24,24,6,2,30,30,30,30,6,2,30,30,30,30,6,2,6,12,5,6,7,5,5,3,1,1,16,59
TA_830.fieldContentFormatting nothing
Regards,
Shiva.Hi,
As you are using Fixed Length File...use below specified parameters:
TA_830.fieldName: Names of Fields in teh File
TA_830.fieldFixedLegths: Lenghts as per your file
TA_830.keyFieldValue: If you use any value as key
TA_830.lastFieldsOptional: YES
TA_830.endSeparator : 'nl'
This will help you out..
Thanks,
Kishore. -
XML to flat file conversion using file content conversion in reciever CC
Hi,
Iam working on Idoc to File scenario.
Iam having a problem in the communication channel of reciever.
Iam using File content conversion in Reciever Adapter.
My xml format is asfollows:--
- <Header>
<FILLER1>KTP</FILLER1>
<YEAR_IDOC>YEAR 2006</YEAR_IDOC>
<FILLER2>FIRSTWEEKNUMBER</FILLER2>
<WEEK_IDOC>51</WEEK_IDOC>
<FILLER3>NUMBER WEEKS 26</FILLER3>
<PLANT_CODE>FACTORYM019</PLANT_CODE>
</Header>
- <Record>
<First_material>731000</First_material>
<First_quantity>0000.0</First_quantity>
<First_quantity>0001.9</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0020.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0018.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<Second_material />
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0011.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0049.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0067.0</Second_quantity>
<Third_material />
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>0008.0</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
</Record>
The file format should be as follows:--
KTP YEAR 2006 FIRSTWEEKNUMBER 51 NUMBER WEEKS 26 FACTORYM019
731000 0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
0000.0 0000.0 0000.0 0008.0 0000.0 0000.0
Could some one help me in resolving this issue.
Regards
PraveenHi Praven,
couldn't you simply modify your target DATA type so it will be easier to handle?
For example something like:
<Header>
</Header>
<Record>
<Material>
<Number>..</Number>
<quantity>..</quantity>
<quantity>..</quantity>
</Material>
In this way file content conversion will be easier (easy)!
Regards,
Sergio -
Complex file content conversion in case of CSV file
Hi Friends,
What you see below is generated from Excel i.e excel file saved as CSV file. This file i need to map in XI.
Problem is i have to take only the data and not the header part.
for e.g in this particular line
Employee ID :,,E00315
I need only E0315 and not the header value. Similarly i have to find some solution to map all the required data.
Please suggest me how to use file content conversion in such scenarios.
Solution is required on top priority. Points will be immdly rewarded.
Thanks & Regards
K.Ramesh
,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Employee ID :,,E00315,,,Sale Order No / Line Item :,,,SO123456,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Employee Name :,,K.RAMESH,,,Client Name :,,,NCLIENTELE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Month / Week :,,Jul-08,,,Project Name :,,,Internal Project,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Sales Team :,,,,,Project Role Start date :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Location :,,BANGALORE,,,Project Role End date :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Sl. No.,Date,Day,AA Type, Task Description,,,,,No.of Hours,Remarks,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1,7/1/2008,Tue,0814-Talent acquitision,task 1,,,,,12.00,rmk 1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2,7/2/2008,Wed,0814-Talent acquitision,task 2,,,,,10.00,rmk 2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
3,7/3/2008,Thu,0814-Talent acquitision,task 3,,,,,12.00,rmk 3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
4,7/4/2008,Fri,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
5,7/5/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
6,7/6/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
7,7/7/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
8,7/8/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , ,,,,,,,,,,,,,,,,,,,,
9,7/9/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
10,7/10/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
11,7/11/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,, , ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
12,7/12/2008,Sat,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
13,7/13/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,
14,7/14/2008,Mon,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
15,7/15/2008,Tue,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
16,7/16/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
17,7/17/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
18,7/18/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
19,7/19/2008,Sat,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
20,7/20/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
21,7/21/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
22,7/22/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
23,7/23/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
24,7/24/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
25,7/25/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
26,7/26/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
27,7/27/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
28,7/28/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
29,7/29/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
30,7/30/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
31,7/31/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Prepared By:,,,,,Approved By:,Company Project Manager,,,,Client Project Manager,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Name,,K.RAMESH,,,Name,YYY,,,,ZZZ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Signature,,,,,Signature,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Date ,,31.07.2008,,,Date ,31.07.2008,,,,31.07.2008,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Hi,
In this CSV file, what all i need is the value E00315 after the label Employee ID. I used in FCC the parameters u asked me to do. Also in the Document Offset i gave value 3 so that the first three lines are ignored.
1,,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1,,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1,,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1,Employee ID :,E00315
But still i am getting the error
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 4 according to structure 'tims_header':java.lang.Exception: ERROR in configuration / structure 'tims_header.': More elements in file csv structure than field names specified!
Please help.
Thanks
Ramesh -
File Content Conversion Problem: Sender File Adapter
Hi All,
In Sender File Adapter, how to spilt the single line into different lines using + as a separator. Plz see below my source file.
#SMESS=IV01:672633SAP:676968:::NL51:02:11+
COPS=678713:676968:070416:IV01'3:11IVFR=678713:PDA and'IND 2'9206 AD'Dtn'INIVDA=070416IVNR=6264008195:676968add1
#EMESS=0+
In above txt file there are 3 lines.
1st line starts with #SMESS
2nd line starts with COPS
3rd line starts with #EMESS.
In 2nd line, if u observe there are 3 lines separating by +. My task is, I have to spilt the 2nd line into 3 lines using + separator.
I already used the xx.endSeparator as '+' to spilt the line but it is not working....
Could anyone help me how to do this. This is very urgent
Thnx,
Kumar.Hi Shankar,
1) My Expected XML Structure:
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_IV01 xmlns:ns="http://ms.com/dev/ms">
- <Recordset>
- <DT_SMESS>
<D_9901>IV01</D_9901>
<D_9902>672633SAP</D_9902>
<D_9903>676968</D_9903>
<D_9904 />
<D_9905 />
<D_9906>NL51</D_9906>
<D_9907>02</D_9907>
<D_9908>11</D_9908>
</DT_SMESS>
- <DT_COPS_2>
<D_C022>678713</D_C022>
<D_C023>676968</D_C023>
<D_C008>070416</D_C008>
<D_C111>IV01'3</D_C111>
<D_H559>11</D_H559>
</DT_COPS_2>
- <DT_IVFR_2>
<D_C024>678714</D_C024>
<D_D333>PDA and'IND 2'9206 AD'Dtn'IN+</D_D333>
</DT_IVFR_2>
- <DT_IVDA_2>
<D_D365>070416</D_D365>
</DT_IVDA_2>
- <DT_IVNR_2>
<D_D189>6264008195</D_D189>
<D_H364>676968add1</D_H364>
</DT_IVNR_2>
- <DT_EMESS>
<D_D9901_1>0</D_D9901_1>
</DT_EMESS>
</Recordset>
</ns:MT_IV01>
2) I am not getting any error even if I use key Fields or Not becoz in the RecordSet Structure I mentioned DataType, 1 instead of DataType, *.
3) FCC Parameters:
Document Name: MT_IV01
Document Namespace: http://ms.com/dev/ms
Recordset Structure: DT_SMESS,1,DT_COPS_2,1,DT_IVFR_2,1,DT_IVDA_2,1,DT_IVNR_2,1,DT_EMESS,1
Recordset Sequence: Ascending
Key Field-type : String (Case-sensitive)
4) Error:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'DT_COPS_2':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified! -
File Content Conversion in PI 7.1 Error
Hi
I am working on File (Text) to Proxy in PI 7.1 version and specified as following in the Content conversion
Document Name : MT_TW_AK
Document NameSpace : http://aiwcd.com/Claims_Management(CM)_Rel2.0
Record Structure : Record,*
Recordset Sequence : Ascending
ignoreRecordsetName : true
Record.fieldSeparator :
Record.fieldNames :
I have not specified anything in the Key Field Name and Keyfield Type,
however I am receiving the following error when I PI try to process the file
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 53 according to structure 'Record':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
Please let me know how to correct this error and process the file, what should be the value in the in the lastFieldoptional parameter If I need to specify
There is no seperater as well between the values, what should I specify in the Field seperator f none exists
Thanks
PRSatish
Please find the details below which I gave
Document Name : MT_TW_AK
Document NameSpace : http://aiwcd.com/Claims_Management(CM)_Rel2.0
RecordSet Structure : Record,*
Recordset Sequence : Ascending
KeyField Name :TransactionUniqueIdentifier
Key Field Type : String (Case Sensitive)
IgnoreRecordsetName : true
Record.fieldSeparator :
Record.lastFieldsOptional:true
Record.fieldNames : TransmittalGroupNumber,TransmittalAccountingDate,RecordType,SubRecordType,TransactionUniqueIdentifier,InsuredReportNumber,UniqueBillID,Filler,CompanyNumber,AccountDate,RiskState,JurisdictionState,PolicyRecordID,PolicyEffectiveDate,TransactionID,TransactionType,BenefitType,KindofPaymentCode,KindofReserveCode,CentsIndicator,LossAmountSign,LossAmount,WCTRPAcknowledgmentCode,WCTRPErrorCode,WCTRPElementNumber,WCTRPElementName,WCTRPErrorDescription
Record.fieldFixedLengths: 4,8,2,1,8,25,30,18,4,8,2,2,30,8,2,2,2,3,3,1,1,10,2,4,5,40,400
Record.keyFieldValue: C
But still I receive the error as
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 53 according to structure 'Record':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
Thanks
PR -
File Content Conversion error ? Can anyone help?
The Error that shows is :
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 6: missing structure(s) before type 'headerData'
What could be the possible reason for this error? It is urgent and poits to be rewarded. Thanks in advance.
My structure is like the one below :
<HEADER>
<.Field1..>
< Field2 >
</HEADER>
<headerData>
<fields>
</headerData>
<itemData>
<fields>
</itemData>
<textData>
<fields>
</textData>
<Footer>
<fields>
</Footer>I checked the source file and the first field is having value "4". Also there is no other line bofore it.
4GIPS2SAP.DAT GIPS ME P.R .TRANSMISSION 20071002200710021901GIPS ME TORINO 0000000#
10027879961 00662522 PL11619 12PL11031000 PL11031000ZDUM 33610 PL11EUR
227879961 120071002N.2 BANCHI PER RACCOLTA STILLICIDIO KONIECZNY 000000000001000EA 2007113000000500000
327879961 1001FORNITURA N°2 BANCHI PER RACCOLTA STILLICIDIO PER #
327879961 1002LINEA LAVORAZIONE TESTE CILINDRI. #
10027879958 00662522 PL11619 14PL11031000 PL11031000ZDUM 33610 PL11EUR
227879958 120071002NUOVI SAG PER LINEA BASAMENTO MOTORE KONIECZNY 000000000001000EA 2007113000000500000
327879958 1001Fornitura scaffali a gravita per materiali della #
327879958 1002linea di lavorazione besamento motore. #
10027879959 00662522 PL11619 13PL11031000 PL11031000ZDUM 33210 PL11EUR
227879959 120071002FORNITURA PEDANE ANTIFORUNISTICHE KONIECZNY 000000000001000EA 2007113000000500000
327879959 1001FORNITURA E POSA DELLE PEDANE ANTIFORTUNISTICHE PER #
327879959 1002LINEE DI LAVORAZIONE BASAMENTO MOTORE E TESTE #
327879959 1003CILINDRI COME DA SPECIFICA DEL 10/09/2007. #
5GIPS2SAP.DAT GIPS ME TEXAS 000 0 0 0000015################################################################## -
Hi Guys,
I have a problem with a file-to-file scenario. It brings up the following error when trying to read the file i.e from the receiver:-
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'UserHeaderRec'
Structure:-
EFTRec 1-unbounded
Header 1
UserRec 1
StdTr 1-unbounded
ContraRec 1
UserTrailer 1
Trailer 1
The following is the Structure that I've defined from Config:-
Recordset Name = EFTRec
Recordset Structure = TxHeaderRec,1,UserHeaderRec,1,StndTransactionRec,*,ContraRec,1,TxTrailerRec,1
Does anyone have a solution to this problem?<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_SapIsuToLDSAbsa_EFT xmlns:ns="http://www.Coj.co.za/SapIsuToLDSAbsa/EFT">
- <EFTRec>
- <TxHeaderRec>
<Rec_Id>000</Rec_Id>
<Rec_Status>L</Rec_Status>
<Tx_Date>20070706</Tx_Date>
<BI_UserCode>10111</BI_UserCode>
<BI_IntUser_Name>Business Int User Name</BI_IntUser_Name>
<Tx_Number>0000000</Tx_Number>
<Destination>00000</Destination>
<Filler />
<User_Use>Revenue Refunds</User_Use>
<Filler_1 />
</TxHeaderRec>
- <UserHeaderRec>
<Rec_Id>020</Rec_Id>
<DataSet_St>L</DataSet_St>
<BankServ_RecId>04</BankServ_RecId>
<BankServ_UserCode>8141</BankServ_UserCode>
<BankServ_CreatDate>070706</BankServ_CreatDate>
<BankServ_PDate>070707</BankServ_PDate>
<Action_Date1>070706</Action_Date1>
<Action_Date2>070706</Action_Date2>
<First_SeqNo>000000</First_SeqNo>
<User_GenNo>0000</User_GenNo>
<Destination>00000</Destination>
<Filler />
<Serv_Type>SSV</Serv_Type>
<Accptd_Rpt>Y</Accptd_Rpt>
<Acc_Type>Y</Acc_Type>
<Filler_1 />
</UserHeaderRec>
- <StndTransactionRec>
<Rec_Id>020</Rec_Id>
<DataSet_St>L</DataSet_St>
<BankServ_RecId>10</BankServ_RecId>
<User_Branch>637956</User_Branch>
<User_NomAcc>04054398227</User_NomAcc>
<User_Code>8141</User_Code>
<User_SeqNo>000002</User_SeqNo>
<Homing_Branch>050015</Homing_Branch>
<Homing_AccNo>00000000000</Homing_AccNo>
<Acc_Type>0</Acc_Type>
<Amnt>10000340.60</Amnt>
<Action_Date>-07070</Action_Date>
<Entry_Class>68</Entry_Class>
<Tax_Code>8</Tax_Code>
<Filler>0</Filler>
<User_Ref>Craig Avon</User_Ref>
<Acc_name>STANDARD BANK SA</Acc_name>
<NonStd_HomingAccNo>0000000055454545454</NonStd_HomingAccNo>
<Filler_1>5</Filler_1>
<Homing_Inst>2</Homing_Inst>
<Filler_2>1</Filler_2>
</StndTransactionRec>
- <ContraRec>
<Rec_Id>020</Rec_Id>
<DataSet_St>L</DataSet_St>
<BankServ_RecId>12</BankServ_RecId>
<User_Branch>637956</User_Branch>
<User_NomAcc>04054398227</User_NomAcc>
<User_Code>8141</User_Code>
<User_SeqNo>000003</User_SeqNo>
<Homing_Branch>637956</Homing_Branch>
<Homing_AccNo>04054398227</Homing_AccNo>
<Acc_Type>0</Acc_Type>
<Amnt>10000340.60</Amnt>
<Action_Date>-07070</Action_Date>
<Entry_Class>61</Entry_Class>
<Filler>0000</Filler>
<User_Ref>0City O Jhb40543920070706REFUN</User_Ref>
<Filler_1 />
<Filler_2 />
</ContraRec>
- <UserTrailerRec>
<Rec_Id>020</Rec_Id>
<DataSet_St>L</DataSet_St>
<BankServ_RecId>92</BankServ_RecId>
<User_Code>8141</User_Code>
<First_SeqNo>000000</First_SeqNo>
<Last_SeqNo>000003</Last_SeqNo>
<Action_Date1>070706</Action_Date1>
<Action_Date2>070706</Action_Date2>
<NoDebit_Rec>000000</NoDebit_Rec>
<NoCredit_Rec>000001</NoCredit_Rec>
<Contra_RecNo>000001</Contra_RecNo>
<Total_Debit_Val>000000000.00</Total_Debit_Val>
<Total_Credit_Val>00000340.60-</Total_Credit_Val>
<Total_HomingAccNo>000000058599</Total_HomingAccNo>
<Filler />
</UserTrailerRec>
- <TxTrailerRec>
<Rec_Id>999</Rec_Id>
<DataSet_St>L</DataSet_St>
<Tx_RecNo>000000005</Tx_RecNo>
<Filler />
</TxTrailerRec>
</EFTRec>
</ns:MT_SapIsuToLDSAbsa_EFT> -
Sender Side: File Content Conversion
I have a text file, with following values.
AAA056070144AEA056070144AACTESTPO271+(.......sequence continues)
Length of TAG (Like AAA, AEA,AAC etc) is fixed (i.e.3 ). Length of the Values coming after TAG are not fixed. Field Separator is '+'.
Source structure is
DT_OrdersFromECHO
|_ ECHO_SO
|_ Value
My requirement is after FCC, I sud get
ECHO_SO
|_ Value : AAA056070144
ECHO_SO
|_ Value : AEA056070144
ECHO_SO
|_ Value : AACTESTPO271
If I mention field Separator and filed Names ,it gives an error
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'ECHO_SO':java.lang.Exception: ERROR in configuration / structure 'ECHO_SO.': More elements in file csv structure than field names specified!
How can i achieve it?Hi Snehal,
>AAA1234AEA12345BAA3456BAD345678CAA9876+CAD13445
So you will have only one line in the input file which have all the records separated by + sign. Right?
If this is the case then you cannot use FCC of the sender file channel. because at a time the fields or the values are not fixed..
So I will suggest you to read the file into PI (without FCC) and then break it into
TAG : AAA
Value: 1234
TAG : AEA
Value: 12345
TAG : BAA
Value: 3456
either using XSLT of java mapping.. So your interface mapping will have this mapping as 1st and your normal (source to targte conversion) mapping as 2nd
Regards
Suraj -
Inconsistency File Content Conversion
Hi,
My scenario is file to r/3 wherein the source file is a fixed length file. So I am using file content conversion in my sender adapter.
My source structure looks like:-
DT_TRAN
|__RECORD 1..unbounded
|_____HEADER 1
|_____QUOTE 0...unbounded
|_____ORDER 0...unbounded
|_____INVOICE 0...unbounded
|_____BILLING 0...unbounded
|_____CONTACT 0...unbounded
|_____FOOTER 1
I am getting this error while executing the scenario.
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 5: missing structure(s) before type 'Header'.
However, I checked the record in line no.5 and it's clean and perfect. But still getting the error. If I remove this record and execute, the file is picked and data is processed.
In File Content Conversion, I have used the following parameters:-
Recordset Name = Record
Recordset Structure = HEADER,1,QUOTE,,ORDER,,INVOICE,,BILLING,,CONTACT,*,FOOTER,1
I am using Key Fields to separately identify the details records. I used ignoreRecordsetName = true. In this case, in XML message payload does not contain <Record> node and so there is an error.
Can anyone suggest, how to overcome the issue such that all the records in the file are processed.
Thanks.
BalakrishnanThe content conversion parameters are:-
Record.endSeparator = 'nl'
Record.fieldNames = HEADER,QUOTE,ORDER,INVOICE,BILLING,CONTACT,FOOTER
Record.fieldSeparator = 'nl'
like the above, i have done for all the nodes. However, if i remove the record from line 5 and process the file, the file is picked up and processed succesfully. i have checked many times. the line no.5 record is not having any issues with structure or fixed length calculation. for some reaosn, it gives the error. -
Help required File Content Conversion.
Hi All,
Kindly help me in this topic i.e. File Content Conversion.
- What is File Content Conversion?
- Is knowledge of any programming language required?
- What is its function?
- How do I use it?
Thanks in Advance.
Regards,
Sreedhar, AvHi Sreedhar,
Reward points if this helps
What is File Content Conversion?
File content conversion is used for converting flat files (fixed lenght, comma seperated) into XML messages for further processing by an integration engine. The internal XI processing (mapping, routing etc) is based on XML messages hence you need messages to be converted to XML.
SAP By default understands xml data structure. If your file is coming in an xml format you can process it as it is.
In case of file that is coming with a delimiter then you need to have File content conversion for SAP adpater to conver file into an XML structure which will then go to next step of Message Mapping.
Is knowledge of any programming language required?
No
What is its function?
Check these blogs for content conversion,
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
*How do I use it? *
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Reward points if this helps
Regards
Pragathi. -
Need File Content Conversion Help
Hi,
With the help of the SDNers i was able to create the proper structure for FCC.Now i want to have the column names been listed as part of the final file content.with the current structure i could get only the data and not the coulmnheaders
The structure used is as below:
Recordset structure=Root,Record
Record.addHeaderLine=0
Record.fieldNames=name,mobile,email
Record.fieldSeparator=,
Record.endSeparator='nl'
Root.fieldSeparator=,
Root.fieldSeparator='nl'
Pls help me solve this.
Regards,
KarthikHI
refer the following links
File Content prameters for the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
File Content prameters for the Sender Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
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
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
File Content prameters for the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
File Content prameters for the Sender Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
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
cheers -
Issue with Sender File Adapter file content convertion
Hi Everybody,
I am facing an issue in FCC at the sender side.
Below is sender text message which contains 9 rows.Each row represents one node in the source structure.
ROUASIS.MLASIS.A02001COMASN1.1.2
HDR7072396166N^MAEU/SZH3PA288200707248IF07082007090311CAFXSYATFXS^20070903
PPL5705150010506YAT254915402713586045162543971730000002723.000C2750000000024.1602007081120070903^^
SIM3020070711^20070730Y^^^00
CONTTNU946652840CN0579566 7335
CTN100069350800012609166209.850.08068.5830.4838.10
DTL520^01
CTN200069350800012609173209.850.08068.5830.4838.10
DTL520^01
In the above message CTN row is repeating after each DTL because of which i am getting the error.
<b>Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation</b>
Can somebody help me out in resolving this issue.
Thanks in Advance,
ArvindHi Arvind
plas use the following parametes in the sender communication channel.
i have tried one scenario
my source structure is like that:
data (0..unbounded)
record (0..unbounded)
key (1..1)
fname (1..1)
lname (1..1)
age (1..1)
detail (0..unbounded)
key (1..1)
salary (1..1)
empid (1..1)
so use the following parameters at the sender side
document name: messge type name
document namespace: ur message type namespace
Recordset name: data(as per according to my source structure)
RecordsetStructure: record,,detail,
recordsetsequence: variable
recordsetpermessage: *
keyfieldname: key
and different parameters:
RECORD.fieldSeparator ,
RECORD.fieldNames KEY,FNAME,LNAME,AGE
RECORD.keyFieldValue 1
DETAIL.fieldSeparator ,
DETAIL.fieldNames KEY,SALARY,EMPID
DETAIL.fieldNames 2
if you still have the problem pleas reply back.
Thanks
Rinku -
FIle Content Conversion Problem in IDOC-XI-File Scenario
Dear All,
I am doing IDOC-XI-FILE scenario.
I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
The output xml version generated by Reciever file adapter is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
</ns0:MT_SITE_MASTER>
Plz provide me the code I have to write in the file content conversion .
Thanks in advance
Regards
PrabhatIf u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier. Then use the Suppress Logic for the Current Date.
So it will look like this-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
<CURR_DATE>
<CURRENT_DATE>20051105</CURRENT_DATE>
</CURR_DATE>
</ns0:MT_SITE_MASTER>
So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
CURR_DATE.fieldFixedLengths - 0
CURR_DATE.fixedLengthTooShortHanling - Cut
And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
Hope this solves ur problem.
Regards,
Moorthy
Maybe you are looking for
-
Win 7 64 on Bootcamp... Mac/Win Display Woes
Hi all, I'm running Win 7 64-bit using current Bootcamp drivers on a Mac Pro with dual 2.93 quad-cores and 16 GB RAM. Bootcamp/Win 7 seems to run fine except that frequently when I boot to the desktop the displays aren't correct - I only get 2 of the
-
Hi all! In configuration stage of installation time it's showing following error. 1. http://img69.imageshack.us/img69/9789/error1ah.png 2. http://img195.imageshack.us/img195/4789/error2kx.png please help someone.
-
Is Password-protecting files possible?
I am wondering how to put a password on a file so that only I can access it. I have some sensitive documents that can't be accessible by just anyone. Thanks!
-
Force to reauthenticate to webauth after reboot
2100 wireless lan controller 1130 AP's in H-Reap mode Static WEP and Web Authentication The problem is when clients, who are connected and authenticated reboot their machines, it is not necessary for them to login to the webauth page again. This brin
-
I have a major performance impact in this query. So i have planned to re-write this query SELECT n.note_id, n.secondary_category, n.priority, n.eq_name, n.effctv_start_date, n.effctv_end_date, n.note, FROM bf_note n LEFT OUTER JOIN ip_lkp l