Skip to Content
avatar image
Former Member

doubt on seprate

HI.

I have one filed it has value like '00000000000000' ,i need sperate first 8 char .

how ?

pls help me

to be reward all helpfull answers.

regrads.

Jay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 20, 2007 at 11:17 AM

    Hi,

    Try this,

    DATA : A(8) TYPE C,

    B(4) TYPE C,

    C(4) TYPE C.

    B = A.

    SHIFT A BY 4 PLACES LEFT.

    C = A.

    WRITE : B.

    WRITE : C.

    Regards,

    Padmam.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 11:24 AM

    I am not enough sure what you want but you can try this

    data : text1(8),

    text2(10).

    text1 = text+0(8).

    text2 = text+8.

    suppose text contain the value here

    regards

    shiba dutta

    Add comment
    10|10000 characters needed characters exceeded