Sender FCC ( File adapter ) limitations
Hi All,
I have a Flat file on the sender side ..and i need to do the file content conversion .
I have doubts abt the File (FCC) adapter capabalities.Please let me know if i can build the following structure by using FCC
My Flat file will look some thing like this , I have all the header rows followed by all the detail rows followed by all the subdetail rows for all the details .
HEADER1 fields
HEADER2 fields
DETAIL11 fields for HEADER1
DETAIL21 fields for HEADER1
DETAIL12 fields for HEADER2
DETAIL22 fields for HEADER2
SUBDETAIL111 fields for DETAIL11
SUBDETAIL211 fields for DETAIL21
SUBDETAIL121 fields for DETAIL12
SUBDETAIL222 fields for DETAIL22
And i want to convert the flat file to the following format
<HEADER1>
<Filed1> ..</Field1>
<Filed2> ..</Field2>
<DETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL1>
<DETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL2>
<HEADER1>
<HEADER2>
<Filed1> ..</Field1>
<Filed2> ..</Field2>
<DETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL1>
<DETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
<SUBDETAIL1>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL1>
<SUBDETAIL2>
<Field1>..</Field1>
<Filed2> ..</Field2>
</SUBDETAIL2>
</DETAIL2>
<HEADER2>
Regards,
Tarun.
HI ,
Thanks for the reply ..forgot to mention the top node .Below is the modified structure , Please tell me
if it is possible to get this structure using FCC.
Sourde Flat file :
HEADER1 fields
HEADER2 fields
DETAIL11 fields for HEADER1
DETAIL21 fields for HEADER1
DETAIL12 fields for HEADER2
DETAIL22 fields for HEADER2
SUBDETAIL111 fields for DETAIL11
SUBDETAIL211 fields for DETAIL21
SUBDETAIL121 fields for DETAIL12
SUBDETAIL222 fields for DETAIL22
Target File after FCC :
<root>
<b><HEADER1></b>
.........<Filed1> ..</Field1>
..........<Filed2> ..</Field2>
...............<b><DETAIL1></b>
......................<Field1>..</Field1>
......................<Filed2> ..</Field2>
...........................<b><SUBDETAIL1></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL1></b>
...........................<b><SUBDETAIL2></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL2></b>
...............<b></DETAIL1></b>
...............<b><DETAIL2></b>
....................<Field1>..</Field1>
....................<Filed2> ..</Field2>
.........................<b><SUBDETAIL1></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL1></b>
.........................<b><SUBDETAIL2></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL2></b>
..............<b></DETAIL2></b>
<b><HEADER1></b>
<b><HEADER2></b>
.........<Filed1> ..</Field1>
..........<Filed2> ..</Field2>
...............<b><DETAIL1></b>
......................<Field1>..</Field1>
......................<Filed2> ..</Field2>
...........................<b><SUBDETAIL1></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL1></b>
...........................<b><SUBDETAIL2></b>
.................................<Field1>..</Field1>
.................................<Filed2> ..</Field2>
...........................<b></SUBDETAIL2></b>
...............<b></DETAIL1></b>
...............<b><DETAIL2></b>
....................<Field1>..</Field1>
....................<Filed2> ..</Field2>
.........................<b><SUBDETAIL1></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL1></b>
.........................<b><SUBDETAIL2></b>
..............................<Field1>..</Field1>
..............................<Filed2> ..</Field2>
.........................<b></SUBDETAIL2></b>
..............<b></DETAIL2></b>
<b><HEADER2></b>
</root>
Regards,
Tarun.
Similar Messages
-
Anonymous login in sender,reciever file adapter
hi all xi's
i dont know what is the need of anonymous login option in sender,reciever file adapter and the other thing is if i use check anonymous login there is no option for
specifing username,pwd,ftp server ip.
early anser will be appreciated.
bye.
regards.
seeta ram.Hi,
when you configure your FTP server you can opt for anonymous login.
It means anyone can log on to this server just by using the IP address.
No user creation.. so ..No need for user id or pwd. i mean no authentication.
FTP connection parameters.. i.e. server n port will always be there if you are going for FTP.
It wont ask for these if you select NFS.
Being Anonymous only removes the user id n pswd option.
Anonymous login is "Never suggested"..Pretty insecure..
Dont forget to award SDN points Seeta.
Regards
Pushkar
Message was edited by:
pushkar anand -
Error on sender CC file adapter FTP
Hi
i have the scenario FILE-WS-FILE (synchronous) where im having problems in my sender CC, at the channel monitor servlet is showing the next errors while trying to get the message on the XML file.
MP: unexpected exception caught com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
Error: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'
if anyone could help me, i appreciate.
Regards.Check this ones,
Adapter Module error
http://xml.apache.org/xalan-j/apidocs/org/apache/xml/serializer/utils/MsgKey.html
http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/engine/interfaces/messaging/api/MessageKey.html
Regards! -
Purpose of adapter specific message atributes at sender,reciever file adapt
hi.
i want know birefly about adapter specific message atributes at sender ,reciever adapters.
and what would be the result if we enable this adpspecmessatb checkbox
waiting for your response.
bye.
regards.
seeta ram.hi santosh .
thanks for yor your answer.
but when i mapped constant a to the udf and mapped to target and while iam testing i got the error like
10:38:30 Start of test
Compilation of MM_SapIsuTo3rdpartyAccountStatementExtraction successful Runtime exception during processing target field mapping /ns0:MT_SapisuTo3rdpartyAccountStatementExtraction/accstmtdetails/body/status. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_SapIsuTo3rdpartyAccountStatementExtraction_ method filename$[a, com.sap.aii.mappingtool.tf3.rt.Context@421badd8] com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns0:MT_SapisuTo3rdpartyAccountStatementExtraction/accstmtdetails/body/status. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_SapIsuTo3rdpartyAccountStatementExtraction_ method filename$[a, com.sap.aii.mappingtool.tf3.rt.Context@421badd8] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:350) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_SapIsuTo3rdpartyAccountStatementExtraction_ method filename$[a, com.sap.aii.mappingtool.tf3.rt.Context@421badd8] at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:56) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:282) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:47) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:282) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:312) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:401) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0.execute(MapServiceRemoteObjectImpl0_0.java:301) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0_0p4_Skel.dispatch(MapServiceRemoteObjectImpl0_0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.lang.NullPointerException at com.sap.xi.tf._MM_SapIsuTo3rdpartyAccountStatementExtraction_.filename$(_MM_SapIsuTo3rdpartyAccountStatementExtraction_.java:119) ... 26 more RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:MT_SapisuTo3rdpartyAccountStatementExtraction/accstmtdetails/body/status. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_SapIsuTo3rdpartyAccountStatementExtraction_ method filename$[a, com.sap.aii.mappingtool.tf3.rt.Context@421badd8]
10:38:37 End of test
what would be the reason for this.
waiting for u r response.
bye.
regards.
seeta ram. -
Small problem in sending chinese charaters using file adapter
Hi,
Actual scenario is,
Sender system -> file adapter -> XI -> ABAP Proxy -> Receiver system.
error is occured when the data reached the XI.
1. The data file contains Chinese characters (Unicode).
2. When file adapter reads this file, the data in the payload no longer
shows Chinese characters.
Can you please help in this regard...
Thanks,
Surya.Hi,
Actually i am sending an EXCEL sheet which contains chinese charaters to XI using sender file adapter.
When file adapter reads this file, the data in the payload no longer shows Chinese characters.
what i need to do?
SUrya... -
Hi Experts,
In our Scenario the receiver is File FTP.
While doing FCC, we have use ';' as the default delimiter. Now our requirement is when the default delimiter (semicolon) is present in a field value we need to use '@' as the delimiter.
Can you please suggest how to configure the same in the same in the receiver FCC File Adapter.
Thanks
Suganya.Hi,
I dont think you can set the delimiter value dynamically based on the input you receive...
better to proceed with other way that is replace ; with @ in the field value itself..
this need to be handled in mapping part..use indexOf and replaceValue..
one more best thing will be to handle the same in the sender system itself which is sending this data...
HTH
Rajesh -
ASMA parameters in file adapter
Hi experts,
Please explain when exactly we will get the requirement to use ASMA attributes in file adapter and provide few examples?HI,
Just to add a quick note, in the case of adapter like File Adapter you have the option in the Sender / Receiver File Adapter to select the ASMA and the corresponding Attribute ( eg : FileName, Directory etc ) to be used from the SOAP Header.
In the case of few other adapters like SOAP, you do not have such explicit option. You add the ASMA to the SOAP Header using a UDF and you just select ASMA and Varibale Transport Binding in the Receiver SOAP adapter and all the SOAP Adapter value are replaced with header ASMA.
Each adapter has a few specific ASMA and these can be seen along with the technical names while trying to set some condtion in the Condition Editory under Context Objects.
If we check ASMA of file adapter ......all the information corresponding to that attributes will be available in the SOAP header
Every adapter has a defined set of attributes, which are described individually as part of the configuration for each of the adapters. So these attributes would be visible. And better to call it Message Header instead of SOAP header.
If we check ASMA in the receiver file adapter then receiver file adapter will pick those values from the SOAP header and will assign to the target file.
Yes, if mapping of these attributes are done.
Even we can directly set the target file name by accessing the system parameters through UDF.
Yes
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
/people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
/people/alessandro.guarneri/blog/2007/03/18/basic-spam-protection-for-xi-mail-adapter
Thanks
Swarup -
File formatting using File adapter
Hi we are using a sender / receiver file adapter to recive file from source and post file to the target location
This is the expected format in the target system
<?xml version="1.0" encoding="utf-8"?>
<YYY_TIME_XML>
<YYY_TIME_DATA>
<CLIENTID>1</CLIENTID><EMPLID>7454</EMPLID><EMPL_RCD>1</EMPL_RCD><SEQNO>2</SEQNO><COMPANY>765</COMPANY><BUSINESS_UNIT/><DEPTID/><LOCATION/><JOBCODE/><PAYGROUP>XI1</PAYGROUP><OFF_CYCLE>Y</OFF_CYCLE><PU_TXN_TYPE>R</PU_TXN_TYPE><MANUAL_CHECK>S</MANUAL_CHECK><ERNCD>KEG</ERNCD><DATEWORKED>19970303</DATEWORKED><EARNS_BEGIN_DT>20050624</EARNS_BEGIN_DT><EARNS_END_DT>20040630</EARNS_END_DT><OTH_HRS>5</OTH_HRS><ADDL_PAY_SHIFT/><ADDL_SEQ>0</ADDL_SEQ><COMPRATE>10</COMPRATE><DISABLE_DIR_DEP>R</DISABLE_DIR_DEP><AMT>80</AMT><CREATION_DT>20070401101234</CREATION_DT><BATCH_ID>200777251</BATCH_ID><STATE> </STATE><LOCALITY> </LOCALITY><GB_GROUP_ID> </GB_GROUP_ID>
</YYY_TIME_DATA>
<YYY_TIME_DATA>
<CLIENTID>1</CLIENTID><EMPLID>127454</EMPLID><EMPL_RCD>3</EMPL_RCD><SEQNO>5</SEQNO><COMPANY>149</COMPANY><BUSINESS_UNIT/><DEPTID/><LOCATION/><JOBCODE/><PAYGROUP>SW1</PAYGROUP><OFF_CYCLE>T</OFF_CYCLE><PU_TXN_TYPE>Q</PU_TXN_TYPE><MANUAL_CHECK>S</MANUAL_CHECK><ERNCD>BEG</ERNCD><DATEWORKED>20050707</DATEWORKED><EARNS_BEGIN_DT>20050624</EARNS_BEGIN_DT><EARNS_END_DT>20040630</EARNS_END_DT><OTH_HRS>52</OTH_HRS><ADDL_PAY_SHIFT/><ADDL_SEQ>0</ADDL_SEQ><COMPRATE>8</COMPRATE><DISABLE_DIR_DEP>Q</DISABLE_DIR_DEP><AMT>90</AMT><CREATION_DT>20070401106784</CREATION_DT><BATCH_ID>200788851</BATCH_ID><STATE> </STATE><LOCALITY> </LOCALITY><GB_GROUP_ID> </GB_GROUP_ID>
</YYY_TIME_DATA>
But we are getting the data in a line string format.
<YYY_TIME_XML><YYY_TIME_DATA><CLIENTID>1</CLIENTID>......................
Any ideas on how to fix this.
Thanks,Hi Nandini !
As far as I understand, the "CRLF" characters (Hexa 0D and 0A for carriage return and line need) are not needed for the XML parser to understand the target file structure as a unique line...maybe your target system is parsing manually the file reading it line by line instead of using an XML parser.
If you try to open your received xml file in Internet Explorer? are you seeing it correct?
An XML file with all info in one line is still a valid XML file.
Regards,
Matias. -
Sener file adapter has read/pick the files first in first out method.
HI
In my Interface I am Using Sender as File adapter. As per my requirement Sender file adapter has to read the file from file directory. This directory having 1000u2019s of files with some files are same name (time stamp is different) and some files are different name here file adapter has to pick the file with mentioned name in File sender adapter like ZMPSMSGSTATUSMST-.xml .
But source file name is like <TABLENAME>-<TIME_STAMP>.XML (ZMPSWRKFLOWHIST-20090527-150522-628) in file directory.
The file adapter in XI will poll to this directory and picks the file in first- in first-out by sorting according to timestamp.
To do this configuration what I have to do in sender file adapter please give me your valuable inputs.HI Abhi,
Thank you for your spot replay.
I tested now but i am geting below error.
Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID f4ca4f86-9c5d-4bdd-1fb1-a6bd7cda99a8(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: [NWMss][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK__XI_AF_MSG__491A1D0B'. Cannot insert duplicate key in object 'dbo.XI_AF_MSG'..
Could not archive file 'E:\file\in\ZMPSMSGSTATUSMST-20090527-150522-628.xml' after processing
but i am able to see this file in Archive foleder. once file is archivied sucessfully the same file is delted from source directory?
I given processing parametes queue name is TEST.
Thanks
srinivas
Edited by: srinivasreddy p on May 28, 2009 8:43 AM
Edited by: srinivasreddy p on May 28, 2009 8:52 AM -
Multiple files in file adapter
Hi
My requirement is i need to pick all the files with different names from a folder through sender side file adapter.
i give the source directory name... from that directory i need to pick all the files with different names. So how to achieve this requirement.
Thanks
MunnaVHi,
In sender comm channel give the source directory name and If you have only text files then you can use *.txt and if they are xml then use *.xml ij source file name.....it will be easier for sender CC to pick files rather than using * ....
If you want to process all files at one shot, then you will have to use BPM....inside the BPM you can have a loop to collect your multiple files in a single msg.....
Regds,
Pinangshuk. -
Dynamic File Adapter status - Active or Inactive
Hi Experts
Is there any way to set the Sender/ Receiver File adapter status dynamically to inactive or active.
Is there any setting exists in the file adapters ? Please provide me possible solutions.
Thanks
FaheemHi all,
Many thnz for the response.
There is one more way of doing this as well. Just now i found that.
In the runtime workbench - Communication channel monitoring , Select the automatic control for the comminucation channel to make active or inactive .
there are options for our comm channel to run specfic date and time.
Thnz
Faheem -
Sender File Adapter - FCC - No incoming field separator - How to do FCC?
Hi,
I have a sender File adapter and I need to do the File Content Conversion but there apparently no incoming field separator and the file ocntains just running text - no data records but just information.
For example the incoming file is something like:
The Hongkong and Shanghai Banking Corporation Limited 27JAN2009 PAGE 1
Incorporated in Hong Kong with limited liability
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-8888888
ABU DHABI Payment Set AAA
BBB MAIL BOX NO.99 Contact Person ABC LIMITED
7777777777 Telephone
AUTOPAY LIST - PROCESSED
(AUTOPAY-OUT SALARY)
Payment Date 27JAN2009
First Party Narrative . 66666666
Second Party Narrative .
The Message type that I am mapping to contains:
MT_XXXX
WA
Item
Item2
Item3
This is so that the information can be mapped to different field areas and send across to the Receiver Mail Adapter. In the mail i receive, i get the running text. I tried giving the field separator as '0x09' but it is not working.
I have also tried WA..fieldContentFormatting to nothing but again no luck.
I have tried with Recordset Sequence with Ascending and variable and have also tried Recordsets per Message with * and blank - but it did not help.
Please advice.
Regards,
ArchanaHi,
I assumed that it was tab but when I made the change in FCC, it did not work.
I would still like to have a output where it looks like below if more than 2 types of information in 1 line as below:
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-9999999999999
and not something like:
ABC IAL LIMITED ABU DHABI, UAE
ABC MIDDLE EAST Account No. 001-999999999999
I am not sure what to do here.
Help please.
Regards,
Archana -
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 -
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.
Maybe you are looking for
-
My MAC Pro 15" 2.4GHz's freezes every 12min.
Hey I just purchased my mac book pro on the 18th of may from an apple store, brand new. I decided to upgrade the RAM myself since it is a much better deal, however once I replaced the RAM my computer began to run much slower and it began crashing (sh
-
JMS Message Bridge with MQ, only BytesMessage available ?
I have successfully set up bridging between MQ and JMS, and have an MDB that receives messages via the bridge when a message producer puts messages on the MQ-queue. Ideally, I would like to receive MapMessages and not BytesMessages which seems to be
-
How to remove Solaris 9 to install Solaris 8 on Sparc?
Okay, I'm fairly new to this. I've got some software compiled to run on Solaris 8, not 9, so what would be the best way to remove the existing Solaris 9 installation to make way for 8? The box is an Ultra10 elite 3d, 1 hard drive, 512MB RAM, 440Mhz.
-
Hello! I need to create a table of contents but I do not know how to change the layout. The table of contents has no structure: http://img253.imageshack.us/img253/703/tableofcontentsunstructxh8.jpg I have 3 types of titles. I tried to page it up manu
-
Imported files not found after re-configuring pc drive partitions !
I had alot of files I imported into ITunes which were in the following folder location c:\myfiles. I have now moved these to a new drive partition d:\myfiles because there was no more space on C: drive. Now when I play these songs I get an ! (Excalam