cancel
Showing results for 
Search instead for 
Did you mean: 

table in smartform

Former Member
0 Kudos

Hi All,

I have to define the table in smartform in form interface.is it necessary to have the structure in se11.Or is there any menthod where i can pass the table staright way in smartform.

Regrads

Lalit

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Alexander and nick,

I define type as

types: begin of t_ekpo,

ebeln type ekpo-ebeln,

ebelp type ekpo-ebelp,

end of t_ekpo.

in print program and in type icon inside the global definition in form.Then i am defining the it_ekko in table icon in form interface and its giving me and error that type t_ekko is unknown.

Regards

Lalit

Former Member
0 Kudos

Hi Lalit,

Looks like my earlier comment wasn't accurate, the sequence of the definition in the smartform means you can't define a type and use it in the form interface.

Looks like you can only define it in SE11.

Regards,

Nick

Former Member
0 Kudos

Hi,

You can't change standard strucure of interface.

Do the following.

In the global definitions

in the types tab define

types: begin of t_ekpo,

ebeln type ekpo-ebeln,

ebelp type ekpo-ebelp,

end of t_ekpo.

types:ty_t_ekpo type standard table of t_ekpo.

.now go to global data tab

here you specify it_ekko type ty_t_ekpo .

you can use this table for ur further processing.

Regards,

sasi

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 5, 2008 12:10 PM

Former Member
0 Kudos

I did the same thing but its giving me an error that this does not exist.

Former Member
0 Kudos

Hi,

You could check that you have activated the structure in SE11 and that you have created the correct type (either a structure or a table type, depending on your requirements).

Are you getting the same error when you use this structure in the smartform and print program?

Regards,

Nick

alex_m
Active Contributor
0 Kudos

The table type should refere the R/3 dictionary type... Whats you error explain me, I will try to answer.

Former Member
0 Kudos

Hi,

Creating the structure in SE11 is the best way to achieve this. You could define a type in both the print program and the smartform, but you have to be certain that are the same and stay the same in future.

Regards,

Nick