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

*vBAP

Former Member
0 Likes
1,635

as i was debugging one of the code.. i found a stmt as follows..

if *vbap ne vbap.

endif.

what does this *vbap here means....

thankx in adv,,,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
967

Hi naveena,

1. This is actually a facility provided in abap syntax.

2. It is usually checked while saving a record.

3. For eg.

If we have one variable

EKKO

and another *EKKO

(They both are same only, with same structure)

(but two different variables)

4. The functional meaning, for usage purpose,

of *EKKO is OLDEKKO.

5. While saving the transaction,

the data is saved only if there is any change

in the values.

IF EKKO <> *EKKO.

*--- SAVE

ELSE.

MESSAGE 'NO DATA CHANGED'

ENDIF.

6. We can aswell use any other variale

eg. oldekko

oekko

myekko

etc,

7. But for business meaning,

R/3 has the facility for *

*----


1. we can use almost everywhere.

2. just copy paste

report abc.

*----


TABLES : T001.

TABLES : *T001.

DATA : ITAB LIKE EKKO.

DATA : *ITAB LIKE EKKO.

DATA : NUM TYPE I.

DATA : *NUM TYPE I.

regards,

amit m.

2 REPLIES 2
Read only

former_member404244
Active Contributor
0 Likes
967

Hi,

*vbap is replica of vbap.

reward if helpful.

Regards,

Nagaraj

Read only

Former Member
0 Likes
968

Hi naveena,

1. This is actually a facility provided in abap syntax.

2. It is usually checked while saving a record.

3. For eg.

If we have one variable

EKKO

and another *EKKO

(They both are same only, with same structure)

(but two different variables)

4. The functional meaning, for usage purpose,

of *EKKO is OLDEKKO.

5. While saving the transaction,

the data is saved only if there is any change

in the values.

IF EKKO <> *EKKO.

*--- SAVE

ELSE.

MESSAGE 'NO DATA CHANGED'

ENDIF.

6. We can aswell use any other variale

eg. oldekko

oekko

myekko

etc,

7. But for business meaning,

R/3 has the facility for *

*----


1. we can use almost everywhere.

2. just copy paste

report abc.

*----


TABLES : T001.

TABLES : *T001.

DATA : ITAB LIKE EKKO.

DATA : *ITAB LIKE EKKO.

DATA : NUM TYPE I.

DATA : *NUM TYPE I.

regards,

amit m.