Help to Receiver Content Conversion
Hi, i am facing IDoc2File Scenaio.
This file should be a .txt and only should have six numbers.
Incoming is an IDoc with the payload:
<ZPP_EDI_TAFEL SEGMENT="1">
<TAFNR>1</TAFNR>
<DATEI>ERGB.TXT</DATEI>
<TAFIST>014</TAFIST>
<TAFSOLL>020</TAFSOLL>
</ZPP_EDI_TAFEL>
This should be converted into a flat file with content of teh values from TAFNR and TAFIST. It should look like: 014020
I am trying to achieve this with the Content Conversion in the ReceiverAdapter.
in ID is the message type:
MT_Tafel
-Tafel_recordset
--Tafel_Details_Structure
---TAFIST
---TAFSOLL
In my understanding it's like recordset Structure is: Tafel_Details_Structure
So my Parameters look like:
Tafel_Details_Structure.fieldSeperator = ,
Tafel_Details_Structure.endSeperator = 'nl'
Tafel_Details_Structure.fieldNames = TAFIST,TAFSOLL
funny thing is, that after sending the IDoc the txt file contains:
<ns0:MT_Tafel xmlns:ns0="http://www.ips.com/jsn/HatzIDoc">
<SEGMENT>1</SEGMENT>
<TAFNR>1</TAFNR>
<DATEI>ERGB.TXT</DATEI>
<TAFIST>014</TAFIST>
<TAFSOLL>020</TAFSOLL>
</ns0:MT_Tafel>
So there is no content conversion at all. Can someone help?!
br, Jens
Hi Vijaya,
acttually i read everything about it, but i am not able to figure out what i have done wrong.
Can u please help me?!
> Hi,
> Plz go thru the following blogs, these may help u:
>
> receiver adapter:
> 1)http://help.sap.com/saphelp_erp2005vp/helpdata/en/d2
> /bab440c97f3716e10000000a155106/content.htm
> 2)
> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg
> 1312
> 3)
> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/
> 1345
>
>
> regards
Similar Messages
-
Complex file receiver content conversion
Hi
My challenge is to change this xml structure to a flat file structure using content conversion in a file receiver adapter. My problem is, that I have a record within a record and both records can occur multiple times:
<statusUpdate_response>
<ProcessID/>
<SenderSystem/>
<Results>
<ResultList> (0..unbound)
<OKKode/>
<Reference/>
<Result/>
<ResultDetail> (0..unbound)
<TYPE/>
<ID/>
<NUMBER/>
</ResultDetail>
</ResultList>
</Results>
</statusUpdate_response>
Any suggestions?
Maybe some sort of xml flattener before doing the content conversion would do the trick, but then again how is that to be done?
BR MIkaela small trick might help - /people/shabarish.vijayakumar/blog/2010/01/14/file-conversion-using-nodeception
Also do read - /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts -
Problem in Receiver content conversion
Hi All,
I have idoc to flat file, where my reciever is flatfile.
I have a strucutre like below
Header-1.1
Item..1..unbounded.
footer..1..1,
As i am using PI 7.0 , my requirement is to repeat the item segment multiple times.
I am using fixedlengths, to achieve this i have followed like below.
RecordsetStrcture: Header,Item,Footer
Header.fieldFixedLengths:
Header.endSeparator:'nl'
same as for Item,footer..if i am using the above one i could not able to achieve to generate the item segment multiple times.if i give the item,*..it is throwing exception.
Can any one tell...how to achieve the requirement to generate teh item field multiple times.?
Regards,
Sekhar
can you any one tell me ..how do i mention item segment is occuring multiple times in the reciever content conversion.If only one segment is comming then the scenario is working but if the item segment is comming with multiple times, it is throwing error.
Can any one let me know how do we achieve this.
Regards,
Chandu.Hi Chandu,
See this Thread Nested structur for receiver file content conversion
Here see the reply given by Arpit Seth . It is the same problem .
This is the exact solution to your Problem.
I think this is very helpful to you.
And Please gothrough this Blog... /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
Thanks. -
Help required File Content Conversion.
Hi All,
Kindly help me in this topic i.e. File Content Conversion.
- What is File Content Conversion?
- Is knowledge of any programming language required?
- What is its function?
- How do I use it?
Thanks in Advance.
Regards,
Sreedhar, AvHi Sreedhar,
Reward points if this helps
What is File Content Conversion?
File content conversion is used for converting flat files (fixed lenght, comma seperated) into XML messages for further processing by an integration engine. The internal XI processing (mapping, routing etc) is based on XML messages hence you need messages to be converted to XML.
SAP By default understands xml data structure. If your file is coming in an xml format you can process it as it is.
In case of file that is coming with a delimiter then you need to have File content conversion for SAP adpater to conver file into an XML structure which will then go to next step of Message Mapping.
Is knowledge of any programming language required?
No
What is its function?
Check these blogs for content conversion,
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
*How do I use it? *
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Reward points if this helps
Regards
Pragathi. -
Hi All,
I got below error while working with receiver file content conversion scenario.
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '2350' too long (>2 for 3. column) - must stop', probably configuration error in file adapter (XML parser error)'.
I have checked length and source element existence. Both are ok.. I have mapped multiple source elements and contstant values to one target element (The one which is getting error). All source elements are existed. Why am I getting the error?
Thanks inadvance.
Best Regards,
Ashok.Hi,
Below is the output xml data...
<BGR00>
<STYPE>0</STYPE>
<GROUP>2350RFFP2020</GROUP>
<MANDT>590</MANDT>
<USNAM>SAPBATCH1234</USNAM>
<START>12345678</START>
<XKEEP>1</XKEEP>
<NODATA>/</NODATA>
</BGR00>
Error is:
Column value '2350' too long (>2 for 3. column) - must stop', probably
configuration error in file adapter (XML parser error)'
GROUP is the 2nd column. But it is displaying error in 3rd column with GROUP data.. Does system considers BGR00(node) as a column?
Regards,
Ashok. -
FIle Adapter Receiver - Content Conversion
I have a xml file as below that I am trying to convert to a simple csv file. All I get is a blank csv file at the ouptput. I tried different setting for the file conversion in the reveiver file adapter. No luck yet. I could write to an output XML file with no problem, so my interface is working!
The SAP Help doesn't provide much info on this. Your help is highly appreciated.
Thnaks.
?xml version="1.0" encoding="UTF-8" ?>
- <ns:PlantMaintenanceMessageType xmlns:ns="http://cs.par/demo/plantmaintenance">
<EquipmentID>10005661</EquipmentID>
<FunctionalLocation>KB</FunctionalLocation>
<Date />
<Time />
</ns:PlantMaintenanceMessageType>What is your root node ?
For your content conversion you need to specify the Recordset Structure but in your case i dont find an entry for the same.
If your XML had an extra tag like
xml version="1.0" encoding="UTF-8" ?>
- <ns:PlantMaintenanceMessageType xmlns:ns="http://cs.par/demo/plantmaintenance">
<b><details></b>
<EquipmentID>10005661</EquipmentID>
<FunctionalLocation>KB</FunctionalLocation>
<Date />
<Time />
<b></details></b></ns:PlantMaintenanceMessageType>
then your record set structure wud be details
and in you content conversion parameters you cud say
details.fieldSeparator -> ,
details.endSeparator 'nl'
I guess you are on sp13 or above hence there even if you content conversion fails a blank file will be created (thats what i have experienced).
Reagrds,
ShaBZ -
Need help in file content conversion complex structure
Hi Guys ,
Iam new to this file content conversion , Please let me know whether below requirement is possible .if yes than how ?
Inbound XML file from Proxy
<Data>
<keyfield1>0011</keyfield1>
<keyfield2>0012</keyfield2>
<Keyfield3>0013</Keyfield3>
<field1>Test1</field1>
<field2>testfield1</field2>
<field3>0001</field3>
<Data>
<keyfield1>0021</keyfield1>
<keyfield2>0022</keyfield2>
<Keyfield3>0023</Keyfield3>
<field1>Test2</field1>
<field2>testfield2</field2>
<field3>0002</field3>
output pgp flat file .
pgp file format should be as below after file content conversion
0011|0012|0013|Test1||||||
0011|0012|0013|Testfield1||||||
0011|0012|0013|0001||||||
0021|0022|0023|Test2||||||
0011|0012|0013|Testfield2||||||
0011|0012|0013|0002||||||
thanks a lot .
Regards
PrabhuHi.
Try this.
First you need to use a message mapping and create a target structure to convert a similar output structure that do you want. like this
<Target>
-- Field1
-- Field2
-- Field3
-- Field4
-- Field5
-- Field6
-- Field7
-- Field8
-- Field9
</Target>.
Then map
keyfield1-> Field 1 ,keyfield2-> Field 2 , keyfield 3---> Field 3
map field1-> field4 .. for the others fields duplicate the Target node (right click) and map map field2-> field5 ..etc.
For the field 5 until field 9 map with constant ("'')
Then in you receiver comunication channel put simple parameters.
Target.fieldSeparator = |
Target.endSeparator = 'nl'
Regards. -
File Receiver Content Conversion
I have the following XML:
<n0:CostCentreServiceCreateRequest>
<n0:ESB_Header>
<MessageId>4E77E43F-1D1D-0096-E100-8000AC182411</MessageId>
<Timestamp>2011-09-19T14:00:00Z</Timestamp>
<SourceSystem>SAP</SourceSystem>
<TargetSystem>MDS</TargetSystem>
<ActionType>CostCentreServiceCreateRequest</ActionType>
</n0:ESB_Header>
<n0:CostCentre>
<Record>
<Cost_Centre>0010100010</Cost_Centre>
<Valid_From_Date>1900-07-01</Valid_From_Date>
<Valid_To_Date>9999-12-31</Valid_To_Date>
<General_Name>Edu and Train Access</General_Name>
<Description>Education and Training Access</Description>
<Person_Responsible>Shala Karan</Person_Responsible>
<Department>ErlyChld Prg</Department>
<Cost_Center_Category>1</Cost_Center_Category>
<Company_Code>1010</Company_Code>
<Currency_Key>AUD</Currency_Key>
<Costing_Sheet>Z00001</Costing_Sheet>
</Record>
</n0:CostCentre>
</n0:CostCentreServiceCreateRequest>
I want to write it to a CSV file. However, I only want to write the values in the <Record> element and ignore everything else. Is this possible? At the moment, in my content conversion, I have Record entered in the Recordset Structure field. In the details below that I am setting the Record.addHeaderLine, Record.headerLine, Record.fieldSeparator, and Record.endSeparator attributes.
However, what this generates is the following:
CODE,NAME,vaild_to_date,vaild_from_date,description,person_responsible,department,category,company_code,currency,actual_primary_posting_locked_flag,actual_revenu_posting_locked_flag,costing_sheet
4E77DA9E-8943-0099-E100-8000AC182411|2011-09-19T14:00:00Z|SAP|MDS|CostCentreServiceCreateRequest
0010100010
It includes the <n0:ESB_Header> values (which I dont want) and only the first value of <Record>.
Ideally the output would look like this:
CODE|NAME|vaild_to_date|vaild_from_date|description|person_responsible|department|category|company_code|currency|actual_primary_posting_locked_flag|actual_revenu_posting_locked_flag|costing_sheet
0010100010|Edu and Train Access|1900-07-01|9999-12-31|Education and Training Access|Shala Karan|ErlyChld Prg|1|1010|AUD|Z00001
Notice also that the Header is pipe delimited. Is there anyway to set this? So far I can only get the header to be comma delimited.
Thanks,
KrishneelI want to write it to a CSV file. However, I only want to write the values in the <Record> element and ignore everything else. Is this possible?
Yes its possible. Rest all configuration seems to be fine. Refer the following link.
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm
Try to refresh cache as well. It might be taking old configuration.
Regards
Raj -
File receiver content conversion fields attributes
hi,
i am trying to use file adapter to write this xml to flat file but all attributes of the fields are not written to file ( only elements are written).
the xml file is:
<?xml version="1.0" encoding="utf-8"?>
<n0:MT_Mits_Claims xmlns:prx="urn:sap.com:proxy:DE1:/1SAI/TAS6EAA2B8AB4A5D2DA4145:700:2008/06/25" xmlns:n0="http://colmobil.com/wty/1162/claims_to_manufacturer/mits/">
<Header>
<File_ID>GDM001</File_ID>
<Dist_Code>KS</Dist_Code>
<Header_Code>H1</Header_Code>
<File_Descr>CLAIM RESULT DATA</File_Descr>
<Total_Records>0000008</Total_Records>
<Filler/>
<Filename>GDM0010812100016.DAT</Filename>
</Header>
<Details>
<Header_EA File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="2110" Seq_No="0902" Sub_Seq_No="" Page_ID="01" Line_ID="EA" Claim_Type="P" Division="" RFC_Seq_No="" Filler=""/>
<Header_HA File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="2110" Seq_No="0902" Page_ID="01" Line_ID="HA" VIN="VIN260" Faliure_Date="200810" Odometer_Reading=" 1204" Sold_Date="080820"/>
<Header_HB File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="2110" Seq_No="0902" Sub_Seq_No="" Page_ID="01" Line_ID="HB" Position_Code="111221" A_Code="12" B_Code="03" C_Code="1" Ref_Code="" Manual_Control="" Comment_Code="" Ratio_Labor="" Ratio_Parts="" Manuf_Code="" Filler=""/>
<Details_LA_LE File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="2110" Seq_No="0902" Sub_Seq_No="" Page_ID="01" Line_ID="LA" Labor_Pos_Code="" Work_Code="99" Qty="10" Amount="" Ratio="" Comment_Code="" Factory="" Filler=""/>
<Details_LA_LE File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="2110" Seq_No="0902" Sub_Seq_No="" Page_ID="01" Line_ID="LA" Labor_Pos_Code="231110" Work_Code="10" Qty="01" Amount="" Ratio="" Comment_Code="" Factory="" Filler=""/>
<Details_PA_PK File_ID="GDM001" Dist_Code1="KS" Detail_Code="D1" Domestic_Export="E" Dist_Code2="KS" Dealer_Code="0211" Seq_No="0902" Sub_Seq_No="" Page_ID="01" Line_ID="PA" Parts_No="" Qty="01" Faliure_Origin="X" Price="0050000" Ratio="" Comment_Code="" Factory="" Filler=""/>
<Total_Claim_Lines>6</Total_Claim_Lines>
</Details>
<Trailer>
<File_ID>GEE</File_ID>
<Dist_Code>KS</Dist_Code>
<trailer_Code>E1</trailer_Code>
<End_Code>END</End_Code>
<Filler/>
</Trailer>
</n0:MT_Mits_Claims>
the content conversion paramters are:
Header.addHeaderLine 0
Header.fieldFixedLengths 6,4,2,30,7,31,0
Header.fixedLengthTooShortHandling Cut
Details.addHeaderLine 0
Details.fieldSeparator 'nl'
Trailer.addHeaderLine 0
Trailer.fieldFixedLengths 3,4,2,3,65
the output file that i get is:
GDM001KS H1CLAIM RESULT DATA 0000008
6
GEEKS E1END
What i need to do to get attributes in file?
Thanks
TomerHi
Assuming the scenario you are trying to implement is XML file to Flat file. You need to map the input structure including attributes to the flat file structure. Then in your content conversion output the flat file structure.
Thanks
Damien -
Idoc to File scenario: receiver content conversion
Hi,
I have a Idoc to file scenario in which each segment is to be sent in a new line.
Also, even if the segment is not present in Idoc, comma separated blank values are to be sent.
Till now I have been fllowing this blog
File Content Conversion for Multi Hierarchical Structure
But in this case, blank values csv line are not created.
When I used mapWithDefault for parent WPA12 then only 1 instance is created.
For eg.
WPA01
-WPA02
--WPA12
WPA01
-WPA02
--WPA12
There are no values in WPA12 segment
Output
WPA01,a,a,a,a
WPA02,b,b,b,b
WPA12,,,,,
WPA01,c,c,c,c
WPA02,d,d,d,d
Can I make any change in the approach as in the blog to get the desired output?
Regards,
Anirudh.Hi,
To explain more a bit..
My requirement is to create a flat file from multiple hierarchical xml structure.
Additionally, if the values are not present for some nodes then also I have to send the blank values in flat files. If entire segment is not present then also blank csvs needed to be sent.
regards, Anirudh. -
Issue with Xi File Receiver "Content Conversion" fixed length and kanji
I need to create a fixed length file for a customer that has kanji (SJIS) characters in it. The issue is when the length of the value is less than the fixed length. It is padding out with spaces, but it is putting 2 bytes per space instead of one (But it seems to have counted the padding in characters...).
.fieldFixedLengths: 8,6,40,40
.fixedLengthTooShortHandling: Cut
.fieldNames: date,time,name1,name2
Receiver, please don't answer for sender.
File AdapterPaul,
Can you please tell what is coming in the output file if the values are:
date: 062309
time: 2240
name1: hello
name2: hello2
When you put space here and if it is not showing correctly just to interpret you can use S which will stand for space.
---Satish -
Need Content Conversion parameter help
Hi,
I need help regarding the Content conversion parameters.I have sent a IDOC and i could receive it as an XML file in my receiver end.
My XML files looks like this
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_IDoc2FILE xmlns:ns0="http://ffvendor">
<NAME>....</NAME>
<EMAIL>....</EMAIL>
<MOBILE>.....</MOBILE>
</ns0:MT_IDoc2FILE>
Please let me know how to convert this to a comma separated flat file
Regards,
KarthikHI
FCC Paremeters:
nameA.fieldSeparator =~
nameA.endSeparator ='nl'
nameA.fieldNames =text1,text2,text3,text4
nameA.processFieldNames fromConfiguration
nameA.lastFieldsOptional Yes
nameA.missingLastFields Add
nameA.additionalLastFields ignore
ignoreRecordsetName: true
if endSeparator = newline, then
nameA.endSeparator = 'nl'
nameA.fieldSeparator =~
nameA.fieldNames = field1,field2,field3,field4
if endSeparator = #, then
nameA.endSeparator = #
nameA.fieldSeparator =~
nameA.fieldNames = field1,field2,field3,field4
1. NameA.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.
2. NameA.additionalLastFields
If the inbound structure has more 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
○ error
Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
The default value is ignore. If you have defined the NameA.fieldFixedLengths parameter, the default value is error.
If you have defined the NameA.fieldFixedLengths parameter and do not set either of the parameters described above, apart from the default values, the conversion routine works the same as described under Handling Structure Deviations.
Only once you set one of the two parameters will the other parameter be evaluated with its default value.
To ensure a well-defined runtime behavior for variable inbound structures, we recommend that you always set both parameters.
File Content prameters for the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
File Content prameters for the Sender Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Refer
File Receiver with Content Conversion
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Configuring the Receiver File/FTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
File content conversion sites
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Please see the below links for file content conversion..
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
File Content Conversion for Unequal Number of Columns
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
Content Conversion (Pattern/Random content in input file)
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
XI in the role of a FTP
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
File to R/3 via ABAP Proxy
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent
cheers -
JMS Adapter Content Conversion
Hi,
I am looking for some help on JMS Receiver content conversion, to put a delimited file on MQ series queue.
I tried the below link, but not able to access the document.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use the content conversion module with the xi 3 j2ee jms adapter
If anyone has a copy of the pdf document on JMS content conversion, could you please email it to me at my id : [email protected]
Rgds
R ChandrasekharI had send the required PDF
Regards
Arpit seth -
DT for File Content Conversion scenario
Hi Guys,
I am working on IDOC to file scenario in which I want to know which type of DT should I go for?
DT_Type
....Row
......Filed1
......Filed2
......Field3
...Row
DT_Type
Or
DT_Type
..Details
....Row
......Filed1
......Filed2
......Field3
...Row
..Details
DT_Type
I am going for Receiver Content conversion as I need to produce Flat like, I have about 30 filed names and I am wondering is it possible not ot mention field names in Content conversion?
What is the parameter to place to get a new line after each record? I am using row.endSeparator as 'nl' I am getting some special character instead of starting a new record in next line.
Thanks
RajeevHI,
The SOURCE IDOC strcuture is:
IDOCNAME----
1..1
>IDOC--
1..1
>BEGIN--
required
>EDI_DC40--
1..1 (it has sub nodes but not required)
>E1KNAM1--
1..1
>SEGMENT----
Required
>Werks----
0..1
>Z1KNU2----
0..1 (SUB SEGMENT OF E1KNAM1)
>ZNUM----
0..1
>Z1ADD----
0..7 (SUB SEGMENT OF E1KNAM1)
>PostCode----
0..1
>E1KAVVM----
0..999(SUB SEGMENT OF E1KNAM1)
>VTWEG----
0..1
>LOVEM----
0..1
>E1KAVPM----
0..999(SUB SEGMENT OF E1KNAM1)
>KUNN2----
0..1
>Z1KAN--0..1 (SUB SEGMENT OF E1KAVPM---(SUB SEGMENT OF E1KNAM1))
>NAME1----
0..1
Target File structure is:
MT_Type----
1..1
Row--
0..Unbound
Filed1----
0..Unbound
Filed2----
0..Unbound
Filed3----
0..Unbound
Filed4----
0..Unbound
Filed5----
0..Unbound
Filed6----
0..Unbound
if IDOC contains one IDOC data then it has to generate one file .. If IDOC contains more than one IDOC information then it has to generate one file with multiple IDOC informaiton in it.
how this can be achieved?
Thanks
Rajeev -
File content conversion is not creating the exact strcuture as Datatype
Hi,
We are facing issue .
I have sender DT type
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</ HeaderDetail>
</File_DT>
but when I am preocessing the file content conversion - > when its pulling the data from the file this structure become
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want same above one after content conversion. I tired allt he options availble . please help
In file content conversion I give
RecordSet Structure -->HeaderDetail,,LineItemDetail,
HeaderDetail.keyFieldValue H
HeaderDetail.endSeparator 'nl'
HeaderDetail.fieldFixedLengths 1,4,8,25
HeaderDetail.keyFieldInStructure ignore
LineItemDetail.keyFieldValue L
LineItemDetail.endSeparator 'nl'
LineItemDetail.fieldFixedLengths 1,3,1,10,10,24,3,25
LineItemDetail.keyFieldInStructure ignore
LineItemDetail.keepIncompleteFields YES
ignoreRecordsetName true
Please help
regards
RamHi Babu,
Thanks a lot for your input.
Actually My requirement is this its file to Multiple idoc scenarios.
Here I am getting flat file HeaderDetails and LinItemdetails. its having Multiple Headerdetail then Line Item Details, I want to create idoc for each HeaderDetail and all the Next LineItemdetails should go to that IDoc. If we can find some solution then it will also work for me.
For ex.
My source would be
FIle_DT>
< HeaderDetail1>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails11>
<Field1>
<Field2>
</Linietemdetails11>
<Linietemdetails12>
<Field1>
<Field2>
</Linietemdetails12>
< HeaderDetail2>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails21>
<Field1>
<Field2>
</Linietemdetails21>
<Linietemdetails22>
<Field1>
<Field2>
</Linietemdetails22>
< HeaderDetail3>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails31>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want target structure like this .
<Idoc>
<HeaderDetail1>
<LineItemdetail11>
<LineItemdetail12>
<LineItemdetail13>
</Idoc>
<Idoc>
<HeaderDetail2>
<LineItemdetail21>
<LineItemdetail22>
<LineItemdetail23>
</Idoc>
<Idoc>
<HeaderDetail3>
<LineItemdetail31>
</Idoc>
If anyway you can help me how to go and how to do this grouping then it would be really great for me.
regards
ram
Maybe you are looking for
-
I purchased Apple TV yesterday strictly to mirror my desktop to my TV. Now I find out my desktop is not supported? How can I mirror my iMac to my Apple TV? I am running Mountain Lion and the iMac is a 2.8 GHz with intel core 2 duo from early 2008. Th
-
How can i create emca form the operating system
Hi, I am new to java, ran the script and i got the following response....... emca -config dbcontrol -repos recreate java.lang.IllegalArgumentException: -config at oracle.sysman.vto.vtoe.repmgr.Arguments.getOperationCode(Arguments.java:424) at oracle.
-
Bootcamp... not booting
I am trying to install bootcamp on my early 2008 mbp; when bootcamp restarts to boot into windows it just displays the gray screen and freezes. When I hold option to get into the disc it freezes at the same place. Is there anything else I could try?
-
8703 typing random letters, can't use some symbols
For some reason which I cannot determine, my blackberry started randomly typing the letter "r" before or after about a quarter of the letters. These letters have no descernible pattern (ie aren't all located beside "r"). As well, some symbols don't w
-
Array as parameter in a stored procedure called in java
Hello, In order to transmit an array from java to a PL/SQL procedure with oracle8i, we have been trying to instanciate an javaArrayDescriptor using the name of an oracle user Datatype (a table of Varchar(20)). This works perfectly well while connecte