Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to use Types structure in smartform layout

Hi Experts,

i have a requirement in smartforms. i have a z-structure having some fields. those fields

should be in the smartform output when we run the print program. This is working fine.

But i need to add 2 more fields to the existing z-structure. For this, i created a types

structure in the print program and added the 2 new fields and created internal tables from

that structure.

My question is how to pass this types strucure to the smartform layout. i tried to add the

structure in the tables option of the form interface.

I get the error "Form Interface - Only table types may be used as the reference type for a table parameter".

i also tried to declare the types structure. Please advise.



you create structure in se11 and select structure radio button.

In the smart form give like as

Form interface---->tables (tab)

parameter name ---I_FINAL(inernal table)

type assignment---LIKE

Associated type---ZXXXXX (structure name)

For declarations of workarea:

Global definitons----->Global data

Variable name----WA_FINAL

Type assignment---TYPE

Associated type---ZXXXXX

you declared as of above

I hope it will helpful you



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question