Skip to Content
avatar image
Former Member

Changing Location ID name in SAP BI routine


I've requirement where two columns Location ID  - ( having assigned 1,2,3 coming from source system) and job type 0 and 1.

Now In Location ID column I've to assign location A to 1, B to 2 AND C to 3

In job type columns

0 to D

and 1 to N

Please can you example code how I can do in routine... should it be done in start/end or field level routine---

Pleaase give example code.



This is not ABAP training forum

Message was edited by: Pravender Kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 05, 2014 at 11:33 AM

    Hi Pawan

    if i understand correctly,

    you want to replace the values with new value..

    eg. if location ID = 1, then location ID = A and so on.

    if so, you can write it in field routine. and make sure the target data type holds the charcater.

    in field routine,

    if source-fields -location = 1,

    result = A.

    elseif source-fields -location = 2,

    result = B.


    Please let us know if this is what you want.


    Add comment
    10|10000 characters needed characters exceeded