Sender content conversion parameters
what wld be the sender content conversion parameters for the following structure?
MessageType 1-1
Records 1-1
File 1-unbounded
thanks
Hi,
If you have not come across:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
would be of help.
Regards,
Manjusha.
Similar Messages
-
File Content Conversion Parameters in FIle Adapter
Hi
I am doing a scenario - XML file to Text file using File content conversion parameters in Receiver File Adapter Channel.
I given FCC Parameters like:
DATA.addHeaderLine - '0'
DATA.fieldSeparator - ,
DATA.endSeparator - 'nl'
But im getting error in Receiver File Adapter as - fieldSeparator not specified.
i would be greatful if any one help me.
Regards
RajeshHi Rajesh,
There are lot of blogs which explain File Content Conversion in different scenarios:-
/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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/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/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
I hope this helps.
Regards.
Praveen -
Give me list of content conversion parameters in sap xi
Hello experts,
give me the list of file content conversion parameters (like <node>.fieldSeparator)
with their explination.
Thanks inadvance.
ArjunHi,
Did you checked help.sap....
Sender Side:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Receiver Side:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
also check these blogs
File Receiver with Content Conversion By Jeya Kumar
The specified item was not found. By Shabarish Vijayakumar
NAB the TAB (File Adapter) By Sukumarar
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1) By Venkat Donela
Content conversion in Sender file adapter-- 2 new useful parameters By Sukumar Natrajan
Thanks
SaNv... -
...file Sender content conversion 'lastFieldsOptional' error
Hi All,
I am working on a File Sender content conversion--> flat file to XI.
it's fixed length field all the rows with same column.
090627 344535AFDFG+GBP65433 ASDSSD GFD dFSSGFD 6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD 6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD 6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD 6757532
090628 344536AFDFG+GBP45434 ASDSSD GFD dFSSGFD 6757532
090628 344536AFDFG-GBP45434 ASDSSD GFD dFSSGFD 6757532
**EOF**
I am sucessfully able to handle the file if i remove "**EOF*" from incoming file. But i get "lastfieldsOptional" error with "*EOF**"
>
Parameters-
Recordset Structure - ROW,*
Recordsets per message - *
ROW.fieldFixedLengths - 6,8,20,10,30,1,3,1,11,1,11,6,10,10,20,10,10,2,6,6,2,6,6,3
ROW.fieldNames - INV_DATE,INV_NO,PAYMENT_REF,CUST_NO,CUST_NAME...etc etc
ignoreRecordsetName - true
There are parameters available to ignore Last field(last column) of a Row/Rocerdset
but how to ignore the last row of the file.
Plz suggest some parameter to ignore the last row/field of the file.
Regs,
AnshAnsh,
.lastFieldsOptional is obselete and you cannot use. Please see sap help:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
The best thing comes to my mind is use:
.keepIncompleteFields as YES
Also give a try with:
.missingLastfields as add
So with this I think your last line in the file will read into XI. But the value of last line is **EOF**. So the length is 9. Since your the first two fixed lengths are 6 and 8. You will have these values as ***EOF and ***. So while mapping you can use doesnot satrt with * and map it, so that your last line will be ignored.
Note: with this apporach you have to make sure your first two columns never start with *. If you have a doubt then you can use the condition doesnot equal to ***EOF for first field and doesnot equal to *** for the second field when you map. I hope it makes sense to you.
Regards,
---Satish -
File Sender, Content Conversion - how to define variable length last field?
XI 3.0 SP17
With a File Sender communication channel, that uses Content Conversion - how do I define a 'variable length' last field?
The scenario - the input file has four fields, of which the first three are a known fixed length, and the last (fourth, trailing) field is variable in length.
Using a Message Protocol of 'File Content Conversion', how do I define that last variable length field (field name 'WOData' below) in the Content Conversion Parameters section?
My current parameters are:
Recordset Structure - Row,*
ignoreRecordsetName - true
Row.fieldFixedLengths - 1,12,5,99999
Row.fieldNames - WOType,WONum,WOLine,WOData
I've tried the following for 'Row.fieldFixedLengths' to no avail -
'1,12,5,*'
'1,12,5,0'
'1,12,5,'
'1,12,5'
The last two were grasping at straws )
The only thing I've got to work is specifying a 'large' value for the final field (99999 above).
In addition, does anyone know if specifying a large value (e.g. 99999) for the final trailing field will give rise to performance issues when the file is being processed?
In the help for "Converting File Content in a Sender Adapter", it states -
<Begin Quote>
NameA.fieldFixedLengths
If you make a specification here, the system expects a character string that contains the lengths of the structure columns as arguments separated by commas.
If you also specify a separator for the columns, you must not add its length to the length of the columns.
This entry is mandatory if you have not made an entry for NameA.fieldSeparator.
<End Quote>
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm<< note that fieldFixedLengths will not take any wildcard entries like *. So in these case it is ideal to provide a maximum char length. But note that while the file is being created that many spaces will be created in your file !!! >>
Hi Shabarish,
Yes, no wildcard is the conclusion I came to, hence my maximum )
The message size did not increase by any 'blank padding'. When I look in [Message Display Tool (Detail Display)] 'Audit Log for Message: X' -
2006-10-17 18:22:42 Success Channel X: Entire file content converted to XML format
2006-10-17 18:22:42 Success Send binary file "X" from FTP server "X", size 103290 bytes with QoS EO
2006-10-17 18:22:42 Success Application attempting to send an XI message asynchronously using connection AFW.
2006-10-17 18:22:42 Success Trying to put the message into the send queue.
2006-10-17 18:22:42 Success Message successfully put into the queue.
2006-10-17 18:22:42 Success The application sent the message asynchronously using connection AFW. Returning to application.
The input flat file in non-XML format was 92,132 bytes and the message payload into XI was 103,290 bytes.
My understanding is that trailing spaces are stripped from XML nodes. -
File sender content conversion
hello
I have a txt file sender content conversion in SAP PI.
I define in the content conversion 6 fields names(field1, field2, field3,field4,field5,field 6) but the fie that I am loading has only three field(field1,field2,field3). the file is still loading though there is a different in the structure between what I define in the PI to what is loading to the PI.
is there a way to send an error with out loading the file?
I read about the count function in the mapping. isnt there a build in function that suppose to load only the structure that is define?
Thanks
KfirIf you define 6 fields and only 3 are present in the test file then you wont get an error (AFAIK)
However, if you define 3 fields and there are 6 present in the source file then you will get an error saying more number of parameters found.
isnt there a build in function that suppose to load only the structure that is define?
I dont think so....this may however be achieved using a custom adapter module.
Update:
Just remembered that SAP PI (7.1 and above) comes with inbuilt XML-validation function....check if that helps in your design.
Regards,
Abhishek.
Edited by: abhishek salvi on Dec 15, 2010 1:12 PM -
I am trying doing content conversion text file to text file with one communication channel emisor on the 'Content Conversion' parameters shown below:
Document Name: mt_DatosMaestros
Document Namespace:urn:Bais:DatosMaestros
Recordset Structure: mt_actividad_comprador,,mt_canal,,mt_clase_ruta_dist,,mt_clase_ruta_prevta,,mt_cuenta_clave,,mt_forma_pago,,mt_franquicia,,mt_int_comp,,mt_jefe_com,,mt_nivel_socioec,,mt_prog_lealtad,,mt_sector,,mt_subcanal,,mt_tamano_cte,,mt_tipo_venta,,mt_zona,,mt_categoria,,mt_empaque,,mt_familia,,mt_lanzamiento,,mt_lista_precios,,mt_marca,,mt_presentacion,,mt_propietario,,mt_retornabilidad,,mt_sabor,,mt_segmento,,mt_tamano,,mt_tipo_articulo,,mt_Listas_prec,,mt_promotor,,mt_exclusivo,,mt_estado,,mt_municipio,,mt_ciudad,,mt_tipoentrega,,mt_modoventa,,mt_tiempoent,,mt_Tipo_Visita,*
Recordset Sequence: Variable
Recordsets per Message: 1
Key Field Name: tipo
Key Field Type: Integer
The parameters I used are shown below:
mt_actividad_comprador.fieldSeparator ;
mt_actividad_comprador.fieldNames tipo,idioma,actividad,desccorta,descmedia,desclarga
ignoreRecordsetName true
mt_actividad_comprador.keyFieldValue 14
mt_actividad_comprador.keyFieldInStructure ignore
mt_canal.fieldSeparator ;
mt_canal.fieldNames tipo,idioma,canal,desccorta,descmedia,desclarga
mt_canal.keyFieldValue 15
mt_canal.keyFieldInStructure iggnore
mt_clase_ruta_dist.fieldSeparator ;
mt_clase_ruta_dist.fieldNames tipo,idioma,claserutadist,desccorta,descmedia,desclarga
Above i done but i dont know how send this datos to text file for each Recordset Structure according
to keyFieldValue and with one communication channel receptor
I do not want multi-channel receptors i need that the channel receptor write different text files according to keyFieldValue someone can help me?
ThanksRaj
the structure I mentioned above was an example actually I have not finished the emisor channel
this is the source file (LCRECVTAS03.csv):
D56,0000040382,181.154,CU,225.299,CU,-19.6
D56,0000040388,527.757,CU,628.123,CU,-16.0
D56,0000040396,347.057,CU,324.896,CU,6.8
D56,0000040398,159.600,CU,246.674,CU,-35.3
D56,0000040410,380.983,CU,489.303,CU,-22.1
D56,0000040414,78.380,CU,45.000,CU,74.2
D56,0000040416,177.274,CU,188.187,CU,-5.8
D56,0000040418,94.121,CU,180.041,CU,-47.7
D56,0000040423,89.467,CU,205.812,CU,-56.5
D56,0000040437,189.252,CU,238.311,CU,-20.6
D56,0000040442,100.029,CU,108.019,CU,-7.4
D56,0000040445,140.207,CU,154.544,CU,-9.3
D56,0000040447,120.543,CU,141.820,CU,-15.0
D56,0000040450,169.213,CU,191.566,CU,-11.7
D56,0000040458,128.838,CU,234.496,CU,-45.1
this is the text file (Clients.txt) on how you want it:
00403820022500181.D56
00403880062800528.D56
00403960032500347.D56
00403980024700160.D56
00404100048900381.D56
00404140004500078.D56
00404160018800177.D56
00404180018000094.D56
00404230020600089.D56
00404370023800189.D56
00404420010800100.D56
00404450015500140.D56
00404470014200121.D56
00404500019200169.D56
00404580023400129.D56
00404600012400097.D56
00404610020800225.D56
00404640032100088.D56
Thanks Raj !! -
Regarding content conversion parameters
Hi,
Can anyone send me a blog that completely explains in detail about each and every content conversion parameters?Need complete info about ALL those parameters
Thanks in AdvanceHi Rambabu,
Try to implement scenarios in these weblogs...it cover almost all type of scenarios
/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/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
Also go through this :
Converting File Content in the Sender Adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
Converting File Content in the Receiver Adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Thanks,
Maheshwari. -
CONTENT CONVERSION PARAMETERS IN XI
Hello guyz,
im following a certain procedure in XI ,it said that i need to enter the content conversion parameters as follows:
document name :
document namespace and others
and the name: value
contact.record.fieldseparator ;
contact.record.endseparator nl
contact.record.fieldnames firstname,lastname
this is under integration directory, in business system in communication channel.
But i dont know where can I find it in that module.
Please help.
Thanks in advance
aVaDuDzHi,
file content conversion parameters change based on ur file data.
if its Fixed length then u have to use certain parameters and if its separated by some chatactor then u have u use certain parameters.
refer the below links to understand;
Converting File Content in a Sender Adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Converting File Content in the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Sender -
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Key value:
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter) -
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
NAB the TAB (File Adapter)
NAB the TAB (File Adapter)
Receiver FCC no need of Endseparator
File Adapter (Receiver) - Are we "really" sure about the concepts?
Receiver-
File Receiver with Content Conversion
chirag -
List of CONTENT CONVERSION PARAMETERS
Hello Experts,
Can any one list out all the content conversion parameters. i.e like
<rowset structure>.fieldName
<roeset structure>.endSeparator...... etc.
along with their explination.
Thanks inadvance.for Example:See this Str..........
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_FILE_SEND_RAJEND_FCC xmlns:ns0="http://file_2_file_rajender">
<Recordset>
<HEADER>
<keyfield>01</keyfield>
<ORDER_NO>10001</ORDER_NO>
<NAME>xyz</NAME>
</HEADER>
<ITEM_DETAILS>
<keyfield>02</keyfield>
<MAT_TYPE>abc</MAT_TYPE>
<MAT_NO>sss</MAT_NO>
<AMOUNT>1212</AMOUNT>
<DATE>yyyymmdd</DATE>
</ITEM_DETAILS>
</Recordset>
</ns0:MT_FILE_SEND_RAJEND_FCC>
This are the Fcc Parameters:
Document name: It defines the Sender Message type which we have to send
Document name space: It defines the unique name for entire object.
Recordset Name: It is the Root node of the Element..(Recordset)
Recordset Structure: It is defined root node of the structure.....(Header, Item_details)
Keyfield name: it determines the header data or item data....(01,02)
Recordset Sequence: ascending/descending
HEADER.fieldNames..........................keyfield,ORDER_NO,NAME
HEADER.fieldSeparator...................,
HEADER.keyFieldValue.................01
HEADER.endSeparator.................'/n'
HEADER.processFieldNames..............from Configuartion
ITEM_DETAILS.fieldNames............keyfield,MAT_TYPE,MAT_NO,AMOUNT,DATE
ITEM_DETAILS.fieldSeparator............,
ITEM_DETAILS.keyFieldValue.........02
ITEM_DETAILS.endSeparator..........'/n'
ITEM_DETAILS.processFieldNames............from Configuartion....
I hope this is much more for this scenario........ -
File Sender Content Conversion: Help needed
Hello Experts,
i need help with file sender content conversion:
i have a file which looks like this:
12329460 24.01.09/07:01 167 Y010122851 136086 43300007 E70115 1L2_96_1
12329660 25.01.09/07:02 157 Y010122851 136086 43390007 E711J5 1L2_96_1
as you can see 8 fields, separated with whitespaces
and i want and xml file which looks like this:
<DT_DATA_FILESENDER>
<Recordset>
<Data>
<field1>12329460</field1>
<field2>24.01.09/07:01</field2>
<field3>167</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43300007</field6>
<field7>E70115</field7>
<field8>1L2_96_1</field8
</Data>
<Data>
<field1>12329660</field1>
<field2>25.01.09/07:02</field2>
<field3>157</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43390007</field6>
<field7>E711J5</field7>
<field8>1L2_96_1</field8
</Data>
</Recordset>
Would you please let me know how the datatype has to look like?
And especially how the FCC has to be configured for this scenario?
Thanks in advance,
Chris> With fixed lengths i get it working,
>
> but with de fieldseparator 0X09 it does not work,
> would you please tell me the complete FCC config not only the fieldSeparation line?
Well Christian,
There is one thing, eithere you can use fieldSeparator or fieldFixedLengths you can not use both together. So in your case do not use fieldSeparator.
The complete FCC is almost same as given in the blog in my previous reply. See the final output in that blog and create your data type accordingly. e.g.
Recordset
------Item 0...unbound
--------Field1 0..1
--------Field2 0..1
--------Field3 0..1
--------Field8 0..1
Regards,
Sarvesh -
What r the content conversion parameters
Hi All
This link contains the text file.
http://www.census.gov/foreign-trade/d/dist.txt
what are the content conversion parameters are required to convert that text to xml.Make it simple recordset structure as below ...
Details
----------->District code
----------->Port code
-----------> Name
Recordset structure Details, *
Details.fieldSeparator :
Details.endSeparator 'nl'
Details.fieldNames : District code, Port code, Name -
What are the content conversion parameters
Hi All
This link contains the text file.
http://www.census.gov/foreign-trade/schedules/d/dist.txt
what are the content conversion parameters are required to convert that text to xml.<sen_dt>
<prefix>
<heads>
<dc>
<pc>
<name>
<main>
<dcno>
<pcno>
<name1>
<rec_dt>
<prefix>
<District_code> District code optional
<port_code> port code 1
<name> name
<main>
<District_code_no>
<port_code_no>
<name1>
content conversion
document name:<sen_dt>
document namespace:http::----
document offset:--
recordset name:input
recordset structure:heads,1,main,*
recordset sequence:Ascending
recordset per message:----
keyfield name:---
prefix.fieldfixedlengths:---
prefix.endSeparator:---
prefix.fieldNames;---
prefix.keyFieldvalue:--
prefix.keyFieldlnStructure:---
main.fieldFixedLengths:9,
main.fieldSeparator:|
main.endSeparator:'nl'
main.fieldNames:district code,port code,name
main.keyFieldValue:
main.keyFieldlnStructure: -
What are the content conversion parameters for this structure
Hi All,
The below file is the text file. what are the content conversion parameters are required and what is the structure to create in the IR to convert into xml.
Schedule D - District/Port List (by District Code) [Produced13APR11]
District | Port | Name
Code | Code |
01 | | PORTLAND, ME
| 0101 | PORTLAND, ME
| 0102 | BANGOR, ME
| 0103 | EASTPORT, ME
| 0104 | JACKMAN, ME
| 0105 | VANCEBORO, ME
| 0106 | HOULTON, ME
| 0107 | FORT FAIRFIELD, ME
| 0108 | VAN BUREN, ME
| 0109 | MADAWASKA, ME
| 0110 | FORT KENT, ME
| 0111 | BATH, ME
| 0112 | BAR HARBOR, ME
| 0115 | CALAIS, ME
| 0118 | LIMESTONE, ME
| 0121 | ROCKLAND, ME
| 0122 | JONESPORT, ME
| 0127 | BRIDGEWATER, ME
| 0131 | PORTSMOUTH, NH
| 0132 | BELFAST, ME
| 0152 | SEARSPORT, ME
| 0181 | LEBANON AIRPORT
| 0182 | MANCHESTER USER FEE AIRPORT, NH
02 | | ST. ALBANS, VT
| 0201 | ST. ALBANS, VT
| 0203 | RICHFORD, VT
| 0206 | BEECHER FALLS, VT
| 0207 | BURLINGTON, VT
| 0209 | DERBY LINE, VT
| 0211 | NORTON, VT
| 0212 | HIGHGATE SPRINGS/ALBURGsince in this case you dont seem to have a key value to figure out what your header is, it is better to go for a two level mapping. i.e first read all the data - each line as an xml tag. and in the first mapping group it as required and then use it for your original mapping.
Regards,
Ninu -
Content conversion parameters for fixed length file
Hi,
Hey i have a small doubt.My input is like this
99443 123213 232234 12312 127544 23423
Here i have four recorsetnames namely HEADER1,HEADER2,HEADER3,HEADER4,HEADER5,HEADER6 all the recordsets are of same size but the lengths of the fields in it vary so i specified the following parameters
HEADER1.fieldFixedLengths=1,3,1
HEADER1.fieldNames=value1,value2,value3
HEADER1.endseperator=" "
HEADER2.fieldFixedLengths=1,3,2
HEADER2.fieldNames=value1,value2,value3
HEADER2.endseperator=" "
MY OUPUT XML STRUCTURE SHOULD BE like this
<header1>
<value1>9<\value1>
<value2>944<\value2>
<value3>3<\value3>
<\header1>
<header2>
<value1>1<\value1>
<value2>232<\value2>
<value3>13<\value3>
<\header2>
Is the content conversion parameters i specified enough for that. I wanted to know how would it know the begin of the next recordset(ie the seperation between the two recordsets) .Please help me its vey urgent
Thanks in advance
SriandhAre header 1 fields always going to occur first , then header 2 and so on?
By default file adapters do not support Nested Strcutures and so if the sequence is going to be the same and all of these have an occurence of 1..1 then things will work.
But if there is going to be an occurnece of * then you will need to use KeyFields.
Regards
Bhavesh
Maybe you are looking for
-
OS 10.4.6 vanished and replaced by 10.4
I recently upgraded to 10.4.6. Everything was fine. Yesterday the automatic system updater information promted me to install the newest security update which I did. When I restarted my compute today, all of a sudden It started up without any warnings
-
How do I convert a pdf doc into a fillable form?
I need to convert a pdf document into a fillable form. Could someone tell me how?
-
Why won't siri read back my messages before asking me to send?
Why won't siri read back my messages before asking me to send?
-
7210 all in one, not printing properly
When printing it only prints half of the text (as you see now, but the bottom half of the words missing) i called an engineer out of the yellow pages and he said that there was a design fault with this all in one printer. Something to do with the pi
-
Wwv_flow.app_not_found_footer_err
During a new install of Apex 3.0.1 I receive the below. When I try to access the system the browser displays wwv_flow.app_not_found_footer_err wwv_flow.err wwv_flow.app_not_found_err OK I dont see a wwv_flow procedure in the database (Is it supposed