cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Passing Table to Smartform

Former Member
0 Kudos

hi all,

I got data in final Internal Table in Print Program. That Internal Table I am passing to Smartform. I Declared in Form Interface with structure type as Internal Table fields.

Now How Can I dispaly the data in Smartform .

When i am trying to pass the data to another internal table (for displaying Purpose) it is giving the error message like gt_final is not existing(form interface internal table)

Please suggest.

Thanx & Regards

Rami

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Make sure that you declare all the tables and variables in global declarations

and loop that table to the main window.

Regards

Rasheed

Former Member
0 Kudos

First do in your print program as usha suggested.

In your smartform please create a table or a loop. on before hand in form interface give your itab name type some standard table/structure/ztable. check both pas by value and other option provided.

Then in a loop/ table which u have created pass yout itab assigning to wa_itab.

Then give your respective wa_itab fields under this loop or table.

In global definitions create a wa_itab type field name.

Hope this is helpful to you!

Former Member
0 Kudos

Hi,

U r having internal table in print program and Smartform.when u call the function module

Eg:

CALL FUNCTION '/1BCDWB/SF00000255'

  • EXPORTING

  • ARCHIVE_INDEX = ARCHIVE_INDEX

  • ARCHIVE_INDEX_TAB = ARCHIVE_INDEX_TAB

  • ARCHIVE_PARAMETERS = ARCHIVE_PARAMETERS

  • CONTROL_PARAMETERS = CONTROL_PARAMETERS

  • MAIL_APPL_OBJ = MAIL_APPL_OBJ

  • MAIL_RECIPIENT = MAIL_RECIPIENT

  • MAIL_SENDER = MAIL_SENDER

  • OUTPUT_OPTIONS = OUTPUT_OPTIONS

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO

  • JOB_OUTPUT_INFO = JOB_OUTPUT_INFO

  • JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS

TABLES

im_t_vbrk (this is u r final table in smartform) = itab(this is u r final table in Print program)

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

.

then u can get all the data in im_t_vbrk(itab data)

then loop im_t_vbrk in smartform and display the variables.

former_member181995
Active Contributor
0 Kudos

Please search before posting.:

[passing table to smartform|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=passingtableto+smartform&adv=false&sortby=cm_rnd_rankvalue]