‎2006 Jul 06 1:23 PM
hi frnds .. when i am execting my drvr progrm .. i am geting a error as
A type conflict occurred when structure parameters were passed in .. can anybody tell me wat to do now ..
actualy i have declared a intrnl table t_bseg . and passing this bseg to my smartform as ...
CALL FUNCTION l_rs38l_fnam
EXPORTING
company_code = s_bukrs
doc_no = s_belnr
fiscal_year = s_gjahr
posting_dt = w_budat
doc_dt = w_bldat
posted_by = w_usnam
currency = w_waers
posting_prd = w_monat
parked_by = w_ppnam
refrence_fld = w_xblnr
description = w_butxt
TABLES
i_t_bseg = t_bseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
i_t_bseg i have declared it in the smartform as my customized structure similar to the structure of t_bseg
can anybody help me with this
thanking you
rohit gupta
‎2006 Jul 06 1:28 PM
Hi rohit,
1. Smartforms FM
need TABLE Types.
(and not table and structures)
2. The data needs to be passed In EXPORTING
(and not TABLES)
regards,
amit m.
‎2006 Jul 06 1:35 PM
hii mr amit .
i am dong this now but it is still giving error of function call
CALL FUNCTION l_rs38l_fnam
EXPORTING
company_code = s_bukrs
doc_no = s_belnr
fiscal_year = s_gjahr
posting_dt = w_budat
doc_dt = w_bldat
posted_by = w_usnam
currency = w_waers
posting_prd = w_monat
parked_by = w_ppnam
refrence_fld = w_xblnr
description = w_butxt
i_t_bseg = t_bseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
‎2006 Jul 06 2:09 PM
Hi,
Pass the t_bseg in table parameters as
CALL FUNCTION l_rs38l_fnam
EXPORTING
company_code = s_bukrs
doc_no = s_belnr
fiscal_year = s_gjahr
posting_dt = w_budat
doc_dt = w_bldat
posted_by = w_usnam
currency = w_waers
posting_prd = w_monat
parked_by = w_ppnam
refrence_fld = w_xblnr
description = w_butxt
TABLES
<b>i_t_bseg = t_bseg[]</b>
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
Thanks,
Rashmi.
‎2006 Jul 06 2:24 PM
For the smartform interface parameters I believe that you have to use structures that are defined in the data dictionary. You can create your customized structure through SE11 or you will have to use the standard BSEG table structure.
‎2006 Jul 06 2:25 PM
Hi Rohit,
What kind of error is coming now...? Can you specify the exact error that is coming..? Then perhaps we can help you out...
Can you tell us whether the internal table has header line...? Then you should use [] after the t_bseg in the function module ...
Tables
i_t_bseg = t_bseg[]
In the smartform , how did you specify your table ...? Can you specify the way in which you wrote in the Tables section..
<b>Is your problem solved</b>....?
If so please close the thread...
Regards,
SP.
Message was edited by: Sylendra Prasad
‎2006 Jul 06 3:57 PM
hi
good
as you have said that your customized structure is same as the structure that you have declare in your smartforms.
if
company_code = s_bukrs
doc_no = s_belnr
fiscal_year = s_gjahr
posting_dt = w_budat
doc_dt = w_bldat
posted_by = w_usnam
currency = w_waers
posting_prd = w_monat
parked_by = w_ppnam
refrence_fld = w_xblnr
description = w_butxt
are the fields you have declare in the structure than check in the smartform global declaration that wheather each and every data is passing there appropriately or not and check with the conditions there, means you have used type and like properly or not.
thanks
mrutyun
‎2006 Jul 06 4:10 PM
hi rohit,
try to declare your internal table in this way in driver program and send it to tables itself.
data: t_bseg type standard table of YOUR COUSTMIZED STRUCTURE NAME.
regards,
Manohar.