‎2008 Jul 16 12:35 PM
HI all,
I have a filed contans value 23456.00
i would like to display this with SEPERATORS in script?
like 23,456.00
Sachin.
‎2008 Jul 16 12:53 PM
Hi,
Just use write to statement ..
WRITE <SOURCE> TO <TARGET>.
<TARGET> in character format and display field.
Regards,
Raju
‎2008 Jul 16 12:44 PM
hi sachin,
i think it will aiutomatically be displayed with those separators.
Regards,
Bhumika
‎2008 Jul 16 12:46 PM
HI BHoomika,
NO its not displaying in that format.
Could you please suggest how can i achive this.
sachin.
‎2008 Jul 16 12:44 PM
you could use the WRITE TO field_name USING EDIT MASK ... statement, right?
‎2008 Jul 16 12:47 PM
HI,
I am writing this code in SUBROUTINEPOOL.
SUggest me how can i do this in program?
SAchin.
‎2008 Jul 16 1:06 PM
Hi,
If you can change the datatype of that field why cant you change it to any dataelement of CURR form.. Eg - CDCURR ?
Will this work?
//Kothand
‎2008 Jul 16 12:51 PM
Move the field to a type p variable. This type of variables are normally formatted with the a u2018thousandsu2019 separator character.
Then display this variable to the script.
If u cannot change the drive prog. then call perform from the sapcsritp itself and within the routine do this assignment like:
/: PERFORM GET_format IN PROGRAM zdemo
/: USING &fld1&
/: CHANGING &fld1&
/: ENDPERFORM
Coding of the calling ABAP program:
REPORT zdemo.
FORM GET_format TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: l_var type p decimals 2.
READ TABLE IN_PAR WITH KEY u2018FLD1u2019.
CHECK SY-SUBRC = 0.
try.
l_var = IN_PAR-VALUE.
catch cx_root.
endtry.
OUT_PAR-VALUE = l_var .
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Regards,
Joy.
‎2008 Jul 16 1:21 PM
HI,
OUT_PAR-VALUE = l_var .
write l_var to OUT_PAR-VALUE
Any of these not moving the values to OUT_PAR table.
Sachin.
‎2008 Jul 16 12:53 PM
Hi,
Just use write to statement ..
WRITE <SOURCE> TO <TARGET>.
<TARGET> in character format and display field.
Regards,
Raju
‎2008 Jul 16 1:00 PM
Hi
Try the Function Module "CONVERSION_EXIT_ALPHA_OUTPUT" and check.
Hope this would help you.
Murthy