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

smartform Export internal table

amysh95
Participant
0 Likes
1,994

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.

1 ACCEPTED SOLUTION
Read only

Former Member
1,691

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

9 REPLIES 9
Read only

Former Member
1,692

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

Read only

0 Likes
1,691

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.

Read only

0 Likes
1,691
aman sharma Why calculating things in the smart form? I advise you to transfer the smart form logic to your driver program as far as possible. It will help you a lot if you have to move to other technologies like Adobe forms.
Read only

0 Likes
1,691

Good point

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,691

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?

Read only

srikanthnalluri
Active Participant
0 Likes
1,691

If it_tab_sf referred to custom local table type, then you need to create a table type in SE11 and use to smartform.

Read only

Former Member
1,691

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

Read only

amysh95
Participant
0 Likes
1,691

sandra.rossi thanx for the advice i did as you said and richard.harper thnx i solved my issue. thnx for the help.

Read only

0 Likes
1,691

Thanks for the feedback. Please mark his answer as Accepted and close the question.