Application Development and Automation 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: 
Read only

Type declarations in smartforms

Former Member
0 Likes
1,177

Hello,

I am making an SMARTFORMS and i have a problem. I have declarated a dictionary structure and, in the importing parameters, I would like to pass a table like this structure. If I declare this parmeter like importing parameter , i have an error when I try to activate it. If I declare this parameter like table parameter, I have other error. How can I declare it?

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
1,062

You can create a  table type of you structure ( based on in se11 )  in the dictionnary than give it as a type for you parameter , so you can give a table as importing parameter

Read only

vikas_mulay2
Participant
0 Likes
1,062

Hi Alberto,

You need to define the type as 'Table Type' as shown in the screen shot by Hicham above.

Then in Form Interface declare it in 'Tables' tab instead of 'Import' tab since it is a Table.

The declaration in 'Table' tab will look like:

IT_TEMP like Z_TABLE_TYPE

Note - You need to define the same paramter in the driver program also from where Smartform is called.

Regards,

Vikas


Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,062

Before posting a question on SCN I'd just look at the standard Smartforms and see how it's done there. E.g. the invoice form LB_BIL_INVOICE is an example of a very complex declaration.

Read only

Florian
SAP Champion
SAP Champion
0 Likes
1,062

Hi Alberto,

there are a lot of examples delivered all are starting with SF_EXAMPLE_

Here is the link:

Introduction - SAP Smart Forms (BC-SRV-SSF) - SAP Library

If you work through that and also through the official help you will get your problem solved.

And you needn't a dictionary table type to pass it to your smartform.

Just thought about to take TYPE TABLE OF in the importing-tab? Just like you do with an internal table in your report...

~Florian


PS: Would be a cool thing if you can work through this blog here



PPS: The correct space for this question is