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

Issue with WAERK field

Former Member
0 Likes
1,696

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,525

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,525

Hi Viswanath,

Can you give more details? How have you declared in the program. What is that GT_ARAH?

Sujay

Read only

Former Member
0 Likes
1,525

Hi,

Find in your report something in 'KEY WAERK..." then delete the KEY word.

regards

Read only

0 Likes
1,525

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.

Read only

Former Member
0 Likes
1,526

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

Read only

Former Member
0 Likes
1,525

Check your custom table is active or not

Read only

Former Member
0 Likes
1,525

The issue is solved by changing the read statement