2010 Sep 08 9:32 AM
Hello Experts,
I declared waerk as a field in my custom table with data type as waerk. And i am using the same table in my program for the declaration of an internal table. I used the internal table in my further coding. The program is getting activated but when i check the syntax error, the programs is giving the below error message.
The declaration for the key field "WAERK" is incomplete. However, 'WAERK' is contained in the key of table "GT_ARAH" and must be filled.
If any one has faced this kind of issue, Please let me know how to fix this.
Thank you,
Viswanath A.
2010 Sep 08 1:19 PM
Hi,
When you use read statement for standard table "with table key" you have to provide the entry to all the fields to read. However for the sorted and hashed table, you can provide the key fields "with table key" to read the values.
Sujay
Hello Experts,
I declared waerk as a field in my custom table with data type as waerk. And i am using the same table in my program for the declaration of an internal table. I used the internal table in my further coding. The program is getting activated but when i check the syntax error, the programs is giving the below error message.
The declaration for the key field "WAERK" is incomplete. However, 'WAERK' is contained in the key of table "GT_ARAH" and must be filled.
If any one has faced this kind of issue, Please let me know how to fix this.
Thank you,
Viswanath A.
2010 Sep 08 11:08 AM
Hi Viswanath,
Can you give more details? How have you declared in the program. What is that GT_ARAH?
Sujay
2010 Sep 08 11:09 AM
Hi,
Find in your report something in 'KEY WAERK..." then delete the KEY word.
regards
2010 Sep 08 11:13 AM
The issue seems to be Ok now. That erros is not occuring now.
I removed the 'table' from the read statement.
REPLACED
READ TABLE gt_arah TRANSPORTING NO FIELDS
WITH TABLE KEY mandt = lv_arah-mandt
kunnr = lv_arah-kunnr
spmon = lv_arah-spmon.
WITH
READ TABLE gt_arah TRANSPORTING NO FIELDS
WITH KEY mandt = lv_arah-mandt
kunnr = lv_arah-kunnr
spmon = lv_arah-spmon.
2010 Sep 08 1:19 PM
Hi,
When you use read statement for standard table "with table key" you have to provide the entry to all the fields to read. However for the sorted and hashed table, you can provide the key fields "with table key" to read the values.
Sujay
2010 Sep 14 9:15 AM
2010 Sep 14 9:34 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |