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

Error in Include....Pls Suggest

Former Member
0 Likes
724

Hello Experts,

I am designing one application. In that application in top include I am declaring one Database table as TABLES ZABC.

I am also desiging selection screen blocks using fields of Table ZABC.

But while activating the TOP include I am getting the message as "ZABC must be a flat structure. You cannot use internal table, strings, references or structures as components."

Can anybody will suggest me what is the root cause & how to resolve it?

Thanks,

Neha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
702

Hi Neha,

Please post the data declaration part here.

I believe you might have done some mistake in defining the internal table or Defining the Selection-screen.

Regards

Abhii

5 REPLIES 5
Read only

Former Member
0 Likes
703

Hi Neha,

Please post the data declaration part here.

I believe you might have done some mistake in defining the internal table or Defining the Selection-screen.

Regards

Abhii

Read only

0 Likes
702

Hi Abhii,

I had declared as mentioned below.

TABLES: ZABC.

SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: S_F1 FOR ZABC-F1 NO-EXTENSION NO INTERVALS,

S_F2 FOR ZABC-F2 NO-EXTENSION NO INTERVALS,

S_F3 FOR ZABC-F3 NO-EXTENSION NO INTERVALS,

SELECTION-SCREEN: END OF BLOCK B1.

I am really surprised to get the error as mentioned earlier.

Regards,

Neha

Read only

0 Likes
702

Hi Neha,

Everything looks okay to me.

Just do some more checks, Have you defined the TABLES declaration in another include & Selection screen in another.

Also check if table ZABC is activated in Data Dictionary.

Also when error is displayed just double click on error & see where in the program the the control points.

Regards

Abhii

Read only

0 Likes
702

Your table may consist of string components. Thats why this error is appearing.

Instead of declaring as a table declare with DATA as below.

* TABLES: ZABC. " Comment it

DATA: ty_so_zabc TYPE zabc.

SELECT-OPTIONS: s1 FOR ty_so_zabc-f1.
SELECT-OPTIONS: s2 FOR ty_so_zabc-f2.
SELECT-OPTIONS: s3 FOR ty_so_zabc-f3.

Read only

0 Likes
702

Hello Experts,

Thanks for your reply. I am not sure why I am getting error. But while following Asik's approch, I am able to declare selection screen.

Regards,

Neha