Application Development 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: 

Creation of a Table control with the wizard

Former Member
0 Kudos

Hi all,

I'd like to add a table control to my dynpro with the wizard.

I want to use an internal table and a work area from my program but I get the following error :

"The table work area WA_FID does not exist or is not a structure".

here is my data definition:

types: begin of fid_line,
  dokar type draw-dokar,
  doknr type draw-doknr,
  doktl type draw-doktl,
  dokvr type draw-dokvr,
  dktxt type drat-dktxt,
  dokst type draw-dokst,
end of fid_line.

data : it_fid type table of fid_line,
        wa_fid type fid_line.

I also tried using field symbol as work area.

I thought it was possible to create a table control from a user internal table.

Did someone see the problem ?

Thanks

Sylvain V.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I've experimented with this also.

My best recommendation is to not do it.

Create a structure in SE11 and just use that. I don't know if the definition of fields in your internal table are meant to be dynamic (fields added to the table during exectution). But, if they are not, the best thing to do is use SE11 to create a structure.

3 REPLIES 3

Former Member
0 Kudos

I've experimented with this also.

My best recommendation is to not do it.

Create a structure in SE11 and just use that. I don't know if the definition of fields in your internal table are meant to be dynamic (fields added to the table during exectution). But, if they are not, the best thing to do is use SE11 to create a structure.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check the below link.

In this, I am not using wizard,but manually creating table control and I am not using user defined types.I don't think it is possible to use user-defined internal table in wizard.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/table control in abap.pdf

0 Kudos

Hi,

I tried to declare my structure with se11 and now it works fine.

Jayanthi, I will read your document to carry on implementing my table control.

Thanks for your quick and helpful answers

Regards,

Sylvain