Unicode - DataType Currency error

Hi experts.
Please can you help me?
I used below method instead of move clause.
I can transfer (wa_table> to buffer.
But i found ##―ఀ###ఀ ###ఀ contents in Buffer.
This filed of buffer is Curr(15.2) datatype.
Please Can notice me how can slove this problem ?
Thanks.
DATA: buffer(30000) OCCURS 10 WITH HEADER LINE.
DATA : st_table TYPE REF TO data,
tb_table TYPE REF TO data,
FIELD-SYMBOLS : <wa_table> TYPE ANY,
<it_table> TYPE STANDARD TABLE,
<wa_table2> TYPE ANY.
CREATE DATA : tb_table TYPE TABLE OF (query_table), "Object Create.
st_table TYPE (query_table).
ASSIGN : tb_table->* TO <it_table>, "INTERNAL TABLE.
st_table->* TO <wa_table>. "WORK AREA.
SELECT * FROM (query_table)
INTO CORRESPONDING FIELDS OF TABLE <it_table> WHERE (options).
LOOP AT <it_table> INTO <wa_table>.
CLEAR buffer.
CALL METHOD cl_abap_container_utilities=>fill_container_c
EXPORTING
im_value = <wa_table>
IMPORTING
ex_container = buffer
EXCEPTIONS
illegal_parameter_type = 1
OTHERS = 2.
APPEND buffer.
endloop.

Hello Kalidas
Here is a simple "smoke test". Try to see if the system accept the following statement:
" NOTE: Try to write the packed field only
WRITE: / i_z008-packed_field.
If you receive an error you cannot WRITE packed values directly.
Alternative solution: write your structure to a string.
DATA:
  ls_z008  LIKE LINE OF i_z008,
  ld_string  TYPE string.
LOOP AT i_z008 INTO ls_z008.
  CALL METHOD cl_abap_container_utilities=>fill_container_c
    EXPORTING
      im_value = ls_z008
    IMPORTING
      ex_container = ld_string.
  WRITE: / ld_string.
ENDLOOP.
Regards
  Uwe

Similar Messages

  • Row Currency error

    I have an web page with a read-only table (navigator) linked to a corresponding Form layout.
    If no parameters are passed in the URL, I display all rows in the View Objects with edits made on the form side. If a parameter is passed in, I requery the View Object with the extra where clause condition.
    I have a MBean method bound to a hidden input text. The purpose of the bean is to parse the URL and requery the View Object if there are params present.
    For every page load, the View Object's total table is loaded, once it's about to render my MBean method kicks in and re-queries the database with the add params. When it renders on screen, the table and form look great. The problem is when I change a field on the form and save. Oracle remembers the "first row" from the initial query and it does not sync up with the "current row" on display.
    How do I sync up the form to preven the row currency error?
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key [123]
    FYI. My current key is 987.

    This is the log after I "commit" changes on the screen. From the log file, it's "reusing a cached session of application module." Could this cached session application module be the original page rendered version? The token for the iterator has all the OLD key values. Not the new values rendered on the page?
    I "requery" the screen not with a button, but a HiddenInputText which binds to a method which gets the URL params. Thus, I'm assuming the method gets called at the very last part of the lifecycle -- on page render.
    Is there a param I can use to not get the "cached" session AppModule?
    2006-08-07 11:27:49.093 TRACE [375] Reusing a cached session application module instance
    2006-08-07 11:27:49.218 TRACE [376] **** refreshControl() for BindingContainer :basic_lubasicPageDef
    2006-08-07 11:27:49.218 TRACE [377] Resolving VO:LandUnitsView for iterator binding:LandUnitsViewIterator
    2006-08-07 11:27:49.218 TRACE [378] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding, for LandUnitsView
    2006-08-07 11:27:49.218 TRACE [379] Resolving VO:ObjectSetRO for iterator binding:ObjectSetROIterator
    2006-08-07 11:27:49.218 TRACE [380] Resolving VO:AreaUom for iterator binding:AreaUomIterator
    2006-08-07 11:27:49.218 TRACE [381] Resolving VO:SubTypes for iterator binding:SubTypesIterator
    2006-08-07 11:27:49.218 TRACE [382] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding, for SubTypes
    2006-08-07 11:27:49.218 TRACE [383] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    2006-08-07 11:27:49.234 TRACE [384] valiateToken:Decompressed BC state:BCST:=0%V%=NLandUnitsViewIterator=-D-00010000000B3131313939303130333734,ObjectSetROIterator=-N-0000,AreaUomIterator=-N-0000,SubTypesIterator=-N-,
    2006-08-07 11:27:49.234 TRACE [385] UIMessageBundle (language base) being initialized
    2006-08-07 11:27:49.250 TRACE [386] oracle.jbo.JboException: JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[11199010374 ]
         at oracle.adf.model.binding.DCBindingContainerState.throwRowNotFoundException(DCBindingContainerState.java:204)

  • Balance in transaction currency error for AUC settlement

    I was trying to perform AUC settlement and hit Balance in transaction currency error. When i open up the line items I found that there are 2 sets (duplicate) of data posted to the depreciation area. The second set is with value 0 except depreciation area 01 posted as 100000EUR.
    so now i have 2 line with 100000EUR for depreciation area 01. I guess this is the main culprit of generating the error Balance in transaction currency.
    I'd glad if someone can tell me why they are 2 sets of data generated in line items? I only post the vendor invoice against the AUC once.
    Or perhaps am I heading to the right way in identifying the root cause of this issue?
    This is part of the AC010 course part of asset accounting that teaching on AUC aasets.
    Any positive reply is welcomed!
    I attached the line item image. Please note that there are some lines hidden for dep area beyond 03. and all are with amount 0.
    [Line Item Image|http://www.bnl.com.my/photos/aucsettle.jpg]
    Edited by: Kam Weng Leong on Dec 13, 2009 5:00 AM

    I was trying to perform AUC settlement and hit Balance in transaction currency error. When i open up the line items I found that there are 2 sets (duplicate) of data posted to the depreciation area. The second set is with value 0 except depreciation area 01 posted as 100000EUR.
    so now i have 2 line with 100000EUR for depreciation area 01. I guess this is the main culprit of generating the error Balance in transaction currency.
    I'd glad if someone can tell me why they are 2 sets of data generated in line items? I only post the vendor invoice against the AUC once.
    Or perhaps am I heading to the right way in identifying the root cause of this issue?
    This is part of the AC010 course part of asset accounting that teaching on AUC aasets.
    Any positive reply is welcomed!
    I attached the line item image. Please note that there are some lines hidden for dep area beyond 03. and all are with amount 0.
    [Line Item Image|http://www.bnl.com.my/photos/aucsettle.jpg]
    Edited by: Kam Weng Leong on Dec 13, 2009 5:00 AM

  • Row currency errors in one environment but not in another

    I'm testing an ADF app in a couple of different environments (a dev environment and a test environment) and I'm getting row currency and SQL overflow errors ("JBO-25028: Number.intValue Creation Error :java.sql.SQLException: Overflow Exception") in the test environment that I can't duplicate in dev. The code and the connection pool/data source setup are the same on both servers.
    Is it something with the database setup, maybe, and can someone suggest where I might start looking?
    The other consideration is that I was getting the row currency errors (though not the overflow errors) when I was running it in JDeveloper's embedded OC4J, and at that time I was using the same database as the app is using in dev, and it works perfectly there.

    I guess it may be due parsing error of xml file which you are using. Can you try with sample.xml given below :
    //sample.xml
    <Root>
    <UserList>
    </UserList>
    </Root>
    And then let me know all details as you told for the previous one.
    Regards,
    Amit

  • J1IEX: Balance in Transaction Currency ERROR

    All SAP Gurus,
    While doing J1IEX: Balance in Transaction Currency ERROR occurs.
    This happens only when figures are not even in case of capital goods credit.
    Which SAP Note to be applied so that, system will accept odd figures too.
    Regards,

    Hi Rajan, Check the following threads :
    Balance in transaction currency
    Re: Balance in transaction currency Error

  • Balance in transaction currency error

    Hi Friends,
    In order to ressolve "Balance in transaction currency"  error during J1IIN, we have applied oss notes 1018071 & 978186. However we are getting same promblem
    Please help on this.

    Hi shiv,
    Kindly refer this threads,
    Balance in transaction currency
    Error : Balance in Transaction Currency
    Error F5702 Balance in transaction currency VF01
    Re: Balance in  Transaction Currency
    error in Balance in transaction currency
    Balance in transaction currency
    Thanks,
    Swamy H P

  • CMP Bean's  Field Mapping with oracle unicode Datatypes

    Hi,
    I have CMP which mapps to RDBMS table and table has some Unicode datatype such as NVARCHAR NCAR
    now i was woundering how OC4J/ oracle EJB container handles queries with Unicode datatypes.
    What i have to do in order to properly develope and deploy CMP bean which has fields mapped onto the data based UNICODE field.?
    Regards
    atif

    Based on the sun-cmp-mapping file descriptor
    <schema>Rol</schema>
    It is expected a file called Rol.schema is packaged with the ejb.jar. Did you perform capture-schema after you created your table?

  • Unicode datatypes v.s. unicode databases

    We have a legacy system that is implemented in Powerbuilder and C++. We are pretty sure about which columns we need to convert to support Unicode. Besides, some of our clients have cooperate standard (AMERICAN_AMERICA.WE8MSWIN1252) for the NLS_LANG on the Oracle clients set up, .
    Therefore, we decided to use the unicode datatypes approach to only update the columns identified to NVARCHAR2 and NCLOB with AL16UTF16 as the national character set. Our understanding is that this is the safe and easy way for our situation since both C++ and Powerbuilder support UTF-16 standard as default. This will not require any change on the NLS_LANG set up.
    However, one of our clients seems to have strong opinions against the unicode datatypes option and would rather migrating the entire database to be Unicode. The client mentioned that "AL16UTF16 has to be used in a Unicode database with UTF8 or AL32UTF8 as the database character set in order to display characters correctly". To our knowledge and understanding we have not heard about this requirement. I didn't see anything like this in Oracle official document.
    Could anyone advise if Unicode database is really better than Unicode datatype option?
    Thanks!

    Besides, some of our clients have cooperate standard
    (AMERICAN_AMERICA.WE8MSWIN1252) for the NLS_LANG on
    the Oracle clients set up, . This might even be necessary requirement since they are using Windows-1252 code page.
    that "AL16UTF16 has to
    be used in a Unicode database with UTF8 or AL32UTF8
    as the database character set in order to display
    characters correctly".Hard to say without knowing what they refer to specifically.
    They might have been thinking about the requirement to use AL32UTF8, depending on how binds are done. If you insert string literals, which is interpreted in the database character set, into NCHAR columns, you obvisouly need a character set that supports all characters you are going to insert (i.e. AL32UTF8 in unicode case).
    This is described very clearly by Sergiusz Wolicki, in Re: store/retrieve data in lang other than eng when CHARACTERSET is not UTF8.

  • "Balance in transaction currency" Error in Depreciation Posting Run-AFAB

    Hi,
    We are having unit testing going on during ECC6.0 upgrade.I am getting following error while posting Asset Depreciation -AFAB.
    Balance in transaction currency
    Message no. F5702
    Diagnosis
    A balance has occurred in transaction currency 'AUD' with the following details:
    Exchange rate '00', amount '           467.00-' and currency key 'AUD'.
    The data in the transaction currency were transferred from the calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application.
    Please advise what can be the reason of this issue.
    Thanks & Regards,
    Prince Kochhar

    Hi shiv,
    Kindly refer this threads,
    Balance in transaction currency
    Error : Balance in Transaction Currency
    Error F5702 Balance in transaction currency VF01
    Re: Balance in  Transaction Currency
    error in Balance in transaction currency
    Balance in transaction currency
    Thanks,
    Swamy H P

  • To Determine Unicode Datatype encoding

    Hi,
    Going through the Oracle documentation found that Oracle Unicode datatype (NCHAR or NVARCHAR2) supports AL16UTF16 and UTF8 Unicode encodings.
    Is there a way to determine which encoding is being used by Oracle Unicode datatypes thorugh OCI interface?
    Thanks,
    Sachin

    That's a rather hard problem. You would, realistically, either have to make a bunch of simplifying assumptions based on the data or you would want to buy a commercial tool that does character set detection.
    There are a number of different ways to encode Unicode (UTF-8, UTF-16, UTF-32, USC-2, etc.) and a number of different versions of the Unicode standard. UTF-8 is one of the more common ways to encode Unicode. But it is popular precisely because the first 127 characters (which is the majority of what you'd find in English text) are encoded identically to 7-bit ASCII. Depending on the size and contents of the document, it may not be possible to determine whether the data is encoded in 7-bit ASCII, UTF-8, or one of the various single-byte character sets that are built off of 7-bit ASCII (ISO 8859-15, Windows-1252, ISO 8859-1, etc).
    Depending on how many different character sets you are trying to distinguish between, you'd have to look for binary values that are valid in one character set and not in another.
    Justin

  • Balance in transaction currency error in sap j1iin

    Hi,
    I am facing an error during creation of excise of 'balance in transaction currency error in sap j1iin'.But when we are creating EI in background the system is not getiing the error of Balance in transaction currency error.
    We have applied the Note# 1018071 - Error "Balance in transaction currency" (F5702) in J1IIN has been applied. This covers the correction for note # 978186.
    But the system is still giving me the error in forground.
    I have the serach the forum:
    1-Excise Invoice Error In J1IIn
    2-Balance in transaction currency error in J1iin
    But unable to find the solution.Kindly guide me on this.
    Regards
    Rajev

    Hi Srinath,
    Thanks For Reply.
    Please find my comment on above points:
    1-SPRO -> Logistics - General -> Tax on Goods Movements -> India -> Basic Settings -> Maintain Company Code Settings. In the Company Code check wheather Rounding rule is on or off.If it is off , change it to on and then run again.
    **I have make the rounding rule on for outgoing excise Invoice**
    2) SPRO->Excise config->Business transaction-> Utilization-> in utilization you have 2 options First option is Utilization Determination & another one is Maintain minimum Balances for Excise Account.Change the Utilization Determination to 100
    I have maintained the setting as per  below:
    For Utilization Determination
    L1     PLAAT1 PLA AT1 account     100     
    L1     PLABED PLA BED account     100     
    L1     PLACESS PLA cess account     100     
    L1     RG23AAT1 RG 23A AT1 account     100     
    L1     RG23ABED RG 23A BED account     100     
    L1     RG23AECS RG 23A ECS account     100     
    L1     RG23CAT1 RG 23C AT1 account     100     
    L1     RG23CBED RG 23C BED account     100     
    L1     RG23CECS RG 23C ECS account     100     
    Maintain Balances
    L1     PLAAT1 PLA AT1 account     100,000.00
    L1     PLABED PLA BED account     100,000.00
    L1     PLAECS PLA ECS account     100,000.00
    L1     RG23AAT1 RG 23A AT1 account     100,000.00
    L1     RG23ABED RG 23A BED account     100,000.00
    L1     RG23AECS RG 23A ECS account     100,000.00
    L1     RG23CAT1 RG 23C AT1 account     100,000.00
    L1     RG23CBED RG 23C BED account     100,000.00
    L1     RG23CECS RG 23C ECS account     100,000.00
    3) Also check IMG->Logistics General- >Tax on Goods Movements->India->Account Determination->Specify Excise Accounts per Excise Transaction.
    Check all the ETT having the ECS and Secondary Education Cess.
    But still facing the same error.Could please guide me on this.
    Thanks for Your responce.
    Reagrds
    Rajev.

  • 'Invalid Currency' error when attempting to deliver order

    Hi Experts,
    I have a sales order which cannot be despatched or invoiced because whenever I try to convert the order into a delivery note or AR Invoice I get error message:
    Invalid Currency [Message 131-74]
    I have also tried adding a delivery note and the Copy From function with no success.
    The BP is set up to use All Currencies and the order is only in GBP.
    Thanks
    Jon

    What version of SAP Business One are you using?
    Have you had a look at SAP Note  # 1252328 ?
    Invalid currency error when copying a Sales Order
    Symptom
    You are managing an item with the FIFO valuation method. You have some open layers with zero cost. You create a Sales Order for this item and want to copy it to the next marketing document: a Delivery or an A/R Invoice. You receive the following error: Invalid currency [Message 131-74]
    Other terms
    OINM,FIFO, zero cost, sales order ,delivery ,invoice
    Reason and Prerequisites
    Application error
    example:
    1.Create item managed by FIFO.
    2.Goods Receipt for item ,quantity10, no price.
    3.Goods Receipt PO for item, quantity 10.price 5
    4.Sales Order for item ,quantity 11,
    5.e.g.copy it to Delivery or AR Invoice
    You will receive the error:Invalid Currency[Message 131-74]
    the same error message when you use the copy from function
    Solution
    SAP plans to fix this issue in a future patch. See the info.txt file on SAP Service Marketplace to verify when the fix was included.
    Apparently its affecting SAP Business One 2007 B Patch 13 and SAP Business One 2007 A Patch 47

  • Unicode datatype

    Hi,
    · Unicode database (changing the database character set to AL32UTF8) is working fine, we tested with the with asp .NET application, we are able to see English, Japanese, Arabic and Urdu.
    · Unicode datatype (database character set is default “WE8MSWIN1252”), with column datatype as NVARCHAR2, we are able to enter any language, but while querying from database the values are displayed as inverted “???????”. We tried the above as per the oracle documentation (Globalization Support Guide –
    Chapter 5 - Supporting Multilingual Databases with Unicode - a96529.pdf) but still it displays junk characters only.
    Is any client setting am missing here?.
    Thanks in Advance.

    There is no character set that supports both Arabic and Japanese data other then a Unicode character set. The restriction you are encountering should only be for string literals you are trying to load into Unicode datatypes. For literals in this scenario where the database character set does not support the characters in the literal string the only work around is to use UNISTR. This problem with Unicode datatypes and literals was addressed in 10gR2.

  • Datatype Currency

    Hi,
      I am trying to understand the datatype currency, becoz I am trying to create a flat file for BDC in which one feild is WRBTR... If i see its length in BSEG table it says length 13 & decimal 2 ...
      I want to understand how many places I should keep in my flat file...
    1.) Since length is 13 and 2 decimals, so 11.2 (11 places before decimal & two places after..total length is 13 now)
    2.) 10.2 (10 places before decimal, 1 place for decimal & 2 places after decimal).
    3.) 13.2 (13 places before decimal, one place for decimal & 2 places after decimal.. so now the total length is 16)
    Please Help.
    Thank You,
    SB.

    If you look at structure BBSEG (which is the structure for loading FI line items), you'll see that it uses WRBTR_BI which is 16 characters.
    Rob

  • ORA-00902: invalid datatype comile error while using CAST function

    Hi everyone,
    I'm getting ORA-00902: invalid datatype compilation error while using CAST function.
    open ref_cursor_list for select empName from TABLE(CAST(part_t AS partnumberlist));
    The partnumberlist and ref_cursor_list is declared in the Package spec as given below.
    TYPE ref_cursor_list IS REF CURSOR;
    TYPE partnumberlist IS TABLE OF emp.empName%TYPE;
    The error points the partnumberlist as invalid datatype in TOAD because of this i'm unable to compile the package.
    Any suggestion
    Thanks and regards
    Sathish Gopal

    Here is my code for
    package Spec
    CREATE OR REPLACE PACKAGE "HISTORICAL_COMMENTZ" AS
    TYPE prior_part_data_record IS RECORD (
    prior_part_row_id PGM_RPLCMNT_PART.PR_PART_ROW_S_ID%TYPE,
    prior_pgm_chng_s_id PGM_RPLCMNT_PART.PR_PGM_CHNG_S_ID%TYPE
    TYPE parts_list IS TABLE OF prior_part_data_record;
    --TYPE parts_list IS TABLE OF NUMBER;
    TYPE partnumberlist IS TABLE OF PGM_RPLCMNT_PART.PR_PART_ROW_S_ID%TYPE;
    TYPE partnumber_cursor IS REF CURSOR;
    TYPE comment_record IS RECORD (
    pgm_s_id                     PGM_PART_CMNT.PGM_S_ID%TYPE,
    part_row_s_id                PGM_PART_CMNT.PART_ROW_S_ID%TYPE,
    pgm_chng_s_id                PGM_PART_CMNT.PGM_CHNG_S_ID%TYPE,
    cmnt_txt                     PGM_PART_CMNT.CMNT_TXT%TYPE,
    cmnt_dt                     PGM_PART_CMNT.CMNT_DT%TYPE,
    updt_rsrc_id                PGM_PART_CMNT.UPDT_RSRC_ID%TYPE
    TYPE comment_list IS TABLE OF comment_record;
    global_pgm_s_id INTEGER := 0;
    global_part_row_s_id INTEGER := 0;
    err_num NUMBER := 999999;
    err_msg VARCHAR2 (250);
    PROCEDURE getComments (
    pgm_s_id IN NUMBER,
    part_row_s_id IN NUMBER,
    partnumber_cursorlist out partnumber_cursor);
    END;
    Package Body
    CREATE OR REPLACE PACKAGE BODY HISTORICAL_COMMENTZ
    AS
    FUNCTION getPriorPart
    (param_prior_pgm_chng_s_id IN PGM_RPLCMNT_PART.PR_PGM_CHNG_S_ID%TYPE,
    return_prior_part_data_record IN OUT prior_part_data_record
    RETURN INTEGER
    IS
    retVal INTEGER;
    prior_part_row_id INTEGER;
    prior_pgm_chng_s_id INTEGER;
    local_prior_part_data_record prior_part_data_record;
    BEGIN
    SELECT PR_PART_ROW_S_ID AS prior_part_row_id, PR_PGM_CHNG_S_ID AS prior_pgm_chng_s_id
    INTO local_prior_part_data_record
    --SELECT PR_PART_ROW_S_ID INTO retVal
    FROM PGM_RPLCMNT_PART
    WHERE PGM_S_ID = global_pgm_s_id AND CUR_PGM_CHNG_S_ID = param_prior_pgm_chng_s_id;
    return_prior_part_data_record := local_prior_part_data_record;
    retVal := 0;
    RETURN retVal;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    retVal := -1;
    RETURN retVal;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    retVal := -1;
    RETURN retVal;
    END getPriorPart;
    FUNCTION getComment (found_parts_list IN parts_list, comments OUT comment_list)
    RETURN INTEGER
    IS
    CURSOR init_cursor
    IS
    SELECT PGM_S_ID,PART_ROW_S_ID,PGM_CHNG_S_ID,CMNT_TXT,CMNT_DT,UPDT_RSRC_ID
    FROM PGM_PART_CMNT WHERE 1 = 2;
    retVal INTEGER;
    indexNum PLS_INTEGER;
    local_part_record prior_part_data_record;
    local_comment_record comment_record;
    local_part_row_s_id NUMBER;
    i PLS_INTEGER;
    BEGIN
    OPEN init_cursor;
    FETCH init_cursor
    BULK COLLECT INTO comments;
    i := 0;
    indexNum := found_parts_list.FIRST;
    WHILE indexNum IS NOT NULL
    LOOP
    local_part_record := found_parts_list(indexnum);
    local_part_row_s_id := local_part_record.prior_part_row_id;
    SELECT PGM_S_ID,PART_ROW_S_ID,PGM_CHNG_S_ID,CMNT_TXT,CMNT_DT,UPDT_RSRC_ID
    INTO local_comment_record FROM PGM_PART_CMNT
    WHERE PGM_S_ID = global_pgm_s_id
    AND PART_ROW_S_ID = local_part_row_s_id;
    comments(i) := local_comment_record;
    i := i + 1;
    END LOOP;
    RETURN retval;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    RETURN retval;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    RETURN retval;
    END getComment;
    PROCEDURE getComments
    pgm_s_id IN NUMBER,
    part_row_s_id IN NUMBER,
    partnumber_cursorlist OUT partnumber_cursor)
    IS
    comment_recordlist comment_record;
    retPartnumberlist partnumberlist;
    found_parts_list parts_list;
    local_part_record prior_part_data_record;
    is_more_parts BOOLEAN;
    driver_chng_s_id NUMBER;
    num_parts NUMBER;
    retVal NUMBER;
    comments comment_list;
    returnPartnumberlist partnumberlist;
    iloopCounter PLS_INTEGER;
    inx1 PLS_INTEGER;
    part_t partnumberlist :=partnumberlist(100,200,300);
    CURSOR part_list_init_cursor
    IS
    SELECT PR_PART_ROW_S_ID,PR_PGM_CHNG_S_ID FROM PGM_RPLCMNT_PART WHERE 1 = 2;
    CURSOR inIt_cursor
    IS
    SELECT 0 FROM DUAL WHERE 1 = 2;
    BEGIN
    DBMS_OUTPUT.ENABLE (5000000);
    global_pgm_s_id := pgm_s_id;
    global_part_row_s_id := part_row_s_id;
    SELECT PART_ROW_S_ID AS prior_part_row_id, PR_PGM_CHNG_S_ID AS prior_pgm_chng_s_id
    INTO local_part_record
    FROM PGM_RPLCMNT_PART
    WHERE PGM_S_ID = global_pgm_s_id AND PART_ROW_S_ID = global_part_row_s_id AND
    CUR_PGM_CHNG_S_ID IN (SELECT MAX(CUR_PGM_CHNG_S_ID) FROM PGM_RPLCMNT_PART WHERE
    PGM_S_ID = global_pgm_s_id AND PART_ROW_S_ID = global_part_row_s_id
    GROUP BY PART_ROW_S_ID);
    OPEN part_list_init_cursor;
    FETCH part_list_init_cursor
    BULK COLLECT INTO found_parts_list;
    -- Add the existing part to the found list
    found_parts_list.EXTEND;
    found_parts_list(1) := local_part_record;
    driver_chng_s_id := local_part_record.prior_pgm_chng_s_id;
    num_parts := 1;
    is_more_parts := TRUE;
    WHILE (is_more_parts) LOOP
    retVal := getPriorPart(driver_chng_s_id,local_part_record);
    IF (retVal != -1) THEN
    found_parts_list.EXTEND;
    num_parts := num_parts + 1;
    found_parts_list(num_parts) := local_part_record;
    driver_chng_s_id := local_part_record.prior_pgm_chng_s_id;
    ELSE
    is_more_parts := FALSE;
    END IF;
    END LOOP;
    --num_parts := getComment(found_parts_list,comments);
    OPEN init_cursor;
    FETCH init_cursor
    BULK COLLECT INTO returnPartnumberlist;
    num_parts := found_parts_list.COUNT;
    FOR iloopCounter IN 1 .. num_parts
    LOOP
    returnPartnumberlist.EXTEND;
    returnPartnumberlist(iloopCounter) := found_parts_list(iloopCounter).prior_part_row_id;
    END LOOP;
    retPartnumberlist := returnPartnumberlist;
    open
    *          partnumber_cursorlist for select PR_PART_ROW_S_ID from TABLE(CAST(retPartnumberlist AS historical_commentz.partnumberlist));*                              
    DBMS_OUTPUT.put_line('Done....!');
    EXCEPTION
    some code..............................
    END getComments;
    END HISTORICAL_COMMENTZ;
    /

Maybe you are looking for

  • I can't change a shape or a text box fill color

    Hello community, I used to change the colors of my shapes and text boxes, but suddenly I can't do it anymore. I restarted my Mac 'cause it appeared to be something about the memory... but unsuccessfully... This is how I do: I select my shape, then go

  • How to handle long running Processes in J2EE

    Hi all, we want to design something like a process engine on our application server. It should be possible to start processes asynchronous, so we think what we need is a message driven bean to start processes. The problem is that there are different

  • JSlider Enabled Coloring

    I have a JSlider and I am trying to write an extended UI which does not make the slider labels turn Gray when I call slider.setEnabled(false); (Note that when a JSlider is disabled, the labels and tick marks turn gray) In particular, I want the JSlid

  • Random screen flash- 15" MBP (late 2008)

    Just purchased a new Macbook Pro in November 2008 (Aluminum) and have recently noticed a random screen flash on the native display. It happens at inexplicable times; 1) low CPU,Mem,Disk usage, low temp (under 130 degrees F), 2) High CPU/Mem usage and

  • CS3 and Delphi: Place pdf into indesign

    Hello, I am developing a script with Deplhi  that automates the creation of documents. I would like to be able to place pdf documents in an InDesign document. I adapted a script that I found in this thread: http://forums.adobe.com/message/3013174 I o