Problem while creating xml with cdata section

Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
&lt;![cdata[123456789012345678901234567890123456789012]]&gt;
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give &lt; for cdata tag. How can I overcome this? Please help.

SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
  2                                             cdataValue varchar2)
  3  return xmltype deterministic
  4  as
  5  begin
  6     return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
  7  end;
  8  /
Function created.
SQL>  select xmlelement
  2         (
  3            "Row",
  4            xmlcdata_10103('Junk','&<>!%$#&%*&$'),
  5            xmlcdata_10103('Name',ENAME),
  6            xmlelement("EMPID", EMPNO)
  7         ).extract('/*')
  8* from emp
SQL> /
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[SMITH]]></Name>
  <EMPID>7369</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[ALLEN]]></Name>
  <EMPID>7499</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[WARD]]></Name>
  <EMPID>7521</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[JONES]]></Name>
  <EMPID>7566</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[MARTIN]]></Name>
  <EMPID>7654</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[BLAKE]]></Name>
  <EMPID>7698</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[CLARK]]></Name>
  <EMPID>7782</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[SCOTT]]></Name>
  <EMPID>7788</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[KING]]></Name>
  <EMPID>7839</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[TURNER]]></Name>
  <EMPID>7844</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[ADAMS]]></Name>
  <EMPID>7876</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[JAMES]]></Name>
  <EMPID>7900</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[FORD]]></Name>
  <EMPID>7902</EMPID>
</Row>
<Row>
  <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
  <Name><![CDATA[MILLER]]></Name>
  <EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL>

Similar Messages

  • Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?

    Hi All,
    I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
      2  REFRESH ON DEMAND
      3  WITH PRIMARY KEY
      4  AS
      5  SELECT name,id
      6  FROM syn_t;
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
      2  WITH PRIMARY KEY
      3   (name)
      4    INCLUDING NEW VALUES;
    Materialized view log created.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL>
    SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
    Table created.
    SQL> create materialized view log on t;
    Materialized view log created.
    SQL> create public synonym syn_t for t;
    Synonym created.
    SQL> CREATE MATERIALIZED VIEW MV_t
    REFRESH ON DEMAND
    WITH PRIMARY KEY
    AS
      2    3    4    5  SELECT name,id
    FROM syn_t;   6
    Materialized view created.
    SQL> CREATE MATERIALIZED VIEW LOG ON  MV_t
    WITH PRIMARY KEY
    (name)
      INCLUDING NEW VALUES;  2    3    4
    CREATE MATERIALIZED VIEW LOG ON  MV_t
    ERROR at line 1:
    ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
    Message was edited by:
    Avinash Tripathi
    null

    Hi Nicloei,
    Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
    Regards
    Avinash

  • Net_PRICE problem while creating PO with BAPI_PO_CREATE1 ***ASAP

    Dear All,
    While creating PO with bapi BAPI_PO_CREATE1, The net price is not populating, though the logic is correct, as when i change the net price to some otrher value of in the bapi, while debugging, it is taking the Net price, but in general run, the price is over written by Gross price in PO, Please Help, Its Urgent.
    Any Sample codes are welcomed, where Net_price is used.
    Thanks in Advance..
    Rewards Guaranteed.

    Dear All,
    While creating PO with bapi BAPI_PO_CREATE1, The net price is not populating, though the logic is correct, as when i change the net price to some otrher value of in the bapi, while debugging, it is taking the Net price, but in general run, the price is over written by Gross price in PO, Please Help, Its Urgent.
    Any Sample codes are welcomed, where Net_price is used.
    Thanks in Advance..
    Rewards Guaranteed.

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Problem while creating IR with BAPI_INCOMINGINVOICE_CREATE

    Hi,
    Getting error message while creating IR through some external service. We are using the BAPI BAPI_INCOMINGINVOICE_CREATE to create IR.
    Error Message is "There is different account assignment information in item 000001".
    Could anyone let me know what exactly we need to pass for the field "Invoice Doc Item".
    Regards,
    Uma

    Did you check the FM documentation? There are some illustrative examples given.
    In case you do not have it:
    here is an excerpt:
    Example: Incoming Invoice
    This example shows the header data that you need to enter in table Headerdata and the item data that you need to enter in table Itemdata to post an invoice.
    Purchase order: 10 pieces of material A at $10/piece
    Goods receipt: 10 pieces of material A
    You receive an invoice against this purchase order, with reference to purchase order number 4500007491, order item 10, for a quantity of 10 pieces of material A and an amount of $116, including 16% sales tax. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 1000
    GROSS_AMOUNT (Gross amount): 116.00
    CURRENCY (Currency key): USD
    CALC_TAX_IND (Calculate tax): X
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500007491
    PO_ITEM (Purchase order item): 00010
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 10
    PO_UNIT (Unit of measure): PC
    For more information, see the parameter documentation for tables HeaderData and Itemdata.
    Example: Incoming Invoice in Foreign Currency, Goods-Receipt-Based
    Invoice Verification and Tax Information
    This example specifies the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata and the tax information that you need to enter in table TaxData to post an invoice in a foreign currency.
    Purchase order: 10 pieces of material A at $10/piece
    First goods receipt: 4 pieces of material A
    Second goods receipt: 6 pieces of material A
    You receive an invoice against this purchase order, with reference to purchase order number 4500007505, order item 10, goods receipt document 50010095, 2000, item 1. The invoice is for a quantity of 4 pieces of material A, a gross amount of $46.60 and 16% sales tax ($6.60). Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 46.60
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500007505
    PO_ITEM (Purchase order item): 00010
    REF_DOC (Goods receipt document): 50010095
    REF_DOC_YEAR (Fiscal year of current period): 2000
    REF_DOC_ITEM (Goods receipt document item): 1
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 40.00
    QUANTITY (Quantity): 4
    PO_UNIT (Unit of measure): PC
    Table TaxData
    TAX_CODE (Sales tax code): VN
    TAX_AMOUNT (Tax amount in document currency): USD 6.60
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.
    Example: Incoming Invoice for Blanket Purchase Order
    This invoice shows which header data you need to enter in table HeaderData, which item data you need to enter in table ItemData, and which account assignment data you need to enter in table AccountingData in order to post an incoming invoice for a blanket purchase order.
    You receive an invoice for the blanket PO 4500015172, PO item 10 for an amount 110 USD incl. sales tax at 10%. You want to distribute the invoice amount to the cost centers 1200 and 1500. Enter, for example, the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 02.19.2001
    PSTING_DATE (Posting date): 02.21.2001
    COMP_CODE (Company code): 1000
    GROSS_AMOUNT (Gross amount): 110
    CURRENCY (Currency): USD
    CALC_TAX_IND (Calculate tax): X
    Table ItemData
    INVOICE_DOC_ITEM (Item in the invoice document): 00001
    PO_NUMBER (PO number): 4500015172
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 100
    Table AccountingData
    1st line: Change account assignment data
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    SERIAL_NO (Serial number for the acc. assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 30
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    2nd line: Add unplanned account assignment
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    XUNPL (Unplanned acct. assignment from IV): X
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 70
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1500
    In the case of a blanket purchase order, the following fields for quantities and units of measurement must not be filled in the tables ItemData and AccountingData:
    Quantity (QUANTITY)
    PO_UNIT (PO unit of measure)
    PO_UNIT_ISO (PO unit of measure in ISO code)
    PO_PR_QNT (Quantity in PO price unit of measure)
    PO_PR_UOM (PO price unit of measure)
    PO_PR_UOM_ISO (PO price unit of measure in ISO code)
    For more information, see the parameter documentation for tables HeaderData, ItemData, and AccountingData, or in the SAP Library under Logistics Invoice Verification.
    Example: Change Account Assignments and Add Unplanned Assignments
    This example shows the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata, and the account assignment information that you need to enter in table AccountingData to change, add, and post account assignments for an invoice. If you want to change or add account assignments, there must be a non-valuated goods receipt or no goods receipt in the system. Goods-receipt-based invoice verification is specified.
    Purchase order: 300 pieces of material A at $1.00/piece
    Goods receipt: 300 pieces of material A
    This purchase order is subject to account assignment. You receive an invoice for it, refering to purchase order number 4500006846, order item 10, goods receipt document 50008849, 2000, item 1. The invoice is for a quantity of 100 pieces of material A, with a gross invoice amount of USD 116.00, including 16% sales tax. You want to change the planned account assignment for the second account assignment item and add an unplanned account assignment. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 08.05.2000
    PSTNG_DATE (Posting date): 08.08.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 17.40
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Terms of payment key): 0001
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500006846
    PO_ITEM (Purchase order item): 00010
    REF_DOC (Goods receipt document): 500008849
    REF_DOC_YEAR (Fiscal year of current period): 2000
    REF_DOC_ITEM (Goods receipt document item): 1
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    Table AccountingData
    Row 1: Change second account assignment item
    INVOICE_DOC_ITEM (Invoice document item): 0001
    SERIAL_NO (Account assignment serial number): 02
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Amount in document currency): 10.00
    QUANTITY (Quantity): 10
    PO_UNIT (Order unit): PC
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    Row 2: Add unplanned account assignment
    INVOICE_DOC_ITEM (Invoice document item): 0001
    XUNPL (Unplanned account assignment in Invoice Verification): X
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Amount in document currency): 5.00
    QUANTITY (Quantity): 5
    PO_UNIT (Order unit): PC
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData, or Logistics Invoice Verification in the SAP Library.
    Example: Invoice with Planned Delivery Costs
    This examples shows the header data that you need to enter in table HeaderData, the item data that you need to enter in table ItemData, and the tax information that you need to enter in table TaxData to post an invoice containing planned delivery costs.
    Purchase order: 100 pieces of material A at $1.00/piece
    Goods receipt: 100 pieces of material A
    You receive an invoice for this purchase order refering to purchase order number 4500006986, order item 10, for a quantity of 100 pieces of material A and $136.00, including 16% sales tax and $20.00 planned delivery costs. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 08.10.2000
    PSTNG_DATE (Posting date): 08.12.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 136,00
    Table ItemData
    Row 1: Posting the purchase order item
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500006986
    PO_ITEM (Order item): 00010
    TAX_CODE (Sales tax code): VN
    ITEM_AMOUNT (Item amount): 100.00
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    Row 2: Posting the planned delivery costs
    INVOICE_DOC_ITEM (Invoice document item): 00002
    PO_NUMBER (Order number): 4500006986
    PO_ITEM (Order item): 00010
    ITEM_AMOUNT (Item amount): 20.00
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    COND_TYPE (Condition type): FRB1
    Table TaxData
    TAX_CODE (Sales tax code): VN
    TAX_AMOUNT (Tax amount in document currency): 16.00
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.
    Example: Incoming Invoice with Withholding Tax
    This example shows you what header data you can enter in table HeaderData, and what item data and withholding tax information you can enter in table TaxData in order to park an incoming invoice with withholding tax.
    Purchase order: 10 pieces of material A at $10
    Goods receipt: 10 pieces of material A
    You receive an invoice for this delivery with reference to purchase order number 4500007505, PO item 10, GR document 50010095 2000, Item 1. The invoice is for a quantity of 10 pieces and a gross amount of $100. You have to pay 10% withholding tax for the gross amount. Enter the following data:
    Table HeaderData
    INVOICE_IND (Invoice/Credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): WT01
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): $100
    Table ItemData
    INVOICE_DOC_ITEM (Item from invoice document): 00001
    PO_NUMBER (PO number): 4500007505
    PO_ITEM (PO item): 00010
    REF_DOC (GR document): 50010095
    REF_DOC_YEAR (Fiscal year of the current period): 2000
    REF_DOC_ITEM (Item in a GR document): 1
    TAX_CODE (Tax code): V0
    ITEM_AMOUNT (Item amount): $100
    QUANTITY (Quantity): 10
    PO_UNIT (Unit of measure): PC
    Table WithTaxData
    SPLIT_KEY (Grouping key for withholding tax split): 0001
    WI_TAX_TYPE (Code for withholding tax type): R1
    WI_TAX_CODE (Withholding tax code): 01
    WI_TAX_BASE (Withholding tax base amount): 100
    WI_TAX_AMT (Withholding tax amount in doc. currency): 10.00
    For more information, see the parameter documentation for tables HeaderData, ItemData, and WithTaxData.
    Example: Incoming Invoice with Amount Split
    This example shows you what header data you need to enter in table HeaderData, what item data you enter in table ItemData, and what information you can enter in table VendorSplitData in order to create an invoice with an amount split.
    Purchase order: 10 pieces of material A at $10
    Goods receipt: 10 pieces of material A
    You receive an invoice for this purchase order with reference to PO number 4500007505, PO item 10, GR document 50010095, item 1. The invoice is for a quantity of 10 pieces and a gross amount of $100. You want to distribute the gross amount to two vendor lines. 40% of the gross amount should be paid immediately by check, and 60% of the gross amount should be paid within 14 days, taking into account a 3% cash discount. Enter the following data:
    Table HeaderData
    INVOICE_IND (Invoice/Credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 100.00
    Table ItemData
    INVOICE_DOC_ITEM (Item from the invoice document): 00001
    PO_NUMBER (PO number): 4500007505
    PO_ITEM (PO item): 00010
    REF_DOC (GR document): 50010095
    REF_DOC_YEAR (Fiscal year for the current period): 2000
    REF_DOC_ITEM (Item from a GR document): 1
    TAX_CODE (Tax code): V0
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 10.00
    PO_UNIT (Unit of measure): PC
    Table VendorItemSplitData
    1st vendor line
    SPLIT_KEY (Grouping key for split in the vendor line): 0001
    SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 40.00
    PYMT_METH (Payment method): S
    TAX_CODE (Tax code): V0
    PMNTTRMS (Payment terms key): 0001
    2nd vendor line
    SPLIT_KEY (Grouping key for split in the vendor line): 0002
    SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 60.00
    PYMT_METH (Payment method): U
    TAX_CODE (Tax code): V0
    PMNTTRMS (Payment terms key): 0003
    For more information, see the parameter documentation for tables HeaderData, ItemData, and VendorItemSplitData.
    Example: Incoming Invoice with G/L and Material Account Posting
    This example shows you which data you have to provide in order to enter and post an incoming invoice (header data in table HeaderData, item data in table ItemData, G/L account information in table GlAccountData, and material account information in table MaterialData).
    You receive an invoice with reference to PO number 4500006846, PO item 10. The invoice is for a quantity of 100 PC of material A, a gross amount of 150.80 USD incl. 16% tax. Included in this is a G/L account posting of 10 USD to account 400000 in company code 1, and a material account posting to the material MAT01n for 20 USD.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 08.05.2000
    PSTNG_DATE (Posting date): 08.08.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 150.80
    CALC_TAX_IND (Automatically calculate tax): X
    PMNTTRMS (Payment terms key): 0001
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (PO number): 4500006846
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    Table GlAccountData
    INVOICE_DOC_ITEM (Document item in invoice document): 00001
    GL_ACCOUNT (G/L account): 400000
    ITEM_AMOUNT (Item amount): 10,00
    DB_CR_IND (Debit/credit indicator): S
    COMP_CODE (Company code): 0001
    TAX_CODE (Tax code): VN
    COSTCENTER (Cost center): 1
    Table MaterialData
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    MATERIAL (Material): MAT01
    PLANT (Valuation area): 0001
    DB_CR_INP (Debit/credit indicator): S
    ITEM_AMOUNT (Item amount): 10.00
    QUANTITY (MENGE_D): 1
    PO_UNIT (PO quantity unit of measure): PC
    TAX_CODE (Tax code): VN
    For more information, see the parameter documentation for the tables HeaderData, ItemData, GlAccountData and MaterialData or in the SAP Library under Logistics Invoice Verification.
    Example: Invoice for a Purchase Order for External Services and Service-Based Invoice Verification.
    This example shows you which header data to enter in table HeaderData, which item data to enter in table ItemData, and which account assignment data to enter in table AccountingData in order to enter and post an incoming invoice.
    You receive an invoice with reference to the PO number 4500000191, PO item 10. Two services A and B are invoiced, each with a quantity of six service units. Service A has a gross amount of 580 Euro incl. 16% tax. Service B has 812 Euro incl. 16% tax. Service A has an account assignment of 50% to both cost centers 1000 and 2000. Service B also has an account assignment to cost centers 1000 and 3000. The service acceptance is performed jointly for both services in one service entry sheet number 1000000022. You cannot change the account assignments.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_TYPE (Document type): RE
    DOC_DATE (Document date): 01.10.2002
    PSTNG_DATE (Posting date): 01.10.2002
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 1392.00
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Payment terms key): 0001
    Table ItemData
    First entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000001
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.00
    QUANTITY (Quantity): 1
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number): 10
    Second entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000002
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    First entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000003
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Second entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000004
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 700.00
    QUANTITY (Quantity): 1
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Table AccountingData
    First account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000001
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000001
    SERIAL_NO (Sequential number of the account assignment): 02
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY Quantity): 3
    PO_UNIT (PO unit of measure): SU
    First account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000003
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000004
    SERIAL_NO (Sequential number of the account assignment): 03
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    For more information, see the parameter documentation for the tables HeaderData, ItemData, and AccountingData, or see the SAP Library under Logistics Invoice Verification.
    Example: Incoming Invoice for a One-Time Vendor
    This example shows you how to proceed in order to enter and post an invoice for a one-time vendor.
    You do not need to enter data into table AddressData. If you do not enter data in table AddressData, the address data for the one-tine vendor are copied 1:1 from the purchase order into the invoice.
    If you use table AddressData to transfer data, the address data for the one-time vendor is read from the purchase order into the invoice and is either overwritten or enhanced in the fields of table AddressData.
    The purchase order for the one-time vendor has the following stored data: Name 'SAP AG', postal code '60000' and street and building number 'Neurottstraße 16'. You receive an invoice with the one-time vendor address: Name 'SAP AG', postal code '69190', and city 'Walldorf'. Enter the following data:
    Table AddressData
    ACC_1_TIME (Indicator one-time vendor): X
    NAME (Name): SAP AG
    POSTL_CODE (Postal code): 69190
    CITY (City): Walldorf
    The invoice is posted with the following one-time vendor: Name 'SAP AG' street and building number 'Neurottstraße 16', postal code '69190', city 'Walldorf'.
    For more information, see the parameter documentation for table AddressData.
    Example: Incoming Invoice for a Different Payee
    This example shows you which address data you must enter in table AddressData in order to enter and post an invoice for a different payee.
    You receive an invoice for a different payee with name 'SAP AG', postal code '69190', city 'Walldorf', bank number '38070724' and account number '4711'.
    Enter the following data:
    Table AddressData
    ACC_1_TIME (Indicator one-time vendor): ' '
    NAME (Name): SAP AG
    POSTL_CODE (Postal code): 69190
    CITY (City): Walldorf
    BANK_NO (Bank number): 38070724
    BANK_ACCT (Bank account number): 4711

  • [File] Problem while creating files with long pathnames

    Hello everybody
    I'm trying to create File objects corresponding to physical files. These files have very long pathnames because they are located in directories tree with large depth. So, my pathname conatins a lot of directories plus the name of the file itself.
    It seems, that there is a limitation in the length of the pathname that I pass to the File constructor because files with small pathnames are OK bu the ones with very large pathnames cannot be created.
    I tried the different File constructors (File(String pathname) and File(File parent, String childname)) but it still does not work. Even if the second constructor is a little bit better as it succeeds on files where the first constructor failed. But still, it's not enough.
    Please Help!
    Thank you
    Hugo

    RESOLVED!
    The problem was from the OS itself (Windows XP) which accepts at most 255 characters long path names.

  • Problem while creating row with dependent select one choice in adf  table

    Iam having independent and dependent select one choice in a ROW in adf af:table
    unable to insert more than one row with dependent select one choice using create insert in adf table.
    Able to add more rows in UI af:table but ,ignoring previous rows (select one choice values) and only latest current row values is getting inserted to the database.
    Following is the code used to create row and for pointing to the current row
    public void addRowOnSecSettings(){
    SecurityGroupSettingsVOImpl SecGroupSetVO =(SecurityGroupSettingsVOImpl) this.getSecurityGroupSettingsVO1();
    try{
    int rowCount = SecGroupSetVO.getRowCount();
    SecurityGroupSettingsVORowImpl SecGroupSetRow =
    (SecurityGroupSettingsVORowImpl)SecGroupSetVO.createRow();
    SecGroupSetRow.setNewRowState(Row.STATUS_INITIALIZED);
    SecGroupSetVO.insertRowAtRangeIndex(rowCount, SecGroupSetRow);
    SecGroupSetVO.setCurrentRowAtRangeIndex(rowCount);
    SecGroupSetVO.setCurrentRow(SecGroupSetRow);
    } catch (Exception e) {
    e.printStackTrace();
    Regards,
    Bhagavan

    as it is dependent select one choice ,have already put auto submit="true".but no chance ,
    if i add two rows vo rowiterator showing count 2 but only current row select onechoice values are getting where as previous row select one choice values are null.

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • Problem while creating CAF project in NWDS workspace

    Hi Experts,
    We are facing a problem while creating CAF project in NWDS workspace. Even though we have tried in new workspace we are facing the issue. Find the below build error.
    We are not getting any error when we build from CBS.
    [javac] ERROR: C:\sap\test_VC_DC.jdi\0\DCs\test.com\ja\bl\journal\ejbmodule\_comp\src\com\test\ja\bl\journal\modeled\ModifyJournalLineItemRequestMessage.java:7: cannot find symbol
    [javac] ERROR: symbol  : class JournalLineItemDetail1
    [javac] ERROR: location: package com.test.ja.cm.util.modeled
    [javac] ERROR: import com.test.ja.cm.util.modeled.JournalLineItemDetail1;
    when we expand com.test.ja.cm.util.modeled there is no file with name JournalLineItemDetail1 and the actual file exists is JournalLineItemDetail but we are not able to understand why 1 is appending to the file JournalLineItemDetail. Can somebody throw some light on this?
    Regards,
    Pradeep

    Have you checked out the topics at the right in the More Like This section?
    OT

  • Problem of creating workbook with permanent template?

    Hi all,
    Iam facing some problem while creating the workbook with permanent template.Let me expalin in detail.
    I have created 3 queries (ex:Stock) and i have to insert these in one workbook with permanent template.I  had selected the the permanent template option in settings also.iam able to insert the 3 queris and iam not getting the permanent tempalate.which is mandatory.
    I tried saving the existing workbook with same tempalate and removed the query and tried to insert the queries but iam getting <b>abbort system error in program</b>
    Pls help me out of this issue.
    Thanks and regards,
    Rajeev

    Hi Joe,
    We've seen this error when using express VI's inside of template VI's which are loaded using VI server. Are you doing that? If yes, then take all the express VIs that are inside the template VI and turn them into static subVIs.
    I don't know if it will help in your case, but let's try it.
    Regards,
    Luca
    Regards,
    Luca

  • Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Have you checked out the topics at the right in the More Like This section?
    OT

  • Problem  while reading XML file from Aplication server(Al11)

    Hi Experts
    I am facing a problem while  reading XML file from Aplication server  using open data set.
    OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
    IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      READ DATASET v_dsn INTO v_rec.
    WHILE sy-subrc <> 0.
      ENDWHILE.
      CLOSE DATASET v_dsn.
    The XML file contains the details from an IDOC number  ,  the expected output  is XML file giving  all the segments details in a single page and send the user in lotus note as an attachment, But in the  present  output  after opening the attachment  i am getting a single XML file  which contains most of the segments ,but in the bottom part it is giving  the below error .
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<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.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    for all the xml  its giving the error in bottom part ,  but once we open the source code and  if we saved  in system without changing anything the file giving the xml file without any error in that .
    could any one can help to solve this issue .

    Hi Oliver
    Thanx for your reply.
    see the latest output
    - <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<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.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    E1EDT13 with QUALF>003 and  <E1EDT13 SEGMENT="1">
    with   <QUALF>001 having almost same segment data . but  E1EDT13 with QUALF>003  is populating all segment data
    properly ,but E1EDT13 with QUALF>001  is giving in between.

  • Problem while creating sales order

    Hi
       We are facing a problem while creating a sales order in R/3. The sales order number is getting generated. But we are not able to view the same in the backend meaning it is not there in the database. Any inputs would be of help.
    regs
    Steve

    Hi everybody,
    I've got a problem with this too. I use the BAPI_SALESORDER_CREATEFROMDAT2 with BAPI_TRANSACTION_COMMIT and the webdynpro shows me the document number created in R3 with a Success message. But when I go to R3 and try to display the created sales order, it doesn't exists. So... Maybe I'm doing something wrong with the BAPI_TRANSACTION_COMMIT. ¿Can anybody help me with this?
    The code I use is this:
    When the user pushes the SAVE button in the WebDynpro, this code executes:
        //@@begin onActionSave(ServerEvent)
         wdThis.wdGetSOCreaCustController().executeBapi_Salesorder_Createfromdat2();
         wdThis.wdGetSOCreaCustController().executeBapi_Transaction_Commit();
        //@@end
    In the custom Controller I've got the code for those executions:
      public void executeBapi_Salesorder_Createfromdat2( )
        //@@begin executeBapi_Salesorder_Createfromdat2()
         try {
              wdContext.currentBapi_Salesorder_Createfromdat2Element().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();
        //@@end
      public void executeBapi_Transaction_Commit( )
         try {
              wdContext.currentBapi_Transaction_CommitElement().modelObject().execute();
         catch (Exception ex) {
              wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
         wdContext.nodeOutput().invalidate();   
        //@@end
    ¿Is something wrong? ¿Is something missing?

  • Problem while creating JCA connection to MDM server

    Hi All,
    I have restarted my mdm connector(com.sap.mdm.tech.connector) along with the applications related to Enrichment Controller. All applications restarted successfully. After that I tried accessing the URL
    http://MDMSERVER:50000/MDM_EnrichmentController/WorkflowPolling?process=Monitor
    but I am getting following exception in this page
    Polling Repository
        name=Vijaybabu_Repo_on_MDMSERVER, status=No repository connection, error description=com.sap.mdm.net.ConnectionException: Problem while creating JCA connection to MDM server MDMSERVER
            Enrichment Request Threads
    Could somebody help me pointing if something I have missed..
    Thanks and Regards,
    Manoj

    hi Swarna,
    I have verified the repository and found 0 fatal errors, 0 non-fatal erros and 0 warnings. I also checked the MDM Factory and Connector service is running fine.
    The detailed exception is
    Sep 2, 2008 12:49:40 PM com.sap.mdm.logging.MdmLogger error
    SEVERE: Problem while creating JCA connection to MDM server 'KOLAPON'
    com.sap.mdm.net.ConnectionException: Can not resolve JCA connection
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:119)
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnectionAccessor(JcaConnectionUtil.java:62)
         at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:70)
         at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:59)
         at com.sap.mdm.repository.commands.GetRepositoryStatusCommand.execute(GetRepositoryStatusCommand.java:67)
         at com.sap.mdm.enrichment.common.ECAdminUtils.getRepositoryStatus(ECAdminUtils.java:125)
         at com.sap.mdm.enrichment.common.EnrichmentUtils.validateRepostiryConfiguration(EnrichmentUtils.java:889)
         at com.sap.mdm.enrichment.common.EnrichmentUtils.getCatalogManager(EnrichmentUtils.java:144)
         at com.sap.mdm.enrichment.workflowpolling.PollingThread.getCatalogManager(PollingThread.java:166)
         at com.sap.mdm.enrichment.workflowpolling.PollingThread.run(PollingThread.java:102)
    Caused by: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
         at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:223)
         at com.sap.mdm.internal.session.JcaConnectionUtil.getJcaConnection(JcaConnectionUtil.java:108)
         ... 9 more
    Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: "ConnectionManager" is closed. Possible reasons: 1) connector "MDM Factory" is stopped or not started, 2) Connector service is stopped or has not been started.
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122)
         at com.sap.mdm.connector.connection.MdmConnectionFactory.getConnectionEx(MdmConnectionFactory.java:213)
         ... 10 more
    Regards,
    Manoj
    Edited by: Manoj Kumar Nanda on Sep 2, 2008 9:21 AM

  • Problems while creating Web Services in development server

    Hello,
    We are facing problems while creating Web services . The transaction like WSADMIN, WSCONFIG are not there in development server. Its gives message u2018This transaction is obsoleteu2019.
    Due to this while creating Webservice, there is and error message . Kindly guide me whats needs to be done.
    We have also tried the transaction WSADMIN2 as suggested by SAP, but didnu2019t know wat needs to be done.
    Regards,
    Rachel
    Edited by: Rachel on Feb 3, 2009 9:15 AM

    Hi,
    With your help, we were configuring WEB Service through soamanger.Due to some problem, we couldn't proceed further.Kindly guide us with the further steps.
    *steps followed *
    Step 1 : Entered Service Registry Parameters in WSPARAM .
    Step 2 : In transaction SOAMANAGER->Technical Configuration -->System Global settings
    Step3 : From u2018SE80u2019 transaction, selected the package ZHR and then right clicked to create the enterprise service -> Client Proxy (Service Producer)
    We have followed steps in se80.Don't know how to proceed further.
    We are unable to find the service in soamanger .How to find the service name in soamanager?
    Regards,
    Rachel
    Edited by: Rachel on Feb 3, 2009 12:38 PM
    Edited by: Rachel on Feb 3, 2009 12:48 PM

Maybe you are looking for

  • Calculated Column using IF statement with DATEIF formula

    I have a dated column that includes a date when a position is vacated otherwise the field is blank if the position is still filled. I want a calculated column to return the number of days the position has been vancant from the date that is listed to

  • Selection problem in JTextArea

    hi all i have a TextArea in which i have some coded charecters in a group of ten charactes i treet these ten characters as a single character ,so when i delete or insert these charactes all these charactes r deleted and no other character r inserted

  • BW, BRTools, statistics, monitoring and bitmap indexes.

    Hi all, I have a question about the above. Oracle 10.2, Solaris 10, BW 7.00 We have a script that generates statistics weekly on our systems.  lately, I have been noticing the following messages in the output after the BRTools statistics job is run:

  • Can tiffs be 'embeded' in a PDF?

    Can tiff images be included/embeded in a PDF, without them being automatically/internally converted to jpeg? The reason I ask, is becuase I would like to make a PDF for repro but I do not want to use jpegs. If the answer is 'no' then are there any ot

  • What do i do if my IPod 4th Gen Is stolen?

    i was laying down in my car wating for my mother to come back from 7-eleven , Suddenly a man was approaching my car then he opened the door and just took my ipod away. WHAT DO I DO ?