Fetch from Table Type

Hi All
I am modifying standard smartform.
I am facing problem in fetching data from "Form Interface".
For Eg.
Status           type         output_status
but here "output_status" is Table Type of some Structure(from where I want to fetch the field).
Please tell me statement to use in Editor to fetch data.
Regards.

hi
if output_status is a table type u should specfy them is tables tab not in import section .
in import section u can only specify flat structure ... but table type is not flat  structurte ... u can use line type if u want to use it in import section ...
hoipe it helps ...

Similar Messages

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Fetching from tables

    a report is being generated in which we put sold to party,delivery date and plant.This gives us some output
    Now we have to add two fields that is loading date and ship to party in the screen and the output has to be same as the previous.can u please guide me as to how can i fetch the data.

    Hi,
    First of all check that two fileds exits same table where you are adding new fields in select stament.
    SELECT Field1 Field2 Newfield1 Newfield2
    FROM Table
    INTO CORRESPONDING FIELDS OF TABLE Internal_Table
    WHERE Conditions (Newfield1).
    Once you added two new fileds in same manar you should update internal table structure also then only that values passes in to that internal table.
    Regads
    Md.MahaboobKhan

  • Read data from table  type

    Hi everyone,
    I am calling a FM BBP_READ_ATTRIBUTES, it exports a line ET_ATTR(Table type) , now in this there is a field  VLIST which is an Internal table . and It has entry in it.
    Now I require to get this internal table.
    I declare in data statement var type tabletype.
    How exactly can i retreive this internal table .
    when i double clicl on ET_ATTR , it a tabl type but i calls a line type BBPS_ATTR which is like a structure and there is a feild like VLIST which is an internal table .
    Please help me to retrieve the data in this internal table.
    Reagrds,
    Raj

    Plz try the following..
    FIELD_SYMBOLS: <fs_vlist_tab> type VLIST.  " plz give the table type of VLIST
    DATA: WA_VLIST TYPE LINE OF VLIST
    READ TABLE ET_ATTR INDEX 1. " as you saying it has only one line, read only index 1. o.w. you can read the other lines too as per you requirement.
    ASSIGN ET_ATTR-VLIST TO <FS_VLIST_TAB>.
    READ TABLE <FS_VLIST_TAB> into WA_VLIST index 1.
    * and process your WA_VLIST as requried..
    Regards
    Prax

  • Data fetch from table GLPCA taking long .

    Hi Friends,
    I am fetching five fields from GLPCA table and i have RACCT and RPRCTR ( account Number and profit Centre res ) in the where condition. neither of these field is the primary key of the table GLPCA. I have around 161096,482 entries in the GLPCA. It takes around 20 min to fetch the data. can you guys think of some method so that it works faster.

    Hi Vidya,
    The time utilization is due to the way data base is been accessed. Just think that you are selecting same data in SE16 with 200 hits. See how that behaves. If you find its Ok(i.e. around 1/2 mins) go for open cursor logic. Check this syntax and change the code accordigly and try:
    OPEN CURSOR w_cur1 FOR
           SELECT  ktabg vkorg ktaar ktaer kunnr
                   vtweg spart
                   FROM vbka
                   WHERE ktabg IN so_ktabg AND
                         vkorg IN so_vkorg AND
                         kunnr IN so_kunnr AND
                         ktaar IN so_ktaar AND
                         ktaer IN so_ktaer.
        DO.
          FETCH NEXT CURSOR w_cur1 INTO CORRESPONDING
                FIELDS OF TABLE it_vbka2 PACKAGE SIZE 200.
          IF sy-subrc NE 0.
            CLOSE CURSOR w_cur1.
            EXIT.
          ENDIF.
       ENDDO.
      It behaves just like Select ... Endselect. The most important thing here is the Pakage size which you have to decide based on the SE16 results. Also please mind that if the Package size is less, number of times it hits the DB is high, reducing the efficiency thereby.
    Regards & Thanks,
    Anand

  • Date fetching from table

    I have a customized table which contains monthwise details.say 12 entries for an year.I want to fetch the previous 5 month entries from the table wrto sy-datum.
    ie) if the month is 08 , then i want the records frm 03-07.
    ie) if the month is 02, i want the records 01,12,11,10,09.
    What logic to use?
    Rgds,
    SAPUSER100

    Hello,
    You have to also consider the year in your selection. so, change in the logic ...
    data: begin of r_mon occurs 0,
    mon(2),
    year(4),
    end of r_mon.
    l_month = sy_datum+4(2) - 1.
    l_year = sy_datum+0(4).
    do 5 times.
    r_mon-mon = l_month.
    r_mon-year = l_year.
    append r_mon.
    clear  r_mon
    l_mont = l_month - 1.
    if l_month = 0 .
    l_month = 12.
    l_year = sy_datum+0(4) - 1.
    endif.
    enddo.
    Once you got filled your range of the Month,
    I would advice like,
    loop at r_mon.
    select * from ztab
    appending table itab
    where mon = r_mon-mon
    and   year = r_mon-year.
    endloop.
    Regards,
    Naimesh

  • Data fetch from table

    i have to select data from a database table into internal table but i want that it shud be selected as it is means i have a char 30 field which may have CAPS and small values in table but in the internal table it comes as all CAPS but it shud come as it is e.g "Data" shud come as "Data" in internal table but it comes as "DATA".

    Just check the Domain of the concerned field. There will be a characteristic check box called "lower case" in the Definition tab of your domain. See if that is Flagged. If that is flagged, then the stored record will be case sensitive. In best practice, you should not have that flagged, So that the records will not be case sensitive and you will not have to face a similar situation.
    Hope this helps.

  • Reading data from Table type from Badi /sapapo/curto_create

    Hi,
    I have been trying to read data from badi /sapapo/curto_create . In this badi there is method CS_PPDS_RTO.
    which has nested structure upto 8 level. I have been trying to read data but i am not suceesfull in reading data from the stsructre
    which is present at lowest level.
    The  nested structure of the BEFORE_SAVE is following way.
    BEFORE_SAVE-CS_PPDS_RTO-HIRARCHY-ADD_APPLICTN_DATA-MODES-BODY-CAP_REQS-RESUID.
    I have to read the value of reusid bt i am not sure whow to read this value can you please help me by giving some Bapi or method
    to read the value of Reusid .
    Thanks

    Hi!
    DATA: lv_resuid TYPE resuid.
    LOOP AT CS_PPDS_RTO-HIRARCHY-ADD_APPLICTN_DATA-MODES-BODY-CAP_REQS-RESUID
    INTO lv_resuid.
    ENDLOOP. 

  • Fetching  an image from table to be displayed in HTML

    I'm making something similar to the [online store Packaged Applications from Oracle.|http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html]
    I have small problem.
    <td rowspan="5" valign="top"><img src="f?p=&APP_ID.:30:0:#IMG#" width="50" height="50"></td>
    This is how the image is fetch from table EBA_OLS_IMAGES in the online store app. The parameter #IMG# is the id of the image, not the blob file.
    So can some one explain to me how this link works.. What the .:30:0: means.

    hi,
    So can some one explain to me how this link works.. What the .:30:0: means.please read the following link to understand deeply syntax of URL in oracle apex
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BEIFCDGF
    With Regards,
    Sunil Bhatia

  • How to Populate a table type variable from a cursor

    Hi
    I have a stored procedure (P1) that returns a ref cursor as the output.
    Another procedure (P2) receives this ref cursor (C).
    In this procedure (P2), I want to do a Bulk Collect from this ref cursor (C) in
    a table type variable that has been declared locally in the procedure P2. I have created appropriate Object Type and Table Types at the database level.
    Please advise how to do it. I tried to do it in different ways, but was not able to do it - each time I faced incompatible data-type related issues.
    Regards
    Madhup

    What I wrote was unclear. Syntactically it is valid and does something. But consider the advantage of a decent design.
    SQL> create or replace procedure p1 (o out sys_refcursor) as
      2  begin
      3   open o for select * from emp;
      4  end p1;
      5  /
    Procedure created.
    SQL> create or replace procedure p2(i sys_refcursor) as
      2   type emp_tab is table of emp%rowtype;
      3   l_emp_tab emp_tab;
      4  begin
      5   fetch i bulk collect into l_emp_tab;
      6   close i;
      7  
      8   for i in 1..l_emp_tab.count loop
      9     NULL;
    10   end loop;
    11  end p2;
    12  /
    Procedure created.
    SQL> CREATE OR REPLACE PROCEDURE p3 IS
      2 
      3  TYPE myarray IS TABLE OF emp%ROWTYPE;
      4  l_data myarray;
      5 
      6  CURSOR r IS
      7  SELECT * FROM emp;
      8 
      9  BEGIN
    10    OPEN r;
    11    LOOP
    12      FETCH r BULK COLLECT INTO l_data;
    13 
    14      FOR j IN 1 .. l_data.COUNT
    15      LOOP
    16        NULL;
    17      END LOOP;
    18 
    19      EXIT WHEN r%NOTFOUND;
    20    END LOOP;
    21    CLOSE r;
    22  END p3;
    23  /
    Procedure created.
    SQL> set serverout on
    SQL> set timing on
    SQL> declare
      2   r sys_refcursor;
      3  begin
      4    FOR i IN 1 .. 10000 LOOP
      5      p1(r);
      6      p2(r);
      7    END LOOP;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.71
    SQL> begin
      2    FOR i IN 1 .. 10000 LOOP
      3      p3;
      4    END LOOP;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.21
    SQL> Again sorry for being less than clear.

  • Fetch from MBEW table

    Hi,
    I have a situation where I need to fetch some records form MSEG table and for each record fetched I need to get the Standard Price(STPRS) from MBEW table.
    But for fetching a unique record from MBEW table, I need to fetch based on its primary keys - MATNR, BWKEY, BWTAR.
    What values should I pass for BWKEY and BWTAR for fetching a unique record?
    I searched in SDN and found that BWKEY can have values Plant or Company Code. But I'm not sure when I should populate it with Plant and when I should populate it with company code.
    Thanks in advance.
    Sreeraj Pulickal

    Hi,
    See the SAP documentation of BWKEY.  It clearly specifies when to pass Company Code
    Valuation area
        Organizational level at which the material is valuated. A valuation area
        can be one of the following:
        o   Plant
        o   All plants belonging to a company code, in which case the valuation
            area is the company code
    Edit :
    Regarding valuation type, you can get the valuation category(BWTTY) from MARC by passing Material Number and Plant.
    Get tye valuation Type from Table T149C by passing BWTTY as input parameter.
    Regards
    Vinod
    Edited by: Vinod Kumar on Jul 2, 2010 2:15 PM

  • OGG-01038  Cannot fetch required data from table

    hello i have the following error
    OGG-01038 Cannot fetch required data from table SIEBEL.S_EVT_MAIL due to missing key columns.
    here is my extract policy
    EXTRACT ext3
    setenv NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    USERID ggs_owner, PASSWORD *******
    TRANLOGOPTIONS ALTARCHIVELOGDEST primary instance SBPRD1 /oraarch1/SBPRD, ALTARCHIVELOGDEST primary instance SBPRD2 /oraarch2/SBPRD
    FETCHOPTIONS FETCHPKUPDATECOLS
    DBOPTIONS ALLOWUNUSEDCOLUMN
    RMTHOST i**********, MGRPORT 7809
    RMTTRAIL /home/oracle/MIGRATE_SBPRD_ACFS/ggs/dirdat/ss
    DISCARDFILE discard.txt, APPEND
    DDL INCLUDE ALL
    TABLE IT.*;
    TABLE SIEBEL.S_EVT_MAIL,KEYCOLS(ROW_ID);
    TABLE SIEBEL.*;
    TABLE APDBA.*;
    TABLE EXECUTOR.*;
    TABLE FORTHNOVA.*;
    TABLE MIGRATOR.*;
    TABLE REPORTER.*;
    thanks a lot
    Edited by: user1165357 on Nov 24, 2011 1:06 PM
    Edited by: user1165357 on Nov 24, 2011 1:07 PM

    no pk or unique key
    SQL> desc SIEBEL.S_EVT_MAIL
    Name                                      Null?    Type
    ROW_ID                                    NOT NULL VARCHAR2(15 CHAR)
    CREATED                                   NOT NULL DATE
    CREATED_BY                                NOT NULL VARCHAR2(15 CHAR)
    LAST_UPD                                  NOT NULL DATE
    LAST_UPD_BY                               NOT NULL VARCHAR2(15 CHAR)
    MODIFICATION_NUM                          NOT NULL NUMBER(10)
    CONFLICT_ID                               NOT NULL VARCHAR2(15 CHAR)
    PAR_ROW_ID                                NOT NULL VARCHAR2(15 CHAR)
    EMAIL_ATT_FLG                             NOT NULL CHAR(1 CHAR)
    EMAIL_FORWARD_FLG                         NOT NULL CHAR(1 CHAR)
    MSG_MANL_EDTD_FLG                         NOT NULL CHAR(1 CHAR)
    BODY_LANG_ID                                       VARCHAR2(5 CHAR)
    CNTNT_CTG_DB_ID                                    VARCHAR2(15 CHAR)
    EMAIL_BCC_LINE                                     VARCHAR2(2000 CHAR)
    EMAIL_CC_LINE                                      VARCHAR2(2000 CHAR)
    EMAIL_RECIP_ADDR                                   VARCHAR2(250 CHAR)
    EMAIL_RECIP_NAME                                   VARCHAR2(100 CHAR)
    EMAIL_SNDR_ADDR                                    VARCHAR2(250 CHAR)
    EMAIL_SNDR_NAME                                    VARCHAR2(250 CHAR)
    EMAIL_TO_LINE                                      VARCHAR2(2000 CHAR)
    FORMAT_TYPE_CD                                     VARCHAR2(30 CHAR)
    MIME_CHAR_SET                                      VARCHAR2(50 CHAR)
    MSG_NUM                                            VARCHAR2(200 CHAR)
    EMAIL_BODY                                         LONG

  • VB Runtime error timeouts. Could not fetch terms from table: TPW6

    VB Runtime error timeouts are occurring repeatedly for multiple users on the terminal server.
    Event Type:         Warning
    Event Source:     VBRuntime
    Event Category:  None
    Event ID:              1
    Description: The VB Application identified by the event source logged this Application XL Reporter: Thread ID: 13508 ,Logged: Could not fetch terms from table: TPW6
    It looks like bad table reference in XL reports? This is causing significant lag as they wait to time-out. Is there a way to identify source(s) and correct  it/them? Unfortunately the error does not say what report. Is there any way of identifying exactly what the SAP equivalent is to the tables it is having issues finding?
    thanks

    This error may not cause big problems.  We have to live with it for a long time.  It only show XLR with highlight icon on the task bar.  It shouldn't have much bigger impacts.
    Thanks,
    Gordon

  • Fetch value from Table with respect to APP_USER.

    Hi,
    i want to fetch value from Table with respect to APP_USER.
    i am using
    SELECT ID,NAME,FILE_OBJ_ID,MIME_TYPE,DOC_SIZE,BLOB_CONTENT,DESCRIPTION,UPLOAD_DATE,'Download' FROM DUMY_FILE where CREATED_BY =:APP_USER;
    Show me error
    failed to parse SQL query:
    ORA-00911: invalid characterThanks
    Edited by: 805629 on Jan 13, 2011 2:09 AM

    Hello,
    I too have the same problem.
    I am using this query:
    select manager from leave_mgmt where support_engg=:APP_USER
    and source type is SQL Query(return single value)
    but nothing is coming up in the text field. Its empty.
    Please advice. Thanks in advance.

  • How to retrieve the values from PL/SQL table types.

    Hi Every one,
    I have the following procedure:
    DECLARE
    TYPE t1 IS TABLE OF emp%ROWTYPE
    INDEX BY BINARY_INTEGER;
    t t1;
    BEGIN
    SELECT *
    BULK COLLECT INTO t
    FROM emp;
    END;
    This procedure works perfectly fine to store the rows of employee in a table type. I am not able to retrieve the values from Pl/SQL table and display it using dbms_output.put_line command.
    Can anybody help me please!!!!!
    Thanks
    Ahmed.

    You mean, you can't add this
    for i in t.first..t.last loop
    dbms_output.put_line(t(i).empno||' '||t(i).ename||' '||t(i).job);
    end loop;or you can't add this
    set serveroutput onor maybe, you are working in third party application where dbms_output is not applicable at all?
    You see, not able like very similar it is not working - both are too vague...
    Best regards
    Maxim

Maybe you are looking for

  • Items receiving to wrong sub inventory

    Hi All, When the items are received into logic, it goes to 'X' sub-inventory. When manually is received the items go to 'Y' sub-inventory. Please suggest me. Thanks, JP

  • Getting objects to move between PCs

    After CS 150, I find myself back in the world of Java. I recently learned a neat language called Processing (a.k.a. Proce55ing), and I am one of the coders (and am way rusty to be of much use at this point) for a really cool project. I'm wondering if

  • Adobe Bridge CC very slow on New Mac Pro

    Im running both Bridge CC (6.1.0.115) and CS6 on my New Mac Pro the Bridge CC is obviously slower than Bridge CS6. CC also very easy to get the spinning ball every click on Bridge CC, very annoying. Also Im using Dell 4K monitor, If I load monitor si

  • How do i view photos backed up on icloud

    I lost my phone and just got a new one. I am trying to backup with icloud however it is unable to find. Does this mean i didnt use the icloud feature properly and lost all my photos?

  • Pointing iTunes to a new feed?

    Hi Folks, How do I get iTunes to point to a new URL for my feed when the old URL is no longer valid? It used to be hosted at Switchpod but I moved it. I placed the NewFeed tag in the xml file and assumed it had updated since it picked up a new episod