Skip to Content
0
Former Member
Apr 28, 2009 at 06:45 PM

How to pick 11, 12, 13, 14 values of a number.

31 Views

Hi all,

I have a field in my internal table named ITAB-AWKEY. AWKEY is of 20 chars.

I need to pick first 10 chars of AWKEY and put in another variable RSEG_BELNR and for that i said

data: RSEG_BELNR(10) TYPE C.

MOVE ITAB-AWKEY TO RSEG_BELNR.

Now in another variable RSEG_GJAHR i need to pick 11, 12, 13 and 14 chars of AWKEY. hoe do it do it?

example: AWKEY = 12345678912345678912.

then RSEG_BELNR and RSEG_GJAHR should be in following way

RSEG_BELNR = 1234567891

RSEG_GJAHR = 2345

How should I do it..pelase help.

Regards,

Jessica Sam