‎2014 Apr 21 3:58 PM
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.
‎2014 Apr 21 4:09 PM
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
‎2014 Apr 21 4:24 PM
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
‎2014 Apr 21 6:15 PM
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.
‎2014 Apr 21 9:34 PM
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