09-23-2010 4:03 PM
Hi all,
I need to pass a value which is of type CURR to a screen field which is of type DEC using parameter id. As of release 6.10 only character-type field is expected to pass to screen fileds. I tried converting the CURR field to char type and pass the same to screen field,but didnt work as in the screen filed it expects some value with typr DEC.
Thanks in advance!
09-23-2010 5:42 PM
This works for me.
data:lv_curr type dmbtr.
parameters:pa type WEBAZ.
at selection-screen output.
lv_curr = '234.11'.
pa = lv_curr.
09-23-2010 8:47 PM
Hi Keshav,
My requirement is that i need to pass values to the screen field by using parameter ids i.e, using the keyword SET.
09-23-2010 9:10 PM
09-23-2010 10:00 PM
Expanding on Keshav's code give:
PARAMETERS:pa TYPE webaz.
DATA:lv_curr TYPE dmbtr,
c_amt1(15),
c_amt2(15).
AT SELECTION-SCREEN OUTPUT.
lv_curr = '234.11'.
WRITE lv_curr TO c_amt1.
SET PARAMETER ID 'AMOU' FIELD c_amt1.
GET PARAMETER ID 'AMOU' FIELD c_amt2.
pa = c_amt2.
Rob
09-24-2010 9:39 AM
Hi Rob,
I am using STP(EC-CS: Subitem category) pid.
Regards,
Sireesha
09-24-2010 10:30 AM
Hi Rob,
while debugging the code i can see the values of pid in SAP memory, but when i run the program to display those values on the screen field with type DEC,it kicks me out of the system.I commented that part of code and exceuted the program and then it went fine so i am for sure that it goes wrong at this part of the code.
Regards,
Sireesha
Edited by: Sireesha on Sep 24, 2010 11:37 AM
09-24-2010 1:54 PM
I guess it might be a gui issue. I ran the code and it worked as I expected. You do have to be concerned about number formats though. You'll have to remove commas from things like '1234,567.89'.
Rob