on 02-21-2007 8:20 AM
Hi Experts,
I am picking the file from local directory using Plain J2SE adapter.iam using Integration process for collect pattern that means iam reading record by record in the file collecting in IP and process the whole message at a time.
I configure the sender file adapter like this in Plain J2SE.
file adapter java class
classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
version=30
#mode=FILE2XMB
mode=FILE2XMBWITHROWCONVERSION
Integration Engine address and document settings (example, see docu)
XI.SLDConfiguration=SLDaccessor
XI.TargetURL=<fromSLD>
XI.QualityOfService=EO
XI.SenderParty=
XI.SenderService=Praveen_Adapter_BS
#XI.ReceiverParty=
#XI.ReceiverService=
XI.Interface=TranslatorMessage_OMI
XI.InterfaceNamespace=http://absa.co.za/BA/Translator_TO_BA
##File Adapter specific parameters (example, see docu)
file.type=BIN
#file.type=TXT
#file.encoding=UTF-8
##Adress for XMB endpoint
XMB.httpPort=8200
XMB.httpService=/file/receiver
XMB.Userid=sap
XMB.Password=init
XMB.Client=400
XMB.Language=en
file.sourceDir=C:
ABSA_XI
OUT
file.sourceFilename=translator2BA_out.txt
#file.processingMode=setAttribute
file.processingMode=test
#file.processingMode=delete
#file.processingMode=archiveWithTimeStamp
#file.archiveDir=./temp_archive
#file.retryInterval=20
file.pollInterval=60000
xml.addHeaderLine=0
xml.headerLine=
xml.processFieldNames=notavailable
xml.fieldSeparator=,
But Iam getting the error like this
SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_TranslatorMessage_BankAnalyzerMess~</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_TranslatorMessage_BankAnalyzerMess~ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can anybody please tell me what was the problem.
and another thing i need to read the file untill the last record.how can i find the no of records in the file and how can i give that value to LOOP STEP in ip.
Answer will be rewarded
Kind Regards
Praveen
Hi Praveen,
test your mapping in message mapping test tab for the data of your XML message in SXMB_MONI......see what error is generated in mapping.....remove the error...save and activate the mapping, reprocess this XML message in SXMB_MONI......then your mapping error will be removed.
you can count the records in file, by having the node in graphical mapping, change its context to the topmost node, send it to a UDF, then in that UDF, for each array element, increase count variable by 1....then the UDF will return the count of the records in the file.....use the output of UDF to target count node.
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The XI.TargetURL is used to establish a connection between the Plain J2SE Adapter Engine and the Integration Server. The nomenclature of the above is followed as: http://<xiserver>:<httpport>/sap/xi/engine/type=entry.
In your configuration, replace sap-client=000 .... with type=entry. The appropriate client would be resolved during the runtime, using the server name.
Please see the below links
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Test your mapping ......
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Collect pattern is used to collect different number of files(messages). It is not used to read a single file record by record. Check the SAP BASIS SWC in your IR . Go to the namespace http://sap.com/xi/XI/System/Patterns to see an example. You will find all patterns.
To find the number of records in the message this can be easily achieved in the graphical mapping.
Regards,
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check ur mapping possibly with the payload
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.