on 03-27-2007 4:26 PM
how to pass the table in script?
how to pass the table in smart form?
Hi sunil,
<b>In script</b>
First populate itab in driver program.
use &itab-field1& in form where ever we want. here in scripts there is no need to transport from driver to form.
<b>In smartform.</b>
first declare itab in tables parameter of form interface. and then use that FM generated by smart form in the driver program . in driver program assign our populated table itab_driver to form itab.example is as below.
call function '/1BCDWB/SF00000279'
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'
W_NETWR = W_NETWR
* IMPORTING
* DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO
* JOB_OUTPUT_INFO = JOB_OUTPUT_INFO
* JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
TABLES
ITAB = ITAB_DRIVER
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
plz reward points if helpful
thanks,
suma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.