Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What does * stand for

Former Member
0 Likes
1,294

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.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,225

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,225

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.

Read only

Former Member
0 Likes
1,225

This message was moderated.

Read only

0 Likes
1,225

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.

Read only

Former Member
0 Likes
1,225

seriously obsolete....

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,226

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.

Read only

Former Member
0 Likes
1,225

I think the question is about an internal table called marc* not a database table work area.

Rob

Read only

0 Likes
1,225

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.

Read only

Former Member
0 Likes
1,225

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

Read only

matt
Active Contributor
0 Likes
1,225

Ipsite De - Vinod wasn't replying to you.

matt