PDF Output File Format
Hi all,
Does somebody know what is the PDF output file format in Oracle EBS 11.5.10.2?
Is it PDF/X, PDF/E, PDF/UA, PDF/VT or something else?
Thanks and regards,
Karmit
Hi,
See this thread.
concurrent ouput to email
concurrent ouput to email
Regards,
Hussein
Similar Messages
-
I am not able to modify the text in pdf output file using pdf editor
Hi,
We have upgrade the xml 5.6.1 in server level. After upgrading this, we are not able to modify the pdf output file. Previously we used to modify text and delete text in pdf file which is generated by oracle Application. As of now we cann't upgrade higher version. Can you suggest what to do?.Check the xdo configuration file option in the user guides. There should be options that allow / disallow modifying text specifically. If you are in EBS, you should be able to change the configuration file options from the XML Publisher Administrator UI.
Klaus -
Excel file trucation in PDF output file
Having problem with PDF output file as the imported EXCEL table gets truncated - approx. the left 1/2 upper left corner is the only part of the table that appears in the PDF file. Master file displays correctly in PM. No apparent memory issue so any thoughts? Thanks.
A bit more info please.
Windows or Mac, and which versions?
Which version of PM?
How did you import the speadsheet into PM?
How did you create the PDF?
Cropping and displacement of meta-files when creating PDFs from PM is well known and there are work-arounds.
The long term answer is move on to InDesign.
Iechyd da! John
13:31 08/09/2009 BST -
Chinese character in PDF output file ?
I have trouble to display Chinese characters (traditional Chinese) on PDF output file. Is there anyone can help ?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene Kello ([email protected]):
From 'Reports 6i Release Notes'...
Reports supports PDF 1.1.
The Adobe Acrobat Reader cannot read .PDF report files generated by Report Builder if the report contains certain types of non- English character set languages (typically multi-byte) or Unicode character set.
Same with reports 6.
Install Acrobat Reader 4.X. Print to Acrobat Distiller printer. Works for Baltics.
cheers,
Rene.<HR></BLOCKQUOTE>
It works ! Thank you ! -
Name of PDF output file?
Within Adobe Output Desinger I have set PDF as my presentment target. How do I define what the name of the PDF output file will be and where it is saved?
The "-zdirpath,u[.ext]" parameter on the ^job statement or on the definition for the jfmerge task to create the PDF is what you are looking for. The ",u" option tells the system to create a random name to avoid overwriting duplicates but if you have a specific name in mind, this could look like "-zc:\folder\filename.ext". Also, include the "-aspPDF" parameter to tell jfmerge that the PDF presentment target is to be used.
-
Regression testing on PDF output files from Reports?
My current client is looking to do more automated regression testing of the output (content) of their reports, most of which are output from Reports6i into Adobe Acrobat PDF file format. Is anyone currently using or aware of a tool (QARun, WinRunner, etc.) that will do this? (Most of the tools can do a binary comparison of the PDF files that were output, but we need something that will look into the PDF files themselves and tell us where any differences are found in the actual content (text) of the report itself.)
Thanks in advance for any info anyone can provide!
- BillDear Nick,
Just ensure a printer is configured. This can be done by typing in echo $PRINTER at the $Prompt.
If it returns null then configurea printer and i fell this should resolve your problem,
Since it did resolve my problem.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nick Mavrakis:
I am having some trouble getting pdf output in the unix environment from Reports 6i.
If I kick off a defined report file (.rep) from the command line as follows:
rwrun60 testreport.rep destype=file desformat=pdf desname=testreport.pdf userid=connection_details
I get the following errors:
REP-0004: Warning: Unable to open user preference file.
REP-3300: Fatal error in toolkit.
UI-9: This function call is out of context
If I run the command without the file output options (rwrun60 testreport.rep userid=connection_details) then the report opens up on the screen correctly. From here, if I try to generate a pdf file, I get the following error:
REP-1800: Formatter error.
The report is defined as character type, and is a simple listing of approximately 50 records from a database table. There are no graphics or any pl/sql defined in the report.
Has anyone had similar problems in trying to do this?
Any help is greatly appreciated.
Cheers
Nick<HR></BLOCKQUOTE>
null -
Is there a pdf output file size limitation?
Hi,
I have an rtf invoice template that worked fine in test environments. Now that it has been migrated to Production, it works except for this one invoice that has created a meta data XML file that is 2 MB, which is not that large, is it? Additionally, I cannot open the metadata file in html, it just hangs, but can in a text editor, so I have been chopping up the file into smaller pieces and can get pdf output of around 175 pages worth.
I've tried it with different sets of data from this file, and they work, just not the whole file. Is there some setting required for this to work?Thanks, but what sort of infrastructure are you referring to? There are 8500 rows of data for this invoice at three levels which is not large, but some fields are 240 characters long.
I'm not getting an Out of Memory type of error. In fact, I'm not getting any errors, just that there is no output. pdf-compression is set to true. What else could I check? -
PDF output file from Image Capture corrupted
This problem occurs only when scanning multiple page documents into image capture, the lower 1/4 of the first 2 pages are unreadable blurs. The page shows up ok in the Image capture preview window, but the PDF output is corrupted. The printer is a Brother MFC-7820N, I am scanning 150 dpi grayscale, US letter, no image correction, to PDF. The problem occurs with both of my computers, Quad G5 10.5.8, and a MacBook 10.5.8, this has happened since I purchased the printer, I was running 10.4 at the time. I have just scanned 1 page at a time with no problem, but now I have a large amount of documents to scan and I get the corrupt files. If anyone has seen this and found a solution, I would appreciate any suggestions.
Ah perfect, you made me aware of a feature kink I didn’t know about! When you import stuff using Image Capture, it goes into /private/tmp/Image Capture_Import.(string of numbers and letters).
You can navigate there by going to the Finder, hitting Command-Shift-G, and typing in /private/tmp—if the folder still exists, as it usually does for some time, sometimes even until the next restart or so—you can see the folders which should include one or more of thoe Image Capture_Import.something folders and find your files.
Incidentally, if you want to find a “system” file, i.e., one that’s in a location normally hidden by the Finder, you can:
1. Open up a new Spotlight/Find window in the Finder, and start searching by name.
2. Next to where it says Search: This Mac… etc. there’s a + button. Click that, then
3. From the dropdown menu choose Other… and look in the list for “System files” and check the “In Menu” checkbox for it.
4. Hit OK.
5. Choose “System Files” which is now in the dropdown, choose “are included” from the next dropdown.
Be careful what you do with files you find using this method. It will show everything, including files essential to running your Mac properly, so unless you know exactly what you’re doing, don’t just start dragging files off this window onto your Desktop or anything, try to copy them instead by option-dragging (holding down the option key while dragging)—that way, you’re only making copies, not moving a file from where it’s supposed to be, and your Mac can find it.
Hope this helps! If you can’t find your files this way, there are other programs which can undelete and perform other operations to recover data… this happens to everyone, no matter how long you’ve been a user. -
UTL FILE OUTPUT FILE FORMAT ISSUE ON ORACLE 11G
how to format util file output align with column value with proper format.
set serveroutput on
DECLARE
CURSOR h1
IS
select 'TOTAL_ACCOUNT_REJECTS' as TOTAL_ACCOUNT_REJECTS ,
'PC' as PC ,
'RT' as RT,
'SERIAL' as SERIAL
from dual;
-- l_app_nm := RTRIM( TRIM( l_line ), CHR(13) );
CURSOR c1
IS
SELECT
company ,
user,
app,
account
FROM account_auth
WHERE ROWNUM < = 5;
lc_file_handle UTL_FILE.file_type;
lc_file_dir VARCHAR2 (100);
lc_file_name VARCHAR2 (50);
gov_005_payment_rec VARCHAR2 (1000);
BEGIN
lc_file_dir := 'OUTB';
lc_file_name := 'test.txt';
lc_file_handle := UTL_FILE.fopen (lc_file_dir, lc_file_name, 'W',1024);
FOR i IN h1
LOOP
gov_005_payment_rec :=
i.TOTAL_ACCOUNT_REJECTS
||' '
|| i.PC
|| ' '
|| i.RT
|| ' '
|| i.SERIAL;
UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
END LOOP;
FOR i IN c1
LOOP
gov_005_payment_rec :=
i.company
||' '
|| i.user
||' '
|| i.app
||' '
|| i.account;
UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
END LOOP;
EXCEPTION
WHEN UTL_FILE.INVALID_PATH THEN DBMS_OUTPUT.PUT_LINE('Invalid
path!');
WHEN UTL_FILE.INVALID_MODE THEN DBMS_OUTPUT.PUT_LINE('Invalid
mode!');
WHEN UTL_FILE.INVALID_OPERATION THEN DBMS_OUTPUT.PUT_LINE('Invalid
operation!');
WHEN OTHERS
RAISE;
END ;
OUTPUT : issue with file format
TOTAL_ACCOUNT_REJECTS PC RT SERIAL
&&&&&846 000000000000 APPLICATION123 20570
&&&&284 000000000000 APPLICATION133 20570
&&&2&&846 000000000000 APPLICATION163 20570
EXPECTED output ==> please advise me , how to create proper formatted output file using utl_file? thanks in advance.
TOTAL_ACCOUNT_REJECTS PC RT SERIAL
&&&&&846 000000000000 APPLICATION123 20570
&&&&284 000000000000 APPLICATION133 20570
&&&2&&846 000000000000 APPLICATION163 20570Example of creating a fixed width format file for a dynamically provided query, using the DBMS_SQL package...
As SYS user:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
,p_dir IN VARCHAR2
,p_header_file IN VARCHAR2
,p_data_file IN VARCHAR2 := NULL) IS
v_finaltxt VARCHAR2(4000);
v_v_val VARCHAR2(4000);
v_n_val NUMBER;
v_d_val DATE;
v_ret NUMBER;
c NUMBER;
d NUMBER;
col_cnt INTEGER;
f BOOLEAN;
rec_tab DBMS_SQL.DESC_TAB;
col_num NUMBER;
v_fh UTL_FILE.FILE_TYPE;
v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
BEGIN
c := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
d := DBMS_SQL.EXECUTE(c);
DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
FOR j in 1..col_cnt
LOOP
CASE rec_tab(j).col_type
WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
ELSE
DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
END CASE;
END LOOP;
-- This part outputs the HEADER
v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
FOR j in 1..col_cnt
LOOP
CASE rec_tab(j).col_type
WHEN 1 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
WHEN 2 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
WHEN 12 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),greatest(19,length(rec_tab(j).col_name)),' ');
END CASE;
END LOOP;
UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
IF NOT v_samefile THEN
UTL_FILE.FCLOSE(v_fh);
END IF;
-- This part outputs the DATA
IF NOT v_samefile THEN
v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
END IF;
LOOP
v_ret := DBMS_SQL.FETCH_ROWS(c);
EXIT WHEN v_ret = 0;
v_finaltxt := NULL;
FOR j in 1..col_cnt
LOOP
CASE rec_tab(j).col_type
WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
v_finaltxt := v_finaltxt||rpad(nvl(v_v_val,' '),rec_tab(j).col_max_len,' ');
WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_n_val,'fm99999999999999999999999999999999999999'),' '),rec_tab(j).col_max_len,' ');
WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),' '),greatest(19,length(rec_tab(j).col_name)),' ');
END CASE;
END LOOP;
UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
END LOOP;
UTL_FILE.FCLOSE(v_fh);
DBMS_SQL.CLOSE_CURSOR(c);
END;
This allows for the header row and the data to be written to seperate files if required.
e.g.
SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
PL/SQL procedure successfully completed.
Output.csv file contains:
empno ename job mgr hiredate sal comm deptno
7369 SMITH CLERK 7902 17/12/1980 00:00:00800 20
7499 ALLEN SALESMAN 7698 20/02/1981 00:00:001600 300 30
7521 WARD SALESMAN 7698 22/02/1981 00:00:001250 500 30
7566 JONES MANAGER 7839 02/04/1981 00:00:002975 20
7654 MARTIN SALESMAN 7698 28/09/1981 00:00:001250 1400 30
7698 BLAKE MANAGER 7839 01/05/1981 00:00:002850 30
7782 CLARK MANAGER 7839 09/06/1981 00:00:002450 10
7788 SCOTT ANALYST 7566 19/04/1987 00:00:003000 20
7839 KING PRESIDENT 17/11/1981 00:00:005000 10
7844 TURNER SALESMAN 7698 08/09/1981 00:00:001500 0 30
7876 ADAMS CLERK 7788 23/05/1987 00:00:001100 20
7900 JAMES CLERK 7698 03/12/1981 00:00:00950 30
7902 FORD ANALYST 7566 03/12/1981 00:00:003000 20
7934 MILLER CLERK 7782 23/01/1982 00:00:001300 10
The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
Adapt to output different datatypes and styles are required (this is currently coded for VARCHAR2, NUMBER and DATE) -
How convert pdf,xls file format into swf
Hi friends
i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
Thanks And Regards
Vineet OshoQuickTime cannot do this of iteslf: you need to add Flip4Mac:
http://www.telestream.net/flip4mac-wmv/overview.htm -
Urgent: How to break pdf output file in multiple pdf files without bursting
Hi all,
I am developing a rtf template which will take a xml file which contains data for many employees. Now the requirement is to create a individual pdf file for each user. I know that it can be done through Oracle bi publisher's interface through bursting but we don't have that option. We have to do it at template level.
Right now my template produces report for multiple employees on a new page.
<?for-each-group@section:row;./USERS_SYS_ID?><?split-by-page-break:?>
<?end for-each-group?>
Is there any method like <?split-by-file-break:?> by which each employee report can be started in a new output file.
Thanks and Regards,Thanks, George!
I will try your suggestion.
While waiting for a response, I ran into another problem:
Some of the PDF documents I am to work from are "protected," meaning I can read them but not extract any pages or click to add them to a list of files to import...but I need to extract some or all pages from it. Any suggestions on this?
Thanks! -
*****output File format
Hi all,
Instead of Time stamp in the out put file ,we require the out put file format as xyz_a.txt,xyz_b.txt.......
eg:file name sample.txt out put required is sample_a,sample_b,sample_c......
is it possible in Xi?
Thanks,
SrinivasaHi,
Yes, you need to use variable substitution
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6a316af5a23672e10000000a114a6b/frameset.htm
Filename : sample_%var%.txt
Keep the mode as Create
The value of Var will be made a, b, or c in message mapping.
also if you want to name the target file as the one which you have read you can make use of Dynamic configuration, as mentioned here (See adapter specific identifiers)
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/69d7cfa4b633eae10000000a1553f6/content.htm
Regards
Suraj
Edited by: S.R.Suraj on Oct 7, 2009 4:55 AM -
Unable to View pdf Output File Created by XML Publisher
Hello All,
i have created a report in xml publisher then registered it thru concurrent program.But when i am trying to see the output ,it gives me output in xml form instead of giving in pdf format.
Report is completing with warning and log file details are as below :
Projects: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXPAMATREQ module: MPDISCOM - Material Requirement Report
Current system time is 12-JAN-2010 17:49:38
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
Enter Password:
Report Builder: Release 10.1.2.3.0 - Production on Tue Jan 12 17:49:42 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 520841 on node APPSDEV2 at 12-JAN-2010 17:49:49.
Post-processing of request 520841 failed at 12-JAN-2010 17:51:49 with the error message:
The Output Post-processor is running but has not picked up this request.
No further attempts will be made to post-process this request, and the request will be marked
with Warning status.
Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
Finished executing request completion options.
Concurrent request completed
Current system time is 12-JAN-2010 17:51:49
---------------------------------------------------------------------------Hello All,
I have checked output post processor log and find the below details:
[1/12/10 6:49:17 PM] [31068:RT520883] Completed post-processing actions for request 520883.
[1/13/10 10:02:08 AM] [OPPServiceThread1] Post-processing request 521396.
[1/13/10 10:02:08 AM] [31068:RT521396] Executing post-processing actions for request 521396.
[1/13/10 10:02:08 AM] [31068:RT521396] Starting XML Publisher post-processing action.
[1/13/10 10:02:08 AM] [31068:RT521396]
Template code: XXPAMATREQ
Template app: PA
Language: en
Territory: 00
Output type: PDF
[1/13/10 10:02:08 AM] [UNEXPECTED] [31068:RT521396] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:558)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:228)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'crosstab' used but not declared.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 17 more
[1/13/10 10:02:08 AM] [31068:RT521396] Completed post-processing actions for request 521396.
834K(12960K), 0.0028761 secs]
why its happening? what is this error "InvocationTargetException" -
Adhoc Query- problem with the output file format
Hi Gurus,
I have a problem in exporting the output of an adhoc query to Excel format.
The menu option I chose to export the report data into Excel is List>Export>Spreadsheet.
However,I think I've just pressed the wrong option to export my report and now I can't seem to change it from a HTML file option.
Can anybody help me correct this output setting.
Points assured for apt help...Hi Sushil,
There are two ways to save the output in the excel format.
As you have mentioned, you can use
List -> Export-> Spreadsheet.
Then select table. Now the output will open in a spreadsheet.
The other way is
List -> Export-> Local File
Here you need to select the option spreadsheet. Then mention the path where you want the file to be stored. Also mention the format as .xls
Hope this helps
Regards,
Brinda -
Hi experts,
I am currenty getting below output in my XML file and it is wrapped in message type MT_Test.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Test xmlns:ns0="http://test.com/xi/T1/Data">
<Tests>
<schemaLocation>http://tempuri.org/TestSchema.xsd F:/documentation/MID/Release-Test/TestSchema.xsd</schemaLocation>
<Test>
<HeaderID>This is a string 1</HeaderID>
</Test>
</Tests>
</ns0:MT_Test>
and I want to change it to the below format.
<?xml version="1.0" ?>
<Tests xmlns="http://tempuri.org/TestSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tempuri.org/TestSchema.xsd F:/documentation/TEMP/Release-Test/TestSchema.xsd">
<Test HeaderID="RES-996-25885-527">
</Test>
</Tests>
Request you to give your inputs on how I can achieve this?Hi ,
You need a java mapping to produce exactly the output you posted here.
I assume you r working with PI 7.1 here is the java mapping code.
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
public class FormatXML extends AbstractTransformation{
public void execute(InputStream in, OutputStream out)
throws StreamTransformationException {
try{
// TODO Auto-generated method stub
DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
DocumentBuilder builderel=factory.newDocumentBuilder();
/*input document in form of XML*/
Document docIn=builderel.parse(in);
NodeList l=null;
String schemaLocation="";
l=docIn.getElementsByTagName("schemaLocation");
if(l!=null)
schemaLocation=l.item(0).getTextContent();
schemaLocation=schemaLocation.replaceFirst("/MID/", "/TEMP/");
String outPut="<?xml version=\"1.0\" ?><Tests xmlns=\"http://tempuri.org/TestSchema.xsd\" " +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
"xsi:schemaLocation=\""+schemaLocation+"\">"
+"<Test HeaderID=\"RES-996-25885-527\">"
+"</Test></Tests>";
out.write(outPut.getBytes("UTF-8"));
catch(Exception e)
throw new StreamTransformationException(e.getCause().toString());
public void setParameter(Map arg0) {
// TODO Auto-generated method stub
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
FormatXML genFormat=new FormatXML();
FileInputStream in=new FileInputStream("C:\\Apps\\sdn\\format.xml");
FileOutputStream out=new FileOutputStream("C:\\Apps\\sdn\\format1.xml");
genFormat.execute(in,out);
catch(Exception e)
e.printStackTrace();
public void transform(TransformationInput arg0, TransformationOutput arg1)
throws StreamTransformationException {
this.execute(arg0.getInputPayload().getInputStream(), arg1.getOutputPayload().getOutputStream());
If you are new to java mapping pls follow this http://www.****************/Tutorials/XI/Mapping/Index.htm
You need to install eclipse and java 1.5.0 for PI 7.1. You also need proper library files for PI 7.1 which you need to download from PI server. Please follow this link http://wiki.sdn.sap.com/wiki/display/XI/WheretogetthelibrariesforXI+development
Regards
Anupam
Maybe you are looking for
-
Error when scheduling WEBI report to FTP server
Hi We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server. Any help would be appreciated Regards, Anisa
-
I have created a PO: 4000000231 to 4000000244 for Vendor A. I have done payments for the vendors for several bills against many POs. Now i want to know how much payment i have done against each PO. Let me how to get it (preferably without any work ar
-
Error message after write command
Hi, i have a program that will display an error message after a write command... it goes like this: when you click on the button change material it will go to the transaction MM02 and when you saved your changes the value of the table will refresh bu
-
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC1; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C) Timestamp: Thu, 7 Jul
-
Since installing itunes 7, windows xp picks up my ipod and shows the folders as if it were a drive. Itunes does not, so I can not sync. I never had my ipod set up to be used as a hard drive so I don't understand this change in behavior. I wish I neve