Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with SPLIT

Hi,

im trying to use split and im having problems with it.

record : 12345|aaaa|12345.00-|12345.00|

im using SPLIT record at '|' into A B C D. These are of type char.everything is fine except for the field which has a negative sign.im getting zeros.

your help would be appreciated.

Thanks,

kranthi.

Tags:
Former Member
Former Member replied

HI

GOOD

TRY TO USE THIS LOGIC IN YOUR REPORT

DATA: STRING(60),

P1(20) VALUE '++++++++++++++++++++',

P2(20) VALUE '++++++++++++++++++++',

P3(20) VALUE '++++++++++++++++++++',

P4(20) VALUE '++++++++++++++++++++',

DEL(3) VALUE '***'.

STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.

WRITE STRING.

SPLIT STRING AT DEL INTO P1 P2 P3 P4.

WRITE / P1.

WRITE / P2.

WRITE / P3.

WRITE / P4.

THANKS

MRUTYUN

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question