Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2067

SQ01 SAP Query formula help ...

$
0
0


Hi

I am trying to perform a comparison of  MARC-PRCTR (Profit Center)  to Material Group  (MARA-MATKL)

 

To peform the comparison i need to extract the middle 3 characters frmo Profit Center to match against Material Gruopo.

In excel i would use the MIDformula applied to retrieve 3 of the 6 characters ( like we do in excel  MID(cell,3,3)

 

Lcoal field

3PRCTR  = FORMULA for PRCTR (3,3)  (where we retrieve the 3rd, 4th and 5th characters of Profit Center>

 

But i I am not able to create a local formula that applies  this  same type of logic to retrieve , ist is possible?

 

ProfitCenter                   Result of Formula                         MatlGrp     comment

 

01ABC567              formula      ABC     compare  ABC  would yield a match 

 

01CDE545            fomula     CDE     compare  ABC      would yield a mimatch

 

 

 

Local formula  for CHECK  would then be run to check for inonsistencies

i.e.

 

Check   = Formula   (local names)

               3PRCTR  <> MATLGP   = 1   else   0  ( would yield mismatches)


Viewing all articles
Browse latest Browse all 2067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>