Sender FCC
Hi,
I am doing a file to idoc with sender file with fixed length and get the below error, I have more fields but i have posted only few under row, should I be having one more node above the row? as per Michal's blog, please help
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'row':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
My input structure is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SAP_OUT xmlns:ns0="http://HRtoSAP">
<row>
<CON>12677</CON>
<EMPLOYEE_NUMBER>56865</EMPLOYEE_NUMBER>
<RACE_CODE>01</RACE_CODE>
<***_CODE>M</***_CODE>
</row>
</ns0:MT_SAP_OUT>
FCC
Document name: MT_SAP_OUT
Document namespace: http://HRtoSAP
Recordset structure: row,*
Recordset sequence: Ascending
row.fieldFixedLengths 6,10,2,1
row.fieldNames CON,EMPLOYEE_NUMBER,RACE_CODE,***_CODE
row.processFieldNames fromConfiguration
Hi,
As specified by Bhaskar you can use :
row.missingLastfields :ignore
row.keepIncompleteFields : YES
which eliminates if there some thing extra in your row.
Thanks,
Chichili
Similar Messages
-
Hi,
I am facing an error in sender fcc its:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'Pricebook_Data':java.lang.Exception: ERROR in configuration / structure 'Pricebook_Data.': More elements in file csv structure than field names specified!
My source structure is :
Pricebook_abc (root1)
Pricebook_Data (root2)
field1
field2
and my sender fcc is:
Document name : Pricebook_abc
Document namespace: urn:xxxxxxx
Recordset name: pricebook
Recordset structure: Pricebook_Data,*
Recordsets per message: *
Pricebook_Data.fieldNames field1,field2
Pricebook_Data.fieldSeparator ,
Pricebook_Data.endSeparator 'nl'
ignoreRecordsetName true
I am unable to rectify the error. Please help me.
Thanks & Regards,
Pragathi.
Edited by: Pragathi on Jan 15, 2010 1:40 PM
Edited by: Pragathi on Jan 15, 2010 1:41 PM
Edited by: Pragathi on Jan 15, 2010 1:41 PMHi,
The error was saying that.. the no of fields you are getting in the source are diff from that you have mentioned in FCC.
Can you just copy and paste the source csv file? and the exact XML structure?
Regards,
Swetha. -
Hierarchical Structure in Sender FCC
Hi all,
I am working on a file to file scenario.
The sender data type is in following format -
File_Header
Record_ID
Filler_S
Batch_Header
Record_ID
Filler_S
Payment_Node
Record_ID
Filler_S
All the nodes are with key fields.
File_Header Keyfield - 1, Batch_Header Keyfield - 2, Payment_Node Keyfield - 3.
I want to know whether it is possible to have FCC on sender File adapter for this hierarchical structure.
The source XML message should be in following format -
<?xml version="1.0"; encoding="UTF-8"?>
<Test>
<File_Header>
<Record_ID>1</Record_ID>
<Filler_S>12</Filler_S>
</File_Header>
<Batch_Header>
<Record_ID>2</Record_ID>
<Filler_S>12</Filler_S>
<Payment_Record>
<Record_ID>3</Record_ID>
<Filler_S>12</Filler_S>
</Payment_Record>
</Batch_Header>
</Test>
Currently I am getting source XML in this format.
<?xml version="1.0"; encoding="utf-8" ?>
<ns:Test xmlns:ns="urn:testhierarchy:fcc">
<File_Header>
--<Record_ID>1</Record_ID>
--<Filler_S>01</Filler_S>
</File_Header>
<Batch_Header>
--<Record_ID>25</Record_ID>
--<Filler_S>20</Filler_S>
</Batch_Header>
<Payment_Record>
--<Record_ID>6</Record_ID>
--<Filler_S>22</Filler_S>
</Payment_Record>
</ns:Test>
i.e. Payment_Record and Batch_Header are at same level. I want Payment_Record under Batch_Header.
Kindly let me know if hierarchical structures can be handled in sender FCC. If yes then what should be the FCC parameters?
Thanks i.Hi Minal,
We have Source structure same as yours. I am trying to use FCC to handle multiple hierarchy levels at sender side.
Can you please let me know if you have some solution for it?
Thanks,
Pooja. -
File Sender FCC doesn't allow repetitive segments and unbounded together
File Sender FCC give me error if I use the repeatitive structure and * (Unbounded) together. Here is the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,*,DTM,1 for which I am getting the error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 12: missing structure(s) before type 'DTM' "
If I use the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,2,DTM,1 then I am able to parse the file. But My requirement is that I will expect variable no of RFF segments in my structure. If you guys could help me that would be great.Hi Mohammad
In this case try to maintain the following in content conversion parameters.
Key Field Name = Key
<xml>.fieldFixedLengths = 1,......................
<xml>.fieldNames = Key,.................
<xml>.keyFieldValue = 1
<xml>.keyFieldInStructure = ignore
<xml>.endSeparator = ,
Think this should solve your problem.
Refer the following SAP help link :-
[http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
-Thanks
Karthik -
Specify Starting Position in Sender FCC
Hi Experts Team,
I wish to specify the starting position of field in sender FCC.
can i????
regards,
kandaHi,
I think positions we can't identify with FCC statements. fieldfixedlengths itself system will identify automatically. If column have any specific character indication we can do easily. Check it according to your requirement. -
Hi,
How to specify the sender fcc details for following structure
<header>
<Record>
<field1>
<field2>HI Guys,
How about the sender file is of such format
Header1,Item1 details
Header1,Item2 Details
Header2, Item1 Details
Header2,item2 Details
Header3, Item1 Details
I need to map this file format to IDOC strucutre, In Header there is a filed which is the Key value to identify the change in header.
Eg: Order Number is the field in the following file which identifies the change in header: First three fields are header details and following are the item details:
ABC,ON1,22,Item1,XX
ABC,ON1,33,Item2,FF
ABC,ON2,44,Item1,MM
ABC,ON3,66,Item1,LL
How would be the Data type strcuture to capture this type of falt file strcuture and FCC parameters?
I need to send a single IDOC per one header with multiple Items. is it possible to achieve?
Thanks
Rajeev -
Sender FCC ( File adapter ) limitations
Hi All,
I have a Flat file on the sender side ..and i need to do the file content conversion .
I have doubts abt the File (FCC) adapter capabalities.Please let me know if i can build the following structure by using FCC
My Flat file will look some thing like this , I have all the header rows followed by all the detail rows followed by all the subdetail rows for all the details .
HEADER1 fields
HEADER2 fields
DETAIL11 fields for HEADER1
DETAIL21 fields for HEADER1
DETAIL12 fields for HEADER2
DETAIL22 fields for HEADER2
SUBDETAIL111 fields for DETAIL11
SUBDETAIL211 fields for DETAIL21
SUBDETAIL121 fields for DETAIL12
SUBDETAIL222 fields for DETAIL22
And i want to convert the flat file to the following format
<HEADER1>
<Filed1> ..</Field1>
<Filed2> ..</Field2>
<DETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL1>
<DETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL2>
<HEADER1>
<HEADER2>
<Filed1> ..</Field1>
<Filed2> ..</Field2>
<DETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL1>
<DETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL2>
<HEADER2>
Regards,
Tarun.HI ,
Thanks for the reply ..forgot to mention the top node .Below is the modified structure , Please tell me
if it is possible to get this structure using FCC.
Sourde Flat file :
HEADER1 fields
HEADER2 fields
DETAIL11 fields for HEADER1
DETAIL21 fields for HEADER1
DETAIL12 fields for HEADER2
DETAIL22 fields for HEADER2
SUBDETAIL111 fields for DETAIL11
SUBDETAIL211 fields for DETAIL21
SUBDETAIL121 fields for DETAIL12
SUBDETAIL222 fields for DETAIL22
Target File after FCC :
<root>
<b><HEADER1></b>
.........<Filed1> ..</Field1>
..........<Filed2> ..</Field2>
...............<b><DETAIL1></b>
......................<Field1>..</Field1>
......................<Filed2> ..</Field2>
...........................<b><SUBDETAIL1></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL1></b>
...........................<b><SUBDETAIL2></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL2></b>
...............<b></DETAIL1></b>
...............<b><DETAIL2></b>
....................<Field1>..</Field1>
....................<Filed2> ..</Field2>
.........................<b><SUBDETAIL1></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL1></b>
.........................<b><SUBDETAIL2></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL2></b>
..............<b></DETAIL2></b>
<b><HEADER1></b>
<b><HEADER2></b>
.........<Filed1> ..</Field1>
..........<Filed2> ..</Field2>
...............<b><DETAIL1></b>
......................<Field1>..</Field1>
......................<Filed2> ..</Field2>
...........................<b><SUBDETAIL1></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL1></b>
...........................<b><SUBDETAIL2></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL2></b>
...............<b></DETAIL1></b>
...............<b><DETAIL2></b>
....................<Field1>..</Field1>
....................<Filed2> ..</Field2>
.........................<b><SUBDETAIL1></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL1></b>
.........................<b><SUBDETAIL2></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL2></b>
..............<b></DETAIL2></b>
<b><HEADER2></b>
</root>
Regards,
Tarun. -
Error on sender FCC: InterfaceDetermination did not yield any actual intfc
Hi Experts,
I am developing a File to Proxy scenario. Sender File adapter with FCC has been configured as required with the Fixedfiled lenghths and filed names. On trying to execute the i/f by placing the source file at the desired location; Sender Communication channel throws the following exception: Error: com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface. I am using the iNtegrated configuration object on PI 7.3 and Ic has been configured correctly too.
the adapter logs look as follows:
18.10.2011 08:20:46 Information Channel CC_BOURQUE_AccrualTransactions_FILE_Sender1: Converted complete file content to XML format
18.10.2011 08:20:46 Information Channel CC_BOURQUE_AccrualTransactions_FILE_Sender1: Send binary file "D:\Interfaces\ITF\07\Out\freight_export.dat", size 46538 with QoS EO
18.10.2011 08:20:46 Information MP: processing local module localejbs/CallSapAdapter
18.10.2011 08:20:46 Information Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System
18.10.2011 08:20:46 Error Returning to application. Exception: com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface
18.10.2011 08:20:46 Error MP: exception caught with cause com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface
18.10.2011 08:20:46 Error Attempt to process file failed with com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface
Please guide me if I am missing on anything.
Regards,
ElizabethHi Mark,
Have removed the namespace from the message type. Still the same issue occurs for mapping.
On trying to copy and use the source payload on the Message mapping test tab, the source structure is reflected with all the elements and nodes in red.
Following is how my source payload looks like:
<?xml version="1.0" encoding="UTF-8"?>
<MT_AccrualsTransactions>
<Accruals>
<Row>
<BillOfLadingNumber>21776</BillOfLadingNumber>
<CarrierCode>VB</CarrierCode>
<ChargeTypeInterface>FO</ChargeTypeInterface>
<CreateDate>07-01-201107:45:22:303</CreateDate>
<Amount>28830.51</Amount>
<Currency>U</Currency>
<ExportDate>07-01-201107:45:24:070</ExportDate>
<VendorCode>105106</VendorCode>
<CustomData1>5140200-1000000</CustomData1>
<CustomData2>6635</CustomData2>
<CustomData3>88846</CustomData3>
<CustomData4>5 2011/</CustomData4>
<CustomData5>01/31</CustomData5>
<CustomData6>034</CustomData6>
<CustomData7></CustomData7>
<CustomData8></CustomData8>
<CustomData9></CustomData9>
<CustomData10></CustomData10>
<ReferenceNo></ReferenceNo>
<EquipmentInitials></EquipmentInitials>
<EquipmentNumber>B MTC723</EquipmentNumber>
<ShipDateTime>01</ShipDateTime>
<OrderNumber>-29-201107:00:00:000U88714</OrderNumber>
<ShippedQty></ShippedQty>
<ShippedUOM></ShippedUOM>
<OrganizationCode/>
<AccrualDate/>
<EOF/>
</Row>
</Accruals>
</MT_AccrualsTransactions>
What could be wrong?
Regards,
Elizabeth -
Hi All,
I have a scenario where my source file is a flat file.I am using a FCC at sender side to convert the flat file into XML. My source side looks somting like this:
Root
Header
Data
Footer.
Header and footer will repeat only once , but data can be repeated n number of times.
To handle this i am using keyfield value in my FCC. But the problem is " for data record key field value can be X or Y" ie it can start with X as well as Y.
Can anyone please provide me solution for this problem.
Thanks in advance,
SivaHi Sivarama
You can use 2 nodes for the data records and pick up the data records with key x or y.
or
you can pick up the entire data records by using data.fieldseparator ='nl' and can then do the key field validation in the mapping using UDfs.
Thanks
Sabyasachi -
Hello friends,
In my source file , the first line is the header
i want to ignore the first line(header) in FCC
i tried with document-offset : 1 in FCC
But it is not working any suggestions.
Thanks
SrinivasSrini,
Check this Thread
Re: Sender Adapter FTP
Cheers
Agasthuri -
Sender FCC with unbounded RecordSet Structure produces Empty File
Hi Experts,
My scenario is File (FTP) to IDoc, using FCC on the sender.
The source file is a flat file representation of the IDoc e.g. with the segment names preceeding each record row.
FCC parameters are as follows:
RecordSet Name: Z1RECORDSETNAME
RecordSet Structure: EDI_DC,1,E1TPDLH,1,Z1TPI2H,1,E1TPACC,E1TPTRM,,E1EDT13,,E1TPDIH,1,Z1TPI2HD,1,E1TPNOT,*
RecordSet Sequence: Variable OR Ascending
.fieldFixedLengths
.fieldNames
.keyFieldValue
.endSeparator
.keyFieldInStructure
above parameters are used in all segments, except in E1TPNOT where ignoreRecordsetName is added
My issue is when the test file contains more than 1 value for the unbounded segments E1TPTRM, E1EDT13 (e.g. 3 row values for E1TPTRM and 2 row values for E1EDT13) the Content Conversion succesfully finishes but produces an Empty File (size = 0)
Does anyone know how to fix this issue? Am i missing something in the parameters to be able to support the current file structure?
Kindly share your ideas/solution
I've tried to edit the test file to have only 1 record value for the unbounded segments and it is succesfull and does not produce an empty file.Try giving
EDI_DC,1,E1TPDLH,1,Z1TPI2H,1,E1TPACC,E1TPTRM, * ,E1EDT13, * ,E1TPDIH,1,Z1TPI2HD,1,E1TPNOT,*
I got it, i guess even you have given the astrix after E1TPTRM and E1EDT13 and it changed to bold.
Ok ignore my answer. -
Hi Gurus,
I am working on a File-to-File Scenario using FCC at sender side. My requirement is to convert source text file into xml file.
Source and target structure:
DT_Customer_SRC
Header
CompanyName
CompanyCode
Body
CName
CCode
FCC Configuration:
Recordset Structure = Header,1,Body,1
Header.fieldNames = CompanyName,CompanyCode
Header.fieldSeparator = #
Header.endSeparator = $
Body.fieldNames = CName,CCode
Body.fieldSeparator = #
Body.endSeparator = 'nl'
Source File:
ABC#100$PQR#10
I am getting the error saying File contains more values than the fields specified.
But when I set the Header.endSeperator = 'nl', i get the desired output.
Is this the case that we cannot use more than one separator?
Is it mandatory to use Key?
Any help in this regard is highly appreciated
Thanks,
Jitesh TalrejaHi,
Thanks for your time
I tried the options posted by you guys but none of the option has worked.
Are there any limitations on the number of seperators to be used? Is my requirement correct and achievable?
Regards,
Jitesh Talreja -
Unable to process Textfile Sender FCC adapter
Hi Experts,
I am doing FCC to ABAP Proxy Interface. Where I have to pick an text file and process and send to through ABAP Proxy to R3.
My data is in text file .txt , the data is like this :
HEMAHPOD019##012621 30018 09022012600308 48 09022012d019 3110
HEMAHPOD019##012622 30018 09022012600317 120 09022012d019 3110
HEMAHPOD019##012623 30018 09022012603023 24 09022012d019 3110
HEMAHPOD019##012624 30018 09022012600921 30 09022012d019 3110
HEMAHPOD019##012624 --> Here 3 fields are clubbed together and filed separator is tab.
Please tell me how to process this kind of file.
Thanks and regards,
Ahmed.
Edited by: Ayubsajjid on Feb 29, 2012 8:51 AMHi Friends,
I have done this....
By using below in Content Conversion Parameters: for given text data
HEMADPOD015##008171 30003 16082011600600 2 16082011d015 3110
HEMADPOD015##008172 30003 16082011600603 48 16082011d015 3110
Row.fieldName Zabc,Zabc,Zabc,ZabcE,INVDT,Zabc,Zabc,abc,Zabc,abc,abc
Row.processConfiguration : FromConfiguration
Row.keyFieldValue : H*
Row.endSeparator : Tab( from notepad i paste the tab here)
Row.fieldFixedLengths : 4,14,4,6,8,24,9,1,8,30,4
Row.comlumnSeparator : tab ( Notepad tab)
Row.lastFieldsOptional : true
I got some input from this link also for given below error :
File Content Conversion in PI 7.1 Error
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according
to structure 'Row':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to
allow this
Thanks a lot for the help to all for providing inputs from your valuable time.
Cheers
Ahmed. -
Sender FCC for CSV file with Reoccuring Record Structures
Hello,
I am trying to use FCC to bring in an X12850 Purchase Order file layout WITHOUT using seeburger, etc.
The Configuration I have in place works if the text file is:
Heading1
Heading2
detail1
detail2
detail3
Footer1
OR the text file contains:
Heading1
Heading2
detail1
detail1
detail2
detail2
detail3
detail3
Footer1
Unfortunately, the file I need to work has the format:
Heading1
Heading2
detail1
detail2
detail3
detail1
detail2
detail3
Footer1
When I try to send process this file I get the error ERROR consistency check in recordset structure validation (line no.6 : missing structure(s) before type detail1
Is it possible via FCC to bring in this file as XML?If you change the record sequence to variable it works.
-
Sender FCC with complex nested structure - FCC Configuration
Hi Guys,
I am working on a File-to-File Scenario using FCC at sender side. I need to configure FCC for this .
The structure below is nested.
Can anyone help me with the FCC Configuration for this structure.?
Souce structure :
ROD_DT
num_orders
test_mode
order_x
order_id
order_date
mfg_id
catalog_id
first_name
last_name
recipient
message
address1
address2
address3
city
state
zip
country
country_code
phone
subtotal
tax
shipping
total
shopatron_total
fulfiller_total
shipment_id
additional_info
in_store_pickup
express_shipping
express_shipping_flag
express_shipping_text
express_shipping_arrival
discount
discount_description
discount_percentage
discount_total
language_id
currency_id
ship_type
packing_list
num_items
items
item_x
item_id
quantity
price
part_number
fulfiller_total
shopatron_total
options
option_x
FCC Configuration:
Recordset Structure =
Header.fieldNames =
Header.fieldSeparator =
Header.endSeparator =
Body.fieldNames =
Body.fieldSeparator =
Body.endSeparator =
Any help in this regard is highly appreciatedNote that the maximum nesting level that is supported in FCC is as below;
<recordset>
<NameA>
<field-nameA1>field-value</field-nameA1>
<field-nameA2>field-value</field-nameA2>
<field-nameA3>field-value</field-nameA3>
</NameA>
<NameB>
<field-nameB1>column-value</field-nameB1>
<field-nameB2>column-value</field-nameB2>
<field-nameB3>column-value</field-nameB3>
</NameB>
</recordset>
So if your nesting exceeds 2 levels ... FCC is not possible.
Maybe you are looking for
-
Two weeks ago I was updating my iPhone 4 to the new software. As soon as it was done it sent my phone into recovery mode. I talked to apple support line four times and they could not figure it out. I got frustrated after two days of Not being able to
-
Problem with Stateful EJB in JBOSS
Hi, J have a problem with invoking stateful EJB methods from my web application deployed in Jboss 4.0.5.GA both. The same EJB with WebLogic functions perfectly, instead with Jboss it often throws the following exception: ERROR [org.jboss.ejb.plugins.
-
Use of function module 'FTP connect'
when we use the function module 'FTP connect', and 'FTP_R3_TO_SERVER'
-
When you run a query or report there were a progress icon, now just the cursor shows the busy state, is it going to disappear? It seems getting better.
-
Event logs fails to start on Exchange Server 2010
My Exchange server 2010 R2 SP1 Enterprise single server is down. All exchange services fail to start. It appears like the Microsoft Exchange Active Directory Topology service isn't starting which is a dependency for all other services. The error I