cancel
Showing results for 
Search instead for 
Did you mean: 

I am getting error while converting the xml file to pdf

Former Member
0 Kudos

Hi all,

I am getting the error

"Runtime exception when processing target-field mapping /ns0:MT_payment_rec/payment_rec/companycode; root message: Exception:[ExceptionConverter: java.io.IOException: The document has no pages.] in class com.sap.xi.tf._MM_Payment_Advice_ method calculate[a, com.sap.aii.mappingtool.tf7.rt.Context@2e0d7679]"

I followed below blog for converting xml to pdf

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1940

in this blog they mentioned source & target path, but I read the values directly Through sender communication channel with out giving the source and target path in udf(calling the java code from imported archive, and excuted for converting xml to pdf file),

but i am getting above error,

Is there any possibility to return the converted pdf values to target field through udf

Pls help me.

Accepted Solutions (0)

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

Do explore the option suggested here - http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

Former Member
0 Kudos

Hi

Can u tell us what is the function of the UDF in your case ?

Apart from Converting the given input xml to pdf output, I dont see there is any other functionality within the UDF .. and the XMLTOPDF Class requires the two inputs to be passed when it is instantiated in the code

and now if you don't pass those parameters, it's going to throw an IO exception

Regards

Krishna