Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

smartform drvr prog error

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.