What datatype field do I have to define for a 2^400 number??????

I need to store a number in a table field. The maximum number is: 2^400.
I would want to put in the field a Number datatype but the max. is NUMBER(38)
What datatype field do I have to define for a 2^400 number??????
Thanks in advance!!!

Will a float work for you, or do you need every digit?
SQL> create table t (n number);
Table created.
SQL>
SQL> insert into t(n)
  2  select power(2,400)
  3  from dual;
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t;
         N
2.582E+120

Similar Messages

  • No depreciation areas have been defined for asset 10001-2

    Hi,
    While creating Goods Receipt(MIGO) the following error is showing
    "No depreciation areas have been defined for asset 10001-2"
    Could u plz, suggest me what i have to do.
    Thanks in Advance,
    Sudheer.

    Hi
    Goto Asset Master TCode AS02 / Depreciation area tab and check depreciation areas have been defined for asset 10001-2" or not.
    Cheers
    Srinvias

  • Tried to upgrade to osx 10.9 from 10.7 and I didn't notice that it downloads in the launcher. I turned my mac off and ever since then it has glitched out and will not download no matter what I do. I have had it for 3 years which is out of warranty.

    Tried to upgrade to osx 10.9 from 10.7 and I didn't notice that it downloads in the launcher. I turned my mac off and ever since then it has glitched out and will not download no matter what I do. I have had it for 3 years which is out of warranty. It now has a blank bar under the launch pad and no matter how many times I try re-downloading it or restarting my computer it does not work. I use too play starcraft and other games on this computer although new patched/updates have made it that I can no longer do that now. Really frustrating having to deal with this especially after buying this computer upfront and now out of warranty.

    Go to your Applications folder and find a file called "Install OS X Mavericks".  Send it to the trash and delete it.  Then try the download again.

  • No depreciation areas have been defined for asset

    Dear consultant,
    By mistake from our user had deactivated Depreciation Area in T-code AS92 for Auc asset 1200005 please suggest
    How can we activate Deprecation  area ?
    Because We already settled 350 line item in same asset and still 150 item we have to settle from this asset.
    The  problem is if I  run any T-code related that asset getting error
    No depreciation areas have been defined for asset 1200005-0
    Message no. AA025
    one more thing i want to tell you that this happend only for one asset not for entire asset class I check in IMG Setting is ok for asset class.

    I tried doing this but I got an error:
    Depreciation area 01, which you want to create as a new depreciation area in chart of depreciation TTHI, has no depreciation area defined for value takeover. This may be be correct for normal operation, however for the purposes of creating a new depreciation in the productive system, you have to enter a depreciation area whose values are used as base values for the new area.
    Do you have another solution for this?
    I hope anybody can help me on this issue.

  • What to do when i have lost the email with the serial number on??

    as it says above, i downloaded and biught CS5 from adobe last year, and have lost the email with the serial number on and i need to reload it onto a new machine. all emails from adobe were lost during a breakdown of my laptop.
    could someone shed some light as to how i get this serial number back? i do not want to have to buy photoshop again! it costs enough as it is!

    You will find your serial number in your account only if you have registered your copy with Adobe. If you haven't done that, the only way is to call customer support and see if they can help. (http://www.adobe.com/support/contact/)

  • What should my mac mini have if primarily for music?

    I'm planning on purchasing a mac mini for the primary reason of storing and playing music on my home stereo.  While I know that there will be the occasional time when I'll use for browsing and email, it will be used with AppleRemote to play music usingh iTunes as my music manager.
    That being said - I have three specific questions.
    Does CPU type and speed matter and if so, in what way?
    Will I benefit from a Fusion drive and if so, in what way?
    Will I benefit from adding more memory and if so, in what way?
    TIA - JP

    If you purchase the current model, or any Intel Core 2 Duo Mini the baseline CPU, memory, and standard disk drive will be fine. You will not see any real improvement with more memory better processor or Fusion drive.

  • What does the inspector settings have to be for the second page to be seen on my website

    My second page can not be seen on my web page.  Could this be a setting in my Inspector.
    What setting do I need in the Inspector to get my second page to show on my web page?

    In the Inspector/Page/Page pane check both checkboxes:
    Click to view full size
    OT

  • I have received one transition 390 on my card can i know what is that because i have not request for any apps.

    dear sir,
    i have recieved one transation of rupees 390 rupees but i have not added any i tune apps .
    please reply and give the apps name which i added today.
    thanks
    anil

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    You can check the purchase history on your account via the Store > View Account menu option on your computer's iTunes, though I'm not sure if that shows auto-renewing subscriptions (I don't have any so I can't check). If you can't find the charge or you didn't make it, then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • TS4212 can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.  I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work

    can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.   what do I do
    I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work.
    I am really struggling

    Thanks
    someone named  Eloisa   she gave me   a phone no.   or visit hp.com/uk
    cannot make head nor tale of it all.  I am old.  and find everything hard to undertstand

  • What are field symbols and field groups.? Have you used "component idx of s

    What are field symbols and field groups.? Have you used "component idx of structure"

    Field Symbols and field groups
    Field Groups / Extracts
    http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm
    Field Symbols
    http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm
    Field symbols: are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field Groups:
    A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
    Use
    The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
    When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
    A field group combines several existing fields together under one name
    like
    FIELD-GROUPS: fg.
    then you can use one insert statement to insert values in fields of field-group.
    INSERT f1 f2 ... INTO fg.
    Field symbols
    If u have experience with 'C', then understand this to be similar to a pointer.
    It is used to reference another variable dynamically. So this field symbol will simply point to some other variable. and this pointer can be changed at runtime.
    FIELD-SYMBOLS <FS>.
    DATA FIELD VALUE 'X'.
    ASSIGN FIELD TO <FS>.
    WRITE <FS>.
    Field symbols: are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field Groups:
    A field group is a user-defined grouping of characteristics and basic key figures from the EC-EIS or EC-BP field catalog.
    Use
    The field catalog contains the fields that are used in the aspects. As the number of fields grows, the field catalog becomes very large and unclear. To simplify maintenance of the aspects, you can group fields in a field group. You can group the fields as you wish, for example, by subject area or responsibility area. A field may be included in several field groups.
    When maintaining the data structure of an aspect, you can select the field group that contains the relevant characteristics and basic key figures. This way you limit the number of fields offered.
    Field Groups / Extracts
    http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm
    Field Symbols
    http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm

  • Is it possible to have user defined field in pick and pack manager

    HI,
    I would like to know whether it is possible to have user defined field in pick and pack manager row level.
    Manage user defined field there is only provision for <b>pick list</b> and not for <b>Pick and pack</b>.
    Regards
    Krishna

    The Pick and Pack Manger doesn't relate to any specific table (nothing saved to the database), so it does not make any sense having a userdefiend field on it. I would guess that you could add a column and bind it to a userdatasource (not a SAP database field), but if this make any sense depends on what you are trying to achive...

  • What is the difference between variable and Define

    WHAT IS THE DIFFERENCE BETWEEN
    these different declarations when it is done using the keyword "variable" and "define"
    and both of these are done OUTSIDE "DECLARE"
    VARIABLE g_monthly_sal NUMBER
    DEFINE p_annual_sal =5000
    -- I understand that p_annual_sal will be taken as a CHAR.
    -- ALSO IF DEFINE variable acts as macro variable, SO is it necessary to give it some value whenever we define it.
    if not what value would be substituted for it?
    OR does that mean whenever we want to specify data type for a bind varible we should use VARIABLE and
    when we do not want to specify type we use DEFINE?
    THANK YOU
    Edited by: user6287828 on Feb 24, 2009 11:03 AM
    Edited by: user6287828 on Feb 24, 2009 11:04 AM

    Both are SQL*plus commands. In a real programming environment you will not use such constructs (except a few rare scripting cases).
    The difference is how the construct is later used. DEFINE is more like a copy&paste string. Whereever the name of this substitution variable is found it will be pasted into the sql*plus session.
    VARIABLE creates a real variable. You can change the value and if follwos the usual principles of variables (including binding).
    Example can be found the docs:
    from the docs
    Where and How to Use Substitution Variables
    You can use substitution variables anywhere in SQL and SQL*Plus commands, except as the first word entered. When SQL*Plus encounters an undefined substitution variable in a command, SQL*Plus prompts you for the value.
    You can enter any string at the prompt, even one containing blanks and punctuation. If the SQL command containing the reference should have quote marks around the variable and you do not include them there, the user must include the quotes when prompted.
    SQL*Plus reads your response from the keyboard, even if you have redirected terminal input or output to a file. If a terminal is not available (if, for example, you run the script in batch mode), SQL*Plus uses the redirected file.
    After you enter a value at the prompt, SQL*Plus lists the line containing the substitution variable twice: once before substituting the value you enter and once after substitution. You can suppress this listing by setting the SET command variable VERIFY to OFF.
    Using Bind Variables
    Bind variables are variables you create in SQL*Plus and then reference in PL/SQL or SQL. If you create a bind variable in SQL*Plus, you can use the variable as you would a declared variable in your PL/SQL subprogram and then access the variable from SQL*Plus. You can use bind variables for such things as storing return codes or debugging your PL/SQL subprograms.
    Because bind variables are recognized by SQL*Plus, you can display their values in SQL*Plus or reference them in PL/SQL subprograms that you run in SQL*Plus.
    Creating Bind Variables
    You create bind variables in SQL*Plus with the VARIABLE command. For example
    VARIABLE ret_val NUMBER
    This command creates a bind variable named ret_val with a datatype of NUMBER. See the VARIABLE command for more information. (To list all bind variables created in a session, type VARIABLE without any arguments.)
    Referencing Bind Variables
    You reference bind variables in PL/SQL by typing a colon (:) followed immediately by the name of the variable. For example
    :ret_val := 1;
    To change this bind variable in SQL*Plus, you must enter a PL/SQL block. For example:
    BEGIN
    :ret_val:=4;
    END;
    /

  • What DataType should I use?

    I’m wondering what is the best DATATYPE to use to a few fields. 
    This is all stock data; I have one DATETIME field and several VARCHAR(MAX) fields; this is fine. 
    I’m just wondering about a few other fields.
    I have something called Weight; it looks like this: 
    0.0055104518
    I have something called Weight; it looks like this: 
    1240298.89
    FX Rate could look like either of these: 
    95.33   or   0.00862701117198
    Float could look like this: 
    20014665.91
    Total_MCAP could look like this: 
    24824167.99
    Finally, Index could look like this: 
    130062.43
    I’m thinking that all these numeric will be either MONEY or DECIMAL (19,4) or even NUMERIC(19,4). 
    Is that right?  Can someone give me a little guidance on this?
    Thanks everyone!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    hi,
    You can use this link to chose the best data type or each need:
    http://www.connectionstrings.com/sql-server-2012-data-types-reference/
    basically as i understand you needs:
    I have something called Weight; it looks like this:  0.0055104518                : look like a Decimal
    with max characters after the dot. so maybe decimal(15,15), ipending on how long your numbers are.
    I have something called Weight; it looks like this:  1240298.89 
                      : Again look like a Decimal but only 2 characters after the dot,
    than maybe decimal(15,2) will fit your needs
    FX Rate could look like either of these:  95.33   or   0.00862701117198 
         : as the first one...
    Float could look like this:  20014665.91                          
                                   : as the
    second one
    Total_MCAP could look like this:  24824167.99 
                 : as the second one
    Finally, Index could look like this:  130062.43 
                   : as the second one
    All your data looks like decimal and all you need is to chose the length. check this link:
    http://msdn.microsoft.com/en-us/library/ms187746.aspx
    [Personal Site] [Blog] [Facebook]

  • What is field symbols?

    Hi all,
    Can anyone explains what is Fiels symbol and significance of that with examples?
    Thanks
    Shiva

    HI Shiva
    Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects. (For more information, see Data References).
    All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
    You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
    Field symbols provide greater flexibility when you address data objects:
    If you want to process sections of fields, you can specify the offset and length of the field dynamically.
    You can assign one field symbol to another, which allows you to address parts of fields.
    Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
    You can also force a field symbol to take different technical attributes from those of the field assigned to it.
    The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
    While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
    For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve
    To declare a field symbol, use the statement
    FIELD-SYMBOLS <FS> [<type>|STRUCTURE <s> DEFAULT <wa>].
    For field symbols, the angle brackets are part of the syntax. They identify field symbols in the program code.
    If you do not specify any additions, the field symbol <FS> can have data objects of any type assigned to it. When you assign a data object, the field symbol inherits its technical attributes. The data type of the assigned data object becomes the actual data type of the field symbol.
    Note: it is possible to assign reference variables and structured data objects to untyped field symbols. However, the static field symbol is only a pointer to the field in memory, and does not have the complex type attributes of a reference or structured field until runtime. You can only use the field symbol to address the whole field (for example, in a MOVE statement). Specific statements such as CREATE OBJECT <FS> or LOOP AT <FS> are not possible.
    Typing Field Symbols
    The <type> addition allows you to specify the type of a field symbol. When you assign a data object to a field symbol, the system checks whether the type of the data object you are trying to assign is compatible with that of the field symbol. If the types are not compatible or convertible, the system reacts with a syntax or runtime error. If however, you want to assign the type of the field symbol to the data object by means of casting, you must do so explicitly using the ASSIGN statement. The system then treats the assigned data object as if it had the same type as the field symbol.
    You specify the type of a field symbol using the same semantics as for formal parameters in procedures. For <type> you can enter either TYPE <t> or LIKE <f>. You can specify the type either generically or in full. If you specify a generic type, the type of the field symbol is either partially specified or not specified at all. Any attributes that are not specified are inherited from the corresponding data object in the ASSIGN statement. If you specify the type fully, all of the technical attributes of the field symbol are determined when you define it. You can then only assign data objects to it that have exactly the same data type.
    You should always specify a type for each field symbol. If you cannot avoid defining a generic field symbol, make this clear by using an appropriate generic type declaration.
    Generic Type Specification
    The following types allow you more freedom when using actual parameters. The data object only needs to have the selection of attributes specified.
    Typing
    Check for data object
    No type specification
    TYPE ANY
    All types of data object are accepted. The field symbol adopts all of the attributes of the data object.
    TYPE C, N, P, or X
    Only data objects with type C, N, P, or X are accepted. The field symbol adopts the field length and DECIMALS specification (type P) of the data object.
    TYPE TABLE
    The system checks whether the data object is a standard internal table. This is a shortened form of TYPE STANDARD TABLE (see below).
    TYPE ANY TABLE
    The system checks whether the data object is an internal table. The field symbol inherits all of the attributes (line type, table type, key) from the data object.
    TYPE INDEX TABLE
    The system checks whether the data object is an index table (standard or sorted table). The field symbol inherits all of the attributes (line type, table type, key) from the data object.
    TYPE STANDARD TABLE
    The system checks whether the data object is a standard internal table. The field symbol inherits all of the remaining attributes (line type, key) from the data object.
    TYPE SORTED TABLE
    The system checks whether the actual parameter is a sorted internal table. The field symbol inherits all of the remaining attributes (line type, key) from the data object.
    TYPE HASHED TABLE
    The system checks whether the actual parameter is a hashed internal table. The field symbol inherits all of the remaining attributes (line type, key) from the data object.
    If you specify a type generically, remember that the attributes inherited by the field symbol from the program are not statically recognizable in the program. You can, at most, address them dynamically.
    TYPES: BEGIN OF line,
             col1 TYPE c,
             col2 TYPE c,
           END OF line.
    DATA: wa TYPE line,
          itab TYPE HASHED TABLE OF line WITH UNIQUE KEY col1,
          key(4) TYPE c VALUE 'COL1'.
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    ASSIGN itab TO <fs>.
    READ TABLE <fs> WITH TABLE KEY (key) = 'X' INTO wa.
    The internal table ITAB is assigned to the generic field symbol <FS>, after which it is possible to address the table key of the field symbol dynamically. However, the static address
    READ TABLE <fs> WITH TABLE KEY col1 = 'X' INTO wa.
    is not possible syntactically, since the field symbol does not adopt the key of table ITAB until runtime. In the program, the type specification ANY TABLE only indicates that <FS> is a table. If the type had been ANY (or no type had been specified at all), even the specific internal table statement READ TABLE <FS> would not have been possible.
    If you adopt a structured type generically (a structure, or a table with structured line type), the individual components cannot be addressed in the program either statically or dynamically. In this case, you would have to work with further field symbols and the method of assigning structures component by component.
    Specifying the Type Fully
    When you use the following types, the technical attributes of the field symbols are fully specified. The technical attributes of the data objects must correspond to those of the field symbol.
    Typing
    Technical attributes of the field symbol
    TYPE D, F, I, or T
    The field symbol has the technical attributes of the predefined elementary type
    TYPE <type>
    The field symbol has the type <type>. This is a data type defined within the program using the TYPES statement, or a type from the ABAP Dictionary
    TYPE REF TO <cif>|DATA
    The field symbol is a reference variable for the class or interface <cif>, or for a data object.
    TYPE LINE OF <itab>
    The field symbol has the same type as a line of the internal table <itab> defined using a TYPES statement or defined in the ABAP Dictionary
    LIKE <f>
    The field symbol has the same type as an internal data object <f> or structure, or a database table from the ABAP Dictionary
    When you use a field symbol that is fully typed, you can address its attributes statically in the program, since they are recognized in the source code. If you fully specify the type of a field symbol as a reference or structured data object, you can address it as you would the data object itself, once you have assigned an object to it. So, for example, you could address the components of a structure, loop through an internal table, or create an object with reference to a field symbol.
    REPORT demo_field_symbols_type .
    DATA: BEGIN OF line,
             col1(1) TYPE c,
             col2(1) TYPE c VALUE 'X',
           END OF line.
    FIELD-SYMBOLS <fs> LIKE line.
    ASSIGN line TO <fs>.
    MOVE <fs>-col2 TO <fs>-col1.
    The field symbol <FS> is fully typed as a structure, and you can address its components in the program.
    Attaching a structure to a field symbol
    The STRUCTURE addition forces a structured view of the data objects that you assign to a field symbol.
    FIELD-SYMBOLS <FS> STRUCTURE <s> DEFAULT <f>.
    The structure <s> is either a structured local data object in the program, or a flat structure from the ABAP Dictionary. <f> is a data object that must be assigned to the field symbol as a starting field. However, this assignment can be changed later using the ASSIGN statement.
    When you assign a data object to the field symbol, the system only checks that it is at least as long as the structure. You can address the individual components of the field symbol. It has the same technical attributes as the structure <s>.
    If <s> contains components with type I or F, you should remember the possible effects of alignment. When you assign a data object to a field symbol with a structure, the data object must have the same alignment, otherwise a runtime error may result. In such cases, you are advised to assign such data objects only to structured field symbols, which retain the same structure as the field symbol at least over the length of the structure.
    The STRUCTURE is obsolete; you should no longer use it. Field symbols defined using the STRUCTURE addition are a mixture of typed field symbols and a utility for casting to either local or ABAP Dictionary data types. If you want to define the type of a field symbol, include the TYPE addition in a FIELD-SYMBOLS statement. If you want to use casting, include the CASTING addition in an ASSIGN statement.
    Example using the obsolete STRUCTURE addition:
    DATA: wa(10) VALUE '0123456789'.
    DATA: BEGIN OF line1,
             col1(3),
             col2(2),
             col3(5),
          END OF line1.
    DATA: BEGIN OF line2,
             col1(2),
             col2 LIKE sy-datum,
          END OF line2.
    FIELD-SYMBOLS: <f1> STRUCTURE line1 DEFAULT wa,
                   <f2> STRUCTURE line2 DEFAULT wa.
    WRITE: / <f1>-col1, <f1>-col2, <f1>-col3,
           / <f2>-col1, <f2>-col2.
    Example using the correct syntax (TYPE and CASTING):
    DATA: wa(10) VALUE '0123456789'.
    DATA: BEGIN OF line1,
             col1(3),
             col2(2),
             col3(5),
          END OF line1.
    DATA: BEGIN OF line2,
             COL1(2),
             COL2 LIKE sy-datum,
          END OF line2.
    FIELD-SYMBOLS: <f1> LIKE line1.
    ASSIGN wa TO <f1> CASTING.
    FIELD-SYMBOLS: <f2> LIKE line2.
    ASSIGN wa TO <f2> CASTING.
    WRITE: / <f1>-col1, <F1>-col2, <F1>-col3,
           / <f2>-col1, <F2>-col2.
    In both cases, the list appears as follows:
    012 34 56789
    01 2345/67/89
    This example declares two field symbols to which different structures are attached. The string WA is then assigned to each of them. The output shows that the field symbols assign the strings component by component according to the type of the components.
    Assigning Components of Structures to a Field Symbol
    For a structured data object <s>, you can use the statement
    ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.
    to assign one of its components <comp> to the field symbol <FS>. You can specify the component <comp> either as a literal or a variable. If <comp> is of type C or a structure that has no internal tables as components, it specifies the name of the component. If <comp> has any other elementary data type, it is converted to type I and specifies the number of the component. If the assignment is successful, SY-SUBRC is set to 0. Otherwise, it is set to 4.
    This statement is particularly important for addressing components of structured data objects dynamically. If you assign a data object to a field symbol either generically or using casting, or pass it generically (or using casting) to the parameter interface of a procedure, you cannot address its components either statically or dynamically. Instead, you must use the above statement. This allows indirect access either using the component name or its index number.
    DATA: BEGIN OF LINE,
            COL1 TYPE I VALUE '11',
            COL2 TYPE I VALUE '22',
            COL3 TYPE I VALUE '33',
          END OF LINE.
    DATA COMP(5) VALUE 'COL3'.
    FIELD-SYMBOLS: <F1>, <F2>, <F3>.
    ASSIGN LINE TO <F1>.
    ASSIGN COMP TO <F2>.
    DO 3 TIMES.
      ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
      WRITE <F3>.
    ENDDO.
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
    WRITE / <F3>.
    The output is:
    11         22         33
    33
    The field symbol <F1> points to the structure LINE, <F2> points to the field COMP. In the DO loop, the components of LINE are specified by their numbers and assigned one by one to <F3>. After the loop, the component COL3 of LINE is specified by its name and assigned to <F3>. Note that ASSIGN COMPONENT is the only possible method of addressing the components of <F1>. Expressions such as <F1>-COL1 are syntactically incorrect.
    Regards,
    Laxmi.

  • Table for user status field in CJ20n transaction project defination

    HI ALL,
    what is table for user status field in CJ20n transaction project defination creation. This field is in Basic Data tab.
    Thanks.

    Hi,
    Check following tables for Usre status:
    TJ30 - User status
    TJ30T - Texts for user status
    TJ20 - Status profile
    JEST - Object status
    JSTO- WBS status profile.
    Check this code:
    REPORT zps_get_userstatus .
    PARAMETERS: p_posid LIKE prps-posid.
    *-- Constants
    CONSTANTS: gc_yes(1)     TYPE c                 VALUE 'X',
               gc_no(1)      TYPE c                 VALUE ' '.
    *-- Variables
    DATA: l_objnr LIKE prps-objnr.
    *-- Internal tables
    DATA: BEGIN OF lit_jest OCCURS 0,
           objnr LIKE jest-objnr,
           stat  LIKE jest-stat,
         END OF lit_jest.
    DATA: BEGIN OF lit_jsto OCCURS 0,
           objnr LIKE jsto-objnr,
           stsma LIKE jsto-stsma,
          END OF lit_jsto.
    DATA: BEGIN OF lit_status OCCURS 0,       "Combination of JEST & JSTO
              objnr LIKE jest-objnr,
              stsma LIKE jsto-stsma,
              stat  LIKE jest-stat,
            END OF lit_status.
    DATA: BEGIN OF lit_usrsta OCCURS 0,       "Uer status for all wbs
             objnr LIKE jest-objnr,
             stsma LIKE jsto-stsma,
             stat  LIKE tj30t-estat,
             txt04 LIKE tj30t-txt04,
           END OF lit_usrsta.
    DATA: BEGIN OF lit_usrtxt OCCURS 0,       "User Status text - TJ30T
            stsma LIKE tj30t-stsma,
            stat  LIKE tj30t-estat,
            txt04 LIKE tj30t-txt04,
          END OF lit_usrtxt.
    * get WBS object number
    SELECT SINGLE
         objnr FROM prps
               INTO l_objnr
               WHERE posid = p_posid.
    * get WBS active status from table JEST
    SELECT
          objnr
          stat
               FROM jest INTO TABLE lit_jest
               WHERE objnr =  l_objnr AND
                     inact <> gc_yes.
    * get WBS status profile from table JSTO
    SELECT
          objnr
          stsma FROM jsto
                INTO TABLE lit_jsto
                WHERE objnr =  l_objnr.
    * combine JEST and JSTO table for user status
    LOOP AT lit_jest.
      IF lit_jest-stat CP 'E++++'.
        READ TABLE lit_jsto WITH KEY
                            objnr = l_objnr.
        IF sy-subrc = 0.
          lit_status-objnr = lit_jest-objnr.
          lit_status-stsma = lit_jsto-stsma.
          lit_status-stat  = lit_jest-stat.
          APPEND lit_status.
        ENDIF.
      ENDIF.
      CLEAR: lit_jsto, lit_status.
    ENDLOOP.
    *  get text for user status
    SELECT DISTINCT
             stsma
             estat
             txt04 FROM tj30t
                   INTO TABLE lit_usrtxt
                   FOR ALL ENTRIES IN lit_status
                   WHERE stsma = lit_status-stsma AND
                         estat = lit_status-stat  AND
                         spras = sy-langu.
    Let me know if you have any question.
    Regards,
    RS

Maybe you are looking for

  • Can I connect my iphone 5s to a projector?

    I would like to no if there is a special cable for connecting a iphone 5s to an old school projector or connecting it to a tv? Or maybe a cable for the ipad class projector? Thanks!

  • Importing text from large Word document ID freeze

    I'm converting a large Word document to PDF via InDesign and when I import the text from the Word doc, ID always freezes. I want to preserve the styles and formatting in the text but unfortunately the freeze occurs at the beginning where the Placing

  • Help class import

    I am using Tomcat 3.2.1 to implement servlet and javabean, jsp application. My class path is /webapps/myapp/web-inf/classes/bean. I put two classes in bean folder(they are videocustomer and videoavail). Now i want to use object of videoavail within v

  • Open zip file in PC

    i created a zip file in my Mac. Put it on a CD to open in my PC. I am not able to do so. I tried Winzip, and BitZip, but nothing. Is there a different way to do this that I'm not aware of?

  • Cisco IP phone problem with external directory http error

    Hi, I have a problem when I try to open the directory on different model Cisco IP Phone for new deployment. In CUCM (version 8.5) we have configured internal and external directory and on each device set the "service provisioning" to "both". For all