cancel
Showing results for 
Search instead for 
Did you mean: 

Table in SMARTFORM interface

Former Member
0 Kudos

Hi experts,

I'm facing this problem and really hope you'll be able to help me !

I'm trying to add an internal table to my smartform interface in order to import datas from the calling program.

The structure of this table is defined in the calling program and not in the DDIC so SAP don't accept the type.

I tried to declare the type of my table under "Global Definition=>Types" :


types  : begin of ty_cmde ,
            bstnk like vbak-vbeln,
            poids like lips-brgew,
            unite like lips-gewei,
            end of ty_cmde.

...but it is still incorrect. Do i have to declare my Type in the DDIC ?

Regards,

--Yohann

Edited by: Yohann Camp on Aug 10, 2010 11:01 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

Well... Yes. You have to create it in DDIC.

Regards

Tamá

Answers (2)

Answers (2)

Former Member
0 Kudos

Ok , so for all the internal tables I want to import in my smartform, I have to create a corresponding structure in the DDIC...

Thank you two for your answers !

Regards,

--Yohann.

Former Member
0 Kudos

Hi..

Please create a structure similar to the one used in the calling program. Now using this structure create a table type.

Use this table type to declare the internal table in the FORM INTERFACE-> TABLES. You can use the structure to declare the work area for this internal table in Global Definitions.

Additionally, it would be better to use the same table type and structure to declare your internal table and work area in your calling program as well in order to avoid any kind of inconsistency.

Regards,

Karthik

Edited by: Karthik S on Aug 10, 2010 2:48 PM