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: 

smartform global setting -> Tables

Former Member
0 Kudos

Hello,

On the tab page for tables, can i declare only table on reference to structure declare on the dictionnary abap?

to declare a table, can i use data type which is declared on the main program ?

Thanks for your help.

1 ACCEPTED SOLUTION

former_member387317
Active Contributor
0 Kudos

Hi GLT,

The Answer to your question is ...

It's not possible to use directly the declared type which you declared in ur ABAP program as a reference data type while declaring table in Smartforms..

U will have to create either Structure or TABLE type from SE11 as per the fields u are declaring in your program...

And then u can use this Sturcture or TABLE type as a ref type in SMARTFORM...

Or u can use direct ddic datatypes or data element or domain there....

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

6 REPLIES 6

Former Member
0 Kudos

You can use both , ie reference from se11 structure or table or

YYYY type XXXX types declared in the main program.

Thanks,

Karthik

Former Member
0 Kudos

Hi,

You might have heard about "Append Structures" and "Custom Includes".

http://help.sap.com/erp2005_ehp_03/helpdata/EN/cf/21eb61446011d189700000e8322d00/frameset.htm

http://help.sap.com/erp2005_ehp_03/helpdata/EN/cf/21eb61446011d189700000e8322d00/frameset.htm

First build a structure with your program fields. and then you can declare them as "Append Structures" in standard tables.

This is the only way which you can add your program structure.

Regards,

Santosh Kumar M.

Former Member
0 Kudos

When i declare the table type tbl_data.

And the type tbl_data is declared in th main program.

The smartform can't active because the type TBL_data is unkonow.

The type TBL_DATA contains differents fields of diferents tables.

What can i do ?

Thanks for your help.

Former Member
0 Kudos

I want to declare a table on the interface form => SMARTFORM but i don't want to use a type declared on the dictionnary .

former_member217544
Active Contributor
0 Kudos

Hi,

Iam not sure. But I think here we have to use standard types only. Because the parameters present in Global settings are same as the parameters present in function module. They are used as interface to interact with other programs.

Hope thsi will help you.

Regards,

Swarna Munukoti.

former_member387317
Active Contributor
0 Kudos

Hi GLT,

The Answer to your question is ...

It's not possible to use directly the declared type which you declared in ur ABAP program as a reference data type while declaring table in Smartforms..

U will have to create either Structure or TABLE type from SE11 as per the fields u are declaring in your program...

And then u can use this Sturcture or TABLE type as a ref type in SMARTFORM...

Or u can use direct ddic datatypes or data element or domain there....

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7