Skip to Content
0
Former Member
Nov 03, 2015 at 06:28 AM

Field Routine

46 Views

Hi Experts,

How can I able to write this into Field routine. I have 4 fields below.

Given:

ZOBJNR (Object Number)

0REF_DOC_AA (Reference document:

0REF_DOC_IT - Reference document item

0REF_DOC_NR - Reference Document Number

0REF_DOC_AA 0REF_DOC_IT ZOBJNR 0REF_DOC_NR 6 1 ORXXXXXXXXXX 91000 6 1 KSYYYYYYYYYY 91000

Get only object number with “OR” as starting value - find the value of

Derived costcenter from object number with “KS” as starting value.

the result is last (10) digit KSXXXXXXXXXX if the have the same value of ORXXXXXXXXXX in the ff: fields 0REF_DOC_AA, 0REF_DOC_IT and 0REF_DOC_NR

RESULT = YYYYYYYYYY

Many Thanks

_whel

Attachments

Result.PNG (43.1 kB)