Application Development 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: 

*vbak??

Former Member
0 Kudos
214

Hi~~ let me ask you something.

Sometimes, I can see the code like this.

TABLES: VBAP, *VBAP,
        VBAPD, *VBAPD,
        VBPV,                          " Produktvorschlag
        CABN,                          " Merkmale
        CABNT,                       " Merkmalsbezeichnung
        CEPCT,                         " Profitcenter-Text
        *COBL, COBL,                   " Kontierungsblock

usaly, in user-exit,

What is ths *vbap? what's the use of *? in this satement~

please explain to me and thanks in advance.

Best Regards

Kyung Woo.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
69

Hi, as I know, you can seem the *VBAP as another work area same to TABLES: VBAP.

After defined them,

TABLES: VBAP, *VBAP.

you can use *VBAP just like the way you use VBAP.

You can reference some standard application of SAP, like SAPMV45A.

Hope it will be helpful.

3 REPLIES 3

Former Member
0 Kudos
70

Hi, as I know, you can seem the *VBAP as another work area same to TABLES: VBAP.

After defined them,

TABLES: VBAP, *VBAP.

you can use *VBAP just like the way you use VBAP.

You can reference some standard application of SAP, like SAPMV45A.

Hope it will be helpful.

Former Member
0 Kudos
69

What zhenglin said is right.

SAP standard code uses a lot of variables to store current data, old data, etc. So u will mostly see vbap and *vbap.

It is as good as vbap and vbap1.

Remember to reward points to the answer(s) that helped you.

Former Member
0 Kudos
69

Hello Kyung Woo,

This is one of the undocumented ways of data declarations. As I had mentioned in , the * notation is used to contain the temporary values for a table work area.

This need not be limited to the Standard SAP Code. In your programs you would very often declare temporary work areas like -

tables vbak.
.
.
data lt_vbak like table of vbak.
data ls_vbak like line  of vbak.
.
.
.
data ls_temp_vbak like vbak.
.

It might be a good idea to have <b>*vbak</b> instead of <i>ls_temp_vbak</i>. That of course depends on the naming conventions you would want to follow for all your custom developments. It is just a convenient and more readable way of declaring the temporary structure.

Regards,

Anand Mandalika.