Skip to Content
author's profile photo Former Member
Former Member

Difference b/w MSEG and *MSEG

Hi,

Can any one tell me whats the difference between mseg and *mseg.

I am trying to add few more fields in goods issue form WASCHEIN like KOSTL and SAKTO but i am not getting the values and i am not even able to debug the form. Can any one suggest on this.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Oct 05, 2005 at 06:40 PM

    *mseg is just another way(old way) of declaring a work area. That's it.

    When you see....

    Tables: *MSEG.

    You could also see this as....

    Data: MSEG type mseg.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2005 at 06:42 PM

    Lakshmi,

    I am not sure about the form, but as far as the tables are concerned *MSEG is something internally used by SAP. I would suggest you go with MSEG.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2005 at 08:46 PM

    Lakshmi,

    If you want to have different records from the same table in work areas at the same time for some req. then you will follow this notation.

    for example.

    tables: mseg, *mseg.

    select * from mseg (into mseg) where key1 = xxx

    and

    select * from mseg (into *mseg) where key2 = yyy.

    The two work areas hold different records at the same time from the same db table.

    But it is obsolete now.

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2005 at 10:19 PM

    Hi Lakshmi,

    Their is no difference between the two tables - MSEG and *MSEG and they contain the same data and by using such type of declaration for wa, one of MSEG and another iof *MSEG we get the different records in single shot.

    Sriram.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 12:18 AM

    Additionally there is a seeting "*Entry" in screen painter . See F1 help on this

    <b>A field name preceded by a * can be entered for an identical Dictionary reference.

    Since field texts and templates with identical names must be located in the same loop, you cannot have a template in the loop and a field text as the column heading outside the loop. Here, you should use a field with the same name preceded by a * as the column heading. You can get texts and documentation using the same reference to the ABAP/4 Dictionary.

    If you specify a field name defined in the ABAP/4 Dictionary, you have to specify whether you want to create a link to the Dictionary. If so, the system copies all the attributes as far as possible. Otherwise, it treats the field as if it were not a Dictionary field.</b>

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.