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

Smartforms - Displaying internal table

Former Member
0 Likes
600

How to display the contents of the internal table in a smartform whose structure is not defined in the ABAP Dictionary.

Points guaranteed.

5 REPLIES 5
Read only

Former Member
0 Likes
530

hi

Even i got the same problem. I think we should use Field Symbols for doing this or using DATA reference.

Hello Abapers if any one have solution for this question plz post it.

regards

kishore

Read only

FredericGirod
Active Contributor
0 Likes
530

Hi,

describe the table has type any.

describe an internal table with the good structure in the smartforms, and copy the type any to the describe into the smartforms.

Or you can pass the info with a table containing only characters.

Rgd

Frédéric

Read only

0 Likes
530

Hi Frédéric Girod,

My internal table has the follwing structure,

DATA: BEGIN OF itab,

VKORG LIKE VBAK-VKORG,

VTWEG LIKE VBAK-VTWEG,

POSNR LIKE VBAP-POSNR,

MATNR LIKE VBAP-MATNR.

END OF itab.

I am not clear on your answer. Can you please tell me the procedure for displaying it in smartform.

Thanks in advance.

Read only

0 Likes
530

If I have right understand your problem, you have this internal table in your program. And you would like to export it into the smartforms and display the content ?

so, the most simple, is to describe a structure like this internal table.

In your smartforms, set a table with the structure that you just create.

use the function module to send the table into the smartforms (the function module generate by the smartforms)

and in the smartforms, create a table, loop into this table into a structure (describe in the global variable, a structure like the structure you have create into the dictionnary).

...

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
530

Hi,

If it is not passed through program,you can declare the types in Global Definitions->Types as follows.

types : begin of ty,

matnr type mara-matnr,

end of ty.

In Global Definitions->Global Data,declare internal table and work area as follows.

itab type standard table of ty

wa type ty

Then in program logic,you can use itab and wa.

But if you are passing the internal table thro' program,as far I know,you need to define satructure in SE11 for it.

KIndly reward points by clicking the star on the left of reply,if it helps.