cancel
Showing results for 
Search instead for 
Did you mean: 

How do i pass itab to smartform!

Former Member
0 Kudos

Dear Experts !

Could anyone let me know how do i pass an itab from a print program to a smartform , without creating alike table in the data dictionary.

regards,

Mirza

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

It is necessary to create a structure for interfacing between smartform and abap program.

Without the cann't interface abap program and smartform.

Table or structure is necessary for interfacing . Normally we prefer Structure.

Regards,

Himanshu

Former Member
0 Kudos

Hi

From me the same answer as from the others.

-create a structure (table) in SE 11.

-define this in your smartform (and in the interface parameters)

-use this in the call to your smartform in the print program.

Success.

Gr., Frank

Former Member
0 Kudos

Hi Mirza,

First, create the structure in se11 of your internal table.

Second, from the calling program, pass the internal table in your calling function. Ex:


CALL FUNCTION v_fm_name
     EXPORTING
          control_parameters = i_control_parm
          output_options = i_output_opt
          user_settings = space
     IMPORTING
          job_output_info = wa_return
     TABLES
          p2p = i_p2p_final
     EXCEPTIONS
          formatting_error = 1
          internal_error = 2
          send_error = 3
          user_canceled = 4
          others = 5.

Lastly, declare your internal table in the global settings in your form.

Regards,

Mawi

Former Member
0 Kudos

Hi,

It is not needed to create a data base table in Se11. Just a create Structure in DDIC and same like that internal table in Print program and Samrtform Form in Form Interface table Tab . Then pass the same internal table to Smartform Function module as exporting parameter from print program..

Former Member
0 Kudos

Hi Mirza,

U need not to create table but have to create structure in dictionay.

U have to pass internal table data through these structure to form.

Define internal table in form using the structure created in the form interface tab.

Former Member
0 Kudos

Hi,

You cann't pass int table from driver prog to SF without creating Z table like that int table.

Better way is that what ever u r coding in driver prog ,code it in smartform itself under initialization tab or under program lines node.

Regards