Application Development and Automation 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: 
Read only

Script?

Former Member
0 Likes
827

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
806

Hi,

Just use write to statement ..

WRITE <SOURCE> TO <TARGET>.

<TARGET> in character format and display field.

Regards,

Raju

9 REPLIES 9
Read only

Former Member
0 Likes
806

hi sachin,

i think it will aiutomatically be displayed with those separators.

Regards,

Bhumika

Read only

0 Likes
806

HI BHoomika,

NO its not displaying in that format.

Could you please suggest how can i achive this.

sachin.

Read only

Former Member
0 Likes
806

you could use the WRITE TO field_name USING EDIT MASK ... statement, right?

Read only

0 Likes
806

HI,

I am writing this code in SUBROUTINEPOOL.

SUggest me how can i do this in program?

SAchin.

Read only

0 Likes
806

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

Read only

Former Member
0 Likes
806

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.

Read only

0 Likes
806

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.

Read only

Former Member
0 Likes
807

Hi,

Just use write to statement ..

WRITE <SOURCE> TO <TARGET>.

<TARGET> in character format and display field.

Regards,

Raju

Read only

former_member787646
Contributor
0 Likes
806

Hi

Try the Function Module "CONVERSION_EXIT_ALPHA_OUTPUT" and check.

Hope this would help you.

Murthy