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: 

how set parameter id is used in unicode systems

Former Member
0 Kudos

<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".

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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........