Hi please help me with below Question

HI,
can any one tell the answer of below Question.
1)how to check which object in database need to be reorg.
2)how to calculate approx.sapce required to create perticular index.
3)what is diffrence in stats gather and analysed
4)what is exact reason expdp is faster than export.
5)does creating more index in table degrade the performance? why?
6)what database helth releted activity need to perform in database for weekly or monthly basis like (reclaim the object space and many others)
thanks.

user12009184 wrote:
HI,
can any one tell the answer of below Question.
1)how to check which object in database need to be reorg.If you see a performance problem, then you evaluate it to see what the real problem is. There are some things that can necessitate a reorg - bugs, massive deletes, certain application designs, old problems - bug in general, it is not necessary.
2)how to calculate approx.sapce required to create perticular index.Look in the [url http://bit.ly/wlJgYD]freaking docs.
3)what is diffrence in stats gather and analysedThe old analyze command has been decremented. Use the supplied procedure to gather stats. This is already running automatically in modern versions, although not always with the best options.
4)what is exact reason expdp is faster than export.It depends. In fact, there have been bugs where the metadata part of the expdp is way slow. There are also options (such as direct) in the old exp that could make it as fast or faster.
5)does creating more index in table degrade the performance? why?It might. It might not. In some cases, the mere existence of an index can help the optimizer, even if it isn't used. In some cases, the overhead of maintaining too many indices can hurt.
6)what database helth releted activity need to perform in database for weekly or monthly basis like (reclaim the object space and many others)There aren't many, but MOS has some interesting articles on health checking databases.
>
>
thanks.Is this schoolwork?

Similar Messages

  • Please help me with this questions "if I purchased items through mac or windows is it possible to re-download those purchases on Apple TV though iCloud"

    Please help me with this questions "if I purchased items through mac or windows is it possible to re-download those purchases on Apple TV though iCloud"

    It depends on what country you're in and whether or not they're still available in the iTunes Store. Some purchased movies and all rentals won't be available.
    (108225)

  • Please help  me with some questions with batch input session?

    hello everyone.
      I come to some questions  like
    1 What is a batch input session ,
    2  What is the alternative to batch input session?
    3  An ABAP program creates a batch input session.   We need to submit the program and the batch session in back ground. How to do it? 
       would you please help me with the questions, couldn't thank you more.
       Best regards
                                                                          Frank

    Hi
    Batch Input Session:
    BATCH INPUT SESSION is an intermediate step between internal table
    and database table. Data along with the action is stored in session
    ie data for screen fields, to which screen it is passed, program
    name behind it, and how next screen is processed.
    Three processing modes of executing Batch Input Session :-
    Run Visibly : You can correct faulty transactions online & work step-by-step through  the transactions not yet executed.
    Display Errors only : You can correct faulty transactions online.   Transactions not yet executed, but without error, run in the background.
    Run in Background .
    2) What is the alternative to batch input session?
    Call transaction.
    3) An ABAP program creates a batch input session. We need to submit the program and the batch session in back ground. How to do it?
    go to SM36 and create background job by giving
         job name,job class and job steps (JOB SCHEDULING)

  • My ipod touch is disabled. Please help me with my questions. It is my first apple device.

    My ipod is disabled. When i turn it on it says to connect to itunes. I can get to where the screen displays a cord and an itunes logo, but itunes does not pop up, nor display my devices. This is probably because I have not synced my ipod with this computer, nor with any computer. How do I sync my ipod with itunes when it is disabled? How do I get itunes to pop up when my ipod is connected to the computer? Please dont give me a link, i really would like a step by step guide. I have itunes downloaded on this computer, but it does not pop up or display my devices. Do I need to create an itunes account? I have so many questions because this is my first apple device. If you were wondering, my ipod touch is disabled because I forgot my passcode. PLEASE help, I dont care if I have to reset my ipod, I just want to be able to use it!

    Use Device Firmware Mode...
    1.     Turn off your ipod To do this, hold the home and sleep buttons for 10 seconds, ignore slide to power off message.
    2.     Release the power button when you see the apple logo (keep holding the home button)
    3.     Keep holding until you see a message.
    Now restore from a backup!
    Alternatively you can wait!

  • Please help me with this question..

    Hi everyone,
    Sorry for asking the same question which was posted many times in this forum.
    I have the following scenario..
    Database name: database1
    schema names: schema1
                  schema2
                  schema3
                  schema4
                  schema5
                  schema6
                  schema7
    workspace is with: schema1
                       schema2
    1. can i create 1 application that need to access tables in both schema1 and schema2 ?
    comments: I think we have to choose "parsing schema" when i am creating an application.
              if i choose the parsing schema as "schema1".
    2.how can i create a "form on a table" or some other wizard based forms which is in schema2?
    3.what priviliges do i need to create "form on a table" or some other wizard based forms which is in schema2?
    4.As my workspace is with schema1 and schema2. How can i create "forms" on tables which are in
    schema3? do i need to "create a view of table in schema3"  in schema1?
    All the above question will raise if i have to create forms or reports with "wizards". Is this stmt correct?
    I mean if i create a form "manually" all i need to look whether i have insert,update and delete priv on
    that object? is it correct?i think this question was answered several times.sorry for the repost.
    Thanks

    It is not necessary to say "please help me" since help comes almost always. Maybe sometimes you need to bump your question after a while. However, back to your question. I can tell you how I solve that problem:
    granting select, insert, update, delete on all tables to the parsing schema
    granting select on all views to the parsing schema
    granting execute on all procedures and packages to the parsing schema
    creating synonyms in the parsing schema for all tables, views, sequences, etc.
    You can do all of this programatically in a loop instead of writing it for each object separatelly.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Please help me with this question ftp

    please help me to continue i don't know how to finished
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.URL;
    public class myftp2 {
    static String host = null;
    static String path = "/";
    public static void main(String[] args) {
    if(args.length != 1) {
    usage();
    System.exit(1);
    host = "ftp://"+args[0];
    if( ! isOpen() )
    System.out.println("Cannot connect to "+host+path);
    System.exit(1);
    System.out.println("Connected to "+host+path);
    BufferedReader kb = new BufferedReader( new InputStreamReader(System.in));
    boolean finished = false;
    while( ! finished ) {
    String input;
    String[] cmdArgs;
    System.out.print("myftp> ");
    try {
    input = kb.readLine();
    cmdArgs = input.split("
    s");
    if(cmdArgs[0].equals("exit") ) {
    finished = true;
    else if( cmdArgs[0].equals("dir")) {
    dirCommand();
    else if (cmdArgs[0].equals("get"))
    else if( cmdArgs[0].equals("pwd")) {
    System.out.println(host+path);
    else if( cmdArgs[0].equals("cd")) {
    if(cmdArgs.length!= 2) {
    System.out.println("You must include the directory name");
    else
    cdCommand(cmdArgs[1]);
    else if (cmdArgs[0].equals("cd.."))
    //cdCommand(cmdArgs[1]);
    catch(IOException e){
    System.out.println("Goodbye");
    static void usage() {
    System.out.println("Usage: java myftp <hostname>");
    System.out.println("please write your username:password@<hostname>");
    static boolean isOpen() {
    try {
    URL url = new URL(host+path);
    InputStream in = url.openStream();
    in.close();
    catch(IOException e) {
    System.out.println(e.getMessage());
    return false;
    return true;
    static void dirCommand() {
    String line;
    try {
    URL url = new URL(host+path);
    InputStream in = url.openStream();
    InputStreamReader inStr = new InputStreamReader(in);
    BufferedReader inNet = new BufferedReader(inStr);
    while((line = inNet.readLine()) != null)
    System.out.println(line);
    catch(IOException e) {
    System.out.println("Error: cant list the directory");
    static void cdCommand(String directory) {
    static void cdCommandback(String dir)
    }

    Please stop crossposting this question.
    http://forum.java.sun.com/thread.jspa?threadID=5253698&messageID=10050532#10050532

  • Please Help me with Airport Question.......

    I am wondering what is the difference between Airport Extreme Base Station ($179) and Airport Express Base Station ($99)?
    I currently have a Linksys Cable Modem and a Linksys Wireless Router (WRT54GS) and am having lots of issues with it, so I am thinking about getting an Airport Wireless router instead of Linksys.
    My question is will the Airport Base Station work for Windows PC's wireless also in addition to my Macbook Pro and iPhone?
    And difference between Airport Extreme and Express Base stations.
    They both look like wireless routers but with a $80 difference.
    I have never used an Airport router so I'm a newbie when it comes to those.
    Thanks in advance!!!!
    Patrick

    Yes, either will work with both Macs and Windows machines.
    The differences are shown here: http://www.apple.com/wifi/
    The Extreme allows you to connect wired Ethernet as well, and you can connect an external HDD for network storage. The Express allows you to connect speakers and stream music from your computer.
    Probably the biggest difference is that the Extreme is true dual-band, meaning 802.11n devices run at 802.11 speeds even if there are 802.11g devices on the network. With the Express, if there are g devices on the network, everything runs at g speed. Note that this really only matters for local file transfers - if you're just using the router to connect to the internet, g speed is plenty fast enough.

  • PLEASE HELP ME WITH MY QUESTIONS!?!

    Hi
    I just purchased my first Blackberry two days ago.  I bought the Pearl 8220 Flip.  The manual that came with it doesn't tell me much.  Maybe all of you will be able to help me!
    1. How do I assign a ring tone for SMS and MMS messages?
    2. How do I assign a certain ring tone for phone numbers not saved in my Contacts?
    3. How do I assign a ring tone for the Alarm Clock?
    That's about it FOR NOW hopefully
    Any advice would be much appreciated!
    Thanks!

    Getting familiar with mine, too and think this might work:
    1. How do I assign a ring tone for SMS and MMS messages?
    Profiles>Advanced>Menu(Blackberry icon on handset)>Edit >(Blackberry icon on handset)Pearl button then you can assign a Ring Tone for various features.
     2. How do I assign a certain ring tone for phone numbers not saved in my Contacts?
    Don't know but if you did save to Contacts that might be easiest? 
    3. How do I assign a ring tone for the Alarm Clock?
    Clock> Blackberry icon>Options 
    Let me know if that works! 

  • Please help me with one question . I have a problem with the left earphone. The sound comes from the speaker on the other side and lower. What is it? I will be grateful for the answer!

    Выберите свой ​​поддержка Сообщества Apple, Имя пользователя .
    Ваше имя пользователя является ваш публичная идентичность в поддержку общин Apple. Она не может быть изменена после создания учетной записи .
    Пожалуйста, помогите мне с одним вопросом. У меня есть проблема с левой наушников. Звук поступает из динамика на другой стороне и ниже. Что это такое? Буду благодарен за ответ!

    Not clear what you are asking
    However be aware the iPhone only has ONE external speaker at base of iphone the other grill is a microphone
    The speaker is on right below screen

  • Very frusturated... Will someone please help me with my question

    will someone let me know if the adobe flash player 10 is avaiable for the android g1 mobile phone.  if so will someone tell me how to download it please.  if not does anyone know when its going to be available.  thank you

    Hello, the next generation players are not available yet. There are two ways that the Flash player is made available for devices. 1) Vendor installed 2) Download (typically for developers).The following site will have the announcement when it happens:
    http://www.adobe.com/mobile/
    Nick

  • Please help me with the following two questions, very urgent

    Hi All,
    Please help me with some scenerios about what are the common problems when modifying a standard script such a standard Invoice script and how can we overcome them.
    What are the common problems encountered when working with SAP SMARTFORMS and how to overcome them?
    Please help me with these questions, its very urgent.
    Thanks in advance.
    MD.

    hi
    hope it will help you.
    reward if ehlp.
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)

  • Please help me with the proper query for the below problem

    Hi,
    I have a table RATE which have two columns RT_DATE (date) and RATES(number).
    This table have following data.
    RT_DATE
    RATES
    1-JAN-2007
    7
    2-MAR-2008
    7.25
    5-JAN-2009
    8
    8-NOV-2009
    8.5
    9-JUN-2010
    9
    I wanted to get the rate of interest on 8-DEC-2009.
    Output will be 8.5 as this given date is in between 8-NOV-2009 and 9-JUN-2010. Could you please help me with proper query?
    Regards,
    Aparna S

    Hi,
    That sounds like a job for the LAST function:
    SELECT  MIN (rates) KEEP (DENSE_RANK LAST ORDER BY rt_date) AS eff_rate
    FROM    rate
    WHERE   rt_date < 1 + DATE '2009-12-08'
    MIN above means that, in case of a tie (that is, 2 or more rows with the exact same latest rt_date) the lowest rates from that latest rt_date will be returned.  In rt_date is unique, then it doesn't matter if you use MIN or MAX, but syntax demands that you use some aggregate function there.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for your sample data, and also post the results you want from that data.
    Point out where the statement above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002

  • Query Issue in Creating a View....Please help me with this query..

    I would like to create a view on this table with four columns
    1. PN#_EXP_DATE
    2. PN#
    3. PN#_EFF_DATE
    4. PN#
    P_S_C     A_C     P     EXP_DT
    21698     13921     1     5/29/2009 3:15:41 PM     
    21698     13921     1     5/29/2009 3:54:57 PM     
    21698     1716656     4     5/29/2009 3:15:41 PM     
    21698     3217     3     5/29/2009 3:15:40 PM     
    21698     3217     3     5/29/2009 3:54:57 PM     
    21698     60559     2     5/29/2009 3:15:41 PM     
    21698     60559     2     5/29/2009 3:54:57 PM     
    I have a trigger on A, which inserts the DML records into B. (Table A and B structure is the almost the same,
                                       where table B will have one extra column exp_dt)
    NOw Table B can have records with same P_S_C and A_C columns and exp_dt will capture the history.
    for example: from the above sample data, let us take first two records..
    P_S_C     A_C     P     EXP_DT
    21698     13921     1     5/29/2009 3:15:41 PM     --- Record 1
    21698     13921     1     5/29/2009 3:54:57 PM     --- Record 2
    from this..
    Note: 1. Table A and Table C can be joined using A.P_S_C and C.R_C to get the start_date.
    2. PN# comes from table D. It contains numbers for the resp. weeks.
    3. PN#_EFF_DATE is the previous immediate previous date for that record in history table (Table B).
    I wanted the data like..
    ---- this is for the second record in the above..
    PN#_EXP_DATE PN# PN#_EFF_DATE PN#
    5/29/2009 3:54:57 PM     214 5/29/2009 3:15:41 PM     214
    ---- this is for the first record in the above..
    PN#_EXP_DATE PN# PN#_EFF_DATE PN#
    5/29/2009 3:54:41 PM     214 ( for this we should query the table C to get the
                        start_date, for this combinatation of P_S_C and A_C in table B
                             where B.P_S_C = C.A_C
                             and that value should be the EFF_DT for this record)
    Please help me with this....
    Thanks in advance..

    Hi All,
    select d.P# as "PN#_EXP_DATE", exp_date
    from daily_prd d, cbs1_assoc_hist b
    where to_char(d.day_date,'MM/DD/YYYY') = to_char(b.exp_date,'MM/DD/YYYY')
    and d.period_type = 'TIMEREPORT';
    This above query gives the output as follows:
    pn#_exp_date exp_date
    214     5/29/2009 3:15:40 PM
    214     5/29/2009 3:15:41 PM
    214          5/29/2009 3:15:41 PM
    214          5/29/2009 3:15:41 PM
    214          5/29/2009 3:54:57 PM
    214          5/29/2009 3:54:57 PM
    214          5/29/2009 3:54:57 PM
    This below is the data from history table (Table B).
    P_S_C     A_C PLACE EXP_DATE
    21698          3217          3     5/29/2009 3:15:40 PM     
    21698          13921          1     5/29/2009 3:15:41 PM     
    21698          1716656          4     5/29/2009 3:15:41 PM     
    21698          60559          2     5/29/2009 3:15:41 PM     
    21698          13921          1     5/29/2009 3:54:57 PM     
    21698          3217          3     5/29/2009 3:54:57 PM     
    21698          60559          2     5/29/2009 3:54:57 PM     
    I got the pn#_exp_date from the Table 'D', for the given exp_date from Table B.
    My question is again....
    CASE - 1
    from the given records above, I need to look for exp_date for the given same P_S_C and A_C.
    in this case we can take the example...
    P_S_C     A_C PLACE EXP_DATE
    21698          3217          3     5/29/2009 3:15:40 PM
    21698          3217          3     5/29/2009 3:54:57 PM
    In this case, the
    pn#_exp_date exp_date     pn#_eff_date eff_date
    214     5/29/2009 3:15:57 PM     < PN# corresponding to the     5/29/2009 3:15:40 PM
                        eff_date .>
                        <Basically the eff_date is
                        nothing but the exp_date only.
                        we should take the immediate before one.
    In this case, our eff_date is '5/29/2009 3:15:40 PM'.
    but how to get this.
    CASE - 2
    from the above sample data, consider this
    P_S_C     A_C PLACE EXP_DATE
    21698     1716656     4     5/29/2009 3:15:41 PM
    In this case, there is only one record for the P_S_C and A_C combination.
    The expected result :
    pn#_exp_date exp_date               pn#_eff_date eff_date
    214     5/29/2009 3:15:41 PM     < PN# corresponding to the     5/29/2009 3:15:40 PM
                        eff_date .>
                   <Basically the eff_date is
                   nothing but the exp_date only.
                        we should take the immediate before one.
    In this case to get the eff_date, we should query the Table 'C', to get the eff_date, which is START_DT column in this table.
    for this join B.P_S_C and C.R_C.
    Hope I am clear now..
    Thanks in advance.....

  • Please help me with the logic

    Hi All,
    I have a number on the selection-screen.I need to prepare a structure with fields equal to the number provided on the selection screen.please help me with it.
    Thanks in advance,
    kushagra sharma

    Hi Kushagra,
    Below is one way of doing it.
    First create a dynamic internal table, taking number of fields from selection screen using cl_alv_table_create=>create_dynamic_table.
    Then create a dynamic structure for that dynamic internal table.
    Ex:
    DATA:fcat_wa TYPE lvc_s_fcat,
         fcat_itab TYPE lvc_t_fcat,
         poi_itab TYPE REF TO data,
         poi_itab1 TYPE REF TO data,
         cha(4) TYPE c.
    FIELD-SYMBOLS: <itab> TYPE STANDARD TABLE,
                   <wa> TYPE ANY.
    PARAMETERS: p_num TYPE i.  " Number of fields
    DO p_num TIMES.
      cha = sy-index.
      CONCATENATE 'F' cha INTO cha.
      CONDENSE cha NO-GAPS.
      fcat_wa-fieldname = cha.
      fcat_wa-datatype = 'STRG'.
      APPEND fcat_wa TO fcat_itab.
    ENDDO.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog           = fcat_itab
      IMPORTING
        ep_table                  = poi_itab
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2.
    ASSIGN poi_itab->* TO <itab>.  " Dynamic internal table
    CREATE DATA poi_itab1 LIKE LINE OF <itab>.
    ASSIGN poi_itab1->* TO <wa>.  " Dynamic structure
    Hope it helps u.
    Thanks,
    Edited by: Sap Fan on Oct 28, 2009 3:41 PM

  • Please help me with spry bar menu

    I have laid out my page with the div tags in Dreamweaver. I defined the  different sections by putting colors in them until i am ready to put stuff into them however when i insert the spry menu bar into my navigation section, the area below it is behaving like a drop down box  of color. What i mean is that the area below which is supposed to stretch from left to right as a single box is now broken up by a different color box the width of the spry bar and goes down to the next box. When i preview it in the browser the page appears normal. How can i get rid of the intruding box in dreamweaver.

    HI
    I am practicing for the webmaster design course pratical exam. The web page i will be asked to construct will consist of a home page with two or three other pages pages in the site it will have to link to.  I know how to do most of the steps individualy but i do not know in what order some of them are done. What i mean is this. ... after setting up the root folder..images..laying out the divs .. i would like to know ... at what point do i do the various things like, set up a styles folder...make a template... make the other pages of the site ..etc. I think i am able to do nearly all of these things but not sure in what order they should be done so the site will work.
    I have reached the point where i have established the site and layout, i.e. the wrapper, logo, navigation,header,bodycontent,right and left columns, clearbar, footer. i would like someone to list the sequence i should follow after this. I am praticing on a trial CS5.5 which seems to simplfy to a freat extent what we learned on the course because it is a later version. The version we used on course was  CS4  and if the pratical is in this version then i will need to know how it is done in this format.
    Date: Sun, 22 Jan 2012 17:45:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: Please help me with spry bar menu
    Re: Please help me with spry bar menu created by Nancy O. in Dreamweaver - View the full discussion
    If this only happens in DW Design View, use Live View or turn off your CSS display.
    View > Style Rendering > un-tick Display Styles.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4157994#4157994
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4157994#4157994. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Loading a text file into Terminal App

    Hi, I  am  trying  to  load  a  textfile  into  my  Terminal  App  using  the  Import  utility  under  the  Shell  drop  down  menu. But  when  I  try  choosing  the  text  files  after  clicking  Import,  I  am   unable  to  select  a  text  file  b

  • Flash 10.1.102.64 installed on Windows 7, 64 bit, but...

    I keep geeting blocked from some video chat sites with the message to upgrade.  I click on the upgrade, thinking there might be a slight change I don't have.  The Download manager tells me I have the most current Flash Player.  I'm stuck in a "dumb"

  • Headers & Footers in Forms Central

    How do you add a header and a footer using FormsCentral?  I do not have inDesign. Thanks, JLynn

  • If some one have the solution of my problem tell me plzzzzzzzzz

    hi i m Adnan from Pakistan there is a conflict in my BB 8100 if i add countery code of any of my contact when i receive a call from that specific contact my BB 8100 will not show its Name but only Number and if i delet countery code then my BB 8100 d

  • Indesign und PDFs mit chinesisch

    Hallo, liebe Mitkämpfer! (Mitkämpfer im Kampf gegen die Probleme, die uns Adobe aufhalst). Bevor sich jemand beschwert und meint "dann nimm doch was anderes, wenn's dir nicht paßt": nein, das wäre keine Lösung und außerdem suche ich mir als Angestell