‎2010 Feb 18 4:05 PM
Hi,
Can some one please help me understand what * stands for in the below code.
I tried F1 help on it but, it didnot give me any answer.
data: begin of marc* occurs 10.
include structure marc.
data: end of marc*.
Thanks.
‎2010 Feb 18 6:34 PM
Hi please be patient.
*MAKT - its just a work area or a table header.
Example:
tables:*makt,makt.
select single * from makt where matnr = 'ABC'.
*makt = makt.
write makt.
skip 1.
write *makt.
Using *makt is obsolete.
‎2010 Feb 18 4:15 PM
In SAP standard programs * is used to hold the previous value, value before change.
I have seen this kind of structures in Sales Order (SAPMV45A) program.
Like: XVBAP holds the latest value, & *XVBAP holds the earlier value.
‎2010 Feb 18 5:00 PM
‎2010 Feb 18 5:06 PM
Hi Vinay,
Please try to avoid above kind of comments. If someone knows the answer, definitely they will respond. You need to wait for the good responces...
As far as i know it is just another declaration name. I can say this as naming convension followed in standard SAP programs. No other difference in functionality.
Thanks,
Vinod.
‎2010 Feb 18 5:09 PM
‎2010 Feb 18 6:34 PM
Hi please be patient.
*MAKT - its just a work area or a table header.
Example:
tables:*makt,makt.
select single * from makt where matnr = 'ABC'.
*makt = makt.
write makt.
skip 1.
write *makt.
Using *makt is obsolete.
‎2010 Feb 18 8:54 PM
I think the question is about an internal table called marc* not a database table work area.
Rob
‎2010 Feb 18 9:56 PM
I think the * before or after a variable is just a method to emphasize a meaning.
Example, a programmer aways declare *var or var* for a work area whether it is internal table work area or db table work area while other may prefer wa_var or w_var. It is simply as that
Regards
Dinh Q.
‎2010 Feb 19 9:43 AM
Hi Vinay,
It is just an internal table or work area declaration. The example of Sales Order program was only to say the specific purpose of its use in that program.
Vinod,
Since this is an open forum, so I just shared the way I found it in SAP standard programs. If you find my understanding to be wrong you are welcome to share your actual findings.
Thanks,
Ipsita
‎2010 Feb 19 11:21 AM