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

Difference between *VBDPL and VBDPL

suganya_rangarajan
Participant
0 Likes
963

Hi,

Can anyone tell me what is the difference between the declaration and usage of *vbdpl and vbdpl.

thanks

Suganya

1 REPLY 1
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
684

Hi,

Actually both are same.

Its a syntax generally used with keyword TABLES:

For example see this.

TABLES: VBDPL, * VBDPL.

this creates a strcutre opf type VBDPL and with the name VBDPL, so if you need one more structure you can use like this *VBDPL which creates a strucutre similar to VBDPL.

and you cna use assfollows.

SELECT SINGLE FROM VBDPL WHERE ...

SELECT SINGLE FROM *VBDPL WHERE...

See below documentation from SAP

<b>TABLES *table_wa.</b>

<b>Effect</b>

This statement declares an additional table work area *table_wa, whose data type, like that of normal TABLES statements of flat, structured data type table_wa, is copied from the ABAP Dictionary.

The additional table work area can be used like the normal table work area. This applies in particular to obsolete short forms of Open SQL statements.

<b>Note</b>

The statement TABLES cannot be used in classes. For declaring as many work areas as you want, you can use the addition TYPE to use the data types in the ABAP Dictionary.

<b>Example</b>

Declaration of a normal and additional table work area and its use in obsolete short forms of the SELECT statement.

TABLES: scarr, *scarr.

SELECT SINGLE *

FROM scarr

WHERE carrid = 'LH'.

SELECT SINGLE *

FROM *scarr

WHERE carrid = 'UA'.

Regards,

Sesh