Need Advice! MySQL Field Type and data display

DW8/PHP/MySQL
This is a two part question.
First off I am builing a database (mySQL) driven review site
with PHP. I am working on creating my database, however I would
like some input/advice from others. Below are some example fields
that will be in my database. Can anyone give me advice on what
field type I should use on each
Name
Address_1
Address_2
City
State
Zip
Phone
Web_Address
Email_Address
Date_Reviewed
Review_Description
Username
Password
My second question.
I made a simular test site using Dreamweaver and got it to
work ok. However the formating on my description did not look
correct. On my input page I used a large multi-line form box. When
I hit enter to divide the paragraphs it looked fine in the iput
box, but once the same data was pulled from the database the
paragraphs where all ran together in one large text block. What do
I need to do to keep my input formating?
Thanks in advance for any help
Charles

newhorizonhosting.com wrote:
> Can anyone dive me advice on what
> field type I should use on each/
>
The following ones should all be VARCHAR. Set the length of
each one so
that it easily accommodates the longest likely entry.
Name
Address 1
Address 2
City
State
Zip
Phone
Web Address
Email Address
Date Reviewed - DATE
Review/Description - TEXT
Username - VARCHAR
Password - VARCHAR (length needs to be 40 if you encrypt)
> once the same data was pulled from the database the
paragraphs where
> all ran together in one large text block. What do I need
to do to keep my input
> formating?
When displaying the text, pass the variable that contains it
to nl2br().
echo nl2br($row_recordsetName['myParagraphs']);
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Needs Advice on Record Type and Views!!!

    Hello all,
    I have a package that returns a record type based on some arguments. I have a view that wants use a column from that record type. Obviously, I cannot call the package from the view.
    I started looking into objects type, maybe use it instead of record type so that I can create a table on the object type and then use my object type table in my view. The problem is, I still have to call my package and passed the arguments to get the right data.
    Could any of you help me direct me on how to deal with this kind of issues? I have also looked into member funtion but not sure. I am aware that I can write a function by itself and use the function in my view. But I was thinking in more of lines of completeness of my code that can serve all my needs, if possible.
    A reply will be appreciated. Thank you.

    I read about Panasonic AG-DVX 100 Cam that shoot in 24f and before its print in FCP, the pull down takes it to 29f.
    And the Sony i believe shoot near enough the same as the Panasonic.
    So if that's the case would the conversion of FCP for the pull down come out alright, there is no point really in jumping to another Forum when the integration is with FCP!
    Just need to get a cam that integrates well with FCP for a budget of under $4,000.00 and in the range of 29.97f,
    Fr.BlayZay.

  • Difference b/w DATA TYPE and DATA OBJECT & differences b/w TYPE and LIKE

    hai
    can any one say the differences between Data type and Data Object.
    And also differences between TYPE and LIKE
    thanks
    Gani

    hi,
    _Data Types and Data Objects_
          Programs work with local program data – that is, with byte sequences in the working memory. Byte sequences that belong together are called fields and are characterized by a length, an identity (name), and – as a further attribute – by a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
          In the ABAP type concept, fields are called data objects. Each data object is thus an instance of an abstract data type. There are separate name spaces for data objects and data types. This means that a name can be the name of a data object as well as the name of a data type simultaneously.
    Data Types
       As well as occurring as attributes of a data object, data types can also be defined independently. You can then use them later on in conjunction with a data object. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program using the TYPESstatement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
         All programming languages distinguish between various types of data with various uses, such as ….. type data for storing or displaying values and numerical data for calculations. The attributes in question are described using data types. You can define, for example, how data is stored in the repository, and how the ABAP statements work with the data.
    Data types can be divided into elementary, reference, and complex types.
    a. Elementary Types
    These are data types of fixed or variable length that are not made up of other types.
    The difference between variable length data types and fixed length data types is that the length and the memory space required by data objects of variable length data types can change dynamically during runtime, and that these data types cannot be defined irreversibly while the data object is being declared.
    Predefined and User-Defined Elementary Data Types
    You can also define your own elementary data types in ABAP using the TYPES statement. You base these on the predefined data types. This determines all of the technical attributes of the new data type. For example, you could define a data type P_2 with two decimal places, based on the predefined data type P. You could then use this new type in your data declarations.
    b.  Reference Types
    Reference types are deep data types that describe reference variables, that is, data objects that contain references. A reference variable can be defined as a component of a complex data object such as a structure or internal table as well as a single field.
    c. Complex Data Types
    Complex data types are made up of other data types. A distinction is made here between structured types and table types.
    Data Objects
          Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program. ABAP statements access these contents by addressing the name of the data object and interpret them according to the data type.. For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
           Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type). You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
            A data object is a part of the repository whose content can be addressed and interpreted by the program. All data objects must be declared in the ABAP program and are not persistent, meaning that they only exist while the program is being executed. Before you can process persistent data (such as data from a database table or from a sequential file), you must read it into data objects first. Conversely, if you want to retain the contents of a data object beyond the end of the program, you must save it in a persistent form.
    Declaring Data Objects
          Apart from the interface parameters of procedures, you declare all of the data objects in an ABAP program or procedure in its declaration part. These declarative statements establish the data type of the object, along with any missing technical attributes. This takes place before the program is actually executed. The technical attributes can then be queried while the program is running.
         The interface parameters of procedures are generated as local data objects, but only when the procedure is actually called. You can define the technical attributes of the interface parameters in the procedure itself. If you do not, they adopt the attributes of the parameters from which they receive their values.
    ABAP contains the following kinds of data objects:
    a.  Literals
    Literals are not created by declarative statements. Instead, they exist in the program source code. Like all data objects, they have fixed technical attributes (field length, number of decimal places, data type), but no name. They are therefore referred to as unnamed data objects.
    b.  Named Data Objects
    Data objects that have a name that you can use to address the ABAP program are known as named objects. These can be objects of various types, including text symbols, variables and constants.
    Text symbols are pointers to texts in the text pool of the ABAP program. When the program starts, the corresponding data objects are generated from the texts stored in the text pool. They can be addressed using the name of the text symbol.
    Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.
    Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.
    c.  Anonymous Data  Objects
    Data objects that cannot be addressed using a name are known as anonymous data objects. They are created using the CREATE DATAstatement and can be addressed using reference variables.
    d.  System-Defined Data Objects
    System-defined data objects do not have to be declared explicitly - they are always available at runtime.
    e.  Interface Work Areas
    Interface work areas are special variables that serve as interfaces between programs, screens, and logical databases. You declare interface work areas using the TABLES and NODESstatements.
    What is the difference between Type and Like?
    Answer1:
    TYPE, you assign datatype directly to the data object while declaring.
    LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.
    Answer2:
    Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
    Answer3:
    type refers the existing data type
    like refers the existing data object
    reward if useful
    thanks and regards
    suma sailaja pvn

  • Data types and data objects

    diff b/w data types and data objects

    hi prasanth,
    Data Types and Data Objects
    Programs work with local program data – that is, with byte sequences in the working memory. Byte sequences that belong together are called fields and are characterized by a length, an identity (name), and – as a further attribute – by a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
    In the ABAP type concept, fields are called data objects. Each data object is thus an instance of an abstract data type. There are separate name spaces for data objects and data types. This means that a name can be the name of a data object as well as the name of a data type simultaneously.
    Data Types
    Data types are templates for creating data objects. Data types can be defined independently in the ABAP program or in the ABAP Dictionary. As attributes of a data object, data types can also exist in a non-independent state. Data types do not use any memory space for work data, but may require memory for administration information.
    As well as occurring as attributes of a data object, data types can also be defined independently. You can then use them later on in conjunction with a data object. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program using the TYPESstatement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
    All programming languages distinguish between various types of data with various uses, such as ….. type data for storing or displaying values and numerical data for calculations. The attributes in question are described using data types. You can define, for example, how data is stored in the repository, and how the ABAP statements work with the data.
    Data types can be divided into elementary, reference, and complex types.
    a. Elementary Types
    These are data types of fixed or variable length that are not made up of other types.
    The difference between variable length data types and fixed length data types is that the length and the memory space required by data objects of variable length data types can change dynamically during runtime, and that these data types cannot be defined irreversibly while the data object is being declared.
    Predefined and User-Defined Elementary Data Types
    You can also define your own elementary data types in ABAP using the TYPES statement. You base these on the predefined data types. This determines all of the technical attributes of the new data type. For example, you could define a data type P_2 with two decimal places, based on the predefined data type P. You could then use this new type in your data declarations.
    b. Reference Types
    Reference types are deep data types that describe reference variables, that is, data objects that contain references. A reference variable can be defined as a component of a complex data object such as a structure or internal table as well as a single field.
    c. Complex Data Types
    Complex data types are made up of other data types. A distinction is made here between structured types and table types.
    Data Objects
    A data object is an instance of a data type and occupies as much memory space as its type specifies. An ABAP program only works with data that is available as content of data objects. Data objects are either created implicitly as named data objects, or exanonymous data objects using CREATEDATA.
    Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program. ABAP statements access these contents by addressing the name of the data object and interpret them according to the data type.. For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
    Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type). You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
    A data object is a part of the repository whose content can be addressed and interpreted by the program. All data objects must be declared in the ABAP program and are not persistent, meaning that they only exist while the program is being executed. Before you can process persistent data (such as data from a database table or from a sequential file), you must read it into data objects first. Conversely, if you want to retain the contents of a data object beyond the end of the program, you must save it in a persistent form.
    Declaring Data Objects
    Apart from the interface parameters of procedures, you declare all of the data objects in an ABAP program or procedure in its declaration part. These declarative statements establish the data type of the object, along with any missing technical attributes. This takes place before the program is actually executed. The technical attributes can then be queried while the program is running.
    The interface parameters of procedures are generated as local data objects, but only when the procedure is actually called. You can define the technical attributes of the interface parameters in the procedure itself. If you do not, they adopt the attributes of the parameters from which they receive their values.
    ABAP contains the following kinds of data objects:
    a. Literals
    Literals are not created by declarative statements. Instead, they exist in the program source code. Like all data objects, they have fixed technical attributes (field length, number of decimal places, data type), but no name. They are therefore referred to as unnamed data objects.
    b. Named Data Objects
    Data objects that have a name that you can use to address the ABAP program are known as named objects. These can be objects of various types, including text symbols, variables and constants.
    Text symbols are pointers to texts in the text pool of the ABAP program. When the program starts, the corresponding data objects are generated from the texts stored in the text pool. They can be addressed using the name of the text symbol.
    Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.
    Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.
    c. Anonymous Data Objects
    Data objects that cannot be addressed using a name are known as anonymous data objects. They are created using the CREATE DATAstatement and can be addressed using reference variables.
    d. System-Defined Data Objects
    System-defined data objects do not have to be declared explicitly - they are always available at runtime.
    e. Interface Work Areas
    Interface work areas are special variables that serve as interfaces between programs, screens, and logical databases. You declare interface work areas using the TABLES and NODESstatements.
    regards,
    sravanthi

  • I want to know memory manament and data display algorithm in LabViEW.Where can I get some materials about them?

    I want to know memory manament and data display algorithm in LabViEW.Where can I get some materials about them? I need them to complete my essay .Thank you for your help.

    Memory menagement:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/732cec772aa4fbe586256a37005541d3?OpenDocument
    About data display: what type of data you wat display?

  • File name and Date Display as an obj not the data

    All,
         The issue that I am having is that when I view a Visio file hosted on SharePoint. The file was created in Visio 2007 and when it is opened by Visio 2007 and Visio Viewer in SharePoint. The file name field object and date
    modified object show the information. The issue is when the file is opened by a device that has Visio 2010 the information does not show. Is there something that I can do for these users to have it show correctly.

    Hi,
    Which way did you open the Visio 2007 file in SharePoint?Opened it in the browser or downloaded it to open? I had test in my environment. Insert a text box>Add a data/time field, it worked fine both in Visio 2007, 2010.
    Thus, let‘s do some test to narrow down the issue’s reason. 
    1.Download the Visio 2007 file and open it with Visio 2010.
    If it worked fine, the issue seems more related to Visio object and sharePoint connection.
    If it does not display the information in Visio 2010 by a device client, the issue was more related to Visio 2010 client.  
    2.Create a new drawing included file name and Date
    field in Visio 2010.
    If the new drawing displays correct, the issue is more related the original, please try to repair the file or re-create the file name and Date filed.  
    If the new drawing still displays incorrect, please try to start Visio 2010 in safemode, some third-party add-ins my be casued the issue.
    If the issue still exists, try to repair Visio 2010.
    Regards,
    George Zhao
    TechNet Community Support

  • Data types and Data object

    Can Any one give me Clear definition of Data type and Data objects.
    Concept i know clearly.. but unable to explain it..
    Regards,
    Prasanna

    Data consists of strings of bytes in the memory area of the program. A string of related bytes is called a field. Each field has an identity (a name) and a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
             In the ABAP type concept, fields are called data objects. Each data object is an instance of an abstract data type. Data types in ABAP are not just attributes of fields, but can be defined in their own right. There are separate name spaces for data objects and data types. This means that a name can at the same time be the name of a data   object as well as the name of a data type.
    <b>Data Types:</b>
                     As well as occurring as attributes of a data object, data types can also be defined independently. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program (using the TYPES statement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
             Data types can be divided into elementary, reference, and complex types
    <b>Data objects:</b>
                      Data objects are the physical units with which ABAP statements work at runtime. Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running. The technical attributes of a data object are its length, number of decimal places, and data type. ABAP statements work with the contents of data objects and interpret them according to their data type. You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
    ABAP contains the following kinds of data objects
      Literals
       Named Data Objects
      Predefined Data Objects
      Dynamic Data Objects

  • Data type and Data object

    Hi Friends,
            What is the difference between Data type and Data object?
    Best Regards,
    VRV Singh

    hi
    good
    Each ABAP program define its own data types using the statement.
    TYPES dtype TYPE type ...
    and declare its own variables or instance attributes of classes using the statement
    DATA var {TYPE type} ...
    Within the program or a class, you can also define local data types and variables within procedures. Local variables in procedures obscure identically-named variables in the main program or class.
    When creating data types and data objects, there are a number of naming convention that also apply for other local program definitions, such as procedures. These are described in detail in the keyword documentation.
    The Additions TYPE and LIKE
    The additions TYPE type and LIKE dobj are used in various ABAP statements. The additions can have various meanings, depending on the syntax and context.
    ·        Definition of local types in a program
    ·        Declaration of data objects
    ·        Dynamic creation of data objects
    ·        Specification of the type of formal parameters in subroutines
    ·        Specification of the type of formal parameters in methods
    ·        Specification of the type of field symbols
    Constructing New Data Types
    The TYPE addition allows you to construct new data types in the TYPES, DATA; CONSTANTS; and STATICSstatements. In the TYPES statement, these are local data types in the program. In the other statements, they are attributes of new data objects, meaning that the newly defined data types are not free-standing. Rather, they are linked to database objects.This means that you can refer to them using the LIKEaddition, but not using TYPE.
    To construct new data types, the addition TYPE can be used with the following type constructors:
    ·        Construction of reference types
    REF TO type|dobj
    ·        Construction of structured data types
    BEGIN OF struc_type.
    END OF struc_type.
    ·        Construction of table types
    tabkind OF linetype
    These data types only exist during the runtime of the ABAP program.
    Referring to Known Data Types or Data Objects
    Using the additions TYPE or LIKE in the TYPESstatement, local data types in a program can be referred to known data types or data objects. This is mainly the case with user-defined elementary data types. If you declare variables using the additions TYPE type or LIKE dobj with statement DATA, the data type of var is already fully defined before the declaration is made.
    The known types or data that are referred to must be visible at the point where the data type or variable is declared.
    A known data type can be any of the following:
    ·        A predefined ABAP type to which you refer using the TYPE addition
    ·        An existing local data type in the program to which you refer using the TYPE addition
    ·        The data type of a local data object in the program to which you refer using the LIKE addition
    ·        A data type in the ABAP Dictionary to which you refer using the TYPE addition. To ensure compatibility with earlier releases, it is still possible to use the LIKE addition to refer to database tables and flat structures in the ABAP Dictionary. However, you should use the TYPE addition in new programs.
    The LIKE addition takes its technical attributes from a visible data object. As a rule, you can use LIKE to refer to any object that has been declared using DATA or a similar statement, and is visible in the current context.  The data object only has to have been declared. It is irrelevant whether the data object already exists in memory when you make the LIKE reference.
    ·        In principle, the local data objects in the same program are visible. As with local data types, there is a difference between local data objects in procedures and global data objects. Data objects defined in a procedure obscure other objects with the same name that are declared in the global declarations of the program.
    ·        You can also refer to the data objects of other visible ABAP programs. These might be, for example, the visible attributes of global classes in class pools. If a global class cl_lobal has a public instance attribute or static attribute attr, you can refer to it as follows in any ABAP program:
    DATA dref TYPE REF TO cl_global.
    DATA:  f1 LIKE cl_global=>attr,
           f2 LIKE dref->attr.
    You can access the technical properties of an instance attribute using the class name and a reference variable without first having to create an object. The properties of the attributes of a class are not instance-specific and belong to the static properties of the class.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/content.htm
    thanks
    mrutyun^

  • Difference between Data carrier type and Data carrier??

    Hi experts,
    Could you please explain me the difference between Data carrier type and Data carrier with an example??
    Regards,
    Kiran T

    hi Kiran,
    Data carrier is to achive communication between server and user front end. We can define one data carrier type along with path as default for all or seperate data carriers type for specific users in define data carrier in SPRO. This defined data carriers again we assign to application in defining network for workstation application in SPRO.
    By using data carrier we can upload to & download originals from server. We can change and print the documents from server.
    Please award pts if its useful / need further information.
    Pramod

  • Difference Between Data Type and Data Object

    Difference Between Data Type and Data Object

    hi magesh
    <u><b>Data types</b></u> can be divided into
    elementary,
    reference, and
    complex types.
    <u><b>Elementary Types</b></u>
    Elementary types are the smallest indivisible unit of types. They can be grouped as those with fixed length and those with variable length.
    <u><b>Fixed-Length Elementary Types</b></u>
    There are eight predefined types in ABAP with fixed length:
    <u><b>Four character types:</b></u>
    Character (C),
    Numeric character (N),
    Date (D),
    and Time (T).
    <b>One hexadecimal type:</b>
    Byte field (X).
    <b>Three numeric types:</b>
    Integer (I),
    Floating-point number (F)
    and Packed number (P).
    <u><b>Variable-Length Elementary Types</b></u>
    There are two predefined types in ABAP with variable length:
    STRING for character strings
    XSTRING for byte strings
    Reference Types
    <b>Reference types</b>
    describe data objects that contain references (pointers) to other objects (data objects and objects in ABAP Objects).
    <u><b>Data Types</b></u>
    1) As well as occurring as attributes of a data object, data types can also be defined independently.
    2)You can then use them later on in conjunction with a data object.
    3) The definition of a user-defined data type is based on a <b>set of predefined elementary data types.</b>
    4) You can define data types <b>either locally in the declaration part of a program</b> using the TYPESstatement) or <b>globally in the ABAP</b> Dictionary.
    5) You can use your own data types to declare data objects or to check the types of parameters in generic operations.
    <u><b>Data Objects</b></u>
    1)<b>Data objects</b> are the physical units with which ABAP statements work at runtime.
    2) The contents of a data object occupy memory space in the program.
    3) <b>ABAP statements access these contents by addressing the name of the data object</b> and interpret them according to the data type..
    4) For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
    5) Each <b>ABAP data object has a set of technical attributes</b>, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type).
    6) You <b>declare data objects</b> either <b>statically in the declaration part</b> of an ABAP program (the most important statement for this is DATA), or <b>dynamically at runtime</b> (for example, when you call procedures).
    7) As well as fields in the memory area of the program, the program also treats literals like data objects.
    hope this helps u,
    reward points if useful
    Ginni

  • Differences between DATA TYPE and DATA OBJECTS

    I am new to ABAP,I want to know the differences between DATA TYPE and DATA OBJECTS with some examples.
    please help me regarding this.

    Hi Ashish,
    Data Types:       Are pure descriptions.
                   No memory is associated with data types.
                   Describes the technical properties of data objects.
    EX.
    1.     C-CHARACTER
    2.     D-DATE
    3.     F-FLOAT
    4.     I-INTEGER
    5.     N-NUMERIC TEXT
    6.     T-TIME
    7.     P-PACKED NUMBER
    8.     X-HEXADECIMAL
    9.     STRING-Variable length string.
    10.     XSTRING-Variable length byte string.
    Data Objects: Are created during runtime.
                    They cannot exist without the data Types.
                    Occupies memory space.
    EX:
    1.     INTERNAL DATA OBJECT- Internal Data objects
         LITEERAL- A literal has a fixed value.Ex: WRITE:u201DWORK HARDu201D.
         VARIABLES: Data statement is used to create variables.
    EX.DATA: NUM TYPE I.
    NUM: VARIABLE defined by data statement.
    EX: DATA: PRICE LIKE NUM.
         CONSTANT-It is a data object, which contains a constant value throughout the program.
    Can be declared in program by using CONSTANT statement.
    EX:CONSTANT: INT TYPE I VALUE 15.
    2.     EXTERNAL DATA OBJECT: Are defined in tables i.e In ABAP/4 dictionary you can access this data from table.
             EX: TABLES: SFLIGHT
              DATA: SEATS LIKE SFLIGHT-SEATSMAX.
    3.     SYSTEM DEFINED DATA OBJECTS:Space & system variables like SY-UNAME,SY-DATUM, SY-REPID.
    4.     SPECIAL DATA  OBJECTS:
         PARAMETERS: Are Variables ,which can accept value from user.
          SELECTION SCREEN : Are special internal tables to accept value ranges from user.
    3 APPROACHES TO DEFINE DATA OBJECTS.
    1.     ELEMENTARY TYPES
    DATA: Customer _Name (25) TYPE C,
                   Vendor_Name (25) TYPE C.
    2.     REFRENCE TO AN EXISTING FIELD:
    DATA: Customer _Name2 (25) TYPE C,
                  Vendor_Name2 (25) LIKE Customer_Name2
    3.     REFRENCE TO NON-ELEMENTARY TYPE:
    TYPES: T_NAME (25) TYPE C
    DATA: CUSTOMER_NAME TYPE T_NAME
                   VENDOR_NAME  TYPE T_NAME
    4.     RECORD-Information in rows & columns.
    DATA: BEGIN OF BOOKING,
                                    ID (4) TYPE C,
                                    FLIGHT_DATE TYPE D,
                                    NAME LIKE CUSTOMER_NAME,
                                    END OF BOOKING.
    You can also look into SAP help for more information.
    Regards,
    Indu.

  • Need material on business content and data extraction

    hi
      friends
                iam new to BW i Need material on business content and data extraction  , plzz send me without help.sap material to my mail id [email protected]

    Hi,
    Pls check ur inbox....
    Also go thru this link....
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
    Hope it helps,
    Thanks,
    Happy Life,
    Aravind

  • Cardinality between Message Type and Data Type

    Hi SAP gurus,
    Could anyone please tell me the cardinality between the Message Type and Data Type?
    Thanks,
    Adnan Abbasi

    1:1
    Sameer

  • Do I need to turn off Voice And Data Roaming On My iPhone 5 When I Am In The USA And NOT Travelling?

    Do I need to turn off Voice And Data Roaming on my iPhone 5 if I am NOT traveling  and I am in the USA?
    Also can it stay on if I am traveling just through the USA and not getting near any Borders of the Country?
    Thanks in advance.

    wifi is not something you can be charged for

  • Adding field in field catalog and to display in output

    Hi, In this below report i have newly added the user group field i.e' usr02-class ' and the field and data is coming up to internal table ' it_usr02 ' in 'REUSE_ALV_GRID_DISPLAY' and in field catalog it is not coming i have debugged and only the class field is not coming. plz suggest me how to add this in fieldcatalog .
    REPORT zrpbc_user_log.
    Declaration of Tables                                               *
    TABLES: usr02,usr03.
    DATA:
    BEGIN OF it_usr02 OCCURS 0,
      bname        LIKE usr02-bname, "EID
      class        LIKE usr02-class, "User Group
      trdat        LIKE usr02-trdat, "Last Logged in Date
    *Start of Change Charm 25971
      name1        LIKE usr03-name1, "First Name
      name2        LIKE usr03-name2, "Last Name
      e_mail       LIKE bapiaddr3-e_mail,"Emailid
    *End of Change Charm 25971
    END OF it_usr02.
    DATA:  w_address TYPE bapiaddr3,
           it_return   TYPE STANDARD TABLE OF bapiret2,
           w_name LIKE bapibname-bapibname.
    TYPE-POOLS: slis.
    DATA it_fcat TYPE slis_t_fieldcat_alv.
    DATA : w_fcat TYPE slis_fieldcat_alv.
    Declaration of Constants                                             *
    CONSTANTS: c_past_days TYPE i VALUE 90.
    Declaration of Variables                                             *
    DATA w_repid LIKE sy-repid.
    DATA w_no_lines LIKE sy-tabix.
    DATA w_idx TYPE sy-tabix.
    Selection Screen                                                     *
    SELECT-OPTIONS:
      s_trdat FOR usr02-trdat.
    INITIALIZATION                                                   *
    INITIALIZATION.
      PERFORM initialize_data.
    Start of Selection                                                   *
    START-OF-SELECTION.
    *Get the user details
      PERFORM get_user_details.
    End of Selection                                                     *
    END-OF-SELECTION.
      PERFORM get_alv_display.
    *&      Form  initialize_data
          text
    FORM initialize_data .
      "Initialize the select options with the appropriate date range
      s_trdat-low = sy-datum - c_past_days.
      s_trdat-high = sy-datum.
      s_trdat-sign = 'I'.
      s_trdat-option = 'BT'.
      APPEND s_trdat.
    ENDFORM.                    " initialize_data
    *&      Form  get_user_details
          text
    FORM get_user_details .
    read data into table it_usr02
      SELECT bname class trdat
      FROM usr02
      INTO TABLE it_usr02
      WHERE
        trdat IN s_trdat AND
        bname LIKE 'E%'.
      LOOP AT it_usr02.
        w_idx = sy-tabix.
        MOVE : it_usr02-bname TO w_name.
    *Start of Change Charm 25971
    Getting the First ,Last name & Emailid of the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = w_name
          IMPORTING
            address  = w_address
          TABLES
            return   = it_return.
        MOVE : w_address-firstname TO it_usr02-name1,
               w_address-lastname  TO it_usr02-name2,
               w_address-e_mail    TO it_usr02-e_mail.
        MODIFY it_usr02 INDEX w_idx.
      ENDLOOP.
    *End of Change Charm 25971
    ENDFORM.                    " get_user_details
    *&      Form  get_alv_display
          text
    FORM get_alv_display.
      w_repid = sy-repid.
      PERFORM get_alv_fieldcat.
    Create Field-catalogue from internal table
    Call for ALV list display
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = w_repid
          it_fieldcat        = it_fcat
          i_save             = 'A'
        TABLES
          t_outtab           = it_usr02
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        WRITE: /
        'Returncode'(001),
        sy-subrc,
        'from FUNCTION REUSE_ALV_LIST_DISPLAY'(002).
      ENDIF.
    ENDFORM.                    " get_alv_display
    *&      Form  get_alv_fieldcat
          text
    FORM get_alv_fieldcat .
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = w_repid
          i_internal_tabname     = 'IT_USR02'
          i_inclname             = w_repid
        CHANGING
          ct_fieldcat            = it_fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        WRITE: /
        'Returncode'(001),
        sy-subrc,
        'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'(002).
      ENDIF.
    *Start of Change Charm 25971
      w_fcat-reptext_ddic = 'Firstname'(003).
      MODIFY it_fcat FROM w_fcat TRANSPORTING reptext_ddic
                                  WHERE fieldname = 'NAME1'.
      w_fcat-reptext_ddic = 'Lastname'(004).
      MODIFY it_fcat FROM w_fcat TRANSPORTING reptext_ddic
                                   WHERE fieldname = 'NAME2'.
    *End of Change Charm 25971
    ENDFORM.                    " get_alv_fieldcat

    Please dont DUPLICATE the Posts. Its against the Forum Rules.
    Close any one theard.
    Duplicate Post:
    In this Report i want to add class field in usr02 table
    Regards,
    Padma

Maybe you are looking for

  • Help with Adobe Acrobat 9 Pro PDF Converter

    Hello. I am trying to convert the online homepage of Bank of America (http://www.bankofamerica.com) into a a PDF file.  When the PDF file gets created, not all the background colors and graphics come out (Please see attachment).  Does anyone know how

  • Update query for managing an Oracle spatial database

    Hi, i'm trying to manage a spatial network i have created in Oracle 11g. One of the tables i have created named "DE_OSM_RT_LINK$", contains data for links which exist between nodes. The link table contains a column named "Cost". All the values of thi

  • Need some information confirmed about the content ID number

    Is it possible to have it change the auto number prefix in a contextual manner. example default:xxxx001 doc-a:xxxy00[1|2] doc-b:xxxz00[1|3]

  • Session.getAttribute("somekey") returning  NULL in SessionDestroyed

    Hi all,      session.getAttribute("somekey") is returning null  in SessionDestroyed() method of flex listener. Below are the steps I am following 1) I am adding flexLister in contextInitialized method of ServletContextListener    FlexSession.addSessi

  • Help With Automating Photoshop Tasks

    My company Mid South Sports Media works with a number of Mixed Martial Arts fight promoters and we provide a service to them where we set up a laptop, several printers and a photo booth and offer photographs taken with UFC stars like Tito Ortiz and o