WSH_EXCEPTIONS Table becomes 38 GB

Follwoing are the tables which are consuming space for tablespace APPS_TS_TX_DATA.
select segment_name, sum(bytes)
  from dba_segments
where tablespace_name = 'APPS_TS_TX_DATA'
group by segment_name
order by 2 desc;
        SEGMENT_NAME                     SUM(BYTES)
1     WSH_EXCEPTIONS                          38420873216
2     MLOG$_OE_ORDER_LINES_ALL          23646830592
3     WF_ITEM_ACTIVITY_STATUSES          20170014720
4     MLOG$_XXCS_SALES_MATRIX_SA          17160470528
5     MLOG$_WSH_DELIVERY_DETAILS          16620978176
6     ZX_LINES_DET_FACTORS               15658385408
7     FND_LOG_MESSAGES                  13132890112
8     WF_ITEM_ATTRIBUTE_VALUES          13027115008
9     MTL_MATERIAL_TRANSACTIONS          12053774336
10     ZX_LINES                             11223040000
11     OE_ORDER_LINES_ALL                     9180807168
12     RA_CUSTOMER_TRX_LINES_ALL          8896380928
13     XXCS_ORDERS_AUDIT_DATA               8323989504
14     MRP_ATP_SCHEDULE_TEMP               6258294784
15     MLOG$_RA_CUSTOMER_TRX_LINE          6062604288
16     MTL_TRANSACTION_LOT_NUMBERS          5516427264
17     WSH_DELIVERY_DETAILS                     5389287424
18     XXCS_SALES_MATRIX_CTS_DTL_2          4675993600
19     RA_CUST_TRX_LINE_GL_DIST_ALL          3809607680
20     ZX_REP_TRX_DETAIL_T                     3797942272
21     XXCS_SALES_MATRIX_SALES_DATA          3698065408
22     MLOG$_MTL_MATERIAL_TRANSAC          3564634112
23     XXCS_RA_CUSTOMER_TRX_LINES_U1          3269984256
24     MLOG$_MTL_TRANSACTION_LOT_          3174432768
25     AR_DISTRIBUTIONS_ALL               3041263616
26     MLOG$_MTL_ONHAND_QUANTITIE          2833252352
27     OE_PRICE_ADJUSTMENTS               2668625920
28     FND_ENV_CONTEXT                    2499018752
29     MTL_TXN_REQUEST_LINES               2406088704
30     OE_PROCESSING_MSGS_TL               2246311936
31     MLOG$_RA_CUSTOMER_TRX_ALL          2076835840
32     XXCS_ORDERS_DATA               1659240448
33     AR_RECEIVABLE_APPLICATIONS_ALL          1582039040
34     WF_ITEMS                    1580859392
35     RA_CUST_TRX_LINE_SALESREPS_ALL          1519517696
36     OE_PROCESSING_MSGS               1474953216
37     MLOG$_OE_PRICE_ADJUSTMENTS          1370882048
38     XXCS_SALES_MATRIX_D               1276772352
39     RA_CUSTOMER_TRX_ALL               1214251008
40     XXCS_SAP_EXTRACTS_ALL               1173749760
41     IDX$$_2DF80001                    1141506048
42     AR_PAYMENT_SCHEDULES_ALL          1115029504
43     OE_SALES_CREDITS               1109524480
44     OE_PRICE_ADJ_ATTRIBS               1103626240
45     IDX$$_2AD80001                    1038614528
46     XLA_EVENTS                    1037303808
47     MTL_MATERIAL_TRANSACTIONS_PZ_1          1013579776
48     XXCS_SAP_EXTRACTS_B               989855744
49     MRP_SO_LINES_TEMP               978452480
50     WSH_NEW_DELIVERIES               937295872
51     WSH_TRIP_STOPS                    894566400
52     XXCS_SAP_EXTRACTS_ALL_PRN          878182400
53     MTL_MATERIAL_TRANSACTIONS_PZN4          839385088
54     XLA_TRANSACTION_ENTITIES          833093632
55     WSH_DELIVERY_ASSIGNMENTS          804782080
56     XXPZ_OE_ORD_LNES_ALL               790102016
57     RCV_TRANSACTIONS               752222208
58     WSH_DELIVERY_DETAILS_N99          724697088
59     XLA_DISTRIBUTION_LINKS               709492736
60     FND_CONCURRENT_REQUESTS               692715520
61     OE_ORDER_HEADERS_ALL               684982272
62     MLOG$_AR_PAYMENT_SCHEDULES          632684544
63     XXCS_DATA_POOL                    625213440
64     RA_CUSTOMER_TRX_LINES_ALL_P_1          609091584
65     XXCS_RA_CUSTOMER_TRX_U1               594280448
66     WSH_DELIVERY_DETAILS_PZ_1          574095360
67     XXCS_SALES_MATRIX_D_PZ_4          554303488
68     RA_SALES_ORDER_LINE_N13               551157760
69     XXCS_RCTL_LINECONTEXT_IDX          508559360
71     IDX$$_2DDB0007                    471728128
70     AR_CASH_RECEIPTS_ALL               471728128First of all i tried to cop with WSH_EXCEPTIONS , for that i ran the script which mentioned at metalink Note: 842728.1 - Sample API To Purge WSH_EXCEPTIONS Using WSH_EXCEPTIONS_PUB, but invane sripts given within this document ran successfully with the user WSH (owner of WSH_EXCEPTIONS) but still the size of this table presist as before , how can i purge this table to reclaim space as i am running out of space for database.
the output of that scrip as follows.
SQL> declare
  2  x_msg_count NUMBER;
  3  x_msg_data VARCHAR2(200);
  4  x_return_status VARCHAR2(200);
  5  p_exception_rec WSH_EXCEPTIONS_PUB.XC_ACTION_REC_TYPE;
  6  begin
  7  FND_GLOBAL.apps_initialize(-1, 51277, 665);
  8  p_exception_rec.status := 'CLOSED';
  9  --call WSH_EXCEPTIONS_PUB.Exception_Action,
10  WSH_EXCEPTIONS_PUB.Exception_Action (
11  -- Standard parameters
12  1, --p_api_version
13  NULL, --p_init_msg_list
14  NULL, --p_validation_level
15  FND_API.G_TRUE, --p_commit
16  x_msg_count, --OUT
17  x_msg_data, --OUT
18  x_return_status, --OUT
19  -- Program specific parameters
20  p_exception_rec, --IN OUT
21  'PURGE' --p_action
22  );
23  COMMIT;
24  --
25  DBMS_OUTPUT.PUT_LINE (FND_API.G_TRUE);
26  DBMS_OUTPUT.PUT_LINE (x_msg_count);
27  DBMS_OUTPUT.PUT_LINE (x_msg_data);
28  DBMS_OUTPUT.PUT_LINE (x_return_status);
29  DBMS_OUTPUT.PUT_LINE ('Purging Change Status');
30  end;
31  --------------------------------------------------------------------------------
32 
33 
34  /
SQL> /
T
1
1966516 records Resolved/Purged successfully.
S
Purging Change Status
PL/SQL procedure successfully completedEdited by: user13653962 on Sep 11, 2011 11:53 AM

I have found NO_ACTION_REQUIRED exception is to in abundant numbers , following are the output from UAT which is for dated 2 months back , in production it would be doubeld than this one.Anyway when i run the script to Purge WSH_EXCEPTIONS Using WSH_EXCEPTIONS_PUB [ID 842728.1] for the status NO_ACTION_REQUIRED , it does nothing.How can i purge it please help.
SQL>select count(*),status
      from wsh_exceptions
     group by status
COUNT(*)     STATUS
62575          OPEN
29753088     NO_ACTION_REQUIRED
SQL> declare
  2  x_msg_count NUMBER;
  3  x_msg_data VARCHAR2(200);
  4  x_return_status VARCHAR2(200);
  5  p_exception_rec WSH_EXCEPTIONS_PUB.XC_ACTION_REC_TYPE;
  6  begin
  7  FND_GLOBAL.apps_initialize(-1, 51277, 665);
  8  p_exception_rec.status := 'NO_ACTION_REQUIRED';
  9  --call WSH_EXCEPTIONS_PUB.Exception_Action,
10  WSH_EXCEPTIONS_PUB.Exception_Action (
11  -- Standard parameters
12  1, --p_api_version
13  NULL, --p_init_msg_list
14  NULL, --p_validation_level
15  FND_API.G_TRUE, --p_commit
16  x_msg_count, --OUT
17  x_msg_data, --OUT
18  x_return_status, --OUT
19  -- Program specific parameters
20  p_exception_rec, --IN OUT
21  'PURGE' --p_action
22  );
23  COMMIT;
24  --
25  DBMS_OUTPUT.PUT_LINE (FND_API.G_TRUE);
26  DBMS_OUTPUT.PUT_LINE (x_msg_count);
27  DBMS_OUTPUT.PUT_LINE (x_msg_data);
28  DBMS_OUTPUT.PUT_LINE (x_return_status);
29  DBMS_OUTPUT.PUT_LINE ('Purging Change Status');
30  end;
31  --------------------------------------------------------------------------------
32 
33 
34  /
T
3
E
Purging Change Status
PL/SQL procedure successfully completed

Similar Messages

  • Word 2010 with Embedded Excel table becomes oversized for RDP users

    I originally asked this question on the SharePoint Online forums as this was the first time we've seen this issue. Original Post
    Summarized: we have a Word template with embedded Excel table created in SharePoint Online, and when a RDP user opens it, the document correctly opens in the local version of Word 2010 (not Word Online).   When the table is edited, it becomes
    larger to the point you can no longer view the entire table. 
    We have done some testing with Word 2010 outside of RDP and everything works correctly, the embedded Excel table doesn't become oversized and works as expected.  It seems to definitely be an issue with RDP and I've been looking for any assistance
    on resolving this issue.  I recently did some further testing and found that the only time the table becomes oversized and not view-able is when you copy and paste information from an existing 2003 Excel document.  I would think this is the issue,
    but it doesn't happen when working with Word and SharePoint outside of an RDP environment. 
    The template is a .docx file. All RDP users are in a 2008 R2 environment.

    I did some testing over the weekend and the simple answer to your question - Not always.
    I found 2 variables which seem to cause this to happen:
    1) We have 2 TS servers - one with IE 9, which remains to maintain support for a legacy app which will not work with IE 10 or 11, and one with IE 10.
    2) Screen resolution of the client computer - it seemed that systems with video configurations which could not exceed the maximum of 1280x1024 (the same screen resolution as our TS servers) didn't experience the issue.  There were some laptops
    and higher end systems with widescreen monitors, where this was an issue.  They typically didn't have a 1280x1024 option; yet even if they did they would experience the same issue, just not as pronounced.
    It also seems to only occur when a user copies and pastes information from Excel 2010 into the embedded Excel table in Word 2010.  Again, only within RDP.  On those client computers which had the problem, I could perform the same function outside
    of RDP without any problems.  However, this is not an ideal format for the chefs as they will frequently be moving between different systems during the day.

  • Tables become obselete in ECC 6.0 while creating FM's

    hi all,
    i am trying to create Function Module in ECC6.0 but it is not taking any parameter in Tables TAB saying that Tables become obselete.
    What to do?
    How to create FM with Tables as i want to use those table types in my Code.
    I dont want to create FM Remote Enabled.
    Its Urgent.
    Regards,
    Sachin.

    HI,
    You just need to pass them another way. For example, you need to pass them thru the importing/exporting paramters. You need to create a table type in the abap dictionary, then you reference this table type as your TYPE when defining the exporting or importing parameter of the function module. So first you create the structure in the dictionary(SE11) select radiobutton for data type, then choose structure, define the fields, and save and activate, then you create the table type the same way, just choose Table Type at the appropriate point, and then define the structure that you just created as the line type.
    Regards,
    Omkar.

  • Global temporary Table-Table becomes empty

    Hi,
    I have used global temp table on commit preserve rows.
    During initialization of the screen i'm creating temp tables and all the manipulation done on
    screen has been stored on temp table ,
    at the end of all the insert and delete operation i'm retrieving it from temp table and displaying
    it in the screen,at some point of time the temp table value is lost.So nothing is been displayed in
    screen.
    I tried to find out the problem according to me the session got expires coz of that the value in
    the temp table becomes empty and last value inserted is stored.
    can anyone help me out to solve this problem it will be great to get a help.

    What is your application architecture?
    Are you using session-pooling. If so that would explain it: very likely the request that finds the empty temp-table, is being serviced by a different database session, than the one that originally created the contents of the temp-table.
    Temp-tables are database-session specific: db-session X cannot see the contents of some temp table in db-session Y. db-session X has it's own copy of that temp-table.
    Toon

  • Are tables becoming obsolete?

    Newbie alert!!!
    Why am I seeing errors now? About a month ago when I checked
    the test site in all the browsers everything was fine... now I've
    got all sorts of errors everywhere.
    Such as:
    The tag: "table" doesn't have an attribute: "height" in
    currently active versions.[XHTML 1.0 transitional]
    or
    The tag: "th" doesn't have an attribute: "background" in
    currently active versions.[XHTML 1.0 transitional]
    I talked to a guy today and he said he's never used a "th"
    tag.
    What am I doing wrong that Dreamweaver would create invalid
    code? And why is the code no longer working?
    Should I use tables sparingly? Should I mainly use DIV tags?
    I have not tried them yet... don't really even know what they are.
    (You know I took some time to read about them (DIV tags) but its
    really just like I'm reading Greek with a few English words thrown
    in there)
    Serious question. When you started doing websites did you
    like it instantly or did you grow to like it? I'm doing this site
    for a friend of mine. I started in Sept. I've done a good deal of
    work on it but honestly I've been procrastinating and haven't
    really looked at it in a month... so I'm a little surprised that a
    lot of what I've done is no longer valid. (For the record my friend
    doesn't care when I get the site done but I'm sure he was thinking
    maybe a month or two... not FIVE months). I don't want to set the
    world on fire and do the greatest websites ever. I just want to be
    able to do moderately simple stuff. It would be nice not to hate
    every minute of it. So did you guys dislike it at first? Are most
    of you self-taught? I've gone through all of the tutorials, took an
    online course and have spent many hours at W3Schools. I'm just not
    getting it. I've self-taught myself literally everything. I've
    never needed this much help with anything.
    I've tried to attach the code...
    NOTE:
    Obviously I don't know HTML or XHTML or CSS inside and out.
    I've gone to the W3Schools and I'm trying... I have some
    understanding of code etc. I am aware that Dreamweaver is not a
    drag and drop program. The reason I got it is to help give my
    incapable left brain some help... not really helping much. I've got
    a lot to learn. Hopefully a light will come on because its been a
    long time with little to show for it.

    > DEPRECATED, not 'depreciated'.
    And not to be confused with defecated.
    Walt
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    >> depreciated code.
    >
    > DEPRECATED, not 'depreciated'.
    >
    > The problem is simply a mismatch between the page's
    doctype and the tag
    > syntax used. The page has an XHTML doctype when it
    should have an
    > HTML4.01 Transitional one. Open the page in DW and use
    FILE | Convert >
    > HTML 4.01 Transitional. And set your PREFERENCES to use
    this latter
    > doctype on all new pages.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "Osgood" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> daycaesar wrote:
    >>> Newbie alert!!! Why am I seeing errors now?
    About a month ago when I
    >>> checked the test site in all the browsers
    everything was fine... now
    >>> I've got all sorts of errors everywhere.
    >>>
    >>> Such as:
    >>>
    >>> The tag: "table" doesn't have an attribute:
    "height" in currently
    >>> active versions.[XHTML 1.0 transitional]
    >>>
    >>> or
    >>>
    >>> The tag: "th" doesn't have an attribute:
    "background" in currently
    >>> active versions.[XHTML 1.0 transitional]
    >>>
    >>> I talked to a guy today and he said he's never
    used a "th" tag.
    >>>
    >>> What am I doing wrong that Dreamweaver would
    create invalid code? And
    >>> why is the code no longer working?
    >>
    >> Height is not valid html mark-up and neither it
    seems is setting a
    >> background.
    >>
    >>> Should I use tables sparingly? Should I mainly
    use DIV tags? I have not
    >>> tried them yet... don't really even know what
    they are. (You know I took
    >>> some time to read about them (DIV tags) but its
    really just like I'm
    >>> reading Greek with a few English words thrown in
    there)
    >>
    >> Tables haven't been a 'fashion' icon now for a few
    years. That's not to
    >> say don't use them but if you do, keep them simple.
    The main issue you
    >> have is using either non-valid html code or
    depreciated code.
    >>
    >> You should be using css. So for instance instead of
    below:
    >>
    >> <body background="blkdog_sitebckgrnd.jpg">
    >>
    >>
    >> You have
    >>
    >> <body>
    >>
    >> Then attach the background image to it using css.
    >>
    >> body {
    >> background-image: url(blkdog_sitebckgrnd.jpg);
    >> }
    >>
    >> The css (the bit above) obviously goes in a css
    stylesheet linked to the
    >> page.
    >>
    >>
    >> In terms of your th you should give that a 'class'
    name. So instead of
    >> below:
    >>
    >> <th height="401"
    background="home_bckgrnd_large.jpg" scope="col">
    >>
    >> You have:
    >>
    >>
    >> <th class="myClass" scope="col">
    >>
    >> and the css, which goes in the same attached
    stylesheet.
    >>
    >> .myClass {
    >> background-image: url(home_bckgrnd_large.jpg);
    >> height: 401px;
    >> }
    >>
    >>
    >>
    >>> Serious question. When you started doing
    websites did you like it
    >>> instantly or did you grow to like it? I'm doing
    this site for a friend
    >>> of mine. I started in Sept. I've done a good
    deal of work on it but
    >>> honestly I've been procrastinating and haven't
    really looked at it in a
    >>> month... so I'm a little surprised that a lot of
    what I've done is no
    >>> longer valid. (For the record my friend doesn't
    care when I get the site
    >>> done but I'm sure he was thinking maybe a month
    or two... not FIVE
    >>> months). I don't want to set the world on fire
    and do the greatest
    >>> websites ever. I just want to be able to do
    moderately simple stuff. It
    >>> would be nice not to hate every minute of it. So
    did you guys dislike it
    >>> at first? Are most of you self-taught? I've gone
    through all of the
    >>> tutorials, took an online course and have spent
    many hours at W3Schools.
    >>> I'm just not getting it. I've self-taught myself
    literally everything.
    >>> I've never needed this much help with anything.
    >>
    >> To do it in any serious capacity it takes a long
    long time to learn. Once
    >> you know html and css inside out, plus the browser
    quirks everything will
    >> become less of a frustration. If you don't learn
    html and css then you're
    >> going to be in for a bumpy ride.
    >>
    >

  • Some Tables becomes Bigger....

    Hello,
    in my Quality System I see in DB02 some Tables they are become bigger.. In my Produktiv System its all normal..
    WHY ?
    Regards
    baris

    Hi Baris
    check in sm37 if any loading jobs are scheduled in dev system. also check if the un wansted PSA tables are cleared in dev system or not. can u tell us which are the tables you are reffering to...
    Darshan

  • Input table becomes Read-Only

    Hi all,
    I'm trying to implement input table but the table shows as read-only.
    1. Node cardinality = 0...n
    2. Selection = 0...1
    3. Singleton = true
    All fields are input field.
    After i deploy and run the application, the read-only table shows up.
    Please advise me on this. Thanks in advance.
    Peerasit

    Hello Jomsri,
    The table is coming as read only because you havenot added any element to the nodes and by default there will be no element in the node as you are selecting a cardinality of 0...n. If you change it to 1..n then you can see one row will have input fields enabled.
    Best way to implement this is add a button in the layout, name it as add a new row and in the action of this button add the following code:-
             IPrivateTestingCompView.I<nodename>Element a = wdContext.node<nodename>().create<nodename>Element();
             wdContext.node<nodename>().addElement(a);
    this will add a new row to the table each time you press the push button.
    Hope this will solve the problem
    Regards,
    Sarbjeet

  • Bringing a list of values from a table in another sheet

    Hey everybody - Numbers / Spreasheet novice here working slowly through my project.
    So in the first image I've got 2 cells with drop-down menus for "Day of week" and "Hour of day"  - Using the both of them causes 1 of the cells in the table below it to print "True"
    My goal is to link the "True" statement with a whole bunch of different tables on other sheets.
    For example:  IF Monday / 8am is "True"  > Print the list from Sheet-2::8am
    If I want to use the same blank table for "Monday / 9am" and "Monday / 10am" am I going to have to nest 119 separate equations in the same cell?
    Is there an easier way to do this?
    Thanks!!

    "All the data is located on tables on separate sheets..."
    From your most recent description, it appears that table shown, named 8am, is the only source for the data to fill the table Day/Hour List when the two pop-up menus in the small table are set to Mon and 8am respectively, and that all of the data on 8am is to br copied to Day/Hour List.
    Extending that, I would assume that there is a similar source table for each combination of DAY and HOUR, and that setting the two pop-up menu cells determines which of these 105 tables becomes the source table for Day/Hour List.
    Since the source table ("8am") does not contain an indication of which day it is for, I'd further assume that this information is included in the Sheet name of the Sheet on which 8am is placed, and that the Sheet names are identical except for the (short) day name.
    "My dilemma - how do I write a function for the blank table that would copy the contents of the 27 row long "8am" table into the blank table
    How do I make that same function work to do the same thing if say "Tuesday 8am" was "True" instead?"
    Why bother? You can see from the small table with the day and hour pop-ups wich day and hour are selected. and it's easier to write the formula retrieving the data using those two values than to use values determined by which cell contains TRUE on a 7x15 table.
    Regarding "Mon 8am" and "Tuesday 8am": You will need to decide whether you are using full day names or short day names, then be fully consistent in that use in all instances—Sheet names, pop-up cell menu items, column headers, or any where else they might be needed in formulas.
    Does 8am contain "blank" as indicated, or is this an added note to indicate that these are actually empty cells? Do you want Day/Time List to show the text "blank", or to appear 'empty'?
    Note that only cells where data is entered directly are likely to be truly 'blank'; there's no way directly available to the user to create a truly empty cell using a formula or a pop-up menu. The closest approximation is a null string, which appears 'empty', but actually contains a zero length string (and a formula).
    Here's a possible solution, based on the assumptions above. The first example shows the result with Mon  8am selected. To the right, past the image of part of the sidebar, are images of the tables 8am and 9am from the selected sheet, Mon.
    The second example shows the same two tables (on the left), with the settings changed to Tue  9am.
    An image of two of the source charts from the Tue sheet are shown to the right of the Sheets list. Note that the Header Row in these is empty. The Header row cell in Day/Time List is filled using the data in the two pop-up menu cells.
    Formulas:
    Small table (Day Time): none. Header cells are directly entered data. Row 1 cells are pop-up menus.
    Day/Time List:
    A1: =Day Time :: A2&"  "&Day Time :: B
    A2, and filled down:
    =IF(LEN(OFFSET(INDIRECT(Day Time::$A$2&"::"&Day Time::$B$2&"::$A$1"),ROW()-1,0))<1,"",OFFSET(INDIRECT(Day Time::$A$2&"::"&Day Time::$B$2&"::$A$1"),ROW()-1,0))
    The core of this formula is this repeated part: OFFSET(INDIRECT(Day Time::$A$2&"::"&Day Time::$B$2&"::$A$1"),ROW()-1,0)
    INDIRECT is used to build an absolute reference to a cell (A1) on the table named in Day Time::B2 on a sheet named in Day Time ::A2.
    OFFSET uses the referenced cell as its base, and returns the value from the cell ROW()-1 rows below it and 0 columns to the right.
    OFFSET is enclosed in an IF statement: IF(LEN(result of formula)<1,"",result of formula)
    In the first instance of OFFSET, the result is passed to LEN(), which measures its length in characters. IF that LEN is less than 1, IF returns a null string to 'my cell'. Otherwise, IF calls OFFSET once again, and the result is returned to 'my cell.'
    Expanding the result to a 27 row table requires only adding rows to the Day/Time List table, and filling the formula into those rows.
    Regards,
    Barry

  • Assigning value to Field - Symbol ( which is type of internal table field )

    Hi All,
      I am facing problem to assign the value to a field symbol. My requirement is creating a dynamic internal table and populate values into that internal table, so that i can display the values .
      I am having a structure with fields like status , Plant1 name , Plant2 name.....Plant n .
      So i declared an internal table it_tab with this structure.
      I am having one more table which having number of records for Plant1 ,Plant 2 ,....Plant n based on some condition.
      I need to count the number of records for Plant1 and i need to put in the internal table it_tab.
      For this i created field-symbol .
    Here, t_deployment table will have the plants 1,2,3...and
         t_devobject will have some records for these plants.
    LOOP AT T_DEPLOYMENT. 
    clear w_count.
    LOOP AT T_DEVOBJECT WHERE ZDEPLOYMENT = T_DEPLOYMENT-DOMVALUE_L AND
                              ZADSTATUS = '10'.
    w_count = w_count + 1.
    ENDLOOP.
    concatenate 'it_tab-' t_deployment-domvalue_l into var_bet_name.
    assign var_bet_name to <bet_var_name>.
    now my internal table field i.e. it_tab-plant1 came into <bet_var_name> . But i want to assign a value for it.
    at last what i need is it_tab-plant1 = w_count.
    whaterver the w_count has value that needs to assign to it_tab-plant1. But i don't want to assign directly it it_tab-plant1. I want to assign dynamically. Because tommorrow some more plants added to t_deployments , i don't want to make changes to my program. It should take care....w/o changing the program.
    I tried the following statement.
    (<bet_var_name>) = w_count. But its not working.
    Please let me know how i can get this.
    Thanks in Advance.
    Pavan.

    Hi pavan,
    As ur requirement is creating a dynamic internal table,
    try the following way,
    remember the fieldcat should be of type LVC not SLIS.
    BUILD LT_LVCFIELDCAT in a way that, the value from the internal table becomes the fieldname
    ex:-
    loop at it_models INTO WA_MODELS.
        LS_LVCFIELDCAT-FIELDNAME = WA_models-MODEL.
        LS_LVCFIELDCAT-SELTEXT = WA_models-MODEL.
    append ls_lvcfieldcat to lt_lvcfieldcat.
    endloop.
    DATA: DREF TYPE REF TO DATA,WA_REF TYPE REF TO DATA.
    FIELD-SYMBOLS: <TEMP_TAB> TYPE TABLE, <TEMP_WA> TYPE ANY.
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = LT_LVCFIELDCAT
        IMPORTING
          EP_TABLE        = DREF.
      ASSIGN dref->*  TO <TEMP_TAB>.
    now basing on the fieldcatalog <temp_tab> is build.
    NOW FILL <TEMP_TAB>.
    WHILE FILLING, ASSIGN COMPONENT IDX/NAME.....
    this statement will be very usefull.
    i hope this will be help full.
    pls reward the points if it helps u.
    regards
    Hyma

  • How to deal with the growing table?

    Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
    I am developing an application system now. Should I add a lot of delete commands in the code for each table?

    junez wrote:
    Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
    I am developing an application system now. Should I add a lot of delete commands in the code for each table?Uh, well, yes if you continually add rows to a table the table will grow ... sooner or later you will want to delete rows that are no longer needed. What did you expect? You have to decide what the business rules are to determine when a row can be deleted, and make sure your design allows for such rows to be identified. This is called ..... analysis and design.

  • Dimension and fact table with a fact table between them

    Hello all,
    Here is my problem. As seen in the image, I have a fact table linked to the two dimensions.
    I would have the number of Id from Cube_Requirements by variant including 'unknown" variant if no linked variant.
    How is it possible ? How to create the dimension ? As my fact table has two fields, if i want to use reference as dimension usage, it doesn't work.
    Thanks for your help.

    Hi, this looks a many to many relationship scenario, follow these steps:
    - drag extractid from cube_applicability onto measures area, so this table becomes a fact
    - you will have count of Extractid measure after you perform above step
    - Assuming Variant is already a dimension, go into dimension usage tab, link variant dimension with cube_requirement fact using many to many relationship and selecting cube_applicability
    process cube, you should be able to get count of id by dragging and dropiping id from variant dimension..
    Regards
    Rakesh

  • About global temporary table

    forms_ddl('truncate table SUB_BF reuse storage');
    insert /*+ APPEND */ into SUB_BF select * from SUB_TEMP_BF;
    Hi all,
    sub_bf is a regular table and sub_temp_bf is gtt(global temporary). and a report is populate base on sub_bf table. but when i use delete statement instead of truncate statemen
    then the reports come but when i use truncate reports doesn't shows any values.
    i can't use delete statement because it slow and my user concurrently generate the report so sub_bf tables become lock. and reports become hangs.
    BR//
    Sanjay

    sub_bf is a regular table and sub_temp_bf is gtt(global temporary). and a report is populate base on sub_bf table. but when i use delete statement instead of truncate statemen
    then the reports come but when i use truncate reports doesn't shows any values.Truncate is a DDL and results in auto commit of all pending transactions of that session, while delete will require explicit COMMIT or ROLLBACK.
    Please check CREATE TABLE Specificatin for GTT SUB_TEMP_BF, if it has an on COMIIT DELETE ROWS clause, then probably because of truncate, all rows in table SUB_TEMP_BF are getting delete before inserting in table sub_bf.
    Vivek L

  • Word wrap in simple table

    Hello ,
    Can some one suggest , how to word wrap long strings as field value in a simple Table .In my project there is a situation where i have to dispaly long description data in a table , but because of description usually being very long the width of the table becomes very long .Urgently waiting for your response..Thanks
    Vivek Kumar

    I am using SUN IDM 7.1 and this is the sample code i am using . I even tried to add noWrap to feilds definig rows but unfortunatly it does'nt seem to work for me.And thanks again for ur response...
    <Field name='_Lists'>
    <Display class='SimpleTable'>
    <Property name='columns'>
    <List>
    <String>Mkt Part Desc</String>
    <String>End Of Service Date</String>
    </List>
    </Property>
    <Property name='noWrap'>
    <Boolean>false</Boolean>
    </Property>
    </Display>
    <FieldLoop for='partsIndex' in="Index">
    <Field name='L_MKT_PT_DESC'>
    <Display class='Label'>
    <Property name='text'>
    <rule name='Get Desc'>
    </rule>
    </Property>
    </Display>
    </Field>
    <Field name='L_ENDOFSERVICE_DT_NEW'>
    <Display class='Label'>
    <Property name='text'>
    <rule name='Get End_service_date'>
    </rule>
    </Property>
    </Display>
    </Field>
    </FieldLoop>
    </Field>

  • Increasing the width of Pivot table Columns

    Hi Gurus,
    Small pivot table --> ( ie having less no of columns which generally can be seen in a single page without scrolling to the right)
    If i have a small pivot table , then in the column properties through additional formatting options i can increase the width of an individual column.
    However if the pivot table is Big,I am not able to increase the width of the individual column .
    I tried setting width in the additional formatting options in the Content Properties( just above Rows and below Section there is a small grey box containing finger).
    Now the Content Properties indeed increases the width of the column, but it also increase the width of the whole Pivot Table.
    See...If i have a fixed number of columns in a PIVOT Table that do not change with prompt, then this solution work fine...
    but the problem comes when the no of columns in pivot Table reduces based on the prompt selected.
    In this case the less no of columns tries to occupy the whole width set in the content properties.
    In short, with Content Properties the width of the PIVOT Table becomes fixed, irrespective of the no of columns coming.
    Also after setting content properties, I am not able to print the report to PDF.
    So the Question is... Can we increase the width of a Big Pivot Table whose no of columns keeps on changing based on the prompt....
    Big pivot table -->
    (ie table having no of columns which exceeds a single window frame and have to scroll to right to see the rest of the columns)
    I hope i have not made things messy...
    Thanks
    Ashish

    Ashish,
    Yes, you can set a fixed size for these. I'm sure you are fixing these because of PDF issue which might be irregular in sizes. Just play arnd with Custom CSS options.

  • SSIS - Exporting Data into flat files from Oracle Table as batchwise process

    Hi All,
    Thanks in advance.
    I have a Large Table in Oracle Database with some 3 Lakhs record. I need to fetch the 10,000 records for every iteration and export it into the flat file. This process should occur recursively until the table becomes empty.
    Hence, For every iteration on flat file to be generated with 10,000 records.
    Please help how to proceed further in SSIS.
    Thanks
    Pyarajan.S

    Yes, it always helps if your question doesn't specify the actual requirements...
    Use the FOR loop container to control the iterations of the data flow. For each run you read 10,000 rows from the table and dump them in a flat file. Either move the flat file, or use an expression on the flat file connection manager to give them dynamic
    file names.
    30 million rows is also not a problem by the way, it just takes a bit longer.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

Maybe you are looking for