cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace the values

former_member215567
Participant
0 Kudos

Hi Experts,

I need to write in field level routine for below requirement.

i have values for 0plant like 4308, 5768 etc... but i want to replace the first value by 1

Ex: 4308 should come 1308 and 5768 should come 1768.

How can i write, please guide me.

Thanks

Hari.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Hari.

You can use the below code to get the result..

Data X TYPE C LENGTH 4.

X = SOURCE_FIELDS-WERKS.

X+0(1) = 1.

     RESULT = X.

Thanks,

Naveen.