FCC (File Content conversion)-In sender
Hi All,
Using FCC in sender i need to convert text to xml.Such that my text file format is
Line1
Line2
Line3
All the three lines is having some data..My source data type structure is
DT_Emp
>Emp_Info
>Header
ID----
(0..1)
>Details
Line----
(0..unbounded)
Now i need to get data from text file into only line element..My ID element should be blank..XML should have ID element but it should not be populated from input file.How to get this using FCC..Is there any parameters for this?
Can anyone give some useful ideas
Regards
Venkat
HI,
For FCC Check this links.
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
Regards,
phani
Similar Messages
-
File content conversion on Sender Side
Hi,
I am doing file content conversion on sender side.when i am executing the scenario,i am getting the following error in sxmb_moni:
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/...............
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> DOC_HEADER ...
when i right click on the pyaload and select view source
its displaying the whole flat file with the following line at the beginning:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message -->
i have given all the parameters correctly....
in sxmb_moni.....the error category is Mapping and the error id id EXCEPTION_DURING_EXECUTE
Please help me with this error.
thanks n regards,
anuradhaHi !!
The best way to debug would be to add TRACE statements in your mappigs. In both Graphical and java Mapping.
Trace out the entire output of java mapping and see if this is the input that the next mapping expects.
For trace , http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm
refr this links also
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected
unsported character error in message mapping
Re: HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:
Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException
Re: Outbound error
Re: mapping error
error in file to file
have a look at this weblog on how to test your mapping
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Thanks !!! -
File Content Conversion in Sender File
how to convert a fixed length flat file without end seperator sent to XI to a xml form?
Pleasegive me the idea of Sender Adapter configuration details (esp endSeperator)Hi,
For file content convertion if there are fixed lenth then no need to give the feildseperator,just give the fixed lenths for all the feild in FCC.
check below links for FCC
/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
Regards,
Phani.
Reward Points If Helpful -
Key field values for file content conversion at sender communicationchannel
Hi all,
I am working on scenario File to Idoc.In this scenario at the sender side we configure the file content conversion for .CSV file.
In the flat file i am having more than one orders, XI will pick the file and creates a separate Idoc for each sales order at r/3.
We have similar fields "Order Item Number" both header and item.
If we got '00000' on the Header item then it should create a new idoc at the r/3 side other wise it will create line item.
Order item number will be 00000 for header but it will differ from order item to item.
source structure
Order Header
Order type
Sold-to-code
PO number
Order item number
Order date
AdresName1
AdresName2
Street and House number
Postal Code
City
Country Code
Filler
Order Item
Order type
Sold-to-code
PO number
Order item number
Order date
Product code
Order quantity
Item text
Filler
Now I have some questions....
I don't have standard filed values to give the key fileds at source structure.
I need to create the Idoc at r/3 system for each individual record.
Is it possible to create new idoc with out using the Key filed value?
If it is possible then how can i proceed with fcc?
please give me your valuable suggestions
Best Regards,
satya
Edited by: satyatanuku on Mar 3, 2010 1:41 PM
Edited by: satyatanuku on Mar 3, 2010 1:42 PM
Edited by: satyatanuku on Mar 3, 2010 1:44 PMHi,
Just check the Content Conversion Parameters- Recordset Structure.
If you have filled in this parameter with
Header,1,Item,1
then change it to
Header,1,Item,3
Regards
Chandra -
Supress Column Heading - File Content Conversion in Sender Adapter
Hi,
Let me give a more clear picture about my scenario. I need to convert CSV File to XML output:-
My source file has column heading and values. The sample data is mentioned hereunder:-
PERNR;KID;PNALT;NACHN;NAME2;VORNA
;1200;1200;Angus
I have created a data type as under:-
DT_LegacyEmployee (Category - Complex Type)
Employees (Category - Element, Occurence - 1)
Header (Category - Element, Occurence - 0...1)
PERNR_H
KID_H
PNALT_H
NACHN_H
NAME2_H
VORNA_H
Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
PERNR
KID
PNALT
NACHN
NAME2
VORNA
The file conversion parameters in the file sender adapter are mentioned hereunder:-
Document Name - MT_LegacyEmployee
Document Namespace - http://abc.com/xi
Recordset Name - Employees
Rescordset Structure - Header,1,Employee,*
Recordsets per Message - 1
Key Field Type - String (Case Sensitive)
Employee.fieldSeparator - ;
Employee.endSeparator - 'nl'
Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
I dont' have a key field value. How do we remove the header and show only the values in the xml output. I have searched the forum topics as well checked many blogs related to file content conversion, but nothing helped. Kindly advice how to fix this issue. Thanks in advance.
Regards.
PraveenHi Praveen,
Change your File Adapter as below
Document Name - MT_LegacyEmployee
Document Namespace - http://abc.com/xi
Recordset Name - Employees
Rescordset Structure - Employee,*
Recordsets per Message - 1
Key Field Type - String (Case Sensitive)
Employee.fieldSeparator - ;
Employee.endSeparator - 'nl'
Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
There is no need for the Header required in the data type.
DT_LegacyEmployee (Category - Complex Type)
Employees (Category - Element, Occurence - 1)
Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
PERNR
KID
PNALT
NACHN
NAME2
VORNA
Now the trick is in the mapping program
Lets assume your mapping looks like
MT_LegacyEmployee ---> MT_TargetEmployee
- Employees ---> Records
- Employee ---> Record
- PERNR ---> TargetPERNR
- .. so on
When you do a mapping from Employee ---> Record apply the following logic.
(PERNR)--->
(TestEquals =) --->(NOT)--->
(Constant) ---> (IF)
(PERNR) (IF Without Else) ---> (Record)
(THEN)
(Employee)--->
When doing this make sure RightClick on PERNR and Select Context ---> Employees.
By default context would be from Employee and it will give you an error of XSD format. So make sure you are changing the context. -
File content conversion in Sender Adapater for multiple occurances
Hi ,
I am mapping from flat file to idoc .
My flat file is a tab demilited
Since the idoc would have structure
like header , lineitem , schedule
in my flat file conversion
i am giving recordset structure
as header,1,lineitem ,,schedule,
since lineitem would be repeated many times
Bt if i give * i need to give a keyfieldname
which would mean that keyfieldname has to appaer in header and schedule .
since in my case my Column values in header , lineitem and schedule are different
how can i do the file conversion in this case
i can doing something like this
header.keyFieldValue ""
schedule.keyFieldValue ""
header.keyFieldInStructure ignore
schedule.keyFieldInStructure ignore
i am not even sure if thats the correct way
Thanks
AmitHi Amit,
Take a look at these...
/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/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
cheers,
Prashanth
P.S Please mark helpful answers -
Reg:File content conversion for Sender File Adaptor
Hi all,
i would like to know , how the file content conversion is written for the below mentioned XML code. The flat file will have only the table name and the fieldname
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Mt_File xmlns:ns0="http:/file_to_idoc">
<query_table>ztable1</query_table>
<row_count/>
<Fields>
<item>
<fieldname>zempno</fieldname>
</item>
</Fields>
</ns0:Mt_File>
regards
priyaFirst you create the conversion rules, then you create the XML structure accordingly, not the other way.
online help will help you -
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 Sender File Adapter
Hi,
I am implementing a scenario, where I need to do Content conversion in My file Adapter.My input file is as follows
BGN00S-A200711281003ET4
REF38381012
DTP007D820071128
N1P5P5MicrosoftFI58-0612397
INSY18030XNAN
REFZZZZ666666666
DTP336D819970331
NM1ILIL1AdamsMarkE34666666666
PERIPIPHP770555-5555
N31470 Georgia Club Drive
N4StathamGA30666
DMGD819571022MM7
HD030HLTAE1D
My data type is as below.
<header>
<BGN>
<A></A>
<B></B>
<C></C>
<D></D>
</BGN>
<REF>
<A1></A1>
<B1></B1>
<C1></C1>
<D1></D1>
</REF>
<DTP>
<A2></A2>
<B2></B2>
<C2></C2>
<D2></D2>
</DTP>
</header>
<Content>
<N1>
<A></A>
<B></B>
<C></C>
<D></D>
</N1>
<REFAR>
<A1></A1>
<B1></B1>
<C1></C1>
<D1></D1>
</REFAR>
<DMP>
<A2></A2>
<B2></B2>
<C2></C2>
<D2></D2>
</DMP>
</Content>
My issue is, How do I set my parameter in Sender Comm channel for content conversion especially at record structure.
I have provided the value as Header,1,Content,*
But its not working.
If I do provide like
BGN_REC,,REF_REC,,DTP_REC,,N1_REC,,INS_REC,,NM1_REC,,PER_REC,,N3_REC,,N4_REC,,DMG_REC,,HD_REC,* then ,I am not getting above XML format. Please suggest or How can I modify my Data type which competes to configure in Channel
Thanks
ManmadhaHi All,
I am sorry for the Jumbled Content. I dont know what happened.
I should get the XML output as below.
header>
<BGN>
<A></A>
<B></B>
<C></C>
<D></D>
</BGN>
<REF>
<A1></A1>
<B1></B1>
<C1></C1>
<D1></D1>
</REF>
<DTP>
<A2></A2>
<B2></B2>
<C2></C2>
<D2></D2>
</DTP>
</header>
<Content>
<N1>
<A></A>
<B></B>
<C></C>
<D></D>
</N1>
<REFAR>
<A1></A1>
<B1></B1>
<C1></C1>
<D1></D1>
</REFAR>
<DMP>
<A2></A2>
<B2></B2>
<C2></C2>
<D2></D2>
</DMP>
</Content> -
File Content Conversion in Sender Adapater
Hi Folks ,
I am doing a file 2 file scneario using content conversion at both end
My i/p and o/p is file is tab delimited
My source xml structure is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:file_sender_mt xmlns:ns0="urn:filetofiledemo">
<recordset>
<data1>
<keyfield/>
<age1/>
</data1>
<data>
<name/>
<keyfield/>
<age/>
<loc>
<keyfield/>
</loc>
</data>
</recordset>
</ns0:file_sender_mt>
Data and location have the mapping 1.. unbounded
while data1 has the mapping 1.1
When I am trying to read it as a tab delimited flat file.
These are the parameters that i have set
Document Name file_sender_mt
Document Namespace urn:filetofiledemo
Recordset Name recordset
Recordset Structure data1,1,data, ,loc,
Key Field Name keyfield
data1.fieldNames keyfield,age1
ignoreRecordsetName true
recordset.fieldSeparator '0'
data1.fieldSeparator '0x09'
data1.keyFieldValue 01
data1.endSeparator '0'
data.beginSeparator '0x09'
data.fieldSeparator '0x09'
data.fieldNames name,keyfield,age
data.keyFieldValue 02
loc.fieldSeparator '0x09'
loc.beginSeparator '0x09'
loc.endSeparator '0'
loc.keyFieldValue 03
loc.fieldNames keyfield
My file is getting picked up . I dont see any message in message monitoring and neither anything in moni .
No error in adapater
but the file is not getting created .
if i change the message protocol to file and send t above xml file . the scneario works fine
any reasons for the above behaviour
Thanks
AmitI have found you cant use nested element in sender adapater
so i have chnage my source structure to
Now if i give my i/p file as
01 age1
02 25 03
file is getting pciked up
bt if i give it as
01 age1 02 25 03
which is the structure i expect my i/p file it is failing to read with the error
Error: Conversion of complete file content to XML format failed around position 0: Exception: ERROR converting document line no. 1 according to structure 'data1':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
Does The special character ´0´ is not a separator character.
not work for sender adapater bcoz in reciever i am able to get o/p in one line and tab delimited
any idea
and since i have given my keyfield as the second field in data
02 would come at the second palce
Thanks
Amit -
File content conversion at sender side
Hi,
I need to convert a flat file to xml at sender side using FCC.
Input text file:
Sunil,Chandra,Mumbai,400709
Sachin,Tendulkar,Delhi,110066
XML Structure Occurrence
>Employees 1..1
> > Employee 0..N
> > > Fname 1..1
> > > Lname 1..1
>> > Address 1..1
> > > >City 1..1
>> > > Zip 1..1
xml should be like this:
><Employees>
>><Employee>
>>><Fname>Sunil</Fname>
>>><Lname>Chandra<Lname>
>>><Address>
>>>><City>Mumbai</City>
>>>><Pin>400709</Pin>
>>></Address>
>></Employee>
>><Employee>
>>><Fname>Sachin</Fname>
>>><Lname>Tendulkar<Lname>
>>><Address>
>>>><City>Delhi</City>
>>>><Pin>110066</Pin>
>>></Address>
>></Employee>
></Employees>FCC does not support this level nesting...Ref
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
But requirement can be achieved using extra mapping
you can create a source structure that looks like
MT_Source_New..
>Record ...unbounded
>line ....1
and read the input file line by line...this can be achieved by simple FCC...Refer above link
here you need extra mapping to map it to your required source structure Employees
MT_new ---Mapping1 --- Employees
Then map Employees to Actual target structure -
File Content Conversion using Sender to Mapping
I have a sender that is mapping a flat file CSV and it maps it correctly, but when it is being send to the message mapping program it fails on the input parse with an exception:
Mapping transformation: Cannot produce target element /ns0:G8328_09B_Document/ns0:G8328_09BMessageType. Check xml instance is valid for source xsd
I am using an external definition as my input for the message mapping if I import the messge from the monitor payload and change the ns: to ns0: in the test tool it maps find. Can anyone tell me how to get the File adapter to generated ns0: instead of ns: in the input message coming out of the adapter.
Payload from the file adpater:
<ns:G8328_09B_Document xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
- <ns:G8320_09BMessageType xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
- <G8328_09B>
<VKORG>1000</VKORG>
<AUART>ZG2</AUART>
<XBLNR>0061623534</XBLNR>
<VBELN>0010790092</VBELN>
<NETWR>178.99</NETWR>
<WAERK>USD</WAERK>
<VBTYP>O</VBTYP>
</G8328_09B>
- <G8328_09B>
<VKORG>1000</VKORG>
<AUART>ZRE</AUART>
<XBLNR>0061651916</XBLNR>
<VBELN>0010790093</VBELN>
<NETWR>37.37</NETWR>
<WAERK>USD</WAERK>
<VBTYP>O</VBTYP>
</G8328_09B>
</ns:G8320_09BMessageType>
</ns:G8328_09B_Document>
Payload gernerated from the Test tool:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:G8328_09B_Document xmlns:ns0="http://nike.com/DEYTEL/RFCToJDBCInterface">
<ns0:G8328_09BMessageType>
<G8328_09B>
<VKORG>1000</VKORG>
<AUART>ZG2</AUART>
<XBLNR>0061623534</XBLNR>
<VBELN>0010790092</VBELN>
<NETWR>178.99</NETWR>
<WAERK>USD</WAERK>
<VBTYP>O</VBTYP>
</G8328_09B>
- <G8328_09B>
<VKORG>1000</VKORG>
<AUART>ZRE</AUART>
<XBLNR>0061651916</XBLNR>
<VBELN>0010790093</VBELN>
<NETWR>37.37</NETWR>
<WAERK>USD</WAERK>
<VBTYP>O</VBTYP>
</G8328_09B>
</ns0:G8328_09BMessageType>
</ns0:G8328_09B_Document>
The test tool mapping I remove the ns and replaced it with ns0.
Thanks for any help.
Arjun.Hi Arjun,
A few points....
1. Namespace prefix being different does not cause mapping errors.
2. In your case, note the name space <b>xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface"</b> missing in XML generated
using IR.
3. The difference in Msg type names. After FCC it is G832<b>0</b>_09BMessageType where as in test tool it is G832<b>8</b>_09BMessageType.
Correct points 2 and 3, your issue will be solved.
Regards,
Jai Shankar -
Regarding file content conversion in Sender File channel
Hi all,
In one of my requirement, one file contains several details records as given below,
101,india,1001,albert,517193
101,india,1002,hilbert,517193
101,india,1003,robert,517193
102,nepal,1004,kiran,9234334
102,nepal,1008,kiran,9234334
102,nepal,1003,kiran,9234334
103,nepal,1004,kiran,9234334
103,nepal,1008,kiran,9234334
103,nepal,1003,kiran,9234334
i want to send all the records which starts with 101 to one function module and all records which starts with 102 to another function module and all records which start with 103 to some other function module. In my sender channel i am planning to use
101, 102, 103 as key field values to read them into 3 different structures.
like Recordsset structure = detail1,, detail2,,detail3,*.
Details1.keyfieldvalue = 101
Details2.keyfieldvalue = 102
Details3.keyfieldvalue = 103
Will this idea work out??
Thanks,
BaluHi Balu,
Yes u r correct, u can access the records by setting the key field value as u mentioned.
But other way is also by,
access the all records as similar one, so no key field value.
the whole record as a single element.In the mapping u have a string function called StartsWith.
In mapping u can specify if the incoming record starts with 101 then map it to FM1(Fumction Module 1).
If the record starts with 102 map it to FM2......
This will be very simpler i feel...
If i am nt clear pl do post the problem in detail.
Babu -
File Content Conversion for Sender Channel
Hi Experts,
We are using SAP - PI 7.11 system. We have a scenario where we wld be getting 7-8 records and the record structure repeats n no.of times in a flat-file and while converting the Flat -File data into XML data we are facing an issue , explained below with an example :
HEADER : KeyField , f2, f3, f4, f5, f6, f7, f8
RECORD1 : f1, f2, KeyField , f3, f4, f5, f6, f7 , f8
RECORD2 : f1, f2, f3, f4, KeyField, f5, f6, f7, f8
TRAILER : keyField, f1, f2, f3, f4,f5, f6, f7, f8.
Its a fixed length flat - flie. Now the problem is : we have KeyField Value for RECORD1 as '0' and when the f3 of TRAILER is '0' the record is getting formed as RECORD1 instead TRAILER even i get proper keyField value for TRAILER RECORD. Could you please tell me why its happenning so ? And please provide the solution for this. I have used all the parameters like : fieldNames, fieldfixedLengths, keyFieldValue, endSeparator and ignoreRecordsetname and lastFieldOptional and fromConfiguration.
But still i am not able to get the proper XML out of this flat - file. Could you please suggest any solution for this asap.
Thanks & Best Regards,
LakshmanMost of the configuration seems fine,
Just validate your configuration against below configuration, which is working fine for me,
Recordset Structure : HEADER, 1, RECORD1, ,RECORD2,,TRAILER,1
Recordset Sequence : Ascending
Recordsets per message : *
Key Field Name : recid
Key Field type : string
HEADER.fieldFixedLengths *********************
HEADER.endSeparator 'nl'
HEADER.fieldNames ************************
HEADER.keyFieldValue 01
HEADER.keyFieldlnStructure add
HEADER.lastFieldsOptional YES
-santosh. -
Question on FCC(file content conversion)
My input structure is
Header>
<FileFormat>ewr</FileFormat>
<Category>rfsd</Category>
<Period>sdf</Period>
<Entity>sfd</Entity>
<date>sf</date>
<LineItems>
<ICM_MatchingGroup>sf</ICM_MatchingGroup>
<ICM_MatchingAccount>sf</ICM_MatchingAccount>
<Partner>fs</Partner>
<Amount>s</Amount>
<Currency>sf</Currency>
</LineItems>
</Header>
<CompanyCode>
<CompanyCodeValue>sf</CompanyCodeValue>
</CompanyCode>
My reqirement is :company code should not fetced to output structure
IN FCC if m putting Header,LineItems,CompanyCode all the thing s in record structure .its fetching all the values in comma separeted structure.but i dont want to display company code in output structure.so please let me know how i will do this oneHi,
1. Do not map the Company code to the target structure. By this way you dont need an FCC to remove it in the receiver side.
2. Or use the Following FCC.
CompanyCode.fieldFixedLengths = 0
CompanyCode.fixedLengthTooShortHandling = Cut
CompanyCode.endSeparator = '0'
Thanks
SaNv...
Maybe you are looking for
-
Service Disconnect for Late Bill Pay
VERIZON IS AMAZING!!!!!!!!!!!!!!!!!!! They are quick to disconnect you when you do not pay on time. I was hospitalizedand just got out yesterday. This morning my internet and TV were diconnected and I immediately paid the bill online (using my At&T
-
When I try to burn a CD I get error code 4261
I get the following error: Microsoft Windows XP Professional Service Pack 2 (Build 2600) Dell Inc. Dell DV051 iTunes 6.0.5.20 CD Driver 2.0.4.3 CD Driver DLL 2.0.3.2 LowerFilters: PxHelp20 (2.0.0.0), drvmcdb (1.0.0.1), sscdbhk5 (1.0.0.1), UpperFilter
-
Will adding more ram to my Macbook Pro make it faster?
So I have about mid-2010 Macbook Pro and after all these OS upgrades throughout the years (currently running OSX 10.9.5), it's starting to run annoying slow but still useable. My specs on this Macbook is a 2.4 GHz Intel Core 2 Duo processor and 4 GB
-
SoundCard Driver update not stick
Hi I currently have a problem with my Creative Audigy SB driver. I dont know how it got messed up but I dont have an Audio Mixer Device. I can hear some sounds but some run like on quicktime and some other programs dont run. After checking a few thin
-
I'm having trouble trying to figure out how to crop the video image, could anyone help please