FCC at sender
Hi
I have FCC at sender picking up a csv file . Header comprises field name and at item level is the values for the field names and at trailer we have record count .
need to ignore header and trailer and the item data is passed to proxy strcuture
Document offset been done to ignore header but iwhen i see the mesage in sxmb_moni , I am unable to get the trailer but the trailer field is again taken as the item level .
File - no key specified
Docno,docdate,invoiceno,passname
500,20.07.2010,123,AAAA
Recordcount,5
In datatype i have not defined the header but onky with item and trailer record.
fcc
item.fieldnames
item.fieldSeparator
item.endSeparator
item.keyFieldvalue
when i see the message in moni , incoming message with the item and trailer is not distinguished and trailer is taken as a item level data itslef Please advise where I am going wrong
Hi
Checked out all possiblities and finally the adapter module is here for removing trailer record but instead using byte array stream I have acquired thexml in a string
public byte[] convert(byte src[],String msgType,String nameSpace) throws Exception {
String xmldata = "";
I am getting an parsing an empty document.root nde expected. Please advise
Created on 29-Aug-2010
To change the template for this generated file go to
Window>Preferences>Java>Code Generation>Code and Comments
package trailerPackage;
import java.io.ByteArrayInputStream;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.sap.aii.af.mp.module.Module;
import com.sap.aii.af.mp.module.ModuleContext;
import com.sap.aii.af.mp.module.ModuleData;
import com.sap.aii.af.mp.module.ModuleException;
import com.sap.aii.af.ra.ms.api.Message;
import com.sap.aii.af.ra.ms.api.MessageDirection;
import com.sap.aii.af.ra.ms.api.XMLPayload;
import com.sap.aii.af.service.auditlog.Audit;
import com.sap.aii.af.service.auditlog.AuditDirection;
import com.sap.aii.af.service.auditlog.AuditLogStatus;
import com.sap.aii.af.service.auditlog.AuditMessageKey;
@ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
@ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
@ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
@ejbRemote <{com.sap.aii.af.mp.module.ModuleRemote}>
@stateless
public class TrailerClass implements SessionBean, Module
private SessionContext myContext;
AuditMessageKey amk;
public void ejbRemove()
public void ejbActivate()
public void ejbPassivate()
public void setSessionContext(SessionContext context)
myContext = context;
public void ejbCreate() throws CreateException
public ModuleData process(
ModuleContext mc,
ModuleData imd)
throws ModuleException {
Object obj = null;
Message msg = null;
String msgType = null;
String nameSpace = null;
try {
obj = imd.getPrincipalData();
msg = (Message) obj;
msgType = (String) mc.getContextData("msgType");
nameSpace = (String) mc.getContextData("nameSpace");
if (msg.getMessageDirection()== MessageDirection.INBOUND)
amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
else
amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.OUTBOUND);
XMLPayload xp = msg.getDocument();
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Now got the xml payload object.");
if (xp != null)
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Now calling the Convert Method to convert CSV to XML.");
byte by[] = convert(xp.getContent(),msgType,nameSpace);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Conversion Done Successfully.");
xp.setContent(by);
imd.setPrincipalData(msg);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Principle data is set successfully.");
} catch (Exception e)
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Module Exception Caught .");
ModuleException me = new ModuleException(e);
throw me;
return imd;
public byte[] convert(byte src[],String msgType,String nameSpace) throws Exception {
String xmldata = "";
try {
String input = new String(src);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Conversion Started.");
String tmp1 = input.substring(0, input.indexOf("<Trailer>")) ;
String tmp2 = input.substring(input.indexOf("</Trailer>")+10) ;
xmldata = tmp1 + tmp2 ;
catch (Exception e)
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Exception in Convert Method.");
return xmldata.getBytes();
Edited by: Anusha Ramsiva on Aug 31, 2010 11:59 AM
Edited by: Anusha Ramsiva on Aug 31, 2010 5:02 PM
Edited by: Anusha Ramsiva on Aug 31, 2010 5:04 PM
Similar Messages
-
Mapping problem due to FCC in sender file adapter
Hi All
I am doing File( Flat File ) to RFC Scenario.it is working fine..
the problem comes in mapping with multiple records.
FCC at sender file adapter is used
my Data Type are :
Source DT Target RFC import parameter(table).
E2ED20* ITEM*
KEY VBELN
VBELN POSNR
E2E24* CHARG
KEY
POSNR
CHARG
<b>*->>multiple occurence
E2ED20 and E2E24 are 2 segment ,KEY is used in FCC to identify E2EDL20 & E2EDL24</b>
My source text file is like this :
E2EDL20 0200
E2EDL24 xyz
E2EDL20 0201
E2EDL24 abc
E2EDL24 efg
E2EDL24 mln
E2EDL20 0202
E2EDL24 gty
so the payload should be :
0200 xyz
0201 abc
0201 efg
0201 mln
0202 gty
in <i>FCC ignoer record set= true</i>
otherwise is not called...
i try to use split by value & use oneasmany , not helpfull.
in message mapping when i checked th field VBELN -> display queue
i am getting an array 0200
0201
0202 in white fields
thanks & regards
Ashutosh Rawat<b>Source payload</b>
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_MATNO_FILE xmlns:ns="urn:abc:xxx">
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b><VBELN>0083662685</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900001</POSNR>
<CHARG>1078629</CHARG>
<LFIMG>3200</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900002</POSNR>
<CHARG>1078630</CHARG>
<LFIMG>1895</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900003</POSNR>
<CHARG>1079145</CHARG>
<LFIMG>1883</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900004</POSNR>
<CHARG>1079146</CHARG>
<LFIMG>3195</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083662648</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900011</POSNR>
<CHARG>1001450</CHARG>
<LFIMG>2946</LFIMG>
<MEINS>8PC</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083673936</VBELN></b> </E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900012</POSNR>
<CHARG>1073953</CHARG>
<LFIMG>2458</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
</ns:MT_MATNO_FILE>
<b>at target what required is</b>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900001</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900002</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900003</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900004</POSNR>
</item>
<item>
<b><VBELN>0083662648</VBELN></b>
<POSNR>900011</POSNR>
</item>
<item>
<b><VBELN>0083673936</VBELN></b>
<POSNR>900012</POSNR>
</item>
in Sender FCC
E2ED20.fieldFixedLengths 7,76
E2ED20.fieldNames KZ,VBELN
E2ED20.keyFieldValue E1EDL20
E2ED20.endSeparator 'nl'
E2E24.fieldFixedLengths 7,24,13,7,3
E2E24.keyFieldValue E1EDL24
E2E24.fieldNames KZ,POSNR,CHARG,LFIMG,MEINS
E2E24.endSeparator 'nl'
ignoreRecordsetName true
source file is already there...
Message was edited by:
ashutosh rawat -
Hi Experts,
My Input file contains following structure:
101
102
103
104
Now I want to generate following source XML file using FCC in sender file adapter
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_Employee xmlns:ns="http://Test_Employee">
<Employee>
<EmpID>101</EmpID>
<EmpID>102</EmpID>
<EmpID>103</EmpID>
<EmpID>104</EmpID>
</Employee>
</ns:MT_Employee>
Pls let me know what will be values for following parameters:
Document Name: <This would be MT_Employee probably>
Document NS: <This would be http://Test_Employee probably>
Document Offset : <Blank because we need values from first row onwards>
RecordSet Name:
RecordSet NS:
RecordSet Structure:
RecordSet Sequence:
Recordsets per Msg:
Key Field Name:
KetField Type:
Parameters:
Pls let me know all the parameters required to attain above XML
Thanks,
RakeshHi Gopal,
I have provided the parameters said by u, but it did'nt work. We have to either provide 'Employee.fieldFixedLengths' or 'Employee.fieldSeparator' . Because one of these is mandatory for FCC. After providing ur parameters, I got below error:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'Employee.fieldFixedLengths' or 'Employee.fieldSeparator' is missing Consistency check: no. of arguments in 'Employee.fieldFixedLength' does not match 'Employee.fieldNames' (0 <> 1)
Pls let me know the parameters to attain below XML:
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_Employee xmlns:ns="http://Test_Employee">
<Employee>
<EmpID>101</EmpID>
<EmpID>102</EmpID>
<EmpID>103</EmpID>
<EmpID>104</EmpID>
</Employee>
</ns:MT_Employee>
from below input file structure:
101
102
103
104
Regards,
Adi -
Error While Doing FCC on Sender Side
Hi All,
Iam reffering this Blog and doing File to File (FCC at Sender Side)
Content Conversion ( The Key Field Problem )
I have the Same Structure for both Source & Target. this is my structure
http://img386.imageshack.us/my.php?image=sourcestructym4.jpg
& i used the Following FCC Parameters at Sender Side
http://img123.imageshack.us/my.php?image=fccparawy7.jpg
Header.fieldSeparator ,
Header.fieldNames --- keyfield,Name,Designation,City
Header.keyFieldValue --- 01
Body.fieldSeparator ,
Body.fieldNames -
keyfield,Salary,Contact,MailID
Body.keyFieldValue -- 02
Trailer.fieldSeparator ,
Trailer.fieldNames ---keyfield,Address,Pin
Trailer.keyFieldValue -- 03
ignoreRecordsetName -- true
Txt File--Input
01,Vamsi,SSE,Chennai
02,1000,9962123146,vamsi.krishna
03,Chennai,600096
I placed the txt File in AL11 of XI Server and file not picked up and i have got the Error in Sender CC monitor in RWB
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Header.keyFieldValue': no value found Mandatory parameter 'Header.fieldNames': no value found
RegardsHi,
I think all your configuariotn looks right.
Regarding your .txt file:
Check that there is no blank lines before your first record.
Also, that your records begin in the first column,
and also that there is 'nl' between your records.
Try to add 'field.endSeparator ' in every record.
According to help. sap:
If you only specify a value for NameA.fieldSeparator, the system expects a string containing the
names of the file columns in the same format as the file rows. This means that the same separator and
any additional strings you specify for NameA.endSeparator and/or NameA.beginSeparator are expected.
Carlos
Edited by: Carlos Gonzalez on Nov 27, 2008 12:10 PM -
File not able to pick while using FCC at sender channel
Hi Experts ,
we design one scenario that we need to process flat file to ECC. So we have used FCC at sender channel.
while we testing , only its showing as successfull logs in channel , but we not able to pick the file.
could you please check the below details and let me know it i missed any thing.
PFB file which need to pick.
PFA scrren shot of FCC
26.Jun 2014 #123
Country|Currency|Amount|Code|Rate
Australia|dollar|1|AUD|18.989
Brazil|real|1|BRL|9.119
Bulgaria|lev|1|BGN|14.037
Canada|dollar|1|CAD|18.836
China|renminbi|1|CNY|3.242
Croatia|kuna|1|HRK|3.623
Denmark|krone|1|DKK|3.682
EMU|euro|1|EUR|27.455
Hongkong|dollar|1|HKD|2.603
Hungary|forint|100|HUF|8.916
IMF|SDR|1|XDR|31.154
India|rupee|100|INR|33.540
Indonesia|rupiah|1000|IDR|1.668
Israel|shekel|1|ILS|5.883
Japan|yen|100|JPY|19.824
Lithuania|litas|1|LTL|7.952
Malaysia|ringgit|1|MYR|6.272
Mexico|peso|1|MXN|1.550
New Zealand|dollar|1|NZD|17.678
Norway|krone|1|NOK|3.286
Philippines|peso|100|PHP|46.019
Poland|zloty|1|PLN|6.627
Romania|new leu|1|RON|6.258
Russia|rouble|100|RUB|59.842
Singapore|dollar|1|SGD|16.137
South Africa|rand|1|ZAR|1.894
South Korea|won|100|KRW|1.986
Sweden|krona|1|SEK|2.989
Switzerland|franc|1|CHF|22.569
Thailand|baht|100|THB|62.119
Turkey|lira|1|TRY|9.469
United Kingdom|pound|1|GBP|34.361
USA|dollar|1|USD|20.179
FCC details
channel logs.
regards
rajuHi Peddaraju,
Cross check correct source directory and file name is maintained in the sender file communication channel. If everything is fine try to restart the XPI File Adapter service in NWA.
Troubleshoot as suggested in the below thread:
File Adapter in PI not reading file from file system.
Regards,
Krupa -
Hey guys
i have a very basic question.wats the need of FCC on sender side?suppose i have a flat source structure,do i always need to convert this into XML before i can send it to IS or XI will do that by itself?
thanx
ahmadAhmad,
The only adapter that does implicit coversion is JDBC! Also if you look into Sender JDBC adapter , the JDBC adapter will conveert data into a standard formart and your Source Datatyype needs to confirm to this format. You cannot customize / change the format of the source datatype for JDBC adapter.
You need to perform conent conversion using JMS and Mail Adapters if your source data is not XML . For this you use the MessageTransformBean to convert Non XML to XML.
More on this in this article,
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710">How to Use the Content Conversion Module with the XI 3.0 J2EE JMS Adapter</a>
the Title suggest that you can use it with JMS but it can also be used with Mail Adapters.
Regards
Bhavesh -
Error in FCC in sender JMS adapter
Dear all,
We have IDoc flat file which is fixed field length but it has no field separators. It also doesnt have a carriage return(enter) after every segment ( say edi_dc40).
In this case ,the FCC is giving error " Missing Structure in Last recordset ".
But if we try adding a CARRIAGE RETURN ( ENTER ) after every segment
the fcc is working.
Regards,
MadhuHi ! Madhu
take some idea from this
http://help.sap.com/saphelp_nw70/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm
<b>Converting File Content in a Sender Adapter</b>
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
Thanks !!
Regards
Abhishek Agrahari -
Query on FCC for Sender File adapter
Hi All,
Our sender file is like below:
0191011 2005100007098240081117812600811178126 3 0
10001011110112000004389 EUR C000000000224397 EUR9DE 294000945681
1000102MARTINSWERK GMBH KOELNER STRASSE 110
9000008000001000000000224397
Hence we have created the sender datatype as follows:
Header (1..1))
Data1(0..1)
Data2(0..1)
Data3(0..1)
Trailer(1..1)
During the sender FCC comm channel configuraiton we have provided the recordset as Header,1,Data1,1,Data2,1,Data3,1,Trailer,1
But since the Data fields are optional it is erroring our in Sender CC stating that XML validation is wrong.
Can anyone please help us on this
Thanks
Suganya,hI,
well... ok.
other solution: "Header,1,Data1,1,Data2,1,Data3,*,Trailer,1", but that it's only if you always have data1+ Data2 only once (Occurence 1..1), and you have sometime Data3 pour not evereytime (so occurenc 0..N).
other solution: return to your solution wiih "1" and nt "*" and use the option "keyField to distinguish the different structures.
- for header, keyField = 0
- for footer, keyKey = 9
- and as Data1, Data2 have the same first field = 1, you cannot use it as a KeyField, you shoud use another field like the digit which is just after "100010" (for instance), so "1" for Data1 and "2" for Data2
Decaclare a KeyField name like "MyKey" for instance, and under under "fieldNames" use the term "MyKey" in the corresponding field. See [sap help|http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/682bcd7f2a6d12e10000000a1553f6/content.htm] for more details.
regards
mickael
Edited by: Mickael Huchet on Nov 19, 2011 7:07 PM -
FCC on Sender CC to convert flat file to complex xml structure
Hi ,
i need to create a complex xml structure using FCC at the sender communication channel.
the datatype structure is as follows:
Data type Occurrence
DT_SOURCE
SEG_9 1..1
SEG_10 1..1
SEG_20 1..1
SEG_30 0..1
SEG_40 1..2
SEG_50 0..1
SEG_55(loop) 0..1
SEG_55 0..9999
SEG_60-70(loop) 1..1
SEG_60 0..1
SEG_70 0..9999
SEG_90 0..1
Please let me know how this can be acheived.
Regards,
Meenakshi
Edited by: meenakshipradhan on Apr 5, 2010 7:44 PMHi Meenakshi,
Please let us know the Hierarchy of the structure to be created, is it one level only?
Could you please explaing what is the loop meant here?
SEG_55(loop) 0..1
SEG_55 0..9999
SEG_60-70(loop) 1..1
Please specify if there are any delimiters or what is the file format at source.
Or Try reading the whole content of the file then use a XSLT to create the desired structure, i think in XSLT you can easily try out the looping.
Regards,
Srinivas. -
Hey guys
i have a requirement wherein i will be getting a CSV file of the form
<Reg>3
<Name>mark</Name>
<Age>25</Age>
</Reg>
<Reg>4
<Name>Adam</Name>
<Age>27</Age>
</Reg>
i have convert this file to XML and send over HTTP,
is this possible using FCC,coz i know sender FCC permits only one level of substructure and here my structure is kinda strange.
any help would be appreciated
thanx
ahmadWith source as ,
mark~25
Adam~27
Jimmy~30
XML needed as,
<Employee>
<data>
<Name>Mark</Name>
</Age>25</Age>
</data>
<data>
<Name>Adam</Name>
<Age>27</Age>
</data>
</Employee>
Use this content conversion.
Document Name : Employee
Document Namespace : namespacevalue
Recordset Strucutre : data,*
data.fieldNames : Name,Age
data.fieldSeparartor: ~
data.endSeparator : 'nl'
ignoreRecordsetName : true
Regards
Bhavesh -
Problem in Sender File Adapter using FCC with Variable structure
Hi Experts,
Hi Experts,
I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
Recordset per message == *
Key Field Name == Key
(Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
HEADER.fieldSeparator ,
HEADER.endSeparator u2018nlu2019
HEADER.fieldNames Key,x,y,zu2026
HEADER.keyFieldValue 1
HEADER.keyFieldInStructure ignore
HEADER.fieldContentFormatting trim
HEADER.additionalLastFields ignore
HEADER.missingLastFields ignore
DATA.fieldSeparator
DATA.endSeparator
DATA.fieldNames
DATA.keyFieldValue
DATA.keyFieldInStructure
DATA.fieldContentFormatting
DATA.additionalLastFields
DATA.missingLastFields
Using same variables for Trailer record as well.
Source CSV file which i am picking:-
ADSE ,RASD,replan Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, S Top Up ,20080401 ,20080430 ,sdf , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,ded , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, Cash Award ,20070801 ,20070831 ,df , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,sf , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
BTRL , 5140,
When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
Kindly help me in solving this problem.
Thanks,
Aditya VermaHi Madan,
Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
ADSE ,ASDA,Sha replan Fr ont Feed Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,TPV , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, r Cash Award ,20070801 ,20070831 ,TPV , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,TPV , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
EMPL ,0255555, Cash Award ,20080301 ,20080320 ,TPV , 00000000027870 ,2007 , , , , , ,20080414 18:08:25,
EMPL ,0266666, Cash Award ,20071001 ,20071020 ,TPV , 00000000020681 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0877777, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000036000 ,2007 , , , , , ,20080414 18:07:05,
EMPL ,0888888, Leaver Cash Award ,20071201 ,20071231 ,TPV , 00000000157200 ,2007 , , , , , ,20080414 18:11:29,
EMPL ,0899999, S Leaver Cash Award ,20080301 ,20080331 ,TPV , 00000000153530 ,2007 , , , , , ,20080414 18:07:42,
EMPL ,0800000, S Leaver Cash Award ,20070701 ,20070731 ,TPV , 00000000012234 ,2007 , , , , , ,20080414 18:08:34,
BTRL , 5140,
This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
Thanks a lot,
Aditya. -
Hi
I have an excel file which I save as a csv extension. If I use FCC in Sender File Adapter, I need to add a module in my communication channel. Can anyone provide me with that?
Is this module generally deployed on XI server beforehand or do I have to write a java code and deploy it myself?
I have already had a look at this blog
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
VaibhavYou will have to create a module in this case.there is no standard module available for this fuctionality as of now.
Ref: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81 to help create a module. -
Sender File Adapter FCC Question
Hello folks!!
I am trying to configure a FCC for Sender file adapter and wanted to consider a Line feed Carriage return line which will look as below to be a empty tag in XML. After Line 4 there will be a blank line which identifies the start of next record. I tried using Field.MissingLastFields , Field.endSeparator etc., Perhaps I am not using the correct value. Any help appreciated.
Line1
Line2
Line3
Line4
Line1
The expected XML is as below:
<Record>Line1</Record>
<Record>Line2</Record>
<Record>Line3</Record>
<Record>Line4</Record>
<Record></Record>
<Record>Line1</Record>Hi Greg
Thanks for your feedback. I tried and it didn't work. below is the FCC i have in sender adapter
RecordSetName = RecordSet
RecordSetStructure = Dummy,*
Dummy.fieldNames = Record
Dummy.endSeparator = 'nl'
Dummy.missingLastfields = add
Dummy.ignoreRecordsetName = true
Dummy.fieldSeparator = 'nl' and also I tried with Dummy.fieldFixedLengths = 255 .
Still I don't get the empty tag for the blank line in the file, so my output is still same . Please note the blank line doesn't have a space so if I place the cursor and move to next in blank line it will go to next line ( Carriage return and line feed).
Please suggest . -
FCC (File Content conversion)-In sender
Hi All,
Using FCC in sender i need to convert text to xml.Such that my text file format is
Line1
Line2
Line3
All the three lines is having some data..My source data type structure is
DT_Emp
>Emp_Info
>Header
ID----
(0..1)
>Details
Line----
(0..unbounded)
Now i need to get data from text file into only line element..My ID element should be blank..XML should have ID element but it should not be populated from input file.How to get this using FCC..Is there any parameters for this?
Can anyone give some useful ideas
Regards
VenkatHI,
For FCC Check this links.
File content conversion sites
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
phani -
Error in FCC-Sender Channel.
Hi Experts,
I have configured the following FCC in Sender communication Channel.
DT_HEADER.keyFieldValue =1
DT_HEADER.fieldNames = KEY,FILENAME
DT_RECORDS.keyFieldValue= 2
DT_HEADER.fieldNames= KEY,AMOUNT
DT_TRAILER.keyFieldValue =3
DT_TRAILER.fieldNames= KEY,SUM
DT_HEADER.fieldSeparator = ,
DT_RECORDS.fieldSeparator= ,
DT_TRAILER.fieldSeparator = ,
DT_TRAILER.endSeparator = 'nl'
DT_RECORDS.endSeparator= 'nl'
DT_HEADER.endSeparator = 'nl'
My sender text file is
1,RDFILE
2,100
3,100
In RWB i am getting the following error message,
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'DT_HEADER.fieldFixedLengths' or 'DT_HEADER.fieldSeparator' is missing Consistency check: no. of arguments in 'DT_HEADER.fieldFixedLength' does not match 'DT_HEADER.fieldNames' (0 <> 2)
i need to get Sender XML structure as follows
<DT_HEADER>
<KEY/>
<FILENAME/>
</DT_HEADER>
<DT_RECORDS>
<KEY/>
<AMOUNT/>
</DT_RECORDS>
<DT_TALER>
<KEY/>
<SUM/>
</DT_TALER>
i dont know where i did the mistake can any one help me to solve this issue.
Regard's
Preethi.Hi
You need alter Data type structure first then do file content conversion
DT_Record
<Header>
<Key>
<FileName>
</Header>
<Trailer>
</trailer?
then add
HEADER.keyFieldValue =1
HEADER.fieldNames = KEY,FILENAME
RECORDS.keyFieldValue= 2
It works
Regards,
Raj
Maybe you are looking for
-
How do I Set up airport extreme with existing fios wireles network
Hello al, l I have an existing wireless network with an arcitonic wireless router provider with my fios tv. Everything is working well. Now I want to add airport extreme to increase my network range and later add apple tv /net flicks I,m not great
-
Copying a disk which has a boot camp partition
Colleague has an iMac with a boot camp partition, and the disk has failed. It won't boot off the mac partition, although the windows partition works fine. He bought a new 1T disk and we are trying to copy his disk on to it, and will then install th
-
I rented Sherlock Holmes: A Game of Shadows and when I tried to watch it, the movie would not play. I received the error message (-42408). What does this mean and what should I do?
-
How do I create a submenu to a manual menu?
Hi, I created a menu with the widget, set to manual. How can I now create the submenu? The pages exist, but nothing is showing up in the widget. Thanks, I hope ou can help me with that. Cat
-
Can someone please help me with my code as i am stuck, I have succesfully displayed the question i want to screen using the button find. Then and only then will the bottom panel be shown with the question and relevant answers displayed in text boxes.