2014 Feb 17 12:49 PM
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.
2014 Feb 17 1:20 PM
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
2014 Feb 17 1:29 PM
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.
2014 Feb 18 6:02 AM
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