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

deep table

Former Member
0 Likes
672

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,

4 REPLIES 4
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
622

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?

Read only

Former Member
0 Likes
622

Hello Kumar Akshat,

What does 'OCCURS 0' mean?

Regards,

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
622

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.

Read only

Former Member
0 Likes
622

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