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

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

  • 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

  • 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 ...

  • 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.

  • 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

  • Fetch data from table and generate attachment than mail it.

    Hello Experts,
    From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
    My Scenario is:
    I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
    select a.location_code,
                   a.item_code,
                   b.description item_desc,
                   to_char(a.manufact_date,'ddMonyy')mfg,
                   to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
                   to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
                   round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
                   a.closing_balance_posted quantity
              from wms_stock_current_balance_v a, wms_item_setup_mast b
             where a.closing_balance > 0
               and a.item_code = b.item_code
               and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
               and nvl(b.qurantine_period,0) > 0
               and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
          order by a.item_code, a.location_code;
    Sample data of above query is
    LOCATION_CODE
    ITEM_CODE
    ITEM_DESC
    MFG
    Expiry
    Quarantine
    Days Elapse
    Quantity
    13DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    14DL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    134
    14DL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    14DR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    20
    14LL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17ER2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17GL2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    17SL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    64
    18QL0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    23-Feb-10
    3-Apr-14
    7-Jun-13
    -119
    160
    19AR5
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    160
    19DL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    19JR0
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    17-Feb-10
    28-Mar-14
    1-Jun-13
    -125
    60
    19TL1
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    160
    20GR2
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    20-Feb-10
    31-Mar-14
    4-Jun-13
    -122
    40
    36FL3
    000000000000000F0487
    CLEAR COOL BLACK 05ML
    18-Feb-10
    29-Mar-14
    2-Jun-13
    -124
    65
    19UR0
    000000000000000F0591
    COMFORT WHITE 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    1
    12SL1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    12SR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    42
    14OR1
    000000000000000F0593
    COMFORT PINK 24ML*300
    28-Oct-09
    28-Oct-11
    1-May-11
    -887
    8
    36EL4
    000000000000000F0594
    CLEAR HF DECRASE 5M*360
    14-Feb-10
    14-Feb-11
    12-Oct-10
    -1088
    14
    13VL1
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    160
    14ER0
    000000000000000F0595
    CLEAR COM SFT CRE 5*360
    8-Feb-10
    8-Feb-11
    6-Oct-10
    -1094
    105
    Database Info
    Oracle 10g
    Version 10.2.0.1.0

    Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
    Re: How to execute a proc and spool files in a database job
    And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP.

  • PDE-PLI031 Unable to fetch record from table tool_modulre

    Dear ALL
    I am creating PL/SQL Libraries in report builder.
    but When I try to save the Library to database, a error
    PDE-PLI031 Unable to fetch record from table tool_modulre.
    Would you please tell me how to solve this problem
    and why it coming
    thankyou very much
    pritam singh

    Hi ,
    Saving a library (.pll) to database would store the object inside specific tables that are to be created.
    If you are using 6i, then you should find toolbild & toolgrnt.sql files which you have to run in the order specified. The above scripts creates the necessary tables and henceforth you won't get those errors while saving.
    Hope this helps.
    Thanks,
    Vinod.

  • Data fetching from BSEG table

    Hi,
    I have used smartforms for generating suppler payment statement for financial department. more time duration is taken by the program when it is generating.
    I think this problem comes while data fetching from BSEG table. because, it has more records for one vendor ID.
    I want reduce this time duration.
    Please guide me.

    Have you tried this selection in se16? I'm quite sure that It will take
    a long time.
    The problem has been explained in this group before and I think you
    should search for bseg in the answers given.
    As a hint: It has to do with the selection universe. You are restricting
    only bukrs from the primary key (all the other restrictions in your
    where clause are filters that are applied on SAP's side (not on the
    database side)). The problem is that bseg isn't stored as separated
    fields in the RDBMS, but as a table with the primary key and a stream of
    bits in a raw field.
    You should review and change the logic you're using before reading bseg.
    It's the only way you'll improve the performance of this select. (for
    example, you could use one or more secondary index tables - bi or ba
    to retrieve belnr and access bseg with a better where clause).

  • Time out error while fetching records from table BKPF

    Hi,
    I am fetching records from table BKPF using BUKRS & AWKEY in where clause. Query is as follows:
        SELECT BELNR  XBLNR  AWKEY
        FROM   BKPF
        INTO TABLE L_I_BKPF_TEMP
        PACKAGE SIZE 500
        WHERE BUKRS LIKE L_C_EG
        AND   AWKEY IN L_R_AWKEY .
          APPEND LINES OF L_I_BKPF_TEMP TO I_BKPF .
        ENDSELECT .
    Program is giving time out error. There are 25628 records in range L_R_AWKEY , i m fetching 500 records at a time using  PACKAGE SIZE. But the execution of prog stops on this query.
    Please suggest something to overcome this problem.

    Hi
    Rui is right,
    if you need to get the data by  operation parameters u have to use the fields AWTYP and AWKEY.
    In this selection u can omit the company code.
    SELECT BELNR XBLNR AWKEY FROM BKPF
           INTO TABLE L_I_BKPF_TEMP
                 PACKAGE SIZE 500
                      WHERE   AWTYP = <......> "<------------
                             AND AWKEY IN L_R_AWKEY .
           APPEND LINES OF L_I_BKPF_TEMP TO I_BKPF .
    ENDSELECT .
    Max

  • Function module to fetch data from table SETLEAVES

    Hi All,
    We have a requirement to fetch the data from table SETLEAVES based on the setclass,subclass and group. As the table holds hierarchical data, Please let me know a FM which fetches all the hierarchical data from the table SETLEAVES.
    Regards
    Shiva

    Try:
        exporting
          e_class                     = '0102'
          e_setid                     = setid
          e_kokrs                     = my_kokrs
          e_mandt                     = sy-mandt
          e_master_data               = 'XXX'
          e_structure                 = 'X  X0200'
          e_replace_class             = space
          e_replace_unit              = space
          e_suffix                    = space
          e_old_line_level            = 1  "l_ol_level
        tables
          t_nodes                     = it_ceg_nodes
          t_values                    = it_ceg_values
        changing
          c_info                      = c_info
          c_overwrite                 = c_overwrite
        exceptions
          no_controlling_area         = 1
          no_chart_of_account         = 2
          different_controlling_areas = 3
          different_chart_of_accounts = 4
          set_not_found               = 5
          illegal_field_replacement   = 6
          illegal_table_replacement   = 7
          fm_raise                    = 8
          convert_error               = 9
          no_overwrite_standard_hier  = 10
          no_bukrs_for_kokrs          = 11
          others                      = 12.
    Rob

  • 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

Maybe you are looking for

  • Mail unexpectedly quits when I try to open the Mail Application 4.5 and system is 10.6.8

    Mail unexpectedly quits when I try to open the Mail Application 4.5. Any ideas how to resolve this? I have tried the suggestions already given on Lists, and nothing has yet worked...

  • I'm battling with a lightbox, can you please advise?

    Hi all and thank you so long for your help. I'm battling to get a lightbox to work with files from sub-folders. But, it only works on files in my root folder. My question concerns: www.energywa.co.za All navigation on the top right work with lightbox

  • Integration Server in SLD shows no System

    Hello, I have the following problem. When I log into the SLD, go to technical System, filter for XI then I See Adapter Engine, Integration Directory etc. For each of them the column System is filled (SAP-System and Host). Only for the Integration Ser

  • Issue in using Runtime.exec for service in linux

    Hi, I have a problem in executing my own service through java6 on linux operating system. I have created a UI (user interface) which contains a button. On clicking that button my own service gets executed successfully. But the problem is that when I

  • Error when calling remote EJB from my application

    hi I am getting the following error when i am trying to call a remote EJB from my application. Can any help me out regarding this issue javax.naming.ConfigurationException: COS Name Service not registered with ORB under the name 'NameService'. Root e