Regarding the tables

hi,
  i am fetching data field from the table.
it consists of some 10 dates,i want to get the recent date among them.
can any one help with the code.
it is very urgent.
thanks in advance

Hi,
Can you be little clear with your problem,
Not sure if this is what you want but still check this out.
DATA: itab type table dats with header line.
APPEND dat1 to itab.
Append all your dates to ITAB.
SORT ITAB DESCENDING.
READ TABLE ITAB INDEX 1.
write: itab.
Regards,
Sesh

Similar Messages

  • Regarding the table control in bdc

    Hi Abap Gurus,
    my requirement is how to extend the table control in bdc? i have searched in the sdn but not found the proper code.
    i think we have to use the =P+ code .  if possible post the sample code.

    Use the search tool, or go to [How to scroll a table control?|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F] in [Batch Input FAQ |http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ] (not every transaction uses the same code)
    Regards,
    Raymond

  • Regarding the table type

    hi,
    this is the requirement
    iam selecting a field from a data base table and passing that field to an import parameter of a function module.
    the type of the import parameter is table line type.
    how to pass data to that variable which of table type.
    table type : /SAPAPO/RESID_TAB. "there is a field of type this in FM
    DATA : LOC_IT_RESOURCE type /SAPAPO/RESID_TAB .
    DATA : L_IT_RESOURCE like /sapapo/res_head-RESUID.
    now if i have to pass value from L_IT_RESOURCE  to LOC_IT_RESOURCE
    how shd i assign value?
    can anyone suggest an answer for this.
    thanks in advance

    Move individual common values from one table to another table ..
    using LOOP .. ENDLOOP.
    Some fields will be common in both table...
    LOOP AT L_IT_RESOURCE.
    move common values to wa of LOC_IT_RESOURCE
    append wa to LOC_IT_RESOURCE.
    ENDLOOP.
    reward if useful
    Regards
    Prax

  • Regarding the table cdhdr

    Hi All,
      i want to see the changes made to the salesorder in CDHDR table how can i see i.e what are the values  need to pass to the CDHDR table and in which fields in table i need to pass,
    Regards
    krishna

    Call transaction SCDO you will get a list of document objects, look for "Sales document" you get the code : VERKBELEG.
    You could also call transaction SE16 on table TCDOB "Objects for change document creation", and select the record with TABNAME = 'VBAK' or 'VBAP'.
    If you look the data in your system, yon can find how to fill the OBJECTID field. Its VBAK-VBELN in internal format (that is with leading zeroes)
    Else go back to SCDO and display "Generation Information", you get the update task function module that updates the database "VERKBELEG_WRITE_DOCUMENT". Go to SE37 and use Where-used you will get the calling programs, here only a routine CHANGE_DOCUMENT_CREATE of program include MV45AF0C_CHANGE_DOCUMENT_CREAT call the function module, double-click on the call  and you find the code
    MOVE VBAK-VBELN TO DA_OBJECTID
    Regards

  • Find User Created the table Entry

    Hi All,
    This is my scenario , I've one Custom Table ztable which is there in the quality system and entries will be made in the table and it would be transported to the production system. Now My problem is this I've received one wrong entry in the table because of that i'm getting short dump in one of my application. Is there anyway to find out who has made the entries in the table and transported it. Table doesn't have entries like created by or created date like what we have in standard tables. Considered that tranport would be within a month.Your Solution is appreciated.
    Note : This is regarding the table contents not table.

    Hi Anand,
      Do the below.
    First go to Se16 and give table E071 and in the 
    selection  screen give Object = 'TABU' and Obj_Name
    = your Ztable name. It will give you all the
    trasport requests which are used for transporting table
    contents of you Z table. Then take the latest request
    and go to table E070  and give the request and check
    the entries, it will give you who created the request
    and when it is trasported like deatils.
    Hope this will help you , just give atry. But you will definitly know who tranported the table contents, it will give you the user id.
    Thanks & Regards,
    Siri.
    Message was edited by: Srilatha T

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • Regarding page down in the table control veritcally

    Hi all,
              I have an issue regarding page down in the Table control in module pool , i.e when i m click the vertical scroll bar and going for page down then , the control is flowing to the next sceen which is not needed , and it shuld just scroll down and up vetically.
    Can anyone help me how to handle the page down event ?
    Thanks & regards,
    satya

    Table Controls: Examples with Scrolling
    The following example processes a table control with LOOP without parallel loop using an internal table. In addition to the scroll bar, the user can also carry out program-controlled scrolling with function codes.
    REPORT demo_dynpro_tabcont_loop.
    CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF demo_conn,
          fill TYPE i.
          TABLES demo_conn.
    DATA: lines TYPE i,
          limit TYPE i.
    SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
      DESCRIBE TABLE itab LINES fill.
      flights-lines = fill.
    ENDMODULE.
    MODULE fill_table_control OUTPUT.
      READ TABLE itab INTO demo_conn INDEX flights-current_line.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE read_table_control INPUT.
      lines = sy-loopc.
      MODIFY itab FROM demo_conn INDEX flights-current_line.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'NEXT_LINE'.
          flights-top_line = flights-top_line + 1.
          limit = fill - lines + 1.
          IF flights-top_line > limit.
            flights-top_line = limit.
          ENDIF.
        WHEN 'PREV_LINE'.
          flights-top_line = flights-top_line - 1.
          IF flights-top_line < 0.
            flights-top_line = 0.
          ENDIF.
        WHEN 'NEXT_PAGE'.
          flights-top_line = flights-top_line + lines.
          limit = fill - lines + 1.
          IF flights-top_line > limit.
            flights-top_line = limit.
          ENDIF.
        WHEN 'PREV_PAGE'.
          flights-top_line = flights-top_line - lines.
          IF flights-top_line < 0.
            flights-top_line = 0.
          ENDIF.
        WHEN 'LAST_PAGE'.
          flights-top_line =  fill - lines + 1.
        WHEN 'FIRST_PAGE'.
          flights-top_line = 0.
      ENDCASE.
    ENDMODULE.
    The layout of screen 100 is:
    A resizable table control called FLIGHTS is defined. The fields of the table control are transferred from the structure DEMO_CONN in the ABAP Dictionary. The first two columns are lead columns. The corresponding fields are output fields. A title bar, column headers, and a selection column are created. The component MARK of type character with length 1 from structure DEMO_CONN is assigned to the selection column. You can select one column and several lines.
    It has the following flow logic:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP WITH CONTROL flights.
        MODULE fill_table_control.
    ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      LOOP WITH CONTROL flights.
        MODULE read_table_control.
    ENDLOOP.
      MODULE user_command_0100.
    The system executes a loop at PBO and PAI using the table control FLIGHTS. During the PBO loop, a module is called to fill the table control from table ITAB of the ABAP program. During the PAI loop, a module is called to modify table ITAB.
    Before the PBO loop, in the module STATUS_0100 the current number of lines of the internal table ITAB is placed in component LINES of control structure FLIGHTS. This helps the system to correctly install the scroll bar of the table control.
    During the PBO loop, in the module FILL_TABLE_CONTROL the work area DEMO_CONN is filled with values from the internal table, where the row index corresponds to the current row of the table control.
    During the PAI loop, in the module READ_TABLE_CONTROL the current number of the loop SY-LOOPC in the table control is placed an auxiliary variable. The number is dependent on the size of the screen. The rows of the internal table, whose row index corresponds to the current row of the table control, are overwritten with the contents of the work area DEMO_CONN. User input is transferred from the input fields of the control to the internal table. In particular, the internal table also contains a flag in the column MARK to indicate whether the row of the table control is selected or not.
    After the PAI loop, user input is processed in the module USER_COMMAND. The GUI status SCREEN_100 provides the appropriate function codes. You can scroll line by line or page by page, or Goto the first or last page. You can implement scrolling by setting the component TOP_LINE of control structure FLIGHTS. For page-by-page scrolling the auxiliary variable that is filled in the PAI loop by SY-LOOPC is used as the step size.

  • Where to find the information regarding relationships between the tables?

    I am developing a Windows based app which among other things let’s users view SAP table schema and relationships.
    If I use SAP GUI and dig up a bit on say the MARA table I can see that
    Material Master (MARA) is related with
    1) MaterialDescription (MAKT) on columns MANDT and MATNR
    2) MaterialPlantData (MARC) on columns MANDT and MATNR
    and so on…
    My question is - in which table the information regarding relationships between the tables is stored? There must be a data dictionary table which would be storing the relationships data. Which is it? Note: I will programatically access the table, NOT from the UI.

    Thanks a lot...
    I am still working on it, but here are the current findings. DD05S, DD08L and DD08T: The schemas for these tables were very promising for the thing I was looking for. Unfortunately the data within dose not seem to serve my exact purpose.
    I found another one DD26S, which has almost 90% of the relationships I wish to explore. Do you know what is it supposed to contain?
    Thanks a lot for your help.
    Message was edited by: Salil Khedkar

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Regarding the SAP big tables in ECC 6.0

    Hi,
    We are having SAP ECC 6.0 running on Oracle 10.2g database. Please can anyone of you give fine details on the big tables as below. What are they? Where are they being used? Do they need to be so big? Can we clean them up?
    Table          Size
    TST03          220 GB
    COEP          125 GB
    SOFFCONT1      92 GB
    GLPCA          31 GB
    EDI40          18GB
    Thanks,
    Narendra

    Hello Narendra,
    TST03 merits special attention, certainly if it is the largest table in your database. TST03 contains the contents of spool requests and it often happens that at some time in the past there was a huge number of spool data in the system causing TST03 to inflate enormously. Even if this spool data was cleaned up later Oracle will not shrink the table automatically. It is perfectly possible that you have a 220 GB table containing virtually nothing.
    There are a lot of fancy scripts and procedures around to find out how much data is actually in the table, but personally I often use a quick-and-dirty check based on the current statistics.
    sqlplus /
    select (num_rows * avg_row_len)/(1024*1024) "MB IN USE" from dba_tables where table_name = 'TST03';
    This will produce a (rough) estimate of the amount of space actually taken up by rows in the table. If this is very far below 220 GB then the table is overinflated and you do best to reorganize it online with BRSPACE.
    As to the other tables: there are procedures for prevention, archiving and/or deletion for all of them. The best advice was given in an earlier response to your post, namely to use the SAP Database Management Guide.
    Regards,
    Mark

  • What are the tables for Partner Fuction regarding the Vendors Purchasing ?

    Hello Gurus,
    What are the tables for Partner Fuction regarding the Vendors Purchasing Organisation. I need the Partner Function Key, Parner Function Name, Number and the Name of the Number.
    Thanx in advance,
    Ramona

    Hi Jürgen,
    I know that table but it is only showing me the technical name of the Partner Function and I need also the rest: the text(name), number and the number name (text). I presume there are other tables for those infos.
    I am not sure if I understand what are these. I just want the table to upload the data to BW.

  • Regarding the count(*) while using with table alias

    Hi,
    I have question in Count(*). Will it work with table allias.
    It works when I use like below
    "select count(*) po_header_id from po_headers_all" -- its working perfectly
    but , when i queried like below its not working,
    "select count(*) poh.po_header_id from po_headers_all poh"
    I like you guys to clarify my query.
    Thanks in advance.
    Regards,
    Uvaraja

    the words you write just after a column or an expression or a function will become an ALIAS and aliases don't have any table or scheme.
    select count(*) RRRR from mytable;RRRR is an alias in this example. maybe you have a column called RRRR in the table but this is not it. so you can not put your table name as prefix to it. mytable.RRRR will indicate the column not alias. if it doesn't include a dot, it could be used as alias but dot is violating naming rules.
    you could do that:
    select count(*) "mytable.RRRR" from mytable;now, "mytable.RRRR" becomes your alias.

  • Regarding the input to tables

    Hi experts,
    i have created a DB table of my own in se11.. i dont have any data in my database table ..i want to fill the data base table for the fields, that is empid,name ,managerid,dept id etc...using screen painter..
    ie in the screen painter if i give the values in the i/o field it should fill the respective field of the db table ...can any one tell me how to do this with one example code to fill one field value ?
    or if there is any other better option than the screen painter suggest me ,...
    I will reward the maximum points for all valuable answer...please be more descriptive as i m new to ABAP and i m a BW guy.....
    regards,
    Rk

    Hello,
    First of all, go to the transaction SE80, select the Function Group in the first field, define the name in the next field and press ENTER. You will be asked to create a new Function Group. Now save it.
    Go to the Table Maintanance Generator, in the field Authorization Group fill with &NC&, in the field Function Group put the name of the function group that you've created and change the Maintanance Type to one step, and press the button Find Scr. Number(s). Select the option Propose screen number(s) and when you return to the screen, select the button Create (F6).
    Will be generate to you an program, to access it go to the transaction SM30 and fill in this the name of the table.
    Now you can fill the table.
    If you want to learn more about the Table Maintanance Generator, I suggest you to read this [HOW TO IMPLEMENT EVENTS IN TABLE MAINTENANCE|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc]
    Regards,
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:39 PM

  • Regarding the Cost of ALTER TABLE Operations

    Hi All,
    I am a starter in Oracle. I like to know what will happen in the storage level in Oracle when we alter tables like following
    1. Add a primary or a foreign key to the table
    2. Create an Index on some of the columns in the table.
    I am asking this because I found that these operations are taking long time for me for some of the big tables. So I am curious to know about the inner details of these operations. Can anyone please clarify me?
    Thanks in advance.
    Best regards,
    Vijay

    user7665191 wrote:
    Hi All,
    I am a starter in Oracle. I like to know what will happen in the storage level in Oracle when we alter tables like following
    1. Add a primary or a foreign key to the table
    2. Create an Index on some of the columns in the table.
    I am asking this because I found that these operations are taking long time for me for some of the big tables. So I am curious to know about the inner details of these operations. Can anyone please clarify me?
    Thanks in advance.
    Best regards,
    VijayI think that a good first starting point would be the Oracle Concepts guide, available from http://docs.oracle.com. Look at the 11g version. That will tell you about contraints and indexes.
    But briefly, adding a primary key requires that the table is scanned, the primary key values are sorted into order and checked for uniqueness, and the values written to disk as an index segment with each value having a rowid associated with it that points to the location of that value in the table's data segment (file id, block id and row number). So, the duration of the command is most likely driven by scanning the table, and then writing the index data to disk.
    A foreign key constraint requires that the system check that all of the values in the column exist as values in the referenced column -- no index is automatically created although you probably ought to create one.
    Creating an index is similar to the primary key workload, except that for a non-unique index it won't check for duplicates of course.

Maybe you are looking for

  • Corrupted .docx file. Word 2007. Can't open the document. Tags mismatch. Help?

    The Office Open XML file *.docx cannot be opened because there are problems with the contents. Details: The name at the end tag of the element must match the element type in the start tag. Location: Part: /word/document.xml, Line: 2, Column: 3487212

  • Exporting .cr2 files from elements as jpgs

    i know that jpgs are flattened images and that raw files are complex images  i know how the aspects of raw files are editable but jpgs are not.  but what i don't know is why when in elements, and aperture for that matter, when saving my raw (CR2 file

  • Open Dataset No Authority runtime error

    Hi friends I am getting error like this No Authorization to open the file 'HCM_PAYROLL_MDATA_IT2010.LSMW.READ'. Can anyone help me . whay i am getting . Error in the abap program /1cadmc/sap_lsmw_read_00000036' had to be terminated coz it has come cr

  • Time/Date not staying updated when unit is powered off.

    I'm trying to help a buddy out with his G5. Every time he powers off his G5 and unplugs it, the time/date settings don't stay the same. I wanted to find out if it was something simple like a CMOS battery. I don't know much about G5 stuff, but on anyt

  • Compensation Management - Job Evaluation subtypes

    We have deleted all standard subtypes (EV01, EV02, EV03) subtypes against the IT Job evaluation and added new ones as per the client requirement, but when we are creating that infotype against the object Job along with the Customized subtypes we get