cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle References in EHS Rule Editor

DirkW
Discoverer
0 Kudos
313

Hi All,

I try to build a rule which

  • check if a dedicated Reference is set
  • Replace this reference by a other one or
  • to delete the specific one, and set a new Reference

But I'm facing several problems, as there could be more then one Reference in ESTRR. All try's I did (also with ANY) did not succeed. Unfortunately the manual is not that helpful explaining how to handle those entries, so I hope someone has may an working example which explain how to work with this part.

View Entire Topic
christoph_bergemann
Active Contributor
0 Kudos

Hello

what exactly do you try to do? Normally the Expert Rule Story is NOT used for handling "Referencing" and "Inheritance"

The issue is: what is the "rule".... Expert Rule sets are normally used to write direct data to the object (e.g. REAL_SUB).

Nether heard about the use of "Rule sets" to handle "Referencing" (using "Custom like Rule Set code).

The only exemption: if you buy ! Rules... then the "Dangerous Goods" regulations can be supported DG_CL_SUB assignments to REAL_SUB).

Can you explain what you would like to get?

C.B.

DirkW
Discoverer
0 Kudos

Hi @Christophe,

 

thanks for your comment. 

I know that the Rule editor could be used in very much more ways then just writing data to the REAL_SUB level, and it is more then the pure Expert Rule.
In the Help portal for the Rulesets it is described onli in this Line:

  • Field from the reference table

    Syntax: D:<Tabellenfeld in ESTRR> (D:SUBID for example )

    The only field of interest here is RECNREF, the internal record number of the reference. Alternatively, you can enter the field name SUBID and thus fill the fact with the specification key of the reference.

Fact Mapping | SAP Help Portal

I'm able to write something in the Referece area, if all is empty. But my problem is the logic I want to implement if entry are available in the Reference tab.
BR

 

christoph_bergemann
Active Contributor
0 Kudos

Hello, first the problem is the "rule" to use

You have three topics to check (at least from my point if view)

1.) based on which data you can define a "spec" number to be used as reference?

2.) based on which data you need to "update" the spec number (from "A" to "B" in reference

3.) any may be we could have a "delete" variant

Technically: as we know  we can do something (using Expert rules9 on "reference" level... but still i have doubts with the "rule"

AND what is more important: ypu can not "play" arround with "A" "B" "C"...

What does what mean?. According to my understanding you need an expert rule like;

if condition A is satistifed: use spec number 1

If condition B is satisfied: use spec number 2

And this is "mapping" and mapping would be done in the "access mdb" to be handled on ANY expert server. So if you would need a spec number 3 but you have no  mapping. You need to update yout "access mdb"

So frist you need the rule...

CB.