on 11-26-2008 4:21 AM
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
Hi,
Make sure that you declare all the tables and variables in global declarations
and loop that table to the main window.
Regards
Rasheed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.