cancel
Showing results for 
Search instead for 
Did you mean: 

File --> RFC -->File without BPM

Former Member
0 Kudos

Hi All,

I am working on a File-RFC-File without BPM using the blog https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29

Its working for other similar scenario's and its not working for a scenario where I am using BAPI CCAP_ECN_CREATE.

I am getting an error

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

- <!-- Request Message Mapping

-->

- <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/_MM_ECN_Creation_Res_</SAP:P1>

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

<SAP:P3>Parsing an empty source. Root element expected!</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_ECN_Creation_Res_: Parsing an empty source. Root element expected!</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

It is not deleting the source file, instead it creates the output file with the same source strcuture instead of the actual response configured.

Note: Here from the RFC i have taken the XSD structure for the request and response and created an external defination and done one-one mapping for each field.

Provide some inputs.

Regards,

Nithiyanandam

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

Still I am having error in SXMB_MONI as "application error-restart not possible".

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

- <!-- Request Message Mapping

-->

- <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="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">CCAP_ECN_CREATE.Exception</SAP:ApplicationFaultMessage>

<SAP:Stack />

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

</SAP:Error>

Please provide inputs.

Regards,

Nithiyanandam

Former Member
0 Kudos

Hi Guys,

PLease help out...

Regards,

Nithiyanandam

Former Member
0 Kudos

Hi

You imported RFC as a external definataion.

you check the namespace for the same in ID.

both the namespaces in IR and ID are referring same or not?

Regards

Rams.

Former Member
0 Kudos

Hi All,

The message is getting successfully processed now in PI and I am also getting the response back from ECC which I could only see in the MONI and the file is not written in the target directory and moreover my sender CC, still showing an error and also the file is not getting deleted from the input directory.

"Error: com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId"

Regards,

Nithiyanandam

Former Member
0 Kudos

Hi

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

<SAP:P3>Parsing an empty source. Root element expected!</SAP:P3>

This is the problem arises due to incorrect XML message.

I think you need to revisit the external definition you prepared for the RFC module.

Thanks

Gaurav

Former Member
0 Kudos

Hi,

Any other inputs please, Because I am the the source (Req(external defn derived from the RFC))-Source(Req) and the target(Res )- target(Res(external defn derived from the RFC)) strcuture to be the same.

Please provide some inputs...

Regards,

Nithiyanandam

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

use this thread to achive File-Rfc-File without BPM Guided by Bhavesh

but if u r using XI3.0 less than SP level19 then only possible way, there is a concept called RFC LookUp using which you can call an RFC and get the response from insde your message mapping with a User Defined function.

So, maybe you can get the file, and while mapping the same to the target file , you can trigger the RFC call using the RFC LookUp API and then map the response ot the target!

But, this should be used only in case of non transactional RFC calls. If the RFC is going to do some DB actions like Insert / Update you should not use this option.

Former Member
0 Kudos

<SAP:P3>Parsing an empty source. Root element expected!</SAP:P3>

you should pay attention on this message in your log... it means that a node is missing in the xml ... you must change your datatypes .. somewheres missing a node (empty source) ..

i had a similar problem and solved it that way

regards

christian

Former Member
0 Kudos

Hi All,

Please provide some inputs...

Regards,

Nithiyanandam