‎2019 Jan 31 10:53 AM
hi,
I want to know that how can i export internal table in smartform. I am calling smartform in my program using ssf_function_module_name.
What i want is i have an internal table in my program which i passed through calling '/1bdcxyz/abcd..' this function module under this smartform form interface i define a internal table "it_tab_sf" and in that internal table all the calculation is done. now i want this "it_tab_sf" table data into my program. how i do this.
if i need to export this table then pls suggest how to export this table.
‎2019 Jan 31 1:06 PM
If this smartform is a custom smartform then you can define your table as a table parameter by clicking the form attributes node in the global settings for the form.
However, you should be using function module SSF_FUNCTION_MODULE_NAME to get the name of the function module to call since that may change from system to system.
Regards
Rich
‎2019 Jan 31 1:06 PM
If this smartform is a custom smartform then you can define your table as a table parameter by clicking the form attributes node in the global settings for the form.
However, you should be using function module SSF_FUNCTION_MODULE_NAME to get the name of the function module to call since that may change from system to system.
Regards
Rich
‎2019 Feb 01 6:05 AM
that means in form interface table tab is used for both import and export parameter.
Is this what you mean to say? I am not familiar with this i am new in sap.
Actually i want that internal table to export from smartform to my driver program.
‎2019 Feb 01 8:47 AM
‎2019 Feb 01 9:03 AM
‎2019 Jan 31 1:26 PM
So you want to fill an internal table in your program and pass it to the smart form, and you have already defined the parameter in the Smart Form interface. In fact, it seems that you are describing the solution ! Could you explain what exact issue you have?
‎2019 Jan 31 1:51 PM
If it_tab_sf referred to custom local table type, then you need to create a table type in SE11 and use to smartform.
‎2019 Feb 01 8:31 AM
Ok, in that case define a table type in the dictionary (SE11->Structure, SAE11->Table Type) and then define that as an exporting parameter on your form interface.
The form interface is already an import/export interface because you get information about the document output, the job created etc etc.
Rich
‎2019 Feb 05 5:29 PM
sandra.rossi thanx for the advice i did as you said and richard.harper thnx i solved my issue. thnx for the help.
‎2019 Feb 05 6:57 PM
Thanks for the feedback. Please mark his answer as Accepted and close the question.