Difference between "Type Any" and "Type Data"

<<Moderator message: don't post the same question in more than one forum - duplicates deleted>>
Hello Everybody,
Could anyone please tell me the difference between below two declarations:
Field-symbols: <lv_first>      type any,
                      <lv_second> type data.
Edited by: Matt on Nov 6, 2008 1:34 PM

I will tell you where you can find the details;
1) Goto Tcode ABAPHELP ,enter "TYPE DATA" in the keyword and press ok,
2) In the Appearing list double click on the data, built-in generic type under sub-node ABAP Environment.
If you cannot end up finding this, please close the thread and go home :).
Regards
Karthik D

Similar Messages

  • Can anybody explain me difference between test cases and test data

    Hi All,
    Can anybody explain me difference between test cases and test data.
    Testing procedure for FS.
    Thanks & Regards,
    Smitha

    Hi,
    Test case is a procedure how to do the testing of particular functionality and it consists the data that to be given for testing a particular requirement of the given Functional Spec and it also consists the result whether the desired functionality is fullfilling or not.
    Regards
    Pratap

  • The difference between FIELD-SYMBOL and normal DATA TYPE

    Dear experts,
    Please see the example below, both are output the same result.
    DATA: EXTERNAL_RECORD(4000),
          POSITION TYPE I,
          LENGTH TYPE N,
          ENTRY TYPE STRING.
    EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'.
    DO.
      LENGTH = EXTERNAL_RECORD+POSITION(4).
      IF LENGTH = 0.
        EXIT.
      ENDIF.
      ADD 4 TO POSITION.
      MOVE EXTERNAL_RECORD+POSITION(LENGTH) TO ENTRY.
      WRITE ENTRY.
      ADD LENGTH TO POSITION.
      IF POSITION >= 4000.
        EXIT.
      ENDIF.
    ENDDO.
    --OR It can be written as--
    DATA: EXTERNAL_RECORD(4000),
          POSITION TYPE I,
          LENGTH TYPE N.
    FIELD-SYMBOLS <ENTRY>.
    EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'.
    DO.
      LENGTH = EXTERNAL_RECORD+POSITION(4).
      IF LENGTH = 0.
        EXIT.
      ENDIF.
      ADD 4 TO POSITION.
      ASSIGN EXTERNAL_RECORD+POSITION(LENGTH) TO <ENTRY>.
      WRITE <ENTRY>.
      ADD LENGTH TO POSITION.
      IF POSITION >= 4000.
        EXIT.
      ENDIF.
    ENDDO.
    Is there any special circumstances we need to use FIELD-SYMBOL?
    Why is FIELD-SYMBOL is introduce in the first place?
    Kindly advice with example.
    Thanks in advance for those who can help me on this.

    HI,
    You can use field symbols to make the program more dynamic. In this example the name of a table control is substituted by a field symbol. Thus you cal call the form with any internal table, using the name of the table control as a parameter.
    Example
    form insert_row
    using p_tc_name.
    field-symbols <tc> type cxtab_control. "Table control
    assign (p_tc_name) to <tc>.
    insert 100 lines in table control
    <tc>-lines = 100.
    Field symbols allow you to:
    **     Assign an alias to a data object(for example, a shortened
            name for data objects structured through several hierarchies
            - <fs>-f instead of rec1-rec2-rec3-f)
    **     Set the offset and length for a string variably at runtime
    **     Set a pointer to a data object that you determine at runtime (dynamic ASSIGN)
    **     Adopt or change the type of a field dynamically at runtime
    **     Access components of a structure
    **     (from Release 4.5A) Point to lines of an internal table
            (process internal tables without a separate work area)
    Field symbols in ABAP are similar to pointers in other programming
    languages. However, pointers (as used in PASCAL or C) differ from ABAP
    field symbols in their reference syntax.
    The statement ASSIGN f to <fs> assigns the field f to field
    symbol <fs>. The field symbol <fs> then "points" to the
    contents of field f at runtime. This means that all changes to the
    contents of f are visible in <fs> and vice versa. You declare
    the field symbol <fs> using the statement FIELD-SYMBOLS: <fs>.
    Reference syntax
    Programming languages such as PASCAL and C use a dereferencing symbol
    to indicate the difference between a reference and the object to which
    it refers; so PASCAL would use p^ for a pointer instead of p, C would
    use *p instead of p. ABAP does not have any such dereferencing symbol.
    **     In PASCAL or C, if you assign a pointer p1 to a pointer p2,
    you force p1 to point to the object to which p2 refers (reference semantics).
    **     In ABAP, if you assign a field symbol <fs1> to a field
    symbol <fs2>, <fs1> takes the value of the data object to
    which <fs2> refers (value semantics).
    **     Field symbols in ABAP are always dereferenced, that is,
    they always access the referenced data object. If you want to
    change the reference yourself in ABAP, you can use the ASSIGN statement
    to assign field symbol <fs1> to field symbol <fs2>.
    Using field symbols
    You declare field symbols using the FIELD-SYMBOLS statement.
    They may be declared either with or without a specific type.
    At runtime you assign a field to the field symbol using the ASSIGN
    statement. All of the operations on the field symbol act on the field
    assigned to it.
    When you assign a field to an untyped field symbol, the field symbol
    adopts the type of the field. If, on the other hand, you want to assign
    a field to a typed field symbol, the type of the field and that of the
    field symbol must be compatible.
    A field symbol can point to any data object and from Release 4.5A,
    they can also point to lines of internal tables.
    The brackets (<>) are part of the syntax.
    Use the expression <fs> IS ASSIGNED to find out whether the field
    symbol <fs> is assigned to a field.
    The statement UNASSIGN <fs> sets the field symbol <fs> so
    that it points to nothing. The logical expression <fs>
    IS ASSIGNED is then false. The corresponding negative expression
    is IF NOT <fs> IS ASSIGNED.
    An unassigned field symbol <fs> behaves as a constant with
    type C(1) and initial value SPACE.
    MOVE <fs>
    TO dest     Transfers the initial value SPACE to the variable dest
    MOVE 'A' to <fs>     
    Not possible, since <fs> is a constant
    (runtime error).
    To lift a type restriction, use the CASTING addition in the
    ASSIGN statement. The data object is then interpreted as though
    it had the data type of the field symbol. You can also do this
    with untyped field symbols using the CASTING TYPE <type> addition.
    The danger with pointers is that they may point to invalid areas.
    This danger is not so acute in ABAP, because the language does not
    use address arithmetic (for example, in other languages, pointer p
    might point to address 1024. After the statement p = p + 10, it would
    point to the address 1034). However, the danger does still exist, and
    memory protection violations lead to runtime errors.
    A pointer in ABAP may not point beyond a segment boundary. ABAP does
    not have one large address space, but rather a set of segments.
    Each of the following has its own segment:
    *     All global data
    *     All local data
    *     Each table work area (TABLES)
    *     Each COMMON PART
    You should only let field symbols move within an elementary field or
    structure where ABAP allows you to assign both within the global data
    and beyond a field boundary.
    Rgds
    Umakanth

  • Difference between actual ,basic and forecast dates

    hi,
    wat is the difference between actual start date,basic start date and  forecasted start date

    Ady,
    Can you give a little more info than this?
    Regards
    Gill

  • Difference between SP datasource and object data source

    Hi,
    I have a requirement  to query large list and display data in a view similar to SPlist view(Including Filtering, Sorting, Paging).
    I have implemented the same using SPGridview and Object data source.
    Can you please comment on the performance of the spgridview's(soritng, filterting and paging) using object data source and spdatasource.
    Thanks,
    Sunitha

    Hi,
    Kindly Prefer SPDatasource over Object datasource
    http://www.sharepointnutsandbolts.com/2008/06/spdatasource-every-sharepoint-developer.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • What are the differences between the old and new data flow technology?

    I have seen many places mentioned the new data flow tech ( In BI7) are much different from the old one,, can anyone list a few differences?
    Thanks

    Hi Dylan,
        An infosource can be used in the 7 flow model, but its purpose is completely different from the 3.x model.
    In the 3.x model, the infosource consisted of 2 structures  transfer and communication.
    The transfer structure was where you specified which field in the datasource corresponds to which infoobject ie the field type.
    You now do this in the datasource maintainence in 7.0 (the tabs called proposals and fields)
    The communication structure was the structure which was available for uploading.
    You can refer the link for the 3.x flow
    [http://help.sap.com/saphelp_nw70/helpdata/en/90/64553c845ba02de10000000a114084/content.htm]
    In the 7.0 flow, you generally use a  DSO when you perform sequential transformations ie you want to change the data format or do some processing twice before you actually load to the final infoprovider.
    The sequence in this case would be
    Datasource -> transformation1 -> DSO -> Transformation 2-> DSO -> Transformation 3-> Cube
    The disadvantage of doing this, is that the DSO will store data.  To avoid this, you can use an infosource instead of a DSO.
    You can refer the below link for using 7.0 infosources
    [http://help.sap.com/saphelp_nw70/helpdata/en/7e/001342743eda2ce10000000a1550b0/frameset.htm]
    Hope this helps.
    Regards.

  • Difference Between Current Day and fist day of the payroll period

    Hi,
    How do i find the difference between the current day and the first day of the payroll period with period parameter XX.
    Operation VARSTFDYXX is used to decide if the current day is the first day of the payroll period. But is there any operation available to check the difference in exact number of days.
    I know hrs=y is used to find difference between current day and a date specification record from IT0041, but i need to check difference between current day and first day from a payroll period parameter.
    Any response is greatly appreciated.
    Thanks,
    Imaneul Rajiv

    No! haven't seen it at all! Do I have to drain the battery completely and then charge it? I did that the first day I bought the phone and yet the stats are the same for me
    PS: I am referring to the Call Time stats and not the Usage/Standby stats

  • Difference between sy-datum and any given date

    Dear Friends;
    I have one query  regarding DATE  I wanna calculate the difference between
    SY-DATUM and ANY GIVEN DATE . Is there any function or code available that take one parameter as sy-datum and another parameter as any given date and give result as no. of days between them
    Regards;
    Parag

    DATA: DATEDIFF TYPE P.
    CALL FUNCTION 'SD_DATETIME_DIFFERENCE'
      EXPORTING
        date1                 = '20071122'
        time1                 = '000001'
        date2                 = '20070905'
        time2                 = '000001'
    IMPORTING
       DATEDIFF               = DATEDIFF
    EXCEPTIONS
       INVALID_DATETIME       = 1
       OTHERS                 = 2.
    Greetings,
    Blag.

  • Difference between type lvc_t_fcat and slis_t_fieldcat_alv

    Can you tell me the difference between type lvc_t_fcat and slis_t_fieldcat_alv?
    Both are used for field catalogue so which one is better to use?

    Hi,
    the field catalog using lvc_t_fcat  has some better and enhanced features over the old slis_t_fieldcat_alv.
    Ideally when displayed a normal ALV using these fieldcatalogs does not have any difference...
    You can more enhanced features of ALV using lvc_t_fcat but these cannot be done using slis_t_fieldcat_alv
    For using lvc_t_fcat, you require a screen and a container area...
    Based on the requirement, use the  fieldcatalogs.
    Also slis_t_fieldcat_alv does not have any classes or methods but the other has so..(objecct oriented)
    Regards
    Sk

  • [svn] 4112: Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type .

    Revision: 4112
    Author: [email protected]
    Date: 2008-11-14 10:05:42 -0800 (Fri, 14 Nov 2008)
    Log Message:
    Further work for FXG to SWF transcoding - checking in some work resulting from collaborating with Kaushal to correct FXG transforms and gradient transforms as well as cater for differences between Java AffineTransform and the SWF Matrix type.
    QE: Not yet.
    Doc: No
    Checkintests: Pass
    Reviewer: Kaushal
    Modified Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicContentNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/LinearGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/fills/RadialGradientFillNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/LinearGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/strokes/RadialGradientStrokeNode.j ava
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TypeHelper.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/ScalableGradientNode.java

  • Difference between Return Po and Retuning with 122 movement type

    Dear Experts,
    i need some clarification on Return Po and retuning goods with 122 movement type in the context of Excise invoice.
    in our previous company we used 122 movement we capture excise invoice with J1IS and referring the incoming excise
    and return the material to vendor.
    in present company we are directly doing return Po and capturing excise invoice with J1is,here we are not capturing against the
    incoming excise,please clarify me.
    Regards,
    Varun

    Hi,
    Refer the below thread:
    Difference between 102, 122 and 161
    In terms of stock movement, both 122 and 161 represents the return delivery to your vendor. The difference takes place in terms of how you are returning your delivery to your vendor - It is movement type 161 that SAP will automatically propose if your return PO is referenced. Otherwise, 122 movement type will be used instead.
    Regards,
    Prashant
    Edited by: Prashant Prasad on Apr 22, 2011 8:51 AM

  • What's the difference between segment filtering and reduced message type

    Hi gurus,
    What's the difference between segment filtering and reduced message type? It seems they have the same functionality: Reduce the segment while idoc is generated.
    Thanks in advance.

    Hi,
    BD53 is for IDoc Reduction.
    this allows you to create a reduced message based upon a standard message type.If you want see mandatory fields. go to T-coe BD53 and give one standard messege type name and eg: matmas
    there mandatory fields will be in Green color..
    And BD56- This transaction is used to filter out segments of IDocs for combination of sender and receiver. This is usefull in scenarios where a standard IDoc with many segments is used but the receiving partner is only interested in some of the segments
    the table related to this transation is TBD20
      please go through below blog you have an idea abt that,
    http://wiki.sdn.sap.com/wiki/display/ABAP/ReducedMessageTypes
    http://saptotal.com/IDoc%20Segment%20Filtering.html
    regards,
    ganesh.

  • What is the difference between partner function and partner type

    Hi Gurus,
    What is the difference between partner function and partner type?
    Thanks,
    Paul

    Hi John,
    The partner types allow us to distinguish between different business partners such as customer, vendor, employee etc and the partner functions represent the functionality or role each partner plays within the business transaction.
    For example under the partner type Customer, you will find - Sold to party, Ship to party, Bill to party, Payer.
    The business partners that exist in the market place are represented with a partner type in the R/3 system. Examples of business partners are customer, vendor, employee and contact person.
    The following partner types are defined in the partner processing for the sales & distribution module –
    a.     AP – contact person (06)
    b.     KU – customer (07)
    c.     LI – vendor (08)
    d.     PE – employee/personnel (09)
    Assigning the partner functions in the SAP system determines the functions of particular partner in the sales process. One partner may take on several functions also.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • Any data on speed differences between 2.4 and 2.93 ghz MBP?

    Has anyone seen any performance tests showing the difference between 2.4 and 2.93 ghz MBP? I've googled around and haven't found anything.

    Check Bare Feats for benchmarks and do some Google searching. Logically, the difference is not likely more than the difference in processor speed, plus or minus.

  • Any basic differences between AT&T and Verizon, & other questions

    I am thinking of buying an iPad mini with retina display (32gb). This would most likely be the only iPad I would ever own. I would use it mostly at the house with wifi, but would like to have one with cellular for when we travel in the US and Canada, and for when the electricity goes out. We currently live in a location where both AT&T and Verizon are viable options, but sometime in the next year we hope to move. The state is rural and mountainous, so as we drive around, my spouse's iPhone (with an AT&T plan) often loses service, but so does my Jitterbug phone, which is not tied to any one carrier (as far as I know). A phone can get a signal in one locaton, but then lose it a few feet down the road. So, there is no way I can choose between AT&T or Verizon based on coverage because both are options right now and there is no way to predict which one(s), if any, might provide service to wherever we end up moving to. Therefore, I'm wondering if there are any basic differences between AT&T and Verizon (or any other of the possible carriers) in what they offer or how they work or what they charge and so on that can help me decide which one to choose since it is my understanding that once I pick one of them for an iPad, that decision can never be changed without purchasing a new device. (e.g., I had read somewhere that Verizon does not allow for voice and data at the same time, but since an iPad is not a phone, is that even an issue?) Also, will the iPad work if there is only regular 4G or 3G service? And will a cellular iPad work without signing up for a data plan since I expect to start with only wifi and then add a data plan later? Thank you.

    Alfred DeRose, Thank you for answering the second and third questions. Judging by what you wrote, I am assuming there are no differences between what AT&T and Verizon offer that affects iPads, other than looking at coverage area and the cost of "pay as you go" plans. And, as noted, coverage is not something I can base a decision on at this time. So, I either flip a coin to choose between AT&T and Verizon and hope the result is the right one after we move to wherever we end up finding a place to live, or I continue to wait for another year or more until we actually find a new house before I buy an iPad (or maybe a Kindle Fire HDX 8.9"to save money, but I think I've probably settled on an iPad mini retina 7.9" despite its smaller screen). That does not move me along the decision-making process at all, but it is what it is.
    Greatcall has not answered my question about what carrier(s) the Jitterbug Plus phone uses. If, in fact, it uses just the Verizon network, I will try to pay better attention to any possible differences in service areas between that phone and my spouse's iPhone as we travel around the state to see if that helps at all. But coverage is so location specific here that I don't think it will.

  • Difference between Manual Standby and Data Guard Broker..

    hi,
    could any let me know any usefull docs which help to understand the difference between manual dr and data guard broker?
    thanks,

    >
    could any let me know any usefull docs which help to understand the difference between manual dr and data guard broker?
    >
    Without Data Guard Broker:
    http://www.oracle.com/pls/db112/to_toc?pathname=server.112/e17022/toc.htm
    With Data Guard Broker:
    http://www.oracle.com/pls/db112/to_toc?pathname=server.112/e17023/toc.htm
    See especially why you want to use the broker:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17023/concepts.htm#i1013106
    In short: You should have a good reason if you do not use the broker, because it is the officially recommended way to maintain Data Guard. It is even required for some features like Fast-Start Failover.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

Maybe you are looking for