‎2007 Apr 02 3:43 AM
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
‎2007 Apr 02 4:06 AM
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
‎2007 Apr 02 4:06 AM
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