Skip to Content
author's profile photo Former Member
Former Member

Simple Abap coding required.

Hi Gurus,

Can somebody advise me how to make changes to existing coeds,

Existing code:

<b>DATA: leve10 type STRING,

REST type STRING.

split costcenter1 at '-' into level10 REST.

CASE LEVEL1.

WHEN 'CK'.

RESP = 'Z'.

WHEN 'JK'.

RESP = 'Y'.

WHEN NONE.

MRU = 'NONE'.

ENDCASE.

ENDFUNCTION.</b>

I want to Insert

<b>WHEN 'FK' or 'MK' or 'SK'

RESP = 'NIL'</b>

can you pelase advise me how to do that?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 01:49 AM

    See the below code and modified in bold :

    DATA: leve10 type STRING,

    REST type STRING.

    split costcenter1 at '-' into level10 REST.

    CASE LEVEL1.

    WHEN 'CK'.

    RESP = 'Z'.

    WHEN 'JK'.

    RESP = 'Y'.

    <b>WHEN 'FK' or 'MK' or 'SK'.

    RESP = 'NIL'.</b>

    WHEN NONE.

    MRU = 'NONE'.

    ENDCASE.

    ENDFUNCTION.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 01:53 AM

    Hi,

    Try the following

    DATA: leve10 type STRING,

    REST type STRING.

    split costcenter1 at '-' into level10 REST.

    CASE LEVEL10.

    WHEN 'CK'.

    REST = 'Z'.

    WHEN 'JK'.

    REST = 'Y'.

    WHEN 'FK' or 'MK' or 'SK'.

    REST = 'NIL'.

    WHEN NONE.

    MRU = 'NONE'.

    ENDCASE.

    ENDFUNCTION.

    Regards,

    Lijo Joseph

    Message was edited by:

    Lijo Vazhappilly

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.