09-12-2007 2:45 AM
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?
09-12-2007 2: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
09-12-2007 2: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
09-12-2007 2: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