Quantcast
Channel: SCN : Popular Discussions - SAP Business Rules Management
Viewing all articles
Browse latest Browse all 1717

Using an element of a structure from expression does not work as expected

$
0
0

Lets try this again - hopefully the screenshots come thru.

 

Hello experts:

 

I have had this problem repeatedly - every other time, I have simply reversed course and tried a different technique altogether - however this time I need to get this to work.

 

The BRF function is called and provided with a table context, called IT_FKKMAVS.

I have created a table operation expression which reads that context parameter, and using a selection criteria, gets one record where criteria is met.  The expression is defined to get FIRST LINE and put the results in a structure, IS_FKKMAVS which references same dictionary type as IT_FKKMAVS.

 

Now that i know a record exists, I need to  check further information about the record using one field of that structure, IS_FKKMAVS-OPBEL.  I use IS_FKKMAVS-OPBEL in a DB lookup expression to further check another database table which was not part of the provided context.

 

Additionally, IS_FKKMAVS is defined as a variable in the single ruleset which is used.

 

Unfortunately, it does not seem that I can take the IS_FKKMAVS structure and parse it.  By that I mean that the db lookup expression which is definitely called in the rules, does its check with an empty value in the OPBEL field since it is not recognizing the field which is meant to be provided by the table operation expression.

 

Do I need to do something special to make the table operation structure available?

 

regards,

bill.

 

Here is the function signature:  IT_FKKMAVS

1a.png

The ruleset with the variable assigned:

2a.png

The db lookup expression:

3a.png

the table operation:

4a.png

And the trace showing the failure...

5a.png


Viewing all articles
Browse latest Browse all 1717

Trending Articles



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