on 2017 May 03 9:50 AM
I am trying to pass an internal table to a SmartForm and show it's contents, but I am getting the error in the title.
I declared the table in the Smartfom in the Form Interface==>Tables like this
I_DRAD LIKE DRAD
In the calling program I created a type like this
BEGIN OF gts_drad,
doknr TYPE doknr,
dokvr TYPE dokvr,
END OF gts_drad,
and an internal table like so
git_drad TYPE STANDARD TABLE OF gts_drad.
and fill it
SELECT doknr dokvr FROM drad INTO TABLE git_drad WHERE dokob = 'MARA' AND objky = gwa_qals-matnr.
after that I call the smartform but it dumps
CALL FUNCTION gv_fname
EXPORTING
control_parameters = gwa_control
output_options = gwa_output
user_settings = gc_space
i_qals = gwa_qals
i_sernr = gv_sernr
i_name1 = gv_name1
IMPORTING
job_output_info = gwa_job_output
job_output_options = gwa_job_options
TABLES
i_qase = git_qase
i_coplpo = git_plpo
i_qamr = git_qamr
i_drad = git_drad
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Hi!
Please see, that you declared table type DRAD in your interface and trying to put table with only three fields from the DRAD, so you should declare your table with the same structure as in the form interface to avoid this error
Evgeny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.