TYPES: BEGIN OF t_alter,
matnr LIKE mara-matnr, "Material number
MTART LIKE mara-MTART, "Plant
END OF t_alter.
data : v_int type i.
data :i_alter TYPE STANDARD TABLE OF t_alter,
wa_alter type t_alter.
select matnr MTART from mara into table i_alter.
loop at i_alter into wa_alter.
v_int = v_int + 1.
write :/ v_int , wa_alter-matnr.
endloop.
in this program v_int value is 1,000 1,001 is coming
in this i want display v_int valiue 1000 not display ',' .how to convert ','
pls send the code.
Kumar,
Convert it to char.
Data: v_char(10) type c. TYPES: BEGIN OF t_alter, matnr LIKE mara-matnr, "Material number MTART LIKE mara-MTART, "Plant END OF t_alter. data : v_int type i. data :i_alter TYPE STANDARD TABLE OF t_alter, wa_alter type t_alter. select matnr MTART from mara into table i_alter. loop at i_alter into wa_alter. v_int = v_int + 1. Move v_int to v_char. write :/ v_char , wa_alter-matnr. endloop.
Regards,
Satish
declare it as type c to your required length
Hi,
Declare v_int as type p with decimals 0.
Data : V_int typ p decimals 0.
Regards,
Prashant
Use Replace all occurenses ',' with space. This will work.
check out help on replace .... you will see.. No need to convert into different field but make sure your field should be a char field or just check out the help.
Add a comment