on 09-25-2009 7:10 AM
hi all,
I followed one blog to create PDF file using file adapter and custom adapter module : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1540235550DB11887853428651970314End...
As per this blog ,, my processing sequence in communication channel is: custom adapter module (module created for converting xml to pdf file) -> CallSapAdapter (stores file with pdf extension to an ftp location). I had added audit logs in module and i am able to see them in RWB.
But file created at ftp location contains only name com.lowagie.text.Document6e42c8a3 & also i am not able to open it as PDF.
my last few lines of code are:
document.add(table);
document.close();
String xmlpld = document.toString();
xpld.setText(xmlpld);
inputModuleData.setPrincipalData(msg);
return inputModuleData;
Please help!
thanks,
mayank
hi,
>>>But file created at ftp location contains only name com.lowagie.text.Document6e42c8a3 & also i am not able to open it as PDF.
that can mean onlz one thing - you didn't prepare the correct PDF as shown in this wiki by Shabz:
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
there is another way of doing it.. instead of the module use the logic in a java mapping (provided you can do the parsing and build the data)
and yeah this reference code should help - http://wiki.sdn.sap.com/wiki/display/XI/CODE%20-%20Create%20a%20PDF%20File%20via%20the%20iText%20Lib...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shabarish,
As i am trying through Custom modules, need to know one thing,
PdfWriter.getInstance(document,oos);
after creating PDF file according to your code, how to set oos stream to inputModuleData, i feel that i am doing something wrong in converting oos to inputModuleData
as of now my code is:
String xmlpld = oos.toString();
xpld.setText(xmlpld);
inputModuleData.setPrincipalData(msg);
return inputModuleData;
Please help!
Mayank
Hi,
Refer this Link:
Regards,
Nithiyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.