Skip to Content
avatar image
Former Member

How do i pass itab to smartform!

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    May 02, 2009 at 10:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2009 at 11:23 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2009 at 07:32 AM

    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..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 06:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 08:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 09:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded