Quetion related to dbms_lob package

i have created the following procedure:
create or replace procedure temp_clob as
num clob;
amount number;
offset number;
output varchar2(10);
begin
amount:=10;
offset:=1;
select data1 into num from test_clob where id1=1;
dbms_lob.read(num,amount,offset, output);
dbms_output.put_line('DATA: '||output);
end;
and Procedure was created .
But on executing this procedure i got these errors
BEGIN temp_clob; END;
ERROR at line 1:
ORA-06509: PL/SQL: ICD vector missing for this package
ORA-06512: at "LOBIS.DBMS_LOB", line 648
ORA-06512: at "LOBIS.TEMP_CLOB", line 10
ORA-06512: at line 1
please tell me the solution !!!

Hi Yogesh,
Please post your question in
PL/SQL
for a quick response.
Regards,
Anupama

Similar Messages

  • DBMS_LOB Package for CLOB Issues

    I was wondering if any of you have worked with DBMS_LOB
    packages. I wrote a procedure that will be invoked from a 'C'
    program. I was first compiling the procedure as follows:
    procedure <procedurename> (c_text out char, length in number)
    declare c_lob CLOB;
    begin
    SELECT lob_locator_column into c_lob from <table>
    WHERE
    <table>.id = '1';
    dbms_lob.read(c_lob,length,1,c_text)
    end;
    When I compile this program I am getting an error "length cannot
    be used as a target". Have any of you seen this problem?
    Right now I am getting around by declaring another variable and
    assigning the input length to the variable and passing it into
    DBMS_LOB.
    Another issue I have is that the DBMS package is returning the
    length of the clob to be an "INTEGER". What happens if the clob
    length is greater than 32767?
    null

    I guess you are using a reserved word..
    Bala Vanukuru (guest) wrote:
    : I was wondering if any of you have worked with DBMS_LOB
    : packages. I wrote a procedure that will be invoked from a 'C'
    : program. I was first compiling the procedure as follows:
    : procedure <procedurename> (c_text out char, length in number)
    : declare c_lob CLOB;
    : begin
    : SELECT lob_locator_column into c_lob from <table>
    : WHERE
    : <table>.id = '1';
    : dbms_lob.read(c_lob,length,1,c_text)
    : end;
    : When I compile this program I am getting an error "length
    cannot
    : be used as a target". Have any of you seen this problem?
    : Right now I am getting around by declaring another variable
    and
    : assigning the input length to the variable and passing it into
    : DBMS_LOB.
    : Another issue I have is that the DBMS package is returning the
    : length of the clob to be an "INTEGER". What happens if the
    clob
    : length is greater than 32767?
    null

  • How to import DBMS_LOB package in java

    hi
    how we can use pl/sql's package in java
    any body can help me
    where i can found harachy of DBMS_LOB package
    to include in my java or jsp program
    thanx

    perhaps this topic can help :
    Calling PL/SQL from Java
    and the use of DBMS_LOB package is here:
    Supplied PL/SQL Packages and Types Reference Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96612.pdf
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    I hope that can help you. Perhaps another person can give the excat code.
    Good luck!
    Joel P�rez

  • Oracle Reports : Run time error when there is a call to DBMS_LOB package

    I am facing a strange issue, please do share if you have some inputs. When I try running the compiled RDF report(Generating XML to be specific), Oracle Reports Builder crashes when I make use of the following formula function. Strangely, this works fine in the backend. Moreover I tried debugging and by trial and error method found out that, when there is a call to the DMBS_LOB package it errors (works fine when this is commented). Please do let me know whats the root cause of this issue. Thanks in advance
    function CF_ClientSignatureFormula return VARCHAR2 is
    file_name BFILE;
    dir_name VARCHAR2(100);
    dest_file_name VARCHAR2(100);
    dest_path VARCHAR2(400);
    begin
         SELECT client_signature
              INTO file_name
              FROM xxfpr.fpr_rcp_bank_details frb,
              Xxfpr. fpr_rcp_gtn_rpt_map frm
              WHERE frb.record_id = frm.bank_record_id
              AND frm.gtn_request_id = :p_gtn_request_id;
    SYS.DBMS_LOB.filegetname(file_name,dir_name,dest_file_name);
    SELECT directory_path INTO dest_path FROM all_directories where directory_name = dir_name;
    dest_path := dest_path || '/' || dest_file_name;
    return dest_path;
    EXCEPTION
         WHEN OTHERS THEN
              RETURN NULL;
    end;
    Thanks,
    NirmalGeo

    And what version of Reports are you using?
    BFILES are accessible from the database, not the client (Reports). So, put your code in the database.

  • How to Set my own Character Set in DBMS_LOB Package

    Hello All
    A Very Good Morning.
    I am using DBMS_LOB.CONVERTTOCLOB To convert data in BLOB to CLOB.
    My Database Character set is AL32UTF8.
    I want to change that one to WE8ISO8859P15.
    In DBMS_LOB.CONVERTTOCLOB package there is a parameter BLOB_CSID.
    In the Documentation it is said that I can set this value to a desired Character set.
    But the value should be of Integer Type.
    How to set the Character Set conversion.
    Regards
    Madhu K

    To get the id you looking for run:
    select * from V$NLS_VALID_VALUES where parameter='CHARACTERSET';make sure your characterset is in there and then run:
    select NLS_CHARSET_ID('WE8ISO8859P15') from dual;This is the id or number you want to pass into the DBMS_LOB.CONVERTTOCLOB.

  • Issue related to maintenance package in Plant maintenance module

    Hi ,
    Has anyone worked related to Task lists and Maintenance packages in Plant Maintenance module? i have a requirement where in i have to list all the Task lists whose maintenance packages have been changed.
    i need to get the current maintenance package assigned as well as last maintenance package used and the changed date.
    I need to know where can (i mean tables) we get all these info. 
    Thanks
    Raj

    Hi,
    Has anyone got any info regarding my query
    Regards
    Raj

  • Must my BC for my Tables be related in the Package.Module?

    Hi,
    To create an application with related pages/tables, must my Modules be in a 'parent/child' setup in the Package.Module? If not, How do I keep the pages related to eachother (i.e. customer, phone, etc)?
    Any help would be greatly appreciated!
    Rob

    In addition:
    I am using viewlinks that carry over into enabling Master/details for the BC inside the Pakcage.Module. Else, viewlinks don't work. So I end up creating a
    master-Detail-Detail-Detail-etc. with say Customer as the Master. If I wanted to start a search say on Address, I need to set up a whole new Master-Detail-Detail-etc so the Address can "drive" the data. If this is the route I have to take to create a flexible application, I will have redundant .jsp pages. This will cause problems when an update needs to take place on a page becuase there will be multiple copies throughout the applicaiton. Can I pass parameters between Masters so that they can all take a Master or Detail role in the application? if so, how can I?
    I hope I expained well becuase I appreciate any help you can offer.
    Thanks,
    Rob

  • Error deploying the .SCA files in SDM related to ESS packages

    Hi Experts,
    I am getting the following error , when i deploy the .SCA file related to the ESS packages. Kindly let mek now what could be the issue to fix this problem.
    already deployed following files.
    1. SAPPCUIGP04_0-20001215.sca
    2. BPERP4ESS01_0-10003146.sca
    Error:
    Unresolved dependencies found for the following SDAs:
    1.: development component 'abcau/ess/au/rep'/'abc.com'/'JD3_XSP11MOD_C'/'27510'/'0'
    dependency:
           name:     'ess/rep'
         vendor:     'sap.com'
    There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    2.: development component 'abcau/ess/au/bank_dc'/'abc.com'/'JD3_XSP11MOD_C'/'27505'/'0'
    dependency:
           name:     'ess/per'
         vendor:     'sap.com'
    There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    dependency:
           name:     'ess/xx'
         vendor:     'sap.com'
    There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    3.: development component 'abcau/ess_rem'/'abc.com'/'JD3_XSP11MOD_C'/'27509'/'0'
    dependency:
           name:     'ess/per'
         vendor:     'sap.com'
    There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    Deployment will be aborted.
    Regards
    Vijay

    Hi,
    This is known issue....
    SAP resolved this in SAP ESS SP Stack 20.
    So when deployment error occurs for Austrlian DC's, import SAP ERP SP Stack 20.
    Refer SAP Note# 1167226
    If you face this again....better contact SAP.
    ~ Padmanaban

  • Error in using DBMS_LOB Package

    Hi,
    I am attaching a PDF File through a database procedure as shown below
    create or replace procedure load_document(document_id in number, filename IN varchar2, doc_desc IN VARCHAR2, doc_type IN VARCHAR2) as
    f_lob bfile;
    b_lob blob;
    --document_name varchar2(30);
    --mime_type varchar2(30);
    document_name oea_documents.document_name%TYPE;
    mime_type oea_documents.document_mime_type%TYPE;
    dot_pos number;
    v_file_type VARCHAR2(10);
    begin
    -- Find the position of the dot ('.') located in the filename
    dot_pos := instr(filename,'.');
    -- Get the filename without extension and use it as image name
    document_name := substr(filename,1,dot_pos-1);
    -- Build the mime type . Retrieve the file extension and add it to 'image/'
    v_file_type := SUBSTR( filename, dot_pos+1, Length(Filename) );
    IF ( UPPER(v_file_type) IN ('JPG','JPEG','TIF','TIFF','GIF') ) THEN
    mime_type := 'image/'||substr( filename , dot_pos+1 , length(filename) );
    ELSIF ( UPPER(v_file_type) = 'PDF' ) THEN
    mime_type := 'application/pdf';
    ELSIF ( UPPER(v_file_type) = 'DOC' )THEN
    mime_type := 'application/msword';
    ELSIF ( UPPER( v_file_type) = 'XLS') THEN
    mime_type := 'application/ms-excel';
    ELSE
    mime_type := 'image/'||substr( filename , dot_pos+1 , length(filename) );
    END IF;
    insert into oea_documents (document_id,
    document_name,
    document_mime_type,
    document,
    document_description,
    document_type
    values(document_id, document_name, mime_type, empty_blob(),doc_desc,doc_type) return document into b_lob;
    -- /!\ Directory name has to be UpperCase !
    f_lob := bfilename('FILE_LOAD',filename);
    o_dset_test('5');
    dbms_lob.fileopen(f_lob,dbms_lob.file_readonly);
    o_dset_test('6');
    dbms_lob.loadfromfile(b_lob,f_lob,dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    FILE_LOAD is a folder on the database server(unix).
    I have also tried to give the full path on the unix databse server instead of FILE_LOAD directory but then it gives error ora-22285.
    while executing this procedure I am getting the error ora-22288(Invalid file or directory).
    But this occurs randomly
    For instance i tried to attach a pdf file with the name cross.pdf ,it gave me the above error and when i renamed the file as Cross.pdf it attached successfully.
    The error comes whilke executing the statement dbms_lob.fileopen(f_lob,dbms_lob.file_readonly);
    Please guide on the above issue.

    Hi,
    Welcome to the forum!
    user1356624 wrote:
    f_lob := bfilename('FILE_LOAD',filename);
    FILE_LOAD is a folder on the database server(unix).
    I have also tried to give the full path on the unix databse server instead of FILE_LOAD directory but then it gives error ora-22285.The first argument to BFILENAME is the name of a directory object, as found in the directory_name column of all_directories. That is not the same thing as a folder name, which is found in the directory_path column of all_directories. Look up [CREATE DIRECTORY|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5007.htm#sthref6211] in the SQL Language manual for a description of Oracle's directory objects.
    If you have problems with this, post the results of
    SELECT  *
    FROM    all_directories;It might also be useful to see the Oracle "CREATE DIRECTORY" command that was used.
    As you probably noticed, this site compresses white space by default.
    When you post code or results on this site, type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Aug 10, 2009 3:35 PM
    Added link.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Dbms_lob package

    i am using this method dbms_lob.getlength(column name) from table name;
    as far as i know this column can be a clob column or blob column or bfile column
    i have a row in these columns inserted via java at the sql prompt i just want to see the length of the row of each of these cols
    when i say
    dbms_lob.getlength(column name) from table name in case of a bfile or a clob column it works perfectly and shows me the length for the row
    but with blob i get the following error
    non existing directory or file for getlength
    null

    No insert. You have to insert it by writing the part before then insert, writing the new portion, and then write the part after then place you inserted.

  • Lookup from table, which has 1:N relation with  Data package

    Hi,
    I have to look up for Sales Office, Sales district from 0Cust_Sales Masterdata, while loading data to 0FIAR_C03 (from 0FI_AR_4).
    0FI_AR_4 has fields -
    0Customer  
    10000
    While 0CUST_SALES has
    Customer  Division  DistrCh. SalesOff   SalesDistr
    10000         10          20         1000         120
    10000          20         20          1500        121
    Whenever I am looking up for Sales Office, Sales Distr, Division,Distr chn. It is loading ONLY FIRST RECORD.
    I want to load both the records. I have written following code-
    SELECT DIVISION
           DISTR_CHAN
           SALESORG
           CUST_SALES
           OBJVERS
           SALES_DIST
           SALES_OFF
           INTO TABLE GT_REC_SET
           FROM /BI0/MCUST_SALES
           FOR ALL ENTRIES IN DATA_PACKAGE
           WHERE CUST_SALES = DATA_PACKAGE-DEBITOR AND
           OBJVERS = 'A'.
    IF SY-SUBRC = 0.
    SORT GT_REC_SET BY CUST_SALES.
    ENDIF.
    READ TABLE GT_REC_SET
    WITH KEY CUST_SALES = COMM_STRUCTURE-DEBITOR
    INTO GW_REC_SET
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    result value of the routine
      RESULT = GW_REC_SET-DISTR_CHAN.
      ENDIF.
    Any solution will be a great help....

    " Read table with key" will return only first record.
    You may have to "loop at ... where" .
    And, even if you find two values, how are you going to set it? You have only one field RESULT, so the second will overwrite the first one.
    To make one row into two in this case, this logic will have to be applied in the start routine.

  • Quetion related to ALVs

    hello experts,
    I created an interactive report...the basic list will display some details of the vendor...the first secondary list will display some detilas of the EKKO table based on LIFNR number...so, my problem is...the vendor number in the table is with two initial zeros (eg.0022234435)...but when i click on the basic list my program is comparing 22234435 with 0022234435 and no data is getting displayed in the secondary list...
    so, now tell me how can i overcome this problem?
    This is my program...
    TABLES:lfa1,ekko.
    SELECT-OPTIONS:vno FOR lfa1-lifnr.
    DATA:BEGIN OF itab OCCURS 0,
         lifnr LIKE lfa1-lifnr,
         name1 LIKE lfa1-name1,
         END OF itab.
    DATA:BEGIN OF jtab OCCURS 0,
         ebeln LIKE ekko-ebeln,
         aedat LIKE ekko-aedat,
         END OF jtab.
    TYPE-POOLS:slis.
    DATA:repid LIKE sy-repid.
    DATA:f_lfa11 TYPE slis_t_fieldcat_alv,
             f_lfa1 TYPE slis_fieldcat_alv,
             f_ekko1 TYPE slis_t_fieldcat_alv,
             f_ekko TYPE slis_fieldcat_alv.
    DATA:i_events TYPE slis_t_event,
             s_events TYPE slis_alv_event.
    repid = sy-repid.
    PERFORM col_head.
    START-OF-SELECTION.
      SELECT lifnr name1 FROM lfa1 INTO TABLE itab WHERE lifnr IN vno.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
         it_fieldcat                    = f_lfa11
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = 'A'
      IS_VARIANT                     =
         it_events                      = i_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = itab
    EXCEPTIONS
      PROGRAM_ERROR                  = 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.
    FORM col_head.
      f_lfa1-fieldname = 'LIFNR'.
      f_lfa1-ref_tabname = 'LFA1'.
      f_lfa1-ref_fieldname = 'LIFNR'.
      APPEND f_lfa1 TO f_lfa11.
      CLEAR f_lfa1.
      f_lfa1-fieldname = 'NAME1'.
      f_lfa1-ref_tabname = 'LFA1'.
      f_lfa1-ref_fieldname = 'NAME1'.
      APPEND f_lfa1 TO f_lfa11.
      CLEAR f_lfa1.
      f_ekko-fieldname = 'EBELN'.
      f_ekko-ref_tabname = 'EKKO'.
      f_ekko-ref_fieldname = 'EBELN'.
      APPEND f_ekko TO f_ekko1.
      CLEAR f_ekko.
      f_ekko-fieldname = 'AEDAT'.
      f_ekko-ref_tabname = 'EKKO'.
      f_ekko-ref_fieldname = 'AEDAT'.
      APPEND f_ekko TO f_ekko1.
      CLEAR f_ekko.
      s_events-name = 'USER_COMMAND'.
      s_events-form = 'VAL'.
      APPEND s_events TO i_events.
    ENDFORM.                    "COL_HEAD
    FORM val USING user_command LIKE sy-ucomm
                   sel TYPE slis_selfield.
      DATA:v_lifnr(15) TYPE c.
      DATA:v_ebeln(15) TYPE c.
      DATA:v_matnr(15) TYPE c.
      v_lifnr = sel-value.
      SELECT EBELN AEDAT FROM EKKO INTO TABLE jtab WHERE LIFNR =  v_lifnr.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
         it_fieldcat                    = f_ekko1
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
         it_events                      = i_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = jtab
    EXCEPTIONS
      PROGRAM_ERROR                  = 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.
    ENDFORM.                    "VAL

    Hi Vinil
    Try to use the statement
    DATA: ALPHABET(15) VALUE '     ABCDEFGHIJ',
          M1(4)        VALUE 'ABCD',
          M2(6)        VALUE 'BJJCA '.
    SHIFT ALPHABET LEFT DELETING LEADING M1.
    The field
    ALPHABET
    remains unchanged.
    SHIFT ALPHABET LEFT DELETING LEADING SPACE.
    The field ALPHABET now has the following contents:
    'ABCDEFGHIJ     '.
    SHIFT ALPHABET RIGHT DELETING TRAILING M2.
    ALPHABET now has the following contents:
    '      ABCDEFGHI'.
    <u><b>IN CHARACTER MODE</b></u>
    <b>Effect</b>
    This is the default setting (see above), and the addition is therefore optional.
    <b>Note
    Performance:</b>
    For performance reasons, you should avoid using SHIFT in WHILE loops.
    The runtime required to shift a field with length 10 by one character to the right or left requires about 5 msn (standardized microseconds). A cyclical shift requires around 7 msn. The runtime for the ...
    LEFT DELETING LEADING
    ... variant is around 3.5 msn, for ...
    RIGHT DELETING TRAILING
    ... around 4.5 msn.
    Reward all helpfull answers
    Regards
    Pavan

  • [package related not upgrade related] xorg-server-kdrive won't compile

    The page related to this package suggests that it fails to build except I'm not too sure what to make of the comments - at any rate, it refuses to compile, complaining about something like %.04X not being what the compiler expected it to be or some such - I closed the terminal as soon as it failed >.>
    So... how do I compile this?
    Also, if you know anything about X in general, please see my related post at http://bbs.archlinux.org/viewtopic.php?pid=432854.
    -dav7
    Last edited by dav7 (2008-10-12 11:54:46)

    Bump?

  • Error while creating AW using DBMS_LOB with XML..

    Hi All,
    I am trying to create AW using DBMS_LOB package with XML,
    while creating AW,i am facing the following error.find the code also below :
    declare
    xml_awcreate_clob clob;
    xml_awcreate_st varchar2(4000);
    begin
    DBMS_LOB.CREATETEMPORARY(xml_awcreate_clob,TRUE);
    dbms_lob.open(xml_awcreate_clob, DBMS_LOB.LOB_READWRITE);
    dbms_lob.writeappend(xml_awcreate_clob, 48, '<?xml version = ''1.0'' encoding = ''UTF-8'' ?>');
    dbms_lob.writeappend(xml_awcreate_clob, 43, '');
    dbms_lob.writeappend(xml_awcreate_clob, 63, '<AWXML version = ''1.0'' timestamp = ''Mon Feb 11 13:29:11 2002'' >');
    dbms_lob.writeappend(xml_awcreate_clob, 15, '<AWXML.content>');
    dbms_lob.writeappend(xml_awcreate_clob, 25, ' <Create Id="Action41">');
    dbms_lob.writeappend(xml_awcreate_clob, 19, ' <ActiveObject >');
    dbms_lob.writeappend(xml_awcreate_clob, 163, ' <AW Name="NEW_XML_AW" LongName="NEW_XML_AW" ShortName="NEW_XML_AW" PluralName="NEW_XML_AW" Id="NEW_XML.AW"/>');
    dbms_lob.writeappend(xml_awcreate_clob, 19, ' </ActiveObject>');
    dbms_lob.writeappend(xml_awcreate_clob, 11, ' </Create>');
    dbms_lob.writeappend(xml_awcreate_clob, 16, '</AWXML.content>');
    dbms_lob.writeappend(xml_awcreate_clob, 8, '</AWXML>');
    dbms_lob.close(xml_awcreate_clob);
    xml_awcreate_st := sys.interactionExecute(xml_awcreate_clob);
    end;
    ORA-21560: argument 2 is null, invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 833
    ORA-06512: at line 12
    Any idea or thought on this would be appreciable.
    Thanks in advance.
    Anwar

    Did you change any of the text in the lob write statements ?
    I believe you get this error if you increase the number of characters without increasing the 1st argument which looks as though it represents the number of characters

  • Packaging data not populated in customs declaration

    Hi all,
    I'm creating Pro-forma invoice in ECC and as a result Custom Declaration is getting created in GTS. In GTS the Packaging data in item level is coming as empty. So I implemented the BADI /SAPSLL/IF_EX_IFEX_SD0C_R3 and tried to pass the packaging data. But as a result the custom document stopped getting created in GTS.
    I'm using the below code to populate the fields of the table cs_itm_cdoc-pge-
    LOOP AT lit_vepo ASSIGNING <lfs_vepo>.
            lwa_itmpge-item_number = <lfs_vepo>-posnr.
            lwa_itmpge-int_id = <lfs_vepo>-vepos.
            lwa_itmpge-quantity = <lfs_vepo>-vemng.
            lwa_itmpge-dim_uom = <lfs_vepo>-vemeh.
            APPEND lwa_itmpge TO cs_itm_cdoc-pge.
            CLEAR lwa_itmpge.
          ENDLOOP.
    I'm taking the value of <lfs_vepo> from the standard table vepo. Can anybody please tell me what I'm doing wrong?
    Thanks,
    Sarif

    Hi Dave,
    I’m new to GTS. I’ll list the steps here which I’m following-
    1.       1. In ECC, In tcode VF01, put Billing Type = ‘F8’ and Document = Outbound Delivery ID
    2.       2. Click Save, the billing document in ECC will be saved
    3.       3. In GTS, go to tcode /sapsll/menu_legal
    4.       4. Go to Customs Management->Export->Display Customs Declarations.
    5.       5. You’ll see a new document has been created with reference to the billing document in ECC.
    6.       6. Open the document. Go to Item Details->Packaging Data.
    7.       7.  The packaging details is empty.
    This is the current default behavior. Now my job as an ABAPer is to fetch the packaging data from VEPO table and fill it in the BADI /SAPSLL/IF_EX_IFEX_SD0C_R3 so that it gets reflected in GTS.
    But when I’m trying to do it the custom document in GTS isn’t getting created at all. Note that it’s getting created properly when I’m removing the coding related to the packaging data. So obviously I’m doing something wrong here. Do I need to fill the packaging data for  header as well? Also the field for container is currently empty, do I need to fill it? If yes, where shall I get the data?
    Thanks,
    Sariful

Maybe you are looking for

  • Ship to party for WHT

    Hi all, for wht LFA1, table gives us the country for the vendor.. But here the Ship-to party can or cannot be the vendor rite…? so can any one guide me how get the Ship to country. {Referred KNA1 table instead of LFA1 for the customer info but I don’

  • Where does downloaded software go and how can I access it and install it?

    Often when I try to download and install software, a dialoge box comes up telling me that my only option is to save the software upon downloading. After it completes the download, I have absolutely no idea where the software has gone or how to access

  • I'm getting error code -8003 when trying to empty the trash. Anyone know what this is?

    I've tried using the Terminal command to empty the trash; I've tried switching accounts, but nothing is working. Using a MacPro from about 07-08, latest OS and a Drobo is connected. thanks, s

  • IMac won't "wake-up" after installing latest security update

    I have a fairly new iMac G5 2GHz, and just installed the latest security update yesterday(4/1/06). Since that update, everytime my computer goes to sleep, I can't wake it up. The power light is on and I hear the computer running... I can even hear th

  • CameraRoll on Android and pictures from Google drive

    CameraRoll currently allows to browse and select pictures which are stored on google drive and not the device itself. If I select picture from google drive I get #2004 error when I use open method of MediaPromise. Is there any way to exclude google d