10-09-2007 6:15 AM
<b>code</b>:
SET PARAMETER ID 'ZP1' FIELD I_DDATA-TR_QTY.
error is:
"I_DDATA-TR_QTY" must be a character-type field (data type C, N, D, or T) . "INTERFACE". by "INTERFACE". by "INTERFACE". "INTERFACE". by
"INTERFACE". by "INTERFACE".
10-09-2007 6:20 AM
Hi,
Please change the data type to Character.
DATA: carrier TYPE spfli-carrid,
connection TYPE spfli-connid.
START-OF-SELECTION.
SELECT carrid connid
FROM spfli
INTO (carrier, connection).
WRITE: / carrier HOTSPOT, connection HOTSPOT.
HIDE: carrier, connection.
ENDSELECT.
AT LINE-SELECTION.
SET PARAMETER ID: 'CAR' FIELD carrier,
'CON' FIELD connection.
CALL TRANSACTION 'DEMO_TRANSACTION'.
Best regards,
Prashant
10-09-2007 6:21 AM
Hi
You can't use set parameter ID for Quantity fields
Have to use for CHAR, NUMC,DATS and TIMS fields only.
We use this statement to get some key field like field based on which we can further fetch data from other places/tables
Regards
Anji
10-09-2007 6:56 AM
i hope u have given the field reference to u r internal table in program[I_DDATA-TR_QTY]....u cant do like that.........
it seems u have to specify the dataelement name here from the database ...............
do one thing ...check the dataelement name for u r field i.e [ the field u r going to set the the parameter id ] .....
go to se11....select the radiobutton data type.......in the further characteristics tab u will find the parameter id ..................
reward points if helpful........