cancel
Showing results for 
Search instead for 
Did you mean: 

type conflict ?? (SF)

Former Member
0 Kudos

hi, i was testing sample form SF_EXAMPLE_01

my code is

data : fm_name TYPE rs38l_fnam.

data: bookings like table of sbook,

connections like table of spfli,

customers like table of scustom.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'SF_EXAMPLE_01'

IMPORTING

FM_NAME = fm_name

CALL FUNCTION FM_NAME

Exporting

BOOKINGS = bookings

CONNECTIONS = connections

CUSTOMER = customers.

but such error occurs " the exception 'BOOKINGS' must be assigned to a number(literal) but bookings is not numeric", you konw, bookings connections and customer in form SF_EXAMPLE_01 are not number.

how should i solve it ?? thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi.

Control your programm if you didn't write unintended something like

EXCEPTIONS instead of EXPORTING.

CALL FUNCTION FM_NAME
Exceptions
BOOKINGS = bookings
CONNECTIONS = connections
CUSTOMER = customers.

This piece of code is generating the same error in my system.

Timo.

Former Member
0 Kudos

can u send correct full program.

Former Member
0 Kudos

Hi, more on this topic,

now i define the var as follows, here i tried to follow type definition strictly.

and bookings and connections are ok, but i still don't konw how to fill customer in the form.

i wonder when the definition in SF_EXAMPLE_01 is "Customer like Scustom" maybe it's OK?? but now it is "Customer Type Scustom".

could someone give a solution ??

tables: scustom.

data : fm_name TYPE rs38l_fnam.

data: bookings type TY_BOOKINGS,

connections type TY_CONNECTIONS,

customers type scustom occurs 0.

data: wa_bookings type sbook,

wa_connections type spfli.

select * from sbook into wa_bookings.

append wa_bookings to bookings.

endselect.

select * from spfli into wa_connections.

append wa_connections to connections.

endselect.

select * from scustom into table customers.