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

Question on work area

Former Member
0 Likes
559

Hi All,

I found this internal table during debugging of sales order *xvbap. I'd like to know what the * means? Also, there are internal tables xvbap and yvbap. What is the main difference?

Thanks,

Jim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
460

Hi,

*VBAP is nothing but the work area. See following statements. They all create work area.

TABLES: VBAP. "Creat work area VBAP
TABLES: *VBAP.  "Create work area *VBAP

DATA: ws_vbap LIKE vbap.     "Create work area WA_VBAP.

XVBAP and YVBAP are intertabl tables of structure type VBAPVB.

XVBAP - holds current VBAP data

YVBAP - old VBAP data when changing.

More information regarding XVBAP, YVBAP.

When sales document is being created, YVBAP is blank and XVBAP contains sales document line item data.

When sales document is being changed, YVBAP contains the original sales document line item data (before change ) while XVBAP contains changed sales document line item data.

For, example if material on line item 10 is 'MAT1' and you changed it to 'MAT2', YVBAP-MATNR contains 'MAT1' while XVBAP-MATNR contains 'MAT2'.

Let me know if you need any other information.

Regards,

RS

1 REPLY 1
Read only

Former Member
0 Likes
461

Hi,

*VBAP is nothing but the work area. See following statements. They all create work area.

TABLES: VBAP. "Creat work area VBAP
TABLES: *VBAP.  "Create work area *VBAP

DATA: ws_vbap LIKE vbap.     "Create work area WA_VBAP.

XVBAP and YVBAP are intertabl tables of structure type VBAPVB.

XVBAP - holds current VBAP data

YVBAP - old VBAP data when changing.

More information regarding XVBAP, YVBAP.

When sales document is being created, YVBAP is blank and XVBAP contains sales document line item data.

When sales document is being changed, YVBAP contains the original sales document line item data (before change ) while XVBAP contains changed sales document line item data.

For, example if material on line item 10 is 'MAT1' and you changed it to 'MAT2', YVBAP-MATNR contains 'MAT1' while XVBAP-MATNR contains 'MAT2'.

Let me know if you need any other information.

Regards,

RS