2005 Aug 02 2:58 AM
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, " Kontierungsblockusaly, 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.
2005 Aug 02 3:35 AM
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.
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.
2005 Aug 02 3:35 AM
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.
2005 Aug 02 4:39 AM
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.
2005 Aug 02 4:49 AM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |