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

Coding in deep structure

Former Member
0 Likes
522

Hi All,

I need fetch Invoice deep table of t_header.

I declared as followes:

data:         t_Invoice TYPE TABLE OF T_HEADER-CURR_ITEMS-INVOICE.

However i got error as followes:"T_HEADER is unknown"

I will be thankful for kind guidance.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
495

Hi,

T_HEADER seems to be no valid type. Types have to be declared either in DDIC or in your program using keyword TYPES.

Please check the following:

data:         t_Invoice LIKE TABLE OF T_HEADER-CURR_ITEMS-INVOICE.

This is valid for data declared with DATA.

Regards,

Klaus

Read only

Former Member
0 Likes
495

Tried :

Data: DATA: t_header TYPE zgd_fi_t_pdf_cust_header WITH HEADER LINE.

data:         t_Invoice LIKE TABLE OF T_HEADER-CURR_ITEMS-INVOICE.


goterror message

"T_HEADER-CURR_ITEMS" is a table without a header line and therefore

has no component called "INVOICE".

Kindly help.

Read only

0 Likes
495

Hi,

this message means, that  T_HEADER-CURR_ITEMS-INVOICE is no table, but  T_HEADER-CURR_ITEMS is a table.

If INVOICE is a valid field of this table,

data:         t_Invoice LIKE T_HEADER-CURR_ITEMS-INVOICE.


might be the right line to define a single field. If you are using prefix "t_" for tables only, you can use

data:         Invoice LIKE T_HEADER-CURR_ITEMS-INVOICE.

for that.

Regards,

Klaus