2013 Jan 25 3:45 AM
Hello experts,
I wanna a include a table into each item in VBRP.
TYPES: BEGIN OF ITM_INFO_LN,
...
END OF ITM_INFO_LN.
TYPES ITM_INFO_TAB TYPE STANDARD TABLE OF ITM_INFO_LN.
TYPES BEGIN OF CART_MAT_TYP.
INCLUDE TYPE VBRP.
TYPES T_ITM_INFO TYPE ITM_INFO_TAB OCCURS 0.
TYPES END OF CART_MAT_TYP.
Error Message: ITM_INFO_TAB has a generic type. Use of this type is only possible for typing field symbols and formal parameters.
Best regards,
2013 Jan 25 4:15 AM
For one, I don't think you need the TYPES keyword before "T_ITEM_INFO TYPE ITM_INFO OCCURS 0".
As fas as the error message you are getting, can you post a screenshot of your code and the error?
2013 Jan 25 4:52 AM
2013 Jan 25 5:13 AM
You can see the SAP Help documentation on that - just do an F1 on the keyword. In short, it's an obsolete way to declare internal tables in ABAP. The zero after OCCURS can be a non-zero number giving an indication about the anticipated size of the internal table.
2013 Jan 25 4:36 AM
Hi ts,
That error could be rectified by the following code :
TYPES BEGIN OF CART_MAT_TYP.
INCLUDE TYPE VBRP.
TYPES T_ITM_INFO TYPE ITM_INFO_LN.
TYPES END OF CART_MAT_TYP.
and for the detailed description why the error occurred go through the link below :
http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_GENERIC.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3398358411d1829f0000e829fbfe/content.htm