Misplaced XML tags order
Hi all,
In my target XML structure order/sequencer of few XML tags under a node is changed
Is the order really an issue. My client complains about the order.
Any pointers ?
-Keerthi
Thanks guys.
External definition has Name followed by Description as follows
<Partner>
<Name>USA</Name>
<Description>country</Description>
</Partner>
But the output xml files has Description followed by name as follows..
<Partner>
<Description>country</Description>
<Name>USA</Name>
</Partner>
Similar Messages
-
Error for fetching long text in xml tag for xml publisher report
My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
G_MEDIA...
XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
in xml tag.
One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
Please help.Hi,
Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report... -
Add XML Tag to XML File (Idoc to XML File)
Hi there.
Just a question regarding the addition of a tag header in an XML file please?
Idoc - > XI -> file (XML File)
We have a need to add something like this below in bold to XML Tag Header in the inbound file:
<?xml version="1.0" encoding="UTF-8"?>
<?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
MSGTYPE="ORDERS"?>
Any ideas on how this can be managed would be apreciated please?
Thank you.
Mick.Hi Carlos.
Thanks for your reply. I like what you are suggesting, however, I have no knowledge of Java and how to implement this Java addition to the mapping interface.
I would appreciate any hints you may have. The value that I am trying to add to the tag header is exactly as it is below(the value in bold) and it can in fact be fixed, i.e. I am not looking to dynamically determine the values in the additional tag but just add the value as it is below...
<?xml version="1.0" encoding="UTF-8"?>
<?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
MSGTYPE="ORDERS"?>
I would appreciate any input from you on that.
Thanks in advance Carlos.
Mick. -
How to change XML Tag sequence in XML Publisher Reports
Hi Experts,
I am working on XML Publisher reports, EBS 11I and Database 9i. I have standard report 'PO Printed Purchase Order Report (XML)', it's output type is XML. I want to change the sequence of groups in XML file.
I am getting XML tags like below at present:
LIST_G_HEADERS \ G_HEADERS \ LIST_G_HEADER_NOTES
I want to change the sequence of groups like below.
LIST_G_HEADERS \ G_HEADERS \ LIST_G_LINES \
Could somebody help me how to change the sequence of XML Groups.
Thanks in advance.Paul,
This works. Thanks!
I am still working through the implications of having a data connection defined. I notice that every time I submit, it creates two records in my database, one with all the fields blank, and one with the data and attachment.
I will have to do some more digging into the double submission, but at least it is uploading the file.
Thanks again,
Ed -
[JS CS3] Problem with iterating xml tags
Hello,
Below is a script that is supposed to find text in a document and then tag it with an xml tag. I have run into a problem, which if I solve in the way I know how, causes another problem.
When I iterate in a positive direction--i++--the first instance of the text (in this example "abc") is correctly tagged. But the second instance the tag recedes by two characters, that is, tags the three characters prior to the "c." A third instance will recede two more characters, ad nauseam, if my Latin is correct.
The solution is to iterate backwards, i.e., i--. But this causes another problem. If there is more than one story, then the xml structure reverses the order of the stories. The elements within a story are ordered correctly however.
So why is this happening and how can I solve it?
Thanks,
Tom
var myDoc = app.activeDocument;
var findABC = theTextFinder(myDoc,"abc");
xmlTagIt(myDoc,"abc",UIColors.RED,findABC);
//*****functions*******
function xmlTagIt(docRef, tagName,colorOfTag, arrToTag){
var tagName, colorOfTag, arrToTag;
myDoc.xmlViewPreferences.showStructure = true;
myDoc.xmlViewPreferences.showTaggedFrames =true;
myDoc.xmlViewPreferences.showTagMarkers = true;
myDoc.xmlViewPreferences.showTextSnippets =false;
myDoc.xmlPreferences.defaultStoryTagColor = UIColors.WHITE;
var rootElement = myDoc.xmlElements.item(0);
if (myDoc.xmlTags.item(tagName) == null) {
var tagRef = myDoc.xmlTags.add(tagName, colorOfTag);
} else {//if tag already exists then stop the script. Avoid double tagging
myDoc.xmlViewPreferences.showStructure = true;
alert("You have already run this script.");
exit();
}//end else
//for (var i = arrToTag.length-1; 0 <= i; i--){
for (var i = 0; i <= arrToTag.length-1; i++){
var elementRef = rootElement.xmlElements.add (tagRef,arrToTag[i]);
}//end for i
}//end function xmlTagIt
function theTextFinder(docRef,textFindIt){//last argument is the string of text to find
app.findTextPreferences = NothingEnum.NOTHING;
app.changeTextPreferences = NothingEnum.NOTHING;
app.findTextPreferences.findWhat = textFindIt;
var arrTextFindIt = myDoc.findText();
return arrTextFindIt;
}//end theTextFinderDave,
Thanks for the reply.
I'm not sure what you mean by "convert the references on the fly." You mean find a way to advance two characters forward and tag that? In the script I submitted here I am only searching for "abc," which of course I would not search or at all in real life. The script uses grep to search for about twenty different typographical errors that typically appear and tags them all.
Reiterating backwards seems, at first sight the way to go. But I haven't a clue as to how to reverse the order of the stories. I can get an array of stories, and array.reverse() them, but am not sure how to then make the script put this reversed order into the xml structure. Any hints?
There, of course is bigger problem with the stories. If the document is written with one story created after another then the order of them is top to botom. But if say a text frame edited into the middle of all this, that story is still the last one in the xml structure. At least in one test, that was so. Maybe the way to solve this is to build an array of stories that have as one xml attribute the page it first appears on. Then order the array according to that attribute.
Any advice you give will be appreciated.
Thanks,
Tom -
Replace the XML Tags which are in binary format in 4.6C Version
Hi Experts,
I have an issue. I am working on 4.6 c version of sap. I have a requirement to send ftp of an xml file. I created an internal table which has components of table type too ( For Line items ). After appending a record of sales order into the table I am using SDIXML_DATA_TO_DOM ( To attach the to the document ) and SDIXML_DOM_TO_XML ( To convert the document contents into XML ( Binary Format ).
CLASS cl_ixml DEFINITION LOAD.
g_ixml = cl_ixml=>create( ).
CHECK NOT g_ixml IS INITIAL.
m_document = g_ixml->create_document( ).
CHECK NOT m_document IS INITIAL.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'xmldata' " data in character format
DATAOBJECT = xmldata[]
IMPORTING
DATA_AS_DOM = l_dom
CHANGING
DOCUMENT = m_document
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CHECK NOT l_dom IS INITIAL.
w_rc = m_document->append_child( new_child = l_dom ).
IF w_rc IS INITIAL.
WRITE 'OK'.
ELSE.
WRITE: 'ERR ='.
ENDIF.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = m_document
PRETTY_PRINT = ' '
IMPORTING
XML_AS_STRING = w_string
SIZE = w_size
TABLES
XML_AS_TABLE = it_xml " Final XML data ( with xml tags ( xml tags are the field names of internal table ) ) in bin
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2
IF SY-SUBRC = 0.
WRITE 'OK'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
WRITE: 'ERR =',
sy-subrc.
ENDIF.
So, it_xml has the binary format of XML data.
Now the requirement is that I need to get rid of some XML tags in the final internal table XML data. Because by default, at the start of the the table row the <item> and </item> tags are inserted. This is automatically done in the Function module
SDIXML_DOM_TO_XML.
I want to find out the binary string of <item> and </item> and replace them by null binary string. I know how to replace the character strings but not for binary strings in 4.6 C.
It is little bit urget. I would appreciate the quicker answer.Hi,
check this program , I think this will help you
TYPE-POOLS: ixml.
TYPES: BEGIN OF xml_line,
data(256) TYPE x,
END OF xml_line.
data : itab like catsdb occurs 100 with header line.
data : file_location type STRING.
data : file_name like sy-datum.
data : file_create type STRING.
file_name = sy-datum .
file_location = 'C:\xml\'.
concatenate file_location file_name into file_create.
concatenate file_create '.XML' into file_create.
DATA: l_xml_table TYPE TABLE OF xml_line,
l_xml_size TYPE i,
l_rc TYPE i.
select * from catsdb into table itab.
append itab .
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR =
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME =
IMPORTING
PE_BIN_FILESIZE = l_xml_size
TABLES
i_tab_sap_data = itab
CHANGING
I_TAB_CONVERTED_DATA = l_xml_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 24
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = file_create
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
Thanks. -
Getting unwanted values between the XML tags in XSLT mapping
Hi Folks
I have come across a very strange situation with my xslt mapping.
I am getting unwated values "11" between xml tags
as follows
<Tag>0001</Tag>
11
<DataID>3</DataID>
I am not sure why I am getting these values in between the tags. Any suggestions would be appreciated.Hi David,
Here is the code fragment where these 2 tags are mapped, FYI, the source is an IDOC message. The unwanted "11" is coming After the <Tag></Tag> and <DataID></DataID>. FYI, Fof the element <Tag></Tag> its a default value. But for <DataID> </DataID> I have the mapping logic.
<Order>
<OrderHeader>
<Tag>009</Tag>
<xsl:for-each select="E1EDKA1">
<xsl:choose>
<xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U960'">
<DataID>
<xsl:value-of select="'1'" />
</DataID>
</xsl:when>
<xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U300'">
<DataID>
<xsl:value-of select="'3'" />
</DataID>
</xsl:when>
<xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U930'">
<DataID>
<xsl:value-of select="'1'" />
</DataID>
</xsl:when>
<xsl:when test="normalize-space(PARVW) = 'WE' and normalize-space(LIFNR) = 'U400'">
<DataID>
<xsl:value-of select="'3'" />
</DataID>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'1'" />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each> -
Generation of XML Tags for columns in Lexical parameter in select query
Hi,
I have lexical parameter in my select statement of my data model in the report.
How do i generate XML tags for these columns inside a Lexical Parameter?
Simple Example: I have data model query as follows:
SELECT msi.inventory_item_id
&LP_SELECT
FROM mtl_system_items_b
Here my lexical Parameter LP_SELECT is generated in before report trigger as follows in my report:
:LP_SELECT := 'msi.segment1,msi.description';
So, the question is how to generate XML Tags for columns in Lexical Parameter(as in the example above, i need XML tags for these columns - segment1 and description)
Thanks,
Ratantry this
Select &order data_show
from oe_order_headers_all
where order_number ='7889'
and setting :order:='order_number'; in after parameter form trigger.
Hope this helps
Hamid -
XML Elements Ordering according to XSD
I have a XML document having XML Tags out of order but have parent child relationship intact. I have a XSD to follow. How do i convert this XML document instance into the properly ordered (Elements) XML document instance progrmatically. Need some pointers......
For Example XSD states that <Text> should follow <Info>
Input
<example>
<Text>Hello</Text>
<Info>Text1</Info>
<example>
OutPut needed
<example>
<Info>Text1</Info>
<Text>Hello</Text>
<example>
Thanks for your Help.If you know the changes necessary then you could write an XSL transformation to do them. But a generalized piece of code that examined an XML document and a schema, then produced a corrected document, would be quite difficult to write.
-
I am using Oracle 8i for storing XML files in a CLOB column and that column is intermedia text indexed. Is there any way to sort a query output based on an XML tag within that CLOB column. for eg., <price>10.22</price> is an XML tag, can i sort on price
I don't think you'll be able to use interMedia text directly to sort the query output, but you should be able to use dbms_lob.instr and dbms_lob.substr to look for a specific tag and then sort on the contents of the tag. It may not be pretty, but you could do something like:
select fields
from xmltable
where <where clause>
order by
nvl(dbms_lob.substr(
clobcolumn,
dbms_lob.instr(clobcolumn, '</price>') - dbms_lob.instr(clobcolumn, '<price>'),
dbms_lob.instr(clobcolumn, '<price>')), 0) asc/desc
You'd have to test it out, but the above should return the peice between the <price> and the </price> tags, or 0 if the tags don't exist. -
XMLTable - Extract single row among 2 XML tags
Hello,
Aim to extract the BRAND and its COST and I am able to extract with without any problem using XMLTable.
CREATE TABLE xml_tab (seqno number default 1, xml_data XMLType);
INSERT INTO xml_tab
VALUES
(1, XMLType('<PRODUCTS>
<LAPTOPS>
<NOTEBOOK BRAND="HP">1000</NOTEBOOK>
<NOTEBOOK BRAND="LENOVA">2000</NOTEBOOK>
</LAPTOPS>
</PRODUCTS>'));
SELECT t.seqno, tx.* FROM xml_tab t,
XMLTABLE('/PRODUCTS/LAPTOPS/NOTEBOOK' PASSING t.xml_data
COLUMNS brandname CHAR(20) PATH '@BRAND',
cost CHAR(20) PATH '.') tx
WHERE brandname in ('HP', 'LENOVA') AND seqno = 1;
Outpupt
SEQNO BRANDNAME COST
1 HP 1000
1 LENOVA 2000
Below query will demonstrate the problem I am facing and need your kind help to resovle it.
INSERT INTO xml_tab
VALUES
(2, XMLType('<PRODUCTS>
<LAPTOPS>
<NOTEBOOK BRAND="HP">3000</NOTEBOOK>
<NOTEBOOK BRAND="HP">1400</NOTEBOOK>
<NOTEBOOK BRAND="LENOVA">5000</NOTEBOOK>
</LAPTOPS>
</PRODUCTS>'));
(Below query is not working)
SELECT t.seqno, tx.* FROM xml_tab t,
XMLTABLE('/PRODUCTS/LAPTOPS/NOTEBOOK[1]' PASSING t.xml_data
COLUMNS brandname CHAR(20) PATH '@BRAND',
cost CHAR(20) PATH '.') tx
WHERE brandname in ('HP', 'LENOVA') AND seqno = 2;
My requirement is to display only single row of HP and LENOVA brand even if there are multiple XML tags of one brand. Therefore, desired output is*
SEQNO BRANDNAME COST
2 HP 3000
2 LENOVA 5000
Kindly suggest.
Thanks in advance
Sandeep
Edited by: Sandeep98191 on Sep 22, 2012 9:24 PMWITH t as (
SELECT t.seqno,
tx.*,
row_number() over(partition by brandname order by rownum) rn
FROM xml_tab t,
XMLTABLE(
'/PRODUCTS/LAPTOPS/NOTEBOOK'
PASSING t.xml_data
COLUMNS
brandname CHAR(20) PATH '@BRAND',
cost CHAR(20) PATH '.'
) tx
WHERE brandname in ('HP', 'LENOVA')
AND seqno = 2
select seqno,
brandname,
cost
from t
where rn = 1
SEQNO BRANDNAME COST
2 HP 3000
2 LENOVA 5000
SQL> SY. -
XML P. Orders to BASDA eBis spec
As an Oracle based Finance system provider we need to be able to provide XML Purchase Orders for B2B requirements. We want to conform to the (ever changing) BASDA eBis specification. We can quite easily just wrap the XML tags around a standard order print. However it would seem to make sense to use some of the new PL/SQL packages to do this. Is there then any way of using these to comply to a pre-defined standard such as eBis, or would it better to do this manually? Certainly the demos using plsxml etc. look productive.
Conversely is there any recommendation for reading such electronic Purchase Orders into the database, again from an eBis standard PO?
Thanks in advance
GaryMy book dedicates an entire chapter to building and explaining an XMLLoader utility that helps you handle situations like this.
Steve Muench
Development Lead, Oracle XSQL Pages Framework
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications
null -
Oracle code+simple XML tags
Hi ,
I wrote a shell script which contains " Oracle SQL query + simple XML tags".
the code was executing successfully.But My problem is to create a document based on the code.Don't mind any one please help me to preparingn the document..
Can I post the code here?? Is it right place to post my code.? Because I am new member to this forum..Please let me know...
I'll post the code as per ur suggestion..
Thank you..dbuser=SCOTT/TIGER
dbname=PRODDB
connect_string=$dbuser@$dbname
tableowner="DEVPS"
TABLEOWNER=$(echo $tableowner | tr '[a-z]' '[A-Z]')
#. ${MMHOME}/rfx/etc/config.env
OUT_DIR=/ifiles/inbox/data
# Set it to number of CPU on the server
MAX_THREAD=12
TASK_RUNNING=0
PROGRAM_NAME='Out_Source'
get_partname()
sqlplus -s $connect_string <<!
set pages 0
set feedback off
set heading off
SELECT PARTITION_NAME, PARTITION_POSITION
FROM DBA_TAB_PARTITIONS
WHERE TABLE_NAME='EMP'
ORDER BY PARTITION_POSITION;
exit;
create_part_flow()
cat > dats/outFlow_${PROGRAM_NAME}_$1.xml - <<EOF1
export PROGRAM_NAME="item_sale_$1"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
message "Program started ..."
\${ITEM_EXE} \${ITEM_OPTIONS} << EOF
<FLOW name="output.flow">
\${DBREAD}
<PROPERTY name="query">
<![CDATA[
SELECT <stmt>
]]>
</PROPERTY>
<OPERATOR type="convert">
<PROPERTY name="convertspec">
<![CDATA[
<CONVERTSPECS>
<CONVERT destfield="EMP_SAL" sourcefield="EMP_SAL" newtype="int16">
<CONVERTFUNCTION name="int16_from_dfloat"/>
<TYPEPROPERTY name="nullable" value="false"/>
</CONVERT>
</CONVERTSPECS>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="\${DATA_DIR}/sao0_irt_i_$1.dat"/>
<PROPERTY name="schemafile" value="\${SCHEMA_DIR}/item_on_off.schema"/>
</OPERATOR>
</FLOW>
EOF
checkerror -e $? -m "Program failed - check \${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
create_nopart_flow()
cat > outFlow_${PROGRAM_NAME}.xml - <<EOF
<FLOW name="output.flow">
<OPERATOR type="oraread">
<PROPERTY name="query">
<![CDATA[
<![CDATA[
SELECT <STmt>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="sao0_irt_i_$1.dat"/>
</OPERATOR>
</FLOW>
EOF
create_full_flow()
cat > dats/item_sale.xml << EOF1
export PROGRAM_NAME="item_sale"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
ON_SALE_OUTPUT_FILE=\${DATA_DIR}/smo0_onseffdt_.txt
ON_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_on_sale.schema
OFF_SALE_OUTPUT_FILE=\${DATA_DIR}/sm0_ofseffdt_.txt
OFF_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_off_sale.schema
#export RFX_DEBUG=1
# input files:
ONOFF_DATE=\${DATA_DIR}/dm0_onseffdt_ofseffdt.dat
ONOFF_DATE_SCHEMA=\${SCHEMA_DIR}/item_on_off.schema
message "Program started ..."
\${RETL_EXE} \${RETL_OPTIONS} << EOF
<FLOW name="Store_Source.flw">
<OPERATOR type="import">
<PROPERTY name="inputfile" value="\${ONOFF_DATE}"/>
<PROPERTY name="schemafile" value="\${ONOFF_DATE_SCHEMA}"/>
<OPERATOR type="copy">
<OUTPUT name="on_off_sale.v"/>
</OPERATOR>
</OPERATOR>
<!--START_INS_C2.1-->
<OPERATOR type="copy">
<INPUT name="on_off_sale.v"/>
<OUTPUT name="on_sale_out.v"/>
<OUTPUT name="off_sale_out.v"/>
</OPERATOR>
<!--END_INS_C2.1-->
<OPERATOR type="fieldmod">
<INPUT name="on_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=ONSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${ON_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${ON_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="fieldmod">
<INPUT name="off_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=OFFSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${OFF_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${OFF_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
</FLOW>
EOF
checkerror -e 0 -m "Program failed - check ${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
# Remove all individual xml files
rm outFlow_${PROGRAM_NAME}*.xml
NO_OF_PART=`get_partname $TABLEOWNER |wc -l`
if [ ${NO_OF_PART} -eq 0 ]; then
echo Table not partitioned
create_nopart_flow
time retl -c ${1} -f outFlow_${PROGRAM_NAME}.xml
else
echo Table partitioned
get_partname $TABLEOWNER |while read PARTNAME THREAD_SEQ
do
echo PartName: $PARTNAME POS: $THREAD_SEQ
create_part_flow $THREAD_SEQ ${PARTNAME}
time /app/rms/scripts/rms_retl_aip.sh outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml&
echo Running outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml ....
sleep 1
#TASKS_RUNNING=`ps -ef|grep retl|grep -v java|grep -v grep|wc -l`
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
echo Running: ${TASKS_RUNNING} Max: ${MAX_THREAD}
while [ "${TASKS_RUNNING}" -ge "${MAX_THREAD}" ]; do
sleep 2
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
done
done
wait
#Concatenate all files
cat ${OUT_DIR}/dm0_src_i_*.dat > ${OUT_DIR}/sm0_onseffdt_ofseffdt.dat
if [ $? -eq 0 ]; then
rm ${OUT_DIR}/sm0_src_i_*.dat
fi
create_full_flow
time dats/item.sh item_sale.xml
fi -
Help: How do we retain XML tags inside BPEL
I have scenario where the entire input (XML) needs to be converted as string object and passed to Java service (WSIF). getVariableData is removing XML tags.
Input is a XML document with XML Signature in it. Without tags, Java code is not able to verify the signature.
I am using Apache XML Security libraries. In order for me to verify, code creates Document object (org.w3c.dom.Document) from an inputstream.
Any help is much appreiciated.Hi Clemens,
First of all, thanks for the quick response. I would appreciate if you could help me little more to understand your suggestion. Currently, my BPEL process input is coming in with a structure, which includes XML information to load invoice along with its digital signature.
Currently, I am trying to include an activity of Assignement after receiveInput activity to create an Xpath expression of something like this..
concat(concat("<SignedInvoice>",concat(orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns2:EM_VOUCHER_IN')),orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns3:Signature')))) , "</SignedInvoice>")
Where would I be implementing your suggestion of casting with org.w3c.dom.Element? would it be in the expression builder or does it need to be done somewhere else.
Thanks again..
Ramesh -
Getting xml tags for PO releases.
I need some help in getting xml tags for PO releases.
When I refer metalink they gave me the following for Std PO.
Create a new Standard Purchase Order and DO NOT approve it. Let it be in Incomplete status. Go to
concurrent requests and run the 'PO Output for Communication' concurrent
program will the following parameters:
Print Selection: All
Purchase Order Number From: The PO # you just created
To: The PO # you just created
Test: Debug
May I know for PO releases what are additional parameters.I tried to enter release numbers in addition to the above.Bit it did not work,..
I am having issue in getting buyer contact phone for PO releases.So I am trying to see if the work_tele_phone is available for Po releases xml tags.
Can anyone please advise
prasambTo get the tag name, you can use the following XSL stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node()">
<xsl:value-of select="name()"/> <xsl:text> </xsl:text>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Maybe you are looking for
-
ITEM tab in the Approval Process overview
Hi Friends, I am working in SRM 7.0 with EP 7.1.. 1 . I have to remove 'ITEM' tab in the approval process overview screen. approval process overview screen will be appeared when 'Display / Edit Agents' Button in the Header level of the Shopp
-
Flattener Preview - Highlight pulldown nothing available
I have been noticing that with certain files when I am using the Flattener preview there are no options available (grayed out) in the Highlight pulldown menu. However, other files do reveal available options. Now, what puzzles me is that both files c
-
I know it's not a desktop environment, but it deosn't really fit into any other category. Upon booting to grub and using the option vga=0x318 and/or vga=773 on the kernel boot line, after approximately udev events start up the entire screen resizes t
-
Hi, Can any body help me on the solution for below requirement... We have implemented SAP HR. Now my requirement is I need to maintain all photos of my employees in SAP....Because In some appraisal forms I need to show appraisal details with photo
-
Time machine error message backing up
Recently Time Machine gives me an alert: "The backup was not performed because an error occurred while copying files to the backup disk." "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair y