cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Difference b/w MSEG and *MSEG

Former Member
0 Kudos
589

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

Lakshmi,

Can you please take some time to go thru your inactive posts and close them if they are answered.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello guys , one of confusion in answer that, if we are going with this way

Tables : MSEG,*MSEG .

Then it will be affected for your program because we r using here select * mesg .

So you guys please sort out my confusion.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

In this following statement...

TABLES: MSEG,

*MSEG.

These are two different work areas of the same structure(MSEG). So you can do two select statement into each one of these work areas.

Select * from mseg where ...

and

Select * from *mseg where ...

now MSEG and *MSEG can be accessed and could have two totally different records.

Just remember that saying

 Tables: MSEG, *MSEG.

is just like saying...

Data: wa_mseg1 type mseg,
      wa_mseg2 type mseg.

Make sense?

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please award points for helpful answers and close if answered completely, Thanks.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

*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