cancel
Showing results for 
Search instead for 
Did you mean: 

Is thr any way 2 avoid Structure&Table type creations for Smartform dev?

Former Member
0 Kudos

Hi All

Is thr any way 2 avoid Structure & Table type creations (for passing the internal table data thru interface) Smartform dev?

Any suggestions will be appreciated...

Thanks & Regards

Moni

Message was edited by:

ABAP Techie

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

If it is for passing values throught the interface, you can define a type in a type-pool in the dictionary and use that type to pass the values through the interface.

Regards,

Manoj

marius_greeff
Active Participant
0 Kudos

Hi,

The ugly way is to use export to memory and then importing it in the initilization part of the form.

The type Pool may be your best solution.

Regards,

Marius

Former Member
0 Kudos

Hi Manoj..

Wonderful idea !!!!! but how do i create type pool in se11 please guide me ....

Thanks a ton.

Jaman

Former Member
0 Kudos

Hello,

Goto tranaction SE11, select the option Type Group, enter a name for the type group in Y or Z namespace and create. Enter a short description and click on Save. In the editor, type the code for your structure and activate. Now you can use the structure anywhere you want it.

Regards,

Manoj

Former Member
0 Kudos

but i dont see any type group option in SE11 !!!! i am in 4.6 c version ...Pleas guide ...

I can only see these options ...

1)Database table

2)view

3)Data type (structure , table type, data element)

4)Domain

5)search help

6)lock objects

Message was edited by:

ABAP Techie

Former Member
0 Kudos

I am sorry... It is Type Group, not Type Pool in SE11

Former Member
0 Kudos

but i dont see any type group option in SE11 !!!! i am in 4.6 c version ...Pleas guide ...

I can only see these options ...

1)Database table

2)view

3)Data type (structure , table type, data element)

4)Domain

5)search help

6)lock objects

Former Member
0 Kudos

In transaction SE11, goto Utilities -> Other Dictionary Objects and see if you have the Type Group option there. If not goto transaction SE38, create a report and type in TYPE-POOLS: and a type pool name, double-click on that and create the type group and type in the structure definition there.

Hope this helps.

Manoj

Former Member
0 Kudos

thanks a ton ....you are too cool indeed....

Former Member
0 Kudos

Dear Manoj

I have created one structure called ZPLST.

Then i created type group ZPWL in SE11 as follows

TYPE-POOL ZPWL .

TYPES BEGIN OF ZPWL_TITAB.

INCLUDE STRUCTURE ZPLST.

TYPES END OF ZPWL_TITAB.

TYPES: ZPWL_PACK TYPE STANDARD TABLE OF ZPWL_TITAB .

But when refering this ZPWL or ZPWL_PACK in Smartofrm interface it throws that

ZPWL or ZPWL_PACK unknown ....

How to achieve this without creating a Table-type ?

Message was edited by:

ABAP Techie

Former Member
0 Kudos

You can use the table type ZPWL_PACK directly in the smart form. You dont need /ZPWL/ZPWL_PACK.

Manoj

Former Member
0 Kudos

Hi Manoj

I have declared

ITAB TYPE ZPWL_PACK under Import in form interface but still throws error

type ZPWL_PACK is unknown ...

ITAB TYPE ZPWL ...even throws ZPWL unknown ....help please !!!!

Note : My type-group is also activated without error.

Thanks

Jaman

Message was edited by:

ABAP Techie

Former Member
0 Kudos

Just mention TYPE-POOLS: ZPWL in the Types tab under Global definitions in the smart form. Hope this helps.

Manoj

Former Member
0 Kudos

Under Types tab it says : Statement not allowed in context2....as we r trying to redefine the already define type ZPWL again.....

Under Intialization tab ....it doesnt throw any error

TYPE-POOLS: ZPWL.

DATA: ITAB TYPE ZPWL_PACK.

but it deosnt solve my purpose as it continues to throw interface error ....

Under Table tab of Form interface ....only Table Types are allowed absolutely nothing else ....

Message was edited by:

ABAP Techie

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In From Interface->parameters,

just try

zpwl type zpwl

Former Member
0 Kudos

Jayanthi

I tried ZPWL TYPE ZPWL but still throws ZPWL unknown !!!!!!!!!

Any other clues please ......

Thanks

Jaman

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

I used to handle this situation by creating a structure in SE11 and then pass the tabel parameter from program to smartform.Since we use to refer

type-pools zpwl.

I don't think we can do so in smartform->forminterface.

Anyway, you try

<b>itab like /ZPWL/ZPWL_PACK in form interace->Table</b>

or

itab like ZPWL_PACK in form interface->table

Former Member
0 Kudos

None of these work ....

itab like /ZPWL/ZPWL_PACK in form interace->Table

or

itab like ZPWL_PACK in form interface->table

throws /ZPWL/ZPWL_PACK and ZPWL_PACK both unknown ...

Answers (1)

Answers (1)

Former Member
0 Kudos

hi If you don't want to pass the structures and table to smartforms whn u r calling the Form.. then you can go for other way.. it is retrieve the data in the Smart form layout..

u can write the code in the Global Defination-->initialization.Tab.

you can declate variables in Global Definations-->Global data TAB...

<b>Please Close this thread.. when u r problem ise solved</b>

Reward if Helpful

Regards

Naresh Reddy K