cancel
Showing results for 
Search instead for 
Did you mean: 

FILE 2 FILE 2 FILE without BPM,"Premature end of file" error occured

brian_luo
Participant
0 Kudos

hi experts,

i hav a scenario that is FILE 2 FILE 2 FILE without BPM, i refer the scenario below:

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file%2528without+bpm%2529].

in my scenario i instead of the RFC using File.the scenario hav used two module: AF_Modules/RequestResponseBean & AF_Modules/ResponseOnewayBean

but error occurred in the runtime.

the error is described below:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_file2file_rec_mm_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>

<SAP:P3>Premature end of file.</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_file2file_rec_mm_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

request helps in this regards.

thx in advance.

rgds.

brian

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

Brian, File-RFC-File scenario you are referring has RFC as receiver which could be used for sync communication. For your case File-File-File, you cannot use these modules because file adapter behaves only asynchronously and you won't receive any response.

Regards,

Prateek

former_member200962
Active Contributor
0 Kudos
Premature end of file

The source XML that you are using for the mapping file2file_rec_mm is missing some tags (start, end)...just check the format of your XML....no other type of error....you can even test with that xml in IR.....

brian_luo
Participant
0 Kudos

hi abhishek,

thx for ur answer. but i hav tested in the IR, there is no error.

this is the xml document below , u can see:

THE SOURCE XML:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_CompanyID xmlns:ns0="http://xif.foxconn.com.xif/jean/file2file">

<ComID/>

<SetAge/>

</ns0:MT_CompanyID>

THE TARGET XML:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_CompanyIDxmlns:ns0="http://xif.foxconn.com.xif/jean/file2file">

<ComID></ComID>

<SetAge>1975</SetAge>

</ns0:MT_CompanyID>

i didnt give value to the ComID, i gave a constant value to the SetAge.

thx.

pls give me some advices.

brian

brian_luo
Participant
0 Kudos

hi abhishek,

when i insteaded of the first receiver (file receiver) in the file 2 file 2 file scenario using rfc receiver,

then the "Premature end of file" error disappeared.

i guess cause the file dont respond like rfc, so the error occur, its right???

brian

former_member200962
Active Contributor
0 Kudos
i guess cause the file dont respond like rfc, so the error occur, its right???

cant say with 100% guarantee...but the file seems to be behaving weirdly in the synchronous mode.....

brian_luo
Participant
0 Kudos

hi abhishek,

ok, thx 4 ur time.

brian