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

Split a number

Former Member
0 Likes
673

Hello everybody, i need to split a number at , . How can i do it?

Thank you.

4 REPLIES 4
Read only

Former Member
0 Likes
574

Use Split Coomand :

split field at ' ' into target field.

reward Points if it is helpful.

Thanks

Seshu

Read only

Former Member
0 Likes
574

If ur requirement is to remove decimals from a Currency or Quantity field, then u can move the field to a integer variable. Cau u provide some more details abt ur reqmt?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
574

You can split is like so.

data: itab type table of string with header line.

split v_value at ',' into table itab.

Loop at itab.
  write:/ itab.
endloop.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
574

Hi,

Use the following syntax:

SPLIT <c> AT <del> INTO <c1> ... <cn>.

Reagrds,

Bhaskar