FCC to File
Hi Frnds,
Iam doing FCC to File Interface my Source Text file Like Below i want send xml File for Receiver Side, How can i Achieve this with Sender FCC Parameters. Please Help on this.
“H”,”E100”,”M”,”IT”,”102, ITPL Bangalore”,”Whitefield”,”BANGALORE”,”560066”
“I”,”234”,”JUNE1”,”01062014”,”450”,””,”450”,”General”,”S”
“I”,”323”,”JUNE7”,”07062014”,”234”,”6”,”240”,”General”,”S”
“I”,”234”,”JUNE21”,”21062014”,”460”,””,”460”,”General”,”S”
“I”,”234”,”JULY14”,”14072014”,”150”,”20”,”170”,”General”,”S”
“T”,”4”,”1330”
Regards,
Rajendar K
Hi,
Add keyfieldname and below entries in FCC.
Header.endSeparator : 'nl'
Header.fieldSeparator : ,
Header.fieldNames : key,field1,field2,field3,...
Header.keyFieldValue : "H"
Header.keyFieldInStructure : ignore
Item.endSeparator : 'nl'
Item.fieldSeparator : key,field1,field2,field3,...
Item.keyFieldValue : "I"
Item.keyFieldInStructure : ignore
Trailer.endSeparator : 'nl'
Trailer.fieldSeparator : key,field1,field2,field3,...
Trailer.keyFieldValue : "T"
Trailer.keyFieldInStructure : ignore
If you dont want double quotes in content use enclosuresign = " in FCC
Please check below links
https://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
http://wiki.scn.sap.com/wiki/display/XI/Basic+File+Adapter+Content+Conversion
**************** - File Content Conversion
Content Conversion ( The Key Field Problem )
Getting payload is empty error
Regards,
Praveen
Similar Messages
-
Hi.. my file structure is as follows..
Header ( occurs only once in the file )
NOS1 ( 1...unbounded)
NOS2 ( 0...unbounded)
NOS3 ( 0...unbounded)
Trailer ( occurs only once in the file )
Now i want to ignore the header and trailer records in my file...
Header i can ignore by using a document offset of 1...
But how do I ignore the trailer record?
Also how would my FCC setting be?
Thanks..>>Header i can ignore by using a document offset of 1...
But how do I ignore the trailer record?
This is not possible in standard.
However, you can convert the trailer record also as usual and skip the trailer record in mapping.
Regards,
Jai Shankar -
FCC Sender file adapter : Message Spitting 1:2
Hi expert
i am execuing a file to file scenario, with message splitting 1:n
1 source MT and 2 Target MT.
My source MT structure becomes as
Message
....Message1
.......SourceMT
................row
....................Field1
....................Field2
Now how to configure this structure at Sender file adapter
File Content Converson.
as after adding to MT at target side in message mapping...
2 extra hedder are added at source MT..
Regards
ajayp> Message
> ....Message1
> .......SourceMT
> ................row
> ....................Field1
> ....................Field2
>
> Now how to configure this structure at Sender file adapter
> File Content Converson.
>
> as after adding to MT at target side in message mapping...
>
> 2 extra hedder are added at source MT..
Ignore 2 extra header and do your FCC as you do in normal scanario. -
FCC:Receiver File Adapter
Hi
This is regarding a FCC in receiver File Adapter
My requirement is as follows :
I have the following source structure
DT_Source
Structure
Field 1
Field 2
Field 3
The target file to be created will contain all the 3 fields mapped directly from the source.
but in additional to these 3 fields it will also contain 3 constants ..which aren't coming from the source.
Do I need to include that in the Target data type and map them as constant values in the mapping or can the addition of constant values be taken care of in the File Content conversion ?
thanks
DevThanks Shabarish
So you mean once i get a sample file , according to the blank spaces in the resultant i should have a corresponding field in my target Message type and map it toa constant white spaces ??
ok I have one last question
Can the FIle(on the receiver side ) be a mix of values which are fixed as well as variable lenghs ??
i.e
a typical line item in the file will be like this
Field1,Field2,Constant1, ,Constant2,Field3, ,Constant3,Field4,Constant4
where Field1 and Field3 are fixed length fields with the constants and field 4 and field5 are of variable lengths ????
thanks
Dev -
Comma problem in receiver file FCC csv file
Hi,
We had a problem with CSV conversions in file adapter.Our scenario is: Proxy>Xi>FCC(csv)
<?xml version="1.0" encoding="utf-8" ?>
- <n0:RDM_OrganizationalStructure_MT_OB xmlns:n0="ness.com:RDM_ORGANIZATIONALSTRUCTURE" xmlns:prx="urn:sap.com:proxy:DV3:/1SAI/TAS9B35FF35521A19F6CBEE:701:2009/02/10">
- <row>
<KTEXT>Information,Technology</KTEXT>
<KTEXT>"Information, for internal use only" </KTEXT>
</row>
</n0:RDM_OrganizationalStructure_MT_OB>
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column.
for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
but for the second record from the source side itself the its getting as "Information, for internal use only"
so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
how to resolve this issue for appending the record in the same column?
and also i want to know why " is not inserting in csv file.
My Fcc conversion parameters are
record Structure: row
row.addHeaderLine: 1
row.headerLine: Code,Name,Description
row.fieldSeparator: ,
row.endSeparator: 'nl'
pls advice how to overcome this problem
Thanks
VankadoathHi Vanka,
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column. for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
To make it in the same column, you put it into double quotes.
"Information,Technology" -->> Information,Technology
but for the second record from the source side itself the its getting as "Information, for internal use only" . so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
As this already has double quotes, you need to use 2 more double quotes to escape that.
"""Information, for internal use only""" -->> "Information, for internal use only"
Regards,
Sunil Chandra -
FCC source file gives error in mapping
While doing File Content Conversion Text to(XML) : Multiple Records occurring in SXMB_MONI and Receiver Channel not working(Mapping Error). Please can anybody tell me how to correct this error or how to proceed.
Hi
can u please provide which FCC parameters u r using at the sender side.
to check ur mapping error just go to the sxmb_moni take the input payload from the moni , copy the payload and then copy that paylod in the test tab in the mesage mapping it will give the error at some node or field level and u will come to know about the error.
if u still face the problem please reply me back.
Thanks
Rinku -
Hi all,
My source xml is:
node1_mt
<node2>
<node3> 0 to u
field1
field2
field3
<node4> 0 to u
fielda
fieldb
fieldc
</node4>
</node3>
fieldaa
fieldbb
My target file should be: (csv)
field1 field2 field3
fielda fieldb fieldc
fielda fieldb fieldc
fielda fieldb fieldc
How should I have my FCC parameters please?
Many thanks.
Ramesh.ok, now got a bit further.
I am just using:
Recordset structure: header,item
header.addHeaderLine = 1
header.fieldSeparator = ,
header.endSeparator = 'nl'
item.fieldSeparator = ,
item.endSeparator = 'nl'
This is creating the output file as: (for multiple items)
field1 field2 field3 fielda fieldb fieldc
fielda fieldb fieldc
fielda fieldb fieldc
Now my only question is how can I take the first item line and put it in a separate line instead of the header? like...
field1 field2 field3
fielda fieldb fieldc
fielda fieldb fieldc
fielda fieldb fieldc
Many thanks. -
FCC Send File Adapter - missingLastFields not working
Hi
I have a flat file to capture using the sender File adapter
Parameter as follows:
Header_fieldNames : Key,Name,StaffID,Telephone
Header_fieldFixedLengths : 2,12,10,8
Header_endSeparator : 'nl'
Line_fieldNames : Key,Address,Company,LineText
Line_fieldFixedLengths : 2,20,20,40
However there are times where last field come in missing.
Hence I use the Header_missingLastFields : error
Line_missingLastFields : error
However it does not seem to be working as the adapter fails to pick the file from the FTP folder
but if I replace error with ignore, the sender adapter picked the files and process and send to the receiver adapter.
I need to flagged error in sxmb_moni if last field or last few fields are missing....any advise how could this be achieve ?
Regards
FredHi Freddy,
I think you might like to specify missingLastFields = add. then it will add the missing fields as empty. you can further check if these are empty in mapping and then fail the message or create an alert.
If you specify "ignore" then you will not get those fields in your structure and if you specify "error" then the file will not be picked up.
have a look here
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
missingLastfields
If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:
○ ignore
Outbound structure only contains the fields in the inbound structure
○ add
Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.
○ error
Conversion is terminated due to the incomplete inbound structure. An error message is displayed
regards,
francis -
FCC receiver file adapter new line 'nl' is not working
Hi Experts,
I am doing idoc to file scenario,i have to creart a text file in which each line will have a record.
i am using
Recordset Structure -->DeliveryRecords
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
DeliveryRecords.fieldSeparator '0x09'
DeliveryRecords.endSeparator 'nl'
but new line is not working every thing is coming in the same line.i have also tried with '0x0A' , this is also not working.
Pls suggest what can be done.??Hi
You have to use either fieldFixedLength or fieldSeparator.
You should not mix together.
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
or
DeliveryRecords.addHeaderLine 0
DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
DeliveryRecords.fieldSeparator '0x09'
DeliveryRecords.endSeparator 'nl'
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion -
An external systems sends TXT file of large size. The file will be read for every 500 sets and written to an XML file with timestamp in output folders..
My content conversion has following parameters:
Recordset name : DATA
Recordset structure: header,1, item,*
Recordset sequence: Variable
Recordset per message: 500
Key Fieldname: Rec-Type
Key Field type: String(case sensitive)
All the recordsets, each in packet of 500 are processed in XI successfuly WITHOUT any errors, though there are fewer number of output xml files generated. I see about 13 packets (of 500 messages each) in the XI mointor, but only 8 files are written to the folders.
The missing 5 messages on the XI mointor are shown with Queue status (green).
Appreciate any help.Sarvesh,
I checked that tcode, i have following entry
Cl. Queue Name Entries Status TID of First LUW
100 XBTO6___0000 809 RUNNING A7AE9C8B042247B0B0471515
Will messages always be held in queue, is this a permanent solution?
Also,
i tried to activate the above queue and got following message "The queue is registered and therefore cannot be activated". -
FCC a file with random sequence
Hi Everybody,
HI,
I am facing one issue Can you tell me how i can resolve it. please see the incoming file structure i am getting
010johnnewjersy
02001price
03002989
030039898
020011898
02001101
0309090
010johnks
where 010-keyfield
020-keyfield
030-keyfiled
here rows with 020 030 can repeatand whole set 010,020..unbound,030..unbound . 010 record can repeat once again which will treated as new set
hope you understand. need directions to configure my sender adapter.
Thanks for your time
bye
rajHi,
Pls do Content conversion in adapter as follows.
Module Key Parameter Name Parameter Value
Plain2XML xml.recordsetName MyRecordset
Plain2XML xml.recordsetStructure NameA,1,NameB,,NameC,
Plain2XML xml.keyFieldName MyKey
Plain2XML xml.keyFieldType CaseSensitiveString
Plain2XML xml.NameA.fieldNames MyKey,field-nameA
Plain2XML xml.NameA.fieldFixedLengths ex:2,10
Plain2XML xml.NameA.keyFieldValue 010
Plain2XML xml.NameB.fieldNames MyKey,field-nameB1,field-nameB2
Plain2XML xml.NameB.fieldFixedLengths ex:2,3,3
Plain2XML xml.NameB.keyFieldValue 020
Plain2XML xml.NameC.fieldNames MyKey,field-nameC
Plain2XML xml.NameC.fieldFixedLengths ex:2,5
Plain2XML xml.NameC.keyFieldValue 020
It will solve your query.Please let me know if you still face problems.
Please award marks if found useful.
Thanks
Hamja -
Error in Receiver File adapter - FCC
Got error message as "File Adapter Receiver Channel CC_OB_REQ: Not initialized - cannot proceed: null"
My requirement is to send IDOC to file which consists of 4 fields, My target message interface is
MT_REQ
FILE_STRUC
FILE_OP
AAA (Field1)
BBB(Field2)
CCC(Field3)
DDD(Field4)
Output file should contain the above 4 fields with fixed lengths 20,1,1,2
So I declared FCC in File Adapter as
I tried many options
RecordSet Structure: MT_REQ,FILE_STRUC,FILE_OP
FILE_STRUC.fieldSeparator - 'nl'
FILE_OP.fixedFieldLengths - 20,1,1,2
FILE_OP.fieldSeparator - 'nl'
FILE_OP.endSeparator - 'nl'.
Please let me know where is the problem?
Thanks in advance,
KrishnaHi Ramakrishana,
In FCC fixed length file format when your XML payload is goes to Adaptor engine, it should contain all fields in XML. Otherwise its throw error in FCC channel. Please check receiver payload at SXMB_MONI or message monitoring of Run time work bench. In that payload you will find that some of the fields is not generated in target payload.
Field in receiver payload is not generated means from sender payload corresponding field is not coming. As per my past experience this generally happens in IDOC sender.
solution:- In message mapping in every field from IDOC to file use mapWithDefault node function with null value. Due to this though if any field do not generates in IDOC, corresponding field will generate in File Payload and it will not throw error in FCC.
Regards,
Prashant -
Reading .MHT Files using Sender File Adapter
Hi Gurus,
I have a requirement to read a .MHT file extension with following format .
File extension is : C:\TEST\DGFAKTFRI.MHT
File content opens in HTML explorer as follows ...
;2333097;800;0;237546;3912875;"2008-09-11";"A";"E";" ";0;"8715 ";0;"8715 ";" ";"0001-01-01";"46994051 ";"DO";0;0;0;,00000;"0597656 ";2333097;"Jette ";"61922434 ";1;1;348,00;348,00;348,00;25,00;25,00;25,00;25,00;"K";1,0000000;261,00;65,25;261,00;65,25;"Nordjyllands Erhvervsakademi ";"Boghandel ";"Leder: Kim Lemvig Hagerup ";"Sofiendalsvej 60 ";"Aalborg SV ";"9200 ";"DANMARK ";"72 50 59 80 ";"72 50 59 89 ";"01";"173";"000";"481";"000";"655";"RSRAPPORT OG VIRKSOMHEDSANALYSE THOMSON";"ELKJu2019R & HJULSAGER ";" ";" ";" ";" ";" ";" ";" ";,52600;,52600;228;155;21;"9788761922434 ";" ";
This is just a single record for sample purpose and my file contains line entries with these content .
Now my question is how do we handle such file extensions ? Do we have to use Module processor ?
Or any other option is left as i am yet to check directly calling .MHT files using File Adapter.
Thanks in advance for help.Hi Sitaraman
As per the description given it looks like a flat file with separator as ";". You can do an FCC using file adapter and give it a try. if complete file is uniform as look above then it will work fine and you can read this file else adapter module is the option to read such unstructured file.
Thanks
Gaurav -
File content conversion in File-to-RFC without BPM
Hi,
I am using FCC for file to RFc scenario.
My input record is in the following format:
Header record
data rec1
data rec2
Trailer record..
The parameters are used in File content conversion:
Recordset Name : Header,item
Recordset Structure: Header,1,item,*
key field name : data1
and in additional parameters:
Header.fieldNames HI,GenDate,Ftype,Fname,Fdate
Header.keyFieldValue Fname
Header.fieldFixedLengths 1,8,1,50,8
Header.endSeparator nl
item.endSeparator nl
item.fieldNames DATA1,DATA2,DATA3,DATA4
item.keyFieldValue item
item.fieldFixedLengths 231,240,241,120
item.lastFieldsOptional YES
Can anyone check whether any parameters are left, b'cos the file is not being read with this settings. and in the C.C its just showing file processing successfully but not able to see the actual file.Hi,
I assume you have header, item and trailer structure in source file.
Source Data Type will be as follows.
RecordSet
--> Header
--> KeyField(Value OH)
--> H1
--> H2
--> Item
--> KeyField (Value OL)
--> I1
--> I2
-->Trailer
--> KeyField (Value OT)
--> T1
--> T2
Where Item Strucutre can come multiple times.
Please use following settings.
Recordset name: RecordSet
RecordSet Structure: Header,1,Item,*,Trailer,1
Key Field Name: KeyField
Header.fieldNames: KeyField,H1,H2
Header.fieldFixedLengths: 2,3,4
Header.processFieldNames: fromConfiguration
Header.keyFieldValue: OH
Header.LastFieldsOptional: YES
Item.fieldNames: KeyField,I1,I2
Item.fieldFixedLengths: 2,5,6
Item.processFieldNames: fromConfiguration
Item.keyFieldValue: OL
Item.LastFieldsOptional: YES
Trailer.fieldNames: KeyField,T1,T2
Trailer.fieldFixedLengths: 2,8,9
Trailer.processFieldNames: fromConfiguration
Trailer.keyFieldValue: OT
Trailer.LastFieldsOptional: YES
Regards,
Gouri -
File Content Conversion - Error in keyfield Value
Hello experts,
I am doing file content conversion for a file to file scenario. The input file is a csv file which is converted to xml using the file content conversion. The key field of input file is used for implementing conversion.
While testing the FCC, I noticed that if the keyfield value is wrong for a record in the file, the record is ignored altogether without throwing any errors or warnings. Is there any way to notify if any records have been ignored as a result of incorrect keyfield value??
Thanks in advance!
RRThere seems to be NO way to handle it in FCC.
File Content Conversion - Key Field Value
u can think of work arounds by handling it in mapping....
-santosh.
Maybe you are looking for
-
How Do I Merge Multiple Apple Accounts? (iCloud and iTunes)
My old MoblieMe.com account wags created under my Me.com address while my iTunes account was created under my Gmail.com account. My old MobileMe.com/New iCloud.com account has a one year of free extra storage attached to it. My iTunes account has
-
I recently had the 29 upgrade forced on me. I did not like the new lay out. I was trying different things and I hit the restore defaults button. After I did this, any tabs that I had open that were not the active tab, the labels was grayed out. I wan
-
Hi, I have developed a web service application in java caps 5.1.3 and can able to call that from the client successfully. But I dont want to create web service in java caps 5.1.3, the web service should run in weblogic server and the business logic i
-
I want to install to different version on the same server
Hi all, I want to install two different version of oracle on same server. and Both should work parallely without disturbing to each other. I know it is possible But while installing what preliminary precautions I willl have to take so that it won't d
-
I can't update Photoshop CC (U43M1D204)
I can't update my Photoshop CC , but Lightroom CC done. (U43M1D204)