Skip to Content
0
Former Member
Oct 15, 2006 at 11:53 PM

Urgent help need with ABAP code

20 Views

Hi Gurus,

I have an info object OBJ1 of type NUMC length 5.

OBJ2 of type CHAR of length 7 (Contains values like 2003001, 2003002, 2003003,.. 2003012.

I need to assign the first four chars value in OBJ2 to OBJ1 and the fifth filed in OBJ1 is based on the last three chars value in OBJ2.

If last three chars are 001, 002 or 003, the fifth char in OBJ2 is 1.

If last three chars are 004, 005 or 006, the fifth char in OBJ2 is 2.

If last three chars are 007, 008 or 009, the fifth char in OBJ2 is 3.

If last three chars are 010, 011 or 012, the fifth char in OBJ2 is 4

So OBJ1 need to have values like 20031, 20032, 20033, 20034.

I need to write this routine in update rules

Please help me with code.

Thanks

Regards,

aarthi

aarthi.sap@gmail.com