Unknown Column Name "XYZ" not detemined untill runtime.Select query.

Hi,
I have written a query in ABAP.I am getting following error.Can some one help me resolve this.There is a column "LANDX" in standard table T005 of PI which i need to get values from. The problem is that the column is visible only at runtime and not otherwise.How can i fetch data from this coulmn writing a select query for this.
Query written is:
SELECT landx from T005 into table it_t005.
Error:
"Unknown column name "XYZ" not determined untill runtime,you cannot specify a field list."

Hi Deepika u were right. that there is a landx field but it is included in that table.
so u cant exactly get it.
now u can get ur country name and iso code just like this.
tables: t005t  , t005.
data: BEGIN OF it OCCURS 100,
        landx like t005t-landx,
        intca like t005-intca,
        END OF it.
SELECT t005t~landx t005~intca   into CORRESPONDING FIELDS OF TABLE it
  from T005t
  INNER JOIN t005 on ( t005t~land1 = t005~land1 ).
it is fulfilling ur need.
Edited by: Matt on Feb 3, 2009 7:49 AM - Please don't use txtspk

Similar Messages

  • Report data binding error unknown column name

    Hi,
    I am having a problem with the new 7.02 update of Report
    Builder. The issue is it's not finding my SQL query.
    I have wrote my query initally in the advance mode, and it
    doesn't seem to reconize it. Is there an issue with this?
    I did manage to fix one of my reports by using the basic mode
    and selecting all my tables and seting my linkage and criteria.
    I have other computers that i have not updated to 7.02 and
    they do not have this issue. Below is the error:
    Error Occurred While Processing Request
    Report data binding error Unknown column name : work_phone.
    Please try the following:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 13-Jul-06 02:33 PM
    Stack Trace (click to expand)
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Unknown column name : work_phone.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:420)
    at
    coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    This report works in 7.01. So all query variables match with
    a variable in the SQL select statement.
    Anyone have any Ideas??
    Thanks,
    Daniel

    Thank you very much for help.
    The "Unknown column name " is a field still used in my
    report, so I can't remove it.
    After I clear the query in the report and reopen the report
    and apply the same query back to it, I get different error message:
    Element TASKNUM is undefined in QUERY.
    The error occurred in : line 1
    -1 : Unable to display error's location in a CFML template.
    I know for sure this "Element TASKNUM is undefined in QUERY."
    is defined in query. each time it complains something different. I
    get really confused.
    Thanks again.
    Yueming

  • Unknown column name: annee

    Hi,
    I have a error message.
    My request is good but in my program java, annee is a unknown column name.
    SELECT DISTINCT round(wbdate/10000,0) AS annee FROM EUROF400.FICLIB.IE02 WHERE WBETAT=:etat ORDER BY annee DESC
    String l_annee=mod.getIe0211().getBigDecimal("annee").toString();
    Thanks in advance

    SELECT DISTINCT round(wbdate/10000,0) AS annee FROM
    EUROF400.FICLIB.IE02 WHERE WBETAT=:etat ORDER BY annee
    DESC
    There are some JDBC drivers which will not return the column alias.
    String
    l_annee=mod.getIe0211().getBigDecimal("annee").toString
    );I'd be carefull with that. If getBigDecimal returns null (because wbdate is null) then you'll get a NullPointerException.
    mod.getIe0211().getString(1) is probably the safest way to do it.
    Thomas

  • Error in Abap code - Unknown column name

    Hi
    I have this error in my code.
    Unknown column name "SUM(EKBE-MENGE)" field list. field list. field
    My code
    *Select sum(ekbe-menge)
           into MCSTRUCT-ZQuant
          from ekbe*
    How do I resolve this.
    thanks

    Hi,
    Try the following statement:
    Select sum( menge )
    into MCSTRUCT-ZQuant
    from ekbe.
    hope it helps...
    regards,
    Raju

  • ORA-20001: Secondary key column identified wwas not located in the select l

    Error in mru internal routine: ORA-20001: Secondary key column identified was not located in the select list of the query
    I am receiving this error when I try and update a record in an updatable report (SQL QUERY Updateable). Two of the values being updated rely on a named LOV.
    The SQL query for the report does pull in both the keys (there are two keys)....I am not certain why this is happening...any clues would be appreciated.
    thanks. Karen

    sorry. I thought I had made it current. It is now.
    I am not certain if you will be able to run it as it is accessing our test tables. Will I need to move those tables to the workspace. I am also checking here to see if anyone has had experience. thankyou for your patience. I really appreciate it.
    karen

  • TS2978 I have pictures that will not show until I select them. They show a blank square before selection.

    I have pictures that will not show until I select them. They show a blank square before selection. Can anyone advise me how to fix it?

    Open View Options for the folder in which the picture resides; the Desktop counts as a folder for this purpose.
    In the View Options window, checkmark the item "Show icon preview".
    Note that this setting is not global; it affects only the folder for which it is set.

  • In query, turkish column name is not displayed correctly?

    In my characteristic and key figure infoobjects , i used turkish characters for explanation but in Bex they are displayed as illegal characters for column names.
    How can i correct this or where would i make a mistake?
    Thanks.

    Hi Tuncer,
    I am dealing with the same problem you had.
    Turkish characters in the column names, infocube names are not displayed although in BW turkish characters are displayed properly. Did you solve your problem about Turkish characters in column names.
    If you could solve, I would be glad to hear your solution.
    Thank you.
    Mehmet Cekdemir

  • Substitution string used in custom Report column name does not display in PDF version of report

    I am using Apex 4.2.6.00.03, Apex Listener 2 via Glassfish4 and have set up all my applications and reports on this system.  We previously used Oracle 10.2, with Apache with a custom fopping document.
    My issue is that I have a report that has custom column headings using a substitution string to pull in the begin or end date for the report.  When the report is run and displayed, the column headings appropriately display the date.  However, when I try to set up the Print to PDF option, the column headings are not displaying correctly.
    Is it possible to use a substitution string in the column heading?  I am able to use the substitution string in the Page Header and Page Footer and those display correctly.
    In the Report Attributes setup I have set the "Strip HTML" to Yes and I have four columns that are using the &"ITEM NAME". string.  See below for actual display:
    The report column headings in APEX displays correctly (bold is the substitution detail): 
    Fund    Account Description          Balance 07/01/2014     Budget/Goal FY 14-15     YTD Actual 02/28/2015         Ending Balance 02/28/2015
    In the Print Attributes setup, when I get to the Report Columns section, the Heading column displays the headings as set up in the Report Attributes custom and I am not able to edit these names.  See below:
    In the version of the report that is Printed to PDF I get the following for display:
    Fund           Account Description           Balance %26amp;P347_BEGIN_DATE.     Budget/Goal %26amp;P347_FY.     YTD Actual %26amp;P347_END_DATE.     Ending Balance %26amp;P347_END_DATE.
    Any assistance would be greatly appreciated.
    Thanks,
    Pat

    First, the misspelled word is a test object and not data.
    Second, all data display correctly.
    Third, text object is displaying the old misspelled word.
    Fourth, I have eliminated the possibility that problems in of my pdf export routine cause this issue by exporting directly from Crystal Reports Viewer. I print the report to the crystal report viewer. The report looks good. The text object is spelled correctly. Then I click the Crystal Reports viewer's export button in the left upper corner and I export to both EXCEL and PDF. The excel export looks good. The pdf export is misspelled. All the export occurs internally in Crystal reports.
    Fifth, I found outthat all users who have this problem have the ADOBE PDF writer installed. I am just suspicious that ADOBE writer is interferring with Crystal export
    Sixth, I cannot recreate this problem on any of our development and test machines. It only happens on end-user laptops.
    Seventh, I changed the name of the report that had this problem and created a new version and installed on end-user laptop. The behaviour still persists. User saved the report as both RPT and PDF. RPT export looks good. PDF version has the spelling problem. Data on both reports is up-to-date and good. I copied the same RPT export to my PC and exported it to PDF, the pdf looks good. That is why I think something on the end-users laptops is causing the export to use some cached template.
    One more thing I did was to change the report name in VB.NET project, recreated a new package and installed on end-user's laptop. The same exact problem is still there.
    I have worked with Crystal Reports more than 15 years and I have never such a weird behaviour before. I know this sounds very weird. We are all baffled by what is happening.

  • Creating DOMDocument when column names are not known

    I want to make a DOMDocument from a table of which I do not know the column names.
    I already got pretty far: I could generate XML elements having the name of each of the columns.
    I still have a problem when trying to retrieve the cell values from the table.
    The code is below.
    The problem I have is situated after the line:
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    I do not know how to retrieve the value from the table but by hardcoding the column name (i.e. get_rows.label where label is a column name). What I want to use is the VALUE of the variable col_name as the column name.
    Many thanks in advance.
    The code:
    set serveroutput on
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    row_node xmldom.DOMNode;
    user_node xmldom.DOMNode;
    item_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    row_elmt xmldom.DOMElement;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    CURSOR DF_ROWS IS SELECT * FROM DF_COUNTRY;
    /* get the column names */
    CURSOR DF_COLUMNS IS SELECT COLUMN_NAME FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'DF_COUNTRY';
    col_name varchar(20);
    cell_value varchar(40);
    BEGIN
    /* OPEN DF_COLUMNS; */
    /* create a DOM document and append a root element */
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    root_elmt := xmldom.createElement(doc, 'ROOT');
    root_node := xmldom.appendChild(main_node, xmldom.makeNode(root_elmt));
    /* loop over the records */
    FOR get_rows IN DF_ROWS LOOP
    row_elmt := xmldom.createElement(doc, 'ROW');
    /* xmldom.setAttribute(item_elmt, 'num', get_users_rec.rownum); */
    row_node := xmldom.appendChild(root_node, xmldom.makeNode(row_elmt));
    /* Now loop over all the columns (cells) and create an element for each of them */
    FOR get_columns IN DF_COLUMNS LOOP
    col_name := get_columns.COLUMN_NAME;
    DBMS_OUTPUT.PUT_LINE(col_name);
    item_elmt := xmldom.createElement(doc, get_columns.COLUMN_NAME);
    item_node := xmldom.appendChild(row_node, xmldom.makeNode(item_elmt));
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    item_text := xmldom.createTextNode(doc, get_rows.label);
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    END LOOP;
    END LOOP;
    xmldom.writeToFile(doc, 'C:\ClinCapt\Output\test.xml');
    xmldom.freeDocument(doc);
    END;

    I needed to manipulate the XML afterwoods (i.e. combine it with queries to other tables in a single large XML document).Did you try to combine all these subsequent queries into one single query and pass it to the XML packages to generate the XML all at once (instead of doing it in stages).
    SQL> select dbms_xmlquery.getxml('select dname,
      2                              cursor(select empno, ename
      3                                     from scott.emp
      4                                     where rownum < 3) employees
      5                              from scott.dept where rownum < 3') from dual ;
    DBMS_XMLQUERY.GETXML('SELECTDNAME,CURSOR(SELECTEMPNO,ENAMEFROMSCOTT.EMPWHEREROWN
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DNAME>ACCOUNTING</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
       <ROW num="2">
          <DNAME>RESEARCH</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
    </ROWSET>
    SQL>                                                      

  • Column Name is not appear

    Hi Experts,
    I have using this query for generate XML File through Store Procedure
    Store Procedure Runing Succesful. For using below query Execute whole Store Procedure
    Problem Path is Generate but  Coloumn Name is not appear in it.
    exec [dbo].[ICR_Rpt_Form2Rpt_XML] '20110722', '20110722'
    Please help me out.
    BR,
    Manish Pandey

    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER PROCEDURE [dbo].[ICR_Rpt_Form2Rpt_xml]  @FrmDate  nvarchar(50) ,
    @ToDate nvarchar(50)   AS
    select OINV.Docentry, I.Linenum,
    '0' as [Sr.],OINV.U_ICR_WHS as SeriesName,
    SeriesName+' '+convert(varchar(50),OINV.Docnum)as [DocumentNo.],
    I.Docdate as [Date],
    I.ItemCode as ItemCode,
    I.ItemName  as [ItemName] ,I.BatchNum as [BatchNo],
    O.U_ICR_TFFNUM as [TarriffClass],V.Quantity as [Quantity] ,((O.U_ICR_BED/O.U_ICR_STOCK)* V.Quantity) as [Duty] ,
    ((O.U_ICR_ECESS/O.U_ICR_STOCK)* V.Quantity) as [Edu.Cess],((O.U_ICR_CESS/O.U_ICR_STOCK)* V.Quantity) as [S.H.Cess],
    ((O.U_ICR_AED/O.U_ICR_STOCK)* V.Quantity)  as [SplCVD],O.U_ICR_INVNODATE as [supplierNo.],
    O.InDate as [Date1],O.CardName as [Manufacturer],U_ICR_STOCK as [Quantity1],
    U_ICR_BED as [Duty1],U_ICR_ECESS as [Edu.Cess1],U_ICR_CESS as [S.H.Cess1] ,
    U_ICR_AED as [SplCVD1],U_ICR_ETRYNOOE as [Ent.No.1], U_ICR_PAGEOE  as [P/ENo.1] 
    from OIBT  O ,IBT1  I,OINV,NNM1 ,INV1 V ,DLN1 D where  D.LineNum=v.BaseLine and
    D.TrgetEntry=v.DocEntry and D.ItemCode=v.ItemCode and I.BaseLinnum= D.LineNum and I.BaseEntry=D.DocEntry and
    O.whscode=V.whscode  and O.U_ICR_STOCK>0  and U_ICR_MODVET ='Y'  and
    ( (I.bASEtYPE=13 and  (V.baseType=17  or V.baseType=-1 or V.baseType=23))   or (V.bASEtYPE=20 )) and
    OINV.Docentry=V.DocEntry  and OINV.Docnum =I.BaseNum   and I.Direction=1  and
    O.Itemcode=I.Itemcode and O.BatchNum=I.BatchNum   and NNM1.Series=OINV.Series  and I.DocDate between @FrmDate and @ToDate  and  OINV.docdate  between @FrmDate and @ToDate and  O.U_ICR_STOCK != 0  and oinv.docentry  not in (select baseentry from rin1 where basetype=13) group by OINV.U_ICR_WHS,O.U_ICR_STOCK, OINV.Docnum,OINV.Docentry, I.Linenum, OINV.Docentry,I.BaseNum ,O.U_ICR_INVNODATE,I.Docdate ,I.ItemCode ,I.ItemName  ,I.BatchNum ,U_ICR_TFFNUM,U_ICR_SUPPCODE,O.InDate,O.CardName,U_ICR_STOCK,U_ICR_BED,U_ICR_CESS,U_ICR_ECESS,U_ICR_ETRYNOOE ,U_ICR_PAGEOE,V.Quantity,I.LineNum,SeriesName ,U_ICR_AED  union select  OINV.Docentry, I.Linenum, '0' as [Sr.],OINV.U_ICR_WHS as SeriesName, SeriesName+' '+convert(varchar(50),OINV.Docnum) as [Document No.],I.Docdate as [Date],I.ItemCode as ItemCode,I.ItemName  as [ItemName] ,I.BatchNum as [BatchNo],O.U_ICR_TFFNUM as [Tarriff Class],V.Quantity as [Quantity], ((O.U_ICR_BED/O.U_ICR_STOCK)* V.Quantity) as [Duty] ,((O.U_ICR_ECESS/O.U_ICR_STOCK)* V.Quantity) as [Edu.Cess],((O.U_ICR_CESS/O.U_ICR_STOCK)* V.Quantity) as [S.H.Cess],((O.U_ICR_AED/O.U_ICR_STOCK)* V.Quantity)  as [Spl CVD],O.U_ICR_INVNODATE as [supplier No.],O.InDate as [Date1],O.CardName as [Manufacturer],U_ICR_STOCK as [Quantity1],U_ICR_BED as [Duty1],U_ICR_ECESS as [Edu.Cess1],U_ICR_CESS as [S.H.Cess1] ,U_ICR_AED as [SplCVD1],U_ICR_ETRYNOOE as [Ent.No.1], U_ICR_PAGEOE  as [P/ENo.1]
    from OIBT  O ,IBT1  I,OINV,NNM1 ,INV1 V,DLN1 D where D.LineNum=v.BaseLine and D.TrgetEntry=v.DocEntry and D.ItemCode=v.ItemCode and I.BaseLinnum= D.LineNum and I.BaseEntry=D.DocEntry and U_ICR_MODVET ='Y' and ( (I.bASEtYPE=15 and V.baseType=15 ) ) and OINV.Docentry=V.DocEntry  and V.baseRef =I.BaseNum   and I.Direction=1  and O.Itemcode=I.Itemcode and O.BatchNum=I.BatchNum   and NNM1.Series=OINV.Series and O.WhsCode=V.WhsCode  and I.DocDate between @FrmDate and @ToDate and   OINV.docdate  between @FrmDate and @ToDate and  O.U_ICR_STOCK != 0 and oinv.docentry  not in (select baseentry from rin1 where basetype=13)  group by OINV.U_ICR_WHS,I.Linenum,OINV.Docentry,I.BaseNum ,O.U_ICR_INVNODATE,I.Docdate ,I.ItemCode ,I.ItemName  ,I.BatchNum ,U_ICR_TFFNUM,U_ICR_SUPPCODE,O.InDate,O.CardName,U_ICR_STOCK,U_ICR_BED,U_ICR_CESS,U_ICR_ECESS,U_ICR_ETRYNOOE ,U_ICR_PAGEOE,V.Quantity,I.LineNum,SeriesName ,U_ICR_AED,OINV.Docnum order by OINV.Docentry
    for xml path('xml'),type
    BR,
    Manish Pandey

  • How to set column names when not using object of row data in  constructer

    hello i am using JTable constructer as
    public JTable(int numRows,
    int numColumns)
    can i set column names for the columns .How?

    hi,
    sure you can: Create a subclass of DefaultTableModel and overwrite the method public String getColumnName(int) which returns the column name of a specific column. Then use this subclass as the data model for the table.
    best regards, Michael

  • The column names is not being displayed in maintenance view...

    Hello experts,
    I created a maintenance view for my custom table and I am wondering on why does the columns
    have no names? It is just displayed with a '+'. Help would be appreciated. Thanks a lot
    guys and take care!

    Hi,
      Check whether is any description for the corresponding data element...
      Otherwise you can go to SE51 to change the column text..
      If you are adding text to the data element generate the screens again..
    Thanks,
    Naren

  • Deciding Column name in UPDATE statement at runtime?

    Hi,
    Assuming there are 5 columns COLUMN1 through COLUMN5 in TABLE1
    In any Update Statement, say:
    UPDATE TABLE1 SET COLUMN1='Hi' WHERE COLUMN2='Hello';
    Can we decide the COLUMN to bet set at runtime depending on some literal value?
    Here in this case, like i get some value in a variable x := 'COLUMN1';, then how can i use an UPDATE statement to following:
    UPDATE TABLE1 SET x='Hi' WHERE COLUMN2='Hello';
    here x is decided on some logic, i.e. which column is to be updated is decided at runtime.
    Please help.
    Many thanks in advance.

    Hi,
    I understood a bit of your code...a 60%..
    Better you can see this below example...small and simple example..from this you can understand....and you can solve your problem.. and use of EXECUTE IMMEDIATE...
    DECLARE
    sql_stmt VARCHAR2(200);
    plsql_block VARCHAR2(500);
    emp_id NUMBER(4) := 7566;
    salary NUMBER(7,2);
    dept_id NUMBER(2) := 50;
    dept_name VARCHAR2(14) := 'PERSONNEL';
    location VARCHAR2(13) := 'DALLAS';
    emp_rec emp%ROWTYPE;
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE bonus (id NUMBER, amt NUMBER)';
    sql_stmt := 'INSERT INTO dept VALUES (:1, :2, :3)';
    EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, location;
    sql_stmt := 'SELECT * FROM emp WHERE empno = :id';
    EXECUTE IMMEDIATE sql_stmt INTO emp_rec USING emp_id;
    plsql_block := 'BEGIN emp_pkg.raise_salary(:id, :amt); END;';
    EXECUTE IMMEDIATE plsql_block USING 7788, 500;
    sql_stmt := 'UPDATE emp SET sal = 2000 WHERE empno = :1
    RETURNING sal INTO :2';
    EXECUTE IMMEDIATE sql_stmt USING emp_id RETURNING INTO salary;
    EXECUTE IMMEDIATE 'DELETE FROM dept WHERE deptno = :num'
    USING dept_id;
    EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE TRUE';
    END;
    Thanks
    Pavan Kumar N

  • BAPI output column names are not meaningful. How to change it?

    Hi Experts
    The custom BAPI's output has the the table field names as its column headings. So it is difficult to understand. How can I replace them with meaningful headings for each column? For that, is there any way without creating another output structure?
    Exple:
    Now it is like:
    VBELN   POSNR  MATNR ....
    I want to replace as:
    SD#  ITEM#  Material .....
    Thanks
    BD

    you need to replace the items that are seen in IMPORT / EXPORT / TAbles tabs when u open the BAPI in Se37 Tr.
    Before that make sure you hit a where used list on the FM name... amd make sure no one is using it... else u might screw some thing up.

  • My first PL/SQL block not working with using Select query within begin

    I am new to PL/SQL , just started with basics of BLOCKS .
    I am having a query here in executing a block .
    When i am doing a insert oprtation in Blocks Begin method everything is working fine , but when ever i tried to do select operation , some error is being thrown .
    First of all This is my Table :
    select from try :*
    KEY      VALUE
    Key     Value
    Key1     Value1
    Key2     Value2
    Key3     Value3
    ======================
    This is the code which is not working : Please see the code and tell me what is the problem .
    DECLARE
    v_KEY    VARCHAR2(20);
    v_VALUE   VARCHAR2(20);
    BEGIN
    select key into v_KEY FROM try where v_value='Value' ;
    dbms_output.put_line(v_KEY);
    END;
    When i run this code , it is saying Data Not Found on this line " select key into v_KEY FROM try where v_value='Value' ;"
    wheer when i run tis individually it worked fine :
    select KEY FROM try where VALUE='Value' ;"
    please share your ideas .as why it isn't running ??
    Edited by: user10503747 on Sep 20, 2010 3:16 AM

    Hi,
    user10503747 wrote:
    I am new to PL/SQL , just started with basics of BLOCKS .
    I am having a query here in executing a block .
    When i am doing a insert oprtation in Blocks Begin method everything is working fine , but when ever i tried to do select operation , some error is being thrown .
    First of all This is my Table :
    select from try :*
    KEY      VALUE
    Key     Value
    Key1     Value1
    Key2     Value2
    Key3     Value3
    ======================
    This is the code which is not working : Please see the code and tell me what is the problem .
    DECLARE
    v_KEY    VARCHAR2(20);
    v_VALUE   VARCHAR2(20);
    BEGIN
    select key into v_KEY FROM try where v_value='Value' ;
    dbms_output.put_line(v_KEY);
    END;
    When i run this code , it is saying Data Not Found on this line " select key into v_KEY FROM try where v_value='Value' ;"
    wheer when i run tis individually it worked fine :
    select KEY FROM try where VALUE='Value' ;"
    please share your ideas .as why it isn't running ??
    Edited by: user10503747 on Sep 20, 2010 3:16 AMInstead of:
    {code}
    select key into v_KEY FROM try where v_value='Value' ;
    {code}
    perhaps you meant something like:
    {code}
    v_value := 'Value1';
    select key into v_KEY FROM try where v_value=Value ; -- No quotes
    {code}
    Until you assign a vlue to a variable, like v_value, it is NULL, so your original statement was equivalent to
    {code}
    select KEY FROM try where NULL='Value' ;
    {code}
    In PL/SQL, a SELECT ... INTO statement must return exactly one row, or else you will get an error (either NO_DATA_FOUND or TOO_MANY_ROWS). This is different from SQL, where a query cn return any number of rows, including 0, without raising an error.

Maybe you are looking for

  • Sync musc on 1 ipod library and contacts on another computer

    Hi, This one is confusing. Up until today myself and my kids all had ipods and all use one itunes library (mine) for songs etc. This way we all share music. Today I purchased my son a new macbook pro. It is his first computer. I would like him to be

  • CS5 Extended Adobe Bridge Not Working

    I am using CS5 Extended Adobe Photoshop Student and Teacher Edition. It was working properly not 'til I installed Check It Registry Cleaner this morning. When I started to work on certain pictures I took this afternoon, and I open Adobe Bridge so I c

  • How can I get the panelTabbed to have a scroll bar when needed?

    I have a panelTabbed with4 tabs and I want a scrollbar to appear when I shrink the size of the page down. I discovered that the tabs dissappear and there is not way to access them during some accessibility testing. I tried inserting a panelGrouLayout

  • Excise values are not updating in billing

    hi all, In RG23D register BED, AED, ECS values are showing correctly, but in order (VA02) or in billing (VF01) excise values are not showing. So, what could be the reason and what need to be checked? thanks.

  • This file has no audio or video streams

    I've been able to successfuly import any of my video files, except for one. It was shot on the same day, same series, same camera. Plays in QuickTime just fine. It's the only file that gives me this error. Can anyone help?