Define attributes in Sender File Content Conversion
Hello everybody,
I have the following issue:
I have the next flat file:
0001;159;2008-04-03;Customer_2008-04-03.xml
0001;953;0;1;0
0002;2907;0;1;0
And I have to convert it to the next XML structure:
<DocumentsBatch id="0001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BatchInfo>
<SumDocumenten>159</SumDocumenten>
<date>2008-04-03</date>
<name>Customer_2008-04-03.xml></name>
</BatchInfo>
<Document id="0001">
<Customer>953</Customer>
<Portnumber>0</Portnumber>
<denied>1</denied>
<Port>0</Port>
</Document>
<Document id="0002">
<Customer>2907</Customer>
<Portnumber>0</Portnumber>
<denied>1</denied>
<Port>0</Port>
</Document>
My question is: Is it possible to define an attribute (e.g. id="0001" in <Document id="0001">) in File Content Conversion? If so, how can I do that?
Your answers will be rewarded with points.
Kind regards,
Kamran
Hi Kamran,
its not possible to define attribute in File Content conversion.Instead u can create one more field "id" under the segments DocumentsBatch, Document etc.
Thanks
Ritu
Similar Messages
-
Doubt regarding sender file content conversion
Hi Experts
This is my source XML structure, how to define Sender file adapter (Content Conversion) and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>Student</STUDENT>
<ID_TYPE>New</ID_TYPE>
<ID_NUMBER>12345</ID_NUMBER>
<VALID_FROM>12/03/2008</VALID_FROM>
<VALID_TO>13/04/2008</VALID_TO>
</IDENTIFICATION>
</ns0:IDENTIFICATION_ADD_Req_MT>
Please suggest me how to configure Sender file content conversion
Thanks
Dhanush.hi sekhar,
Just go through this blogs & links.
/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
reward points if found helpfull
regards
chandra.k -
Sender File Content Conversion. Pls suggest
Hi All,
I have to do the Sender File content conversion for the below file.
First Line is for Sender. Second Line is for Receiver. Third ,Fourth and Fifth lines are Invoice Numbers which can be more also.
The issue is coming that there is no Key Field defined for third ,fourth and Fifth line .
GB283032086 LANGFORD LODGE ENGINEERING
GB762702827 AIRBUS UK LIMITED
D58785 20030407 71.82
D58786 20030407 49.10
D58787 20030407 49.10
Pls let me know how will I do Sender File content conversion (to make it in XML) form.
RegardsHi Rachit,
In that case you can use temporary source structure to hold contents from the source flat file and using FCC you split the content by 'nl' and store it in one node (For rg:-<SDATA>) then using mapping you can map that to original source structure and then to target structure, here you need to use intermediate mapping (i.e two mappings) to archive the target structure.
Temp source structure
<SDATA>GB283032086 LANGFORD LODGE ENGINEERING </SDATA>
<SDATA> GB762702827 AIRBUS UK LIMITED </SDATA>
<SDATA>D58785 20030407 71.82 </SDATA>
<SDATA>D58786 20030407 49.10 </SDATA>
<SDATA>D58787 20030407 49.10 </SDATA>
Map the above to the actual source structure and the to target, hope it helps you to overcome your problem
[FCC for unequal entries|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/2740]
[Key field problem|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/3228]
Regards,
Prasanna
Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:14 AM
Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:17 AM -
Need Help in Sender File Content Conversion
Hi All,
I request your expert advice on Sender File content Conversion. I need to process the below pasted file. I was able to achieve this by keeping a offset of 6 in Sender PI File Adapter (PI 7.1) to ignore first 6 lines and used a Unix script to remove last line"END OF REPORT".
Now my new requirement is I need to capture the date "DECEMBER 2009" from line 3. How can I do this. I have set offset as 6 so Adapter will start processing from line 7. If I don't set offset Interface fails. Please suggest. Thank you.
ABC LAB XYZ LIMITED"
TRIAL BALANCE"
FOR THE PERIOD ENDED DECEMBER 2009"
"TEST Bank","101000",-1589365.58,0.00,738295.08,0.00
"TEST Bank Clearing A/c","101200",0.00,0.00,14848018.55,0.00
"TEST Bank Sweeps","101250",104315957.19,0.00,7571985482.08,0.00
"TEST Receipts","101260",0.00,0.00,19788596.15,0.00
"TEST Corporate Deposits","101270",-7776629.87,0.00,-135914980.50,0.00
"SHARES","00SH",0.00,0.00,-7869890086.22,0.00
"END OF REPORT"Dear Phani,
Please go through the below blogs:
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
Thanks,
Satya -
Sender File Content Conversion with headerline
Hi,
Is it possible to do via the sender file content conversion in the file adaptor for the following flat file?
Inbound flatfile format:-
FILEHEADER
HEADER1
DETAILS1
DETAILS2
DETAILS3
HEADER2
DETAILS1
DETAILS2
DETAILS3
Target XML file format:-
<XML>
<FILEHEADER></FILEHEADER> occurrence 1
<RECORDSET> occurence *
<HEADER></HEADER> occurence 1
<DETAILS></DETAILS> occurence *
</RECORDSET>
</XML>
Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 10:52 AMI've read through all the blogs, and have no leads on how to get this done?
I tried putting the following into the recordset. FileHeader, 1, Header, 1, Details, *
But it does'nt seem to work, the above is expecting the Fileheader and header to be repeated in the file to be sent.
My file is in the following format.
Fileheader
Header1
Details1
Details2
Details3
Header2
Details1
Details2
Details3
I need the following XML format
<XML>
<Fileheader>
<invoice>
<header1>
<details1>
<details2>
<details3>
</header1>
</invoice>
<invoice>
<header2>
<details1>
<details2>
<details3>
</header2>
</invoice>
</XML>
Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 5:34 PM -
XML file conversion after sender file content conversion
Hi,
I have issue refarding file content conversion.
My input structure is
<MT_RCICrecords>
<TRNH>
<RCIC>
<RECH>
<RECL>
<RCIC>
<TRNH>
Afetr sender File content conversion (csv to xml) it produces xml file as below (since file conversion does not support 3rd level of hierarchy)
<TRNH>
<RECH>
</RECH>
<RECL>
</RECL>
</TRNH>
It does not recognize RCIC.
Now i am trying to map this to IDOC and getting error as
'MT_RCICRecords tag found instead of IDOC BEGIN ='.
CAn anyone suggest me how to chaage this xml output after File content conversion to add RCIC tag in xml file?
I am new to XI so please give me some sample code to.
Thanks.
Yashpal
Its urgent!My problem is xml generated from content conversion is like below
<MT_RCICrecords>
<TRNH></TRNH>
<RECH></RECH>
<RECL></RECL>
<TRLR></TRLR>
</MT_RCICrecords>
and i want it to be
<MT_RCICrecords>
<TRNH></TRNH>
<RCIC>
<RECH></RECH>
<RECL></RECL>
</RCIC>
<TRLR></TRLR>
</MT_RCICrecords>
which is not happening
My input message structure is
MT_RCICrecords
TRNH
RCIC
RECH
RECL
i hope it is clear now
TRLR -
Sender File Content Conversion Complexity
It is again time to dip into the well of knowledge that is SDN.
I have a question about sender file content conversion.
It appears that I can only create simple XML structures with it, but I'm hoping someone here can help.
Lets says I have a file where each record layout is the same. There are not header records, trailer records, etc. Basically only one structure within the recordset.
However the record itself may have a complicated structure. For example, the layout of each record may be:
String1, String2, String3, Array(0:3) consisting of String4, String5, String6.
Can I convert that to a structure of
<Node>
<string1>
<string2>
<string3>
<array>
<string4>
<string5>
<string6>
<array>
<string4>
<string5>
<string6>
</Node>
Or must I create a DT containing one node giving string4,5 and 6 a unique name for each occurance?
Thanks in advance.Hi,
You can go with generic structure and then either in the adapter module or Mapping, you can format the structure. Because content conversion has a limitation to upto one level.
check this for limitation-
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
check this for generic structure-
/people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
Rgds,
Moorthy -
Problem with Sender File Content conversion
Hi everybody,
I have a flat file with the following structure:
PR1xxxx
CL1.1xxx
ALxxx
PTxxx
PTxxx
PTxxx
CL1.2xxx
ALxxx
PTxxx
PTxxx
Cl1.3xxx
PR2xxx
CL2.1
Alxxx
PTxxx
Ptxxx
CL2.2xxx
ALxxx
PR3xxx
I need to send an IDOC (ORDERS05) per CL and I also need that the PR goes together with the CL.
Something like that:
IDOC 1
PR1xxx
CL1.1xxx
ALxxx
PTxxx
PTxxx
PTxxx
IDOC 2
PR1xxx
CL1.2xxx
ALxxx
PTxxx
PTxxx
IODC 3
PR2xxx
CL2.1xxx
The problem is that I am not able to attach the PR with each CL because the PR is written once at the beginning.
I have tested all the posibilities in the content conversion area but I don`t find the way to achiveve that.
Maybe, Have I to do something in the mapping program?
Nested substructures are possible in the File Content Conversion?
Any idea?
Thanks for everythingWe can handle this in mapping as follows
Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Lets say "T" to your CL node.
This sub element will be used to remember CL node belongs to which PR node.
Map your Input structure to Intermediate structure.
While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
Integer ii;
GlobalContainer g;
g=container.getGlobalContainer();
Object o= g.getParameter("_&HLID");
if (o==null) ii=new Integer(0);
else
ii =(Integer)o;
ii =new Integer(ii.intValue()+1);
g.setParameter("_&HLID",ii);
Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
GlobalContainer g;
g=container.getGlobalContainer();
Object o= g.getParameter("_&HLID");return o.toString();
For all other fields just do a 1:1 mapping.
Then
Map your intermediate structure to destination structure (IDOC)
Here the only catch is:
For populating the value of PR for each CL
Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
In array a we have the value of T
In array b we have the value of element of PR
int j=0;
for(int k=0;k<b.length;k++){
for (int i=0;i<a.length;i++)
if (a<i>.equals(new Integer(j+1).toString())){
System.out.println(b[j]);
j=j+1;
Hope this takes care of your problem.
If you don't get anything please get back to me.
Abinash -
Sender File Content Conversion
I am using the file content conversion in sender file adapter with fieldFixedLengths parameter in recordset structure. This work fine when the columns in row is exactly with the length set in the parameter recordset. But in same cases, the row in the file has less columns, which occurs errors. If I use the parameter fixedLengthTooShortHandling usage by the receiver file adapter, will it work for the file sender?
Hi Elton,
The parameter fixedLengthTooShortHandling is not a part of the Sender File Adapter's content conversion paramteters, So i guess it will not work for the sender file adapter.
I would suggest that you try it anyways, and if it does work, then it means that this field has been forgotten in the help documentation
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards,
Bhavesh -
Sender File Content Conversion with re-occuring record pairs
Hi,
Our FCC works fine with the following structure:
Header1: H1F1, H1F2, H1F3,... (1:1)
Header2: H2F1,H2F2,H2F3,..... (1:1)
Notes: NF1,NF2,NF3,.............(1:1)
Line1:L1F1,L1F2,L1F3,.............(1:N)
Line1:L1F1,L1F2,L1F3,
Line1:L1F1,L1F2,L1F3,
Line1:L1F1,L1F2,L1F3
Line2:L2F1,L2F2,L2F3,............(1:N)
Line2:L2F1,L2F2,L2F3,
Line2:L2F1,L2F2,L2F3,
Line2:L2F1,L2F2,L2F3,
But we have structure as below:
Header1: H1F1, H1F2, H1F3,... (1:1)
Header2: H2F1,H2F2,H2F3,..... (1:1)
Notes: NF1,NF2,NF3,.............(1:1)
Line1:L1F1,L1F2,L1F3,.............(1:N)
Line2:L2F1,L2F2,L2F3,.............(1:N)
Line1:L1F1,L1F2,L1F3,
Line2:L2F1,L2F2,L2F3,
Line1:L1F1,L1F2,L1F3,
Line2:L2F1,L2F2,L2F3,
Line1:L1F1,L1F2,L1F3,
Line2:L2F1,L2F2,L2F3,
Lin1 and Line2 occur as multiple pairs making it as multiple line items. When we use content conversion parameters as below:
Header1.fieldNames H1F1,H1F2,H1F2,...
Header1.fieldFixedLengths 10,5,10,.....
Header1.keyFieldValue H1
Header1.keyFieldInStructure add
Header1.endSeparator 'nl'
Header1.lastFieldsOptional YES
and same for Header2, Notes, Line1, Line2
It picks up only first Header1, Header2, Notes, Line1 and Line2 in a recordset.
Does anyone have idea how could we do this content conversion? Any help would be appreciated.
Reagrds,
N@v!nHi Navin,
You can check the below links :-
Complex File Content Conversion - with random multiple occurrences
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
Complex content conversion File sender
These might be of some help.
Regards,
Rohit -
Hi Question about Sender File Content Conversion
Hi All,
I have a flat file i need convert that flat file to the below XML format using File content Conversion, can anybody help me on this with example File content Convertion parameters
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_FileSend xmlns:ns0="http://test">
<Recordset>
<Contact>
<Name>ABC</Name>
<Number>123</Number>
<Address>
<HouseNumber>246789</HouseNumber>
<StreetNumber>100</StreetNumber>
<Phone>
<Mobile>90000000</Mobile>
<LandLine>12345678</LandLine>
</Phone>
</Address>
<Email>
<Office></Office>
<Personal></Personal>
</Email>
</Contact>
</Recordset>
</ns0:MT_FileSend>Hi Sudheer reddy,
Good question.
File content conversion parameters are:
1) Doccument Name: Doccument name is nothing but message type name for file side: MT_FileSend
2) Doccument Namespace: mention the name space for the message type.
3) Doccument Offset: for which row and which coloumn doccument has to be write.
4) recordset name: mention the record set name: Recordset
5) Recordset Namespace: if the namespace is different for message type name space mention name space or otherwise it is blank.
6) Recordset Structure: Mention the structure name
7) Recordset Sequence: mention the sequence of the recordset Ascending or Decending
8) Recordset permessage: Would define no of record sets per message.
9) Key-field name: to query to the doccument
10) Key field type: string(Case-senstive)
fieldValues
fieldSeparator
endSeparator
Note: pls check in SDN about file content conversions it so many blogs are available, u can easily understand.
Regards,
Sateesh -
Error in Sender File content Conversion - how to ignore keyfieldName
Dear Frndz,
I'm new to SAP PI. I want to post a flat file to ECC.
The Souce Structure is:
Record(1-unbounded)
|_Header(1.1)
field1
field2
field3
|_Detail(1.unbounded0
field4
field5
field6
Sample File:
first header - xx,yy,zz
Detail 1 - 1,b,c
Detail 2 - 2,e,f
second header - aa,bb,cc
Detail 1 - 1,g,d
I wrote the file content conversion as follows
Recordset name - Record
Recordset Structure - Header,1,Detail,*
Header.fieldNames field1,field2,field3
Header.feldseparator ,
Header.endseparator 'nl'
Detail.fieldNames field4,field5,field6
Detail.fieldseparator ,
Detail.endseparator 'nl'
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
It's asking me to give the input to keyfieldname. But I dont have such field in my record. Ther's no common field . no field is repeating like record type or doc_type as in other cases.
So, Coud you please guide me to proceed with this.
Thanks in advance.....Hi,
Please, take a look to these Blogs related to FCC
Troubleshooting the File Adapter (Last Updated on 02 July'10)
Content Conversion (Pattern/Random content in input file)
File Content Conversion for Unequal Number of Columns
The specified item was not found.
Content Conversion ( The Key Field Problem )
NAB the TAB (File Adapter)
Rgds
RP-. -
Sender File Content Conversion Issue
Hi guys,
I´m trying to convert a flat file into a xml structure using FCC. The flat file looks like:
G220520102205201003062010
D824000 006500015010000000000000GPDME 4521005 LP00
D351023 006500015010000000000000GPDME 4521005 LP00
D523000 006500015010000000000010GPDME 4521005 LP00
G220520102205201003062010
D824000 006500012510000002442490GPDME 4521005 LP00
D351023 006500012510000000049530GPDME 4521005 LP00
D523000 006500012510000000517790GPDME 4521005 LP00
G220520102305201003062010
D824000 006500012510000000025240GPDME 4521005 LP00
I´ve created the following DT:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap.com" targetNamespace="urn:sap.com">
<xsd:complexType name="DT_PRODUCTS_OUT">
<xsd:sequence>
<xsd:element name="RECORDS" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="REG_TYPE" type="xsd:string"></xsd:element>
<xsd:element name="PSTNG_DATE" type="xsd:string"></xsd:element>
<xsd:element name="DOC_DATE" type="xsd:string"></xsd:element>
<xsd:element name="FECINT" type="xsd:string"></xsd:element>
<xsd:element name="DETAIL" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="REG_TYPE" type="xsd:string"></xsd:element>
<xsd:element name="MATERIAL" type="xsd:string"></xsd:element>
<xsd:element name="PLANT" type="xsd:string"></xsd:element>
<xsd:element name="STGE_LOC" type="xsd:string"></xsd:element>
<xsd:element name="MOVE_TYPE" type="xsd:string"></xsd:element>
<xsd:element name="ENTRY_QNT" type="xsd:string"></xsd:element>
<xsd:element name="ENTRY_UOM" type="xsd:string"></xsd:element>
<xsd:element name="ITEM_TEXT" type="xsd:string"></xsd:element>
<xsd:element name="COSTCENTER" type="xsd:string"></xsd:element>
<xsd:element name="TR_PART_BA" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
As you can see the record DETAIL is nested to the record RECORDS. The point is that with the standard module of the FCC I can´t achieve my requirements, I only could get an XML structure like this:
<Recordset>
*<RECORDS>*
<REG_TYPE>G</REG_TYPE>
<PSTNG_DATE>22052010</PSTNG_DATE>
<DOC_DATE>22052010</DOC_DATE>
<FECINT>03062010</FECINT>
*</RECORDS>*
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>824000</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000000</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>351023</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000000</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>523000</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000010</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
</Recordset>
But it should look like this, with the records DETAIL inside RECORDS:
<Recordset>
+*<RECORDS>*+
<REG_TYPE>G</REG_TYPE>
<PSTNG_DATE>22052010</PSTNG_DATE>
<DOC_DATE>22052010</DOC_DATE>
<FECINT>03062010</FECINT>
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>824000</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000000</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>351023</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000000</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
*<DETAIL>*
<REG_TYPE>D</REG_TYPE>
<MATERIAL>523000</MATERIAL>
<PLANT>0065</PLANT>
<STGE_LOC>0001</STGE_LOC>
<MOVE_TYPE>501</MOVE_TYPE>
<ENTRY_QNT>0000000000010</ENTRY_QNT>
<ENTRY_UOM>GPD</ENTRY_UOM>
<ITEM_TEXT>ME</ITEM_TEXT>
<COSTCENTER>4521005</COSTCENTER>
<TR_PART_BA>LP00</TR_PART_BA>
*</DETAIL>*
+*<RECORDS>*+
</Recordset>
Any Idea how to achieve that with File Content Conversion?
Thanks in Advance,
Luis
Edited by: Luis Zarzo on Jun 14, 2010 1:22 PMSorry, I don´t know why my message format has been lost. Hopefully is a bit understandable. The point is that I want to achieve a structure like this:
What I´ve read is that this is not possible to achieve with File Content Conversion, but maybe there is a way.
Otherwise I would like to know if there is an easy way to make this using for example graphical or maybe java mapping.
Thanks a lot,
Luis -
Error sender file content conversion
HI all,
when an error occurs during the conversion of the file content in sender adapter the others files put in dicrectory is not processed.
I know that exists one parameter in Sender File Adapter that is possible to specify the directory to archive the file with error, but in what SP it is possible?
I have the XI SP15 and this feature is not present.
How I do to instruct the XI to process the nexts files?
thanks.From the Support Package Stack 10 of XI 70
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
From the Support Package Stack 19 of XI 30
http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
Good reason to upgrade.
Hope this help,
Regards
Sandro -
Problem when using keyfield in sender file content conversion
Hi all,
I am using FCC at sender side.
My recordset structure is as follow::
<MT_TW_TLOG>
<Transaction>
---<SalesItem> 1...unbounded
<XF_SOURCESYS>
<XF_STORECODE>
<XF_TYPE>
<XF_VOIDFLAG>
---</saleItem>
---<SalesReturn> 1...unbounded
<XF_SOURCESYS>
<XF_STORECODE>
<XF_TYPE>
<XF_VOIDFLAG>
---</saleReturn>
---<SalesTotal>
<XF_SOURCESYS>
<XF_STORECODE>
<XF_TYPE>
<XF_VOIDFLAG>
---</saleTotal>
---<SalesTender> 1...unbounded
<XF_SOURCESYS>
<XF_STORECODE>
<XF_TYPE>
<XF_VOIDFLAG>
---</saleTender>
</Transaction>
FCC specification that i have used is::
Recordset name:: Transaction
Recordset Structure:: salesItem,,salesReturn,,salesTotal,1,SalesTender,*
Recordset Sequencee::
Variable
Key field name::XF_TYPE
key fiel type::String(Case-sensitive)
then i have given following information::
salesItem.fieldnames ::all field names
salesItem.fieldSeparator::,
salesItem.keyFieldvalue::2
salesItem.processFiledNames::fromConfiguration
salesReturn.fieldnames ::all field names
salesReturn.fieldSeparator::,
salesReturn.keyFieldvalue::2
salesReturn.processFiledNames::fromConfiguration
salesTotal.fieldnames ::all field names
salesTotal.fieldSeparator::,
salesTotal.keyFieldvalue::2
salesTotal.processFiledNames::fromConfiguration
salesTender.fieldnames ::all field names
salesTender.fieldSeparator::,
salesTender.keyFieldvalue::2
salesTender.processFiledNames::fromConfiguration
My source file is a text file.
So when i am transfering following data,
scenario works fine.
PCTW,TWS001,2,1
PCTW,TWS001,2,10
PCTW,TWS001,3,2
PCTW,TWS001,1,3
PCTW,TWS001,4,4
Third field is my XF_TYPE.
But if i change the order of records as follows::
PCTW,TWS001,3,1
PCTW,TWS001,3,10
PCTW,TWS001,2,2
PCTW,TWS001,1,3
PCTW,TWS001,4,4
It fails at adaper monitor and throws following error::
2006-11-01 10:42:00 UTC: Error: Conversion of complete file content of 'try.txt' to XML format failed around position 0: Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'SalesItem'
Please provide some help on it.
Thanks & Regards,
NilimaHi Nilima,
Just go through this Weblog.
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
and specially the hilighted ( circled text ) in this and its description below.
Hope this will be helpful
Reward if helpful.
Regards
Sachin
Maybe you are looking for
-
"Cannot update iPod because the selected playlists no longer exist"
That is an error message I'm now getting. My iPod is erased but iTunes works fine. How do I fix this? (I've already restored all settings, updated, software, etc.) HP Windows XP
-
Bridge(CS3) conflict with Windows file explorer
Bridge will crash on me at least twice a day. I use Bridge and Windows file explorer simultaneously copying and moving files across a network. When Bridge quits I sometimes lose my network connection and have a lot of trouble re-connecting. I have do
-
What is better, OSX Cocktail or OnyX?
What program does everyone see as better for imac maintenance? Are there better one's out there for this purpose? If Cocktail is that much better I'm figuring the 15 bucks is probably worth it...
-
I have written an application with Visual Basic .net, I use 2 tasks simultaneously, the first one is for capturing data with the class AnalogUnscaledReader and the second task is to write this data using the class AnalogUnscaledWriter. The system is
-
My weight loss website is not working in Mozila 11?
I have http://www.garciniacambogiainmalaysia.com and this is not open with correct layout in mozila 11. can you please tell me what is the reasons?