Content Conversion Parameter- Help
Dear Friends,
I have a quick question regarding content conversion paramter.
My structure is as follows
<MT_Root>
<Statement_response>
<row>
<Value1>ABC</Value1>
<Value2>CDE</Value2>
<Value3/>
</row>
<row>
<Value1>DATA</Value1>
<Value2>TEST</Value2>
<Value3/>
</row>
<row>
<Value1>CHECK</Value1>
<Value2>OUT</Value2>
<Value3/>
</row>
</Statement_response>
</MT_Root>
In the receiver adapter i'm using
Record Structure :MT_Root,Statement_response,row
row.fieldSeparator ,
Statement_response.endSeparator 'nl'
Statement_response.fieldSeparator 'nl'
Everything is fine , if you see the o/p file there are lot of spaces appened between each fields. I don't want the spaces.
If you guys help me out, I'll really appreciate it!!
Thanks,
raj.
hi,
possibly you could use small lengths while passing the data to file in FCC parameters.
i.e fixedfieldlengths.
also use the TooShortHandlingfield parameter with value "cut". it will ignore the large length of the fields and cut it down as per the values.
Plesae refer below link for usage of these parameters,
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
thnaks
Swarup
Similar Messages
-
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 -
What are the right content conversion parameter in this receiver ?
Hi experts,
Can someone help me with setting right Content conversion parameter in the Receiver of File adpater(FCC).The output file must be fixed length text file.
Here is the receiver structure:
<Recordset>
<Header>
<f1>01</f1>
<f2> </f2>
<f3> </f3>
</Header>
<Body>
<SubBody1>
<field1 />
<field2 />
<field3 />
<field4 />
<field5 />
</SubBody1>
<SubBody2>
<field6 />
<field7 />
<field8 />
<field9 />
<field10/>
</SubBody2>
</Body>
<Trailer>
<f1>03</f1>
<f2> </f2>
<f3> </f3>
</Trailer>
</Recordset>
Also Body can occure multiple times in the file but still will have this structure...Header and Trailer can occure only once in file.
What are the right content conversion perameters in this case?
Appreciate your help asap!T
Thanks
Jon<Recordset>
<Header>
<f1>01</f1>
<f2> </f2>
<f3> </f3>
</Header>
<Body>
<SubBody>
<field1 />
<field2 />
</SubBody>
<SubBody>
<field1 />
<field2 />
</SubBody>
<SubBody>
<field1 />
<field2 />
</SubBody>
</Body>
<Trailer>
<f1>03</f1>
<f2> </f2>
<f3> </f3>
</Trailer>
</Recordset>
if this is the input structure then FCC goes like this ....
Recordset:Header,Body,SubBody,Trailer
Header.fieldFixedLengths 10,20,30.. (based on you are structure fixed lengths)
Header.endSeparator - 'nl'
SubBody.fieldFixedLengths 10,20,20 (based on you are structure fixed lengths)
Body.endSeparator - 'nl'
Trailer.fieldFixedLengths 10,20,30 .(based on you are structure fixed lengths)
Trailer.endSeparator - 'nl'
We might have to try out SubBody.endSeparator - 'nl' if Body.endSeparator - 'nl' does not insert a new line after each body record.
Cheer's -
How to escape newline character(nl) in file content conversion parameter?
Hi Experts,
How to escape newline character(nl) in file content conversion parameter?
For example:
field1field2field3
field4field5field6
Means Item is splitted in two lines.
I want to SKIP new line character
and to collect all SIX fields.
What will be the file content conversion parameter?
Thanks in Advance..........Hi,
as far as i know there is nothing in the standard. But the question is why dont you combine at mapping the fields into only structure?
Regards,
Udo -
Content Conversion Parameter in File Receiver Adapter
Hi all,
I have created one File Receiver Adapter with Message Protocol 'File Content Conversion' and with the following configuration:
Recordset Structure: Message
Message.fieldFixedLengths: 1000
My Message Type is:
LogErro_MT
Message (Type: String) (Occurrence: 0..Unbounded) (Details: Min,Max Length: 1000)
But the file created by it has no data inside it. If I change the Message Protocol to 'File', the content of the file is the XML generated by the Outbound Proxy.
Would someone can help me?
Thanks in advance
LeoHi,
Please create a data type with
Records
Message ---0..unbounded
and hten MT for the same.
In the receiver file adapter:
Recordset Structure: Message
Message.fieldFixedLengths: 1000
Please check this weblog for the same:
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
IS this what you are trying to do.
Regards
Vijaya -
Regarding content conversion parameter
Hi
I am doing content conversion in sender file adapter.I want to remove " " in target file.
I used row.enclosureSignEsc ""
but its not working.
can any one tell me how to use enclosure sign parameter.
Source Flat file looks like:
"A00",417,"SC9",20050101,100617,3229
"B01","EA",20041231,39.4,"ACT","F","D"
"B01","EA",20041231,38.7,"ACT","F","W"
"B01","EA",20050101,39.4,"TOD","F","D"
"B01","EM",20041231,39.3,"ACT","F","D"
"B01","EM",20041231,38.7,"ACT","F","W"
"Z99",50
In the target i want like this:
A00,417,SC9,20050101,100617,3229
B01,EA,20041231,39.4,ACT,F,D
B01,EA,20041231,38.7,ACT,F,W
B01,EA,20050101,39.4,TOD,F,D
B01,EM,20041231,39.3,ACT,F,D
B01,EM,20041231,38.7,ACT,F,W
Z99,50
Thanks&Regards
venkat.>
venky adireddy wrote:
> Hi
> I am doing content conversion in sender file adapter.I want to remove " " in target file.
> I used row.enclosureSignEsc ""
> but its not working.
> can any one tell me how to use enclosure sign parameter.
>
> Source Flat file looks like:
>
> "A00",417,"SC9",20050101,100617,3229
> "B01","EA",20041231,39.4,"ACT","F","D"
> "B01","EA",20041231,38.7,"ACT","F","W"
> "B01","EA",20050101,39.4,"TOD","F","D"
> "B01","EM",20041231,39.3,"ACT","F","D"
> "B01","EM",20041231,38.7,"ACT","F","W"
> "Z99",50
>
> In the target i want like this:
>
> A00,417,SC9,20050101,100617,3229
> B01,EA,20041231,39.4,ACT,F,D
> B01,EA,20041231,38.7,ACT,F,W
> B01,EA,20050101,39.4,TOD,F,D
> B01,EM,20041231,39.3,ACT,F,D
> B01,EM,20041231,38.7,ACT,F,W
> Z99,50
>
>
>
> Thanks&Regards
> venkat.
THERE
there is no parameter to achieve what you want in FCC.
as mentioned earlier you will have to use a function to remove the "
you dont have to create a UDF you can use the standard text function available in XI - replaceString -
Receiver File Adapter: Problem with NewLine Content Conversion Parameter
Hello Everybody
On our SAP-XI (SAP NetWeaver 2004s, sp14) I have the scenario to send a price catalogue (IDoc PRICECATALOGUE.PRICECATALOGUE02) from SAP R/3 as csv PRICAT file to a file share.
In the receiver communication channel I have defined
Message Protocol = File Content Conversion
using the following RecordSet:
RecordSet = HeaderRow,MainBody
One header row is followed by one or more main body rows. The csv PRICAT message format demands that there is an empty row (i.e. one carriage return) between header and main body and another carriage return after the last main body row:
<Header Row>
carriage return
<MainBody 1>
<MainBody 2>
carriage return
As content conversion parameters I tried to use NewLine ('nl') to create the carriage returns in the file:
HeaderRow.fieldSeparator = ,
HeaderRow.endSeparator = 'nl' " new line
MainBody.fieldSeparator = ,
MainBody.endSeparator = 'nl'
Using the settings I have been able to created the carriage return at the end of the file but not the one between header and main body.
As workaround I have used the following approach:
" Add the following XSLT mapping between header and body:
<SeparatorLine>
<value>
<xsl:value-of select=" '' "/>
</value>
</SeparatorLine>
RecordSet and parameters have been changed accordingly:
RecordSet = HeaderRow,SeparatorLine,MainBody
HeaderRow.fieldSeparator = ,
HeaderRow.endSeparator = 'nl'
SeparatorLine.fieldFixedLength = 0,0 " sic!
MainBody.fieldSeparator = ,
MainBody.endSeparator = 'nl'
Has anybody an idea why I failed to receive the first carriage return and has somebody a more elegant solution?
Kind Regards
UweHi,
Thanks for reply. I have already used 'nl'.
When i open into the notepad it is showing [] boxes rather then new line.
e.g. 1 [] 2 []
but when we open into wordpad it opens properly.
Customer wants when he opens in notepad it should show line by line.
e.g.
1
2
How should i convince to customer ? -
Reciever Comm. Channel Content conversion parameter for deep level
I am doing a scenario from SAP to Legacy sytem ( Proxy to File Scenario).Target File to be generated is of for fixed length.
__My source strucure is as follows:__
DT_Source
--->Root_IS .......................................0.to..1
DC..............................................0..to..1.............................xsd:string
>Root_VT....................................0..to..unbounded
POY....................................0..to..1.............................xsd:string
PON....................................0..to..1.............................xsd:string
>Root_VR............................0..to..unbounded
POL.............................0..to..1.............................xsd:string
SF----
0..to..1.............................xsd:string
Here DT_source is Data type name,
Root_IS is structure under this we have one field DC,
Root_VT is second field of Root_IS but act a a Stucture for fields POY and PON,
Root_VR is a field of Root_VT but act as a structure for Fields POL and SF.
__My targert strucure is as follows:__
DT_Target
>Root_IS.......................................0.to..1
Key..............................................0..to..1.............................xsd:string
DC..............................................0..to..1.............................xsd:string
>Root_VT....................................0..to..unbounded
Key..............................................0..to..1.............................xsd:string
POY....................................0..to..1.............................xsd:string
PON....................................0..to..1.............................xsd:string
>Root_VR............................0..to..unbounded
Key..............................................0..to..1.............................xsd:string
POL.............................0..to..1.............................xsd:string
SF----
0..to..1.............................xsd:string
>Root_ZS............................0..to..1
Key..............................................0..to..1.............................xsd:string
Count...........................................0..to..1.............................xsd:string
Here DT_Target is data type for file reciever.In which i need to configure reciever communication channel with file content conversion parameters.File needs to be generated is of fixed length.Root_IS,Root_VT,Root_ZS are sructure on same level and Root_VR sructure is under Root_VT.
I tried to Configure File Content Conversion Parameters on reciever Comm Channel but getting comm channel error as follows:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)'
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)'
File content parameters i used as follows:
Root_IS.fieldNames : Key,DC
Root_IS.fieldFixedLengths :(as per length mentioned)
Root_IS.endSeparator :'nl'
Root_VT.fieldNames :Key,POY,PON
Root_VT.fieldFixedLengths :(as per length mentioned)
Root_VT.endSeparator :'nl'
Root_VR.fieldNames :Key,POL,SF
Root_VR.fieldFixedLengths :(as per length mentioned)
Root_VR.endSeparator :'nl'
Root_ZS.fieldNames :Key,Count
Root_ZS.fieldFixedLengths :(as per length mentioned)
Root_ZS.endSeparator :'nl'Please consider this one as new: i tried to explain it more as on privew everything gets shaked
I am doing a scenario from SAP to Legacy sytem ( Proxy to File Scenario).Target File to be generated is of for fixed length.
__My source strucure is as follows:__
DT_Source
--->Root_IS .......................................0.to..1
DC..............................................0..to..1.............................xsd:string
>Root_VT....................................0..to..unbounded
POY....................................0..to..1.............................xsd:string
PON....................................0..to..1.............................xsd:string
>Root_VR............................0..to..unbounded
POL.............................0..to..1.............................xsd:string
SF----
0..to..1.............................xsd:string
Here DT_source is Data type name,
Root_IS is structure under this we have one field DC as a child,
Root_VT(structure) is second field of Root_IS but act a a Parent Stucture for fields POY and PON,
Root_VR(structure) is a field of Root_VT but act as a Parent structure for Fields POL and SF.Means we have three structres Root_IS and under this we have Root_VT and under this we have Root_VR
__My targert strucure is as follows:__
DT_Target
>Root_IS.......................................0.to..1
Key..............................................0..to..1.............................xsd:string
DC..............................................0..to..1.............................xsd:string
>Root_VT....................................0..to..unbounded
Key..............................................0..to..1.............................xsd:string
POY....................................0..to..1.............................xsd:string
PON....................................0..to..1.............................xsd:string
>Root_VR............................0..to..unbounded
Key..............................................0..to..1.............................xsd:string
POL.............................0..to..1.............................xsd:string
SF----
0..to..1.............................xsd:string
>Root_ZS............................0..to..1
Key..............................................0..to..1.............................xsd:string
Count...........................................0..to..1.............................xsd:string
Here DT_Target is data type for file reciever.In which i need to configure reciever communication channel with file content conversion parameters.File needs to be generated is of fixed length.Root_IS,Root_VT,Root_ZS are sructure on same level as a first level subelements of DT_Target and Root_VR sructure is under Root_VT.
Root_IS have fileds: key,DC: Root_VT have Fields :Key,POY,PON:Root_VR have fields:Key,POL,SF and Root_ZS have Fields:Key and Counts.
I tried to Configure File Content Conversion Parameters on reciever Comm Channel but getting comm channel error as follows:----
>
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)'
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'VR')', probably configuration error in file adapter (XML parser error)'
File content parameters i used as follows:
Root_IS.fieldNames : Key,DC
Root_IS.fieldFixedLengths :(as per length mentioned)
Root_IS.endSeparator :'nl'
Root_VT.fieldNames :Key,POY,PON
Root_VT.fieldFixedLengths :(as per length mentioned)
Root_VT.endSeparator :'nl'
Root_VR.fieldNames :Key,POL,SF
Root_VR.fieldFixedLengths :(as per length mentioned)
Root_VR.endSeparator :'nl'
Root_ZS.fieldNames :Key,Count
Root_ZS.fieldFixedLengths :(as per length mentioned)
Root_ZS.endSeparator :'nl' -
File content conversion structure help
HI Experts,
Kindly help on creating the DataType and FCC parameters using the below file.
20.May 2014 #96
Country|Currency|Amount|Code|Rate
Australia|dollar|1|AUD|18.571
Brazil|real|1|BRL|9.053
Bulgaria|lev|1|BGN|14.050
Canada|dollar|1|CAD|18.420
China|renminbi|1|CNY|3.215
Croatia|kuna|1|HRK|3.608
Denmark|krone|1|DKK|3.681
EMU|euro|1|EUR|27.480
Hongkong|dollar|1|HKD|2.587
Hungary|forint|100|HUF|9.000
IMF|SDR|1|XDR|30.999
regards
rajuHi Expert's,
i have configured as suggested, and i am getting the below error in communication channel.
could you please check and provide the solution.
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
regards
raju -
File Content Conversion. Help required
Hi All,
My scenario
I have source text file. I need to do Receiver Determination based on some value.
I need to send again text file at target side.
My source txt file is:
Condition:
If :59:/1000001642 comes then send to Receiver A
If :58:/9000001642 comes at that position then send to Receiver B
Can you please tell me how to apply FCC at sender and receiver side as I am not able to
do it.
RegardsHi Rick,
Can there be any way I can avoid FCC and do Rec Determination because I am required to
do complex FCC at both source and target side.
If you want XI to route a flat file (without FCC in file adapter), then I think you will need to do enhanced
receiver determination. It will have to be a java map since the input is still a flat file.
http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3343
There are many ways to handle this in java, but hereu2019s a simple example that should get you started.
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Map;
import com.sap.aii.mapping.api.MappingTrace;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationConstants;
import com.sap.aii.mapping.api.StreamTransformationException;
public final class AdvancedReceiverJava implements StreamTransformation {
private Map _param;
public void setParameter(Map param) {
_param = param;
public void execute(InputStream in, OutputStream out) throws StreamTransformationException {
//MappingTrace trace = (MappingTrace)_param.get(StreamTransformationConstants.MAPPING_TRACE);
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(in));
StringBuffer sb = new StringBuffer();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line).append("\n");
String fileString = sb.toString();
//replace this with a call to value mapping for more configurable solution
String receiver = null;
if (fileString.indexOf("59:/100000164") > -1)
receiver = "receiverService1";
else if (fileString.indexOf("58:/9000001642") > -1)
receiver = "receiverService2";
else
throw new Exception("No receiver found in source file.");
StringBuffer xml = new StringBuffer();
xml.append("<?xml version='1.0' encoding='UTF-8'?>");
xml.append("<ns0:Receivers xmlns:ns0='http://sap.com/xi/XI/System'>");
xml.append("<Receiver><Service>").append(receiver).append("</Service></Receiver>");
xml.append("</ns0:Receivers>");
out.write(xml.toString().getBytes());
out.flush();
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
throw new StreamTransformationException(sw.toString());
} finally {
if (reader!= null) try { reader.close(); } catch (Exception e) {}
-Russ -
File Content Conversion in Receiver Adapter Help
Hi,
I need to have a flat file at receiver side with the following structure.
Product
LineItem
Notes
Product
LineItem
Notes
But i am getting as
Product
Product
LineItem
Notes
Notes
Please suggest me the changes to be made in File Content Conversion Parameter
Your Help will be appreciated.
Thanks in advance,
AshokSingh,
I think we wont give field names in the receiver file adapter. Please find the details below:
RecordSet Structure: Product,LineItem,Notes.....
Parameters:
Product.fieldFixedLengths:30,10...
Product.endSeparator:'nl'
LineItem.fieldFixedLengths:30,10..
LineItem.endSeparator:'nl'
Notes.fieldFixedLengths:30,10...
Notes.endSeparator: 'nl'
Thanks
Ashok -
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 -
Need File Content Conversion Help
Hi,
With the help of the SDNers i was able to create the proper structure for FCC.Now i want to have the column names been listed as part of the final file content.with the current structure i could get only the data and not the coulmnheaders
The structure used is as below:
Recordset structure=Root,Record
Record.addHeaderLine=0
Record.fieldNames=name,mobile,email
Record.fieldSeparator=,
Record.endSeparator='nl'
Root.fieldSeparator=,
Root.fieldSeparator='nl'
Pls help me solve this.
Regards,
KarthikHI
refer the following links
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
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
/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
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 -
Sender file content conversion problem
hi Masters,
I have sender side structure like this...below..
emp_row unbounded.
empid
name
city
country.
actually i had given few id with names and other details which i stored in txt file .
like
001, ram, newyork, usa.
002 ,john,london,uk.
003, smit,tokyo,japan.
but if i see in reciever side then i wil get xml file where only 001,ram,newyork,usa. is mentioned ... and remaining records are not there..
wht is the fault and how to rectify tht fault please help me ..
Thanks in Advance ,
jp.recordset structure -- emp_row
emp_row.fieldSeparator - ','
emp_row.endSeparator - 'nl'
if you have "." at the end of each record in your file then remove it and change it to new line -- "nl" -- by hitting the enter key on your keyborad at the end of each record Or if you want to use "." only then replace 'nl' in the above endSeparator parameter list with '.'
PS: Share u r current content conversion parameter settings also
Cheer's -
File content conversion-Document name
Hi frndz,
i am using the file content conversion to upload the sale order details from flat file to r/3, am using the standard bappi for the same. Here my issue is in Content "conversion parameters" there is a parameter "Document name" usually i fill this with the messge type, but now i have not created any messge type for my scenario, i am just imported the bappi and using the same structure so wat i can give in the "Document name" parameter.
Thanks in advance
KarthikeyanHi, see this link:
Configure sender file Adapter With File Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Configure receiver file Adapter With File Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm+
also see this about documentName parameter
ignore DocumentName
Thanks
Rodrigo
Edited by: Rodrigo Alejandro Pertierra on Aug 11, 2008 10:59 AM
Maybe you are looking for
-
Firm scheduling agreement with MRP
Hi gurus, We are maintaining scheduling agrements in ME38 manually. system shows firm schedule lines in md04 screen. When we run MRP system does not consider or minus stocks and create planned order equals to the requirements. we need this scenario i
-
Customizing Book Of Sales Report
Hi I am customizing Book Of Sales report which comes with Russia Localization Patch (RLP) The requirement is to increase width of one column. Since this report is in PLSQL whith output as html and its using CSS I am not able to figureout how to incre
-
What is the transaction code to set the download directory?
What is the transaction code to set the download directory?
-
Edge Animate origin won't transform, keeps snapping back to original position.
I am working with an Animate composition in Edge Animate CC on a mac. When I try to transform the origin and select an item, select the transform tool and drag the origin it keeps snapping back to its original position. I have tried turning off sna
-
can we install oracle 10g database same on win2k3 domain server (with active directroy)