on 05-15-2007 3:50 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can u send correct full program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
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.