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

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


Problem with impression of justificant in BRF+ in form processing Tax Registration

$
0
0

Hi Experts,

 

I have a BRF Plus apllication for form processing Tax registration, and I want that a justificant (based on adobe form) appears when tha tax registration (based on adobe form too) be processed.


I have included my function ZIFTR_PRINT_001 as an action in the brf plus application, but the justificant doesn't appear, only a spool order is generated. It seems like my function, which print the justificant, is executed on back ground.

The weird is, when I execute my function ZIFTR_PRINT_001 since SE37 the justificant (adobe form) appears.


¿Could anyboody tell me if I would have to change the function ZIFTR_PRINT_001 (I am attaching the code) in order to be executed correctly in BRF Plus application?.


Please, for further information don't hesitate to ask me.


Best Regards,

Joham

How to read BRF+ decision table into an internal table in ABAP

$
0
0

Hello.

 

I need to get the complete content of a BRF+ decision table in an internal table in ABAP.

Is that possible?

Can someone show me some example code?

 

kind regards,

Jasper Blok

From BRF+ output in ABAP not coming Properly

$
0
0

Hi Experts,

 

I have created few functions in BRFplus and added code in ABAP for calling them.

 

At the first run output comes properly, but in case i make any change in the ABAP code then output  is not coming as expected,

 

then everytime i have to go to BRFplus function , i have to make some change there and re-activate it.

Then output can be seen in ABAP.

 

Kindly let me know what is the solution for this problem.

 

Regards ,

 

Khushbu

Group Aggregate Data with BRF+

$
0
0

E.g. I may want a part of a BRF+ function to count the occurrences of every material in table MVKE (select count ( * ) from MVKE group by MATNR), like I do it in transaction TAANA.

 

However, neither "group by" nor table result objects are supported by BRF+ > Expression > DB Lookup > Aggregate > Count.


Do you have any suggestions for highly performing alternatives?

Passing Table Data to BRF+

$
0
0

Hi,

 

I am developing a BRF+ appliction that takes table as input and is binded to DDIC. I tried calling the BRF+ application from CRM using a custom program and in the program I tried to set the context with table data, but it is not recognizing the table data. Can you please let me know if this is the right procedure  for passing table data to BRF+.

 

Thanks for all your help in advance.

 

Regards,

Agarwal

SAP CE BRM decision table input and output

$
0
0

HI,

 

I have requirement on BRM decision tables where....

 

1) Product Type is derived from Auth Group

2)Auth grp is derived from Product Type

 

 

If I am creating Decision table I have to set one column as input and one as output. In this case I am ending up with creating 2 decision tables to get the desired output for mentioned requirements.

 

is there a way that we can create one decision table  where we can get the output? Business dont want to end up with updating 2 tables when ever there is change required.This table will have more than 100+ rows entries.

 

 

for ex : If I send Prd type it has to give auth grp- combination value

          If I send Prd type it has to give auth grp combination value



Please let me if we have solution for this on BRM?

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


How to make editing possible of BRFplus objects in non development systems

$
0
0

I have setup an application and moved it from my dev system to quality and then to production.

 

At the time of tranpsorting the very first time, in the application properties, the versioning was on.

 

How can I edit the expressions contained in this application directly in quality or production ?

 

I get the Message no. TK430 always when i try to edit the expression in quality system or production system.

 

Also i switched off versioning and moved the transports again. But still i cannot maintain the expression.

 

Do I have to cleanup the versions and then try editing?

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

BRFplus vs Hana Rules Framework

$
0
0

Dear all,

 

Now with SAP HRF, what should be the strategic positioning of BRFplus and DSM for customers that have a HANA database and a HANA studio available?

 

Regards,

 

Cristobal

Restoring Deleted decision table

$
0
0

Hi Experts ,

 

I have a issue in front of me . A decision table , which is used in production, is deleted by someone.

I could not find any object with the Object ID of that table , however same is available in other systems.

 

In case I have old transport than also I don't have any idea that how to retrieve the same in BRFplus

 

Please guide me how to restore the deleted table.

 

 

Regards,

Khushbu

How to make editing possible of BRFplus objects in non development systems

$
0
0

I have setup an application and moved it from my dev system to quality and then to production.

 

At the time of tranpsorting the very first time, in the application properties, the versioning was on.

 

How can I edit the expressions contained in this application directly in quality or production ?

 

I get the Message no. TK430 always when i try to edit the expression in quality system or production system.

 

Also i switched off versioning and moved the transports again. But still i cannot maintain the expression.

 

Do I have to cleanup the versions and then try editing?

Debug BRF+ Function While Simulating

$
0
0

Hello,

 

I would like to debug (in the ABAP debugger) a BRF+ function when I run it in simulation mode. I know that for each BRF+ function, an ABAP class gets generated containing the business rules written as ABAP statements. I can even see this class in the 'Code Generation' tab at the function level. However, when I open that class in SE24 and set a breakpoint in method PROCESS_PURE (and even PROCESS_DYNAMIC), the control doesn't stop in the method on simulating the BRF+ function. I can see the business rules I wrote in the BRF+ function written as ABAP logic in the PROCESS_PURE method and therefore was expecting the method to be executed during simulation.

 

Any comments?

 

Thanks,

Akshat

Test Case Tool - Expected Result vs Actual Result.

$
0
0

Hello,

 

we have used the Test Case Tool in our BRF+ rule development.

 

sometimes we get a fail because the expected result does not match the actual result.

 

but, sometimes, it is very hard to work out why there is not a match.
they look the same ...

 

is there a report/tool/whatever that we can use to examine the comparison being done?

 

thanx in advance.

 

cheers.

 

Pas.


How to get business partner deatil from BRFplus application ?

$
0
0

Hi experts,

 

I am doing a ruleset in BRFplus to get the detail of a business partner using the method  GET_BUSINESSPARTNER_DETAIL.

 

As a input paramenter I indicate the taypayer from structure SYS_FORM_BUNDLE_HEADER and as a output paremeter  ET_BUT000 (Table type of BUS000_TD_T), but this parameter requires a value, clearly, another table type of BUS000_TD_T where export the corresponding detail of the taxpayer.

 

I have created a new object table SYS_BUS000_TD however when I go to assign it to the parameter  ET_BUT000 from "select context parameter" I don`t see my table (it is only shown SYS_BAPIRETTAB and SYS_MESSAGE).

 

All have been activated and I don`t understant why I can assign my table in order to get the business partner detail, could you help me please?

 

I am attaching a file with two screenshots.

 

Thank and regards,

Joseph

BRM, BRFPlus in PI 7.3

$
0
0

We just upgraded to PI 7.3, and I am wondering:

 

1. How should I find out if the installation is dual stack or Java only?

2. How can I access BRM and BRFPlus from PI 7.3? Are there any T code for it?

 

Really appreciate your input.

Best Practices for customizable Business Rules?

$
0
0

In a recent project, I finally had the opportunity to try out BRF+. With the help of several articles and on-line tutorials, I was able to create an application with a function and several other objects, generate the template code and integrate it into the remaining ABAP application. So far so good.

 

What I want to achieve next is a better separation of the rule set from the application. At the moment, the application code contains a hard-coded UUID that refers to the BRF+ function (and actually a second UUID for the import data object). This is OK as long as that application and the BRF+ function are always used in that combination. When delivering the application to another system landscape or another customer, this might not be we need: The other customer will have different business rules. At the moment, the only way to implement these rules would be to modify "our" BRF+ application, which is undesirable (especially since with every subsequent transport, there's a risk of overwriting the BRF+ objects again).

 

What is the recommended way to approach this? At the moment, all I can think of is some kind of customizing table that lets the customer specify another BRF+ application. However, this raises another set of questions: Can I somehow specify function names instead of (rather cumbersome) UUIDs? What do I do about the data object UUIDs? How do I ensure that the customers function has the same signature (input and output structure) so that I don't have to worry about runtime compatibility? Somehow I think that there should be something more sophisticated than a simple customizing table, but I don't know what to look for, exactly...

 

Thanks

  Volker Wegert

How can I delete a row from a Table in SAPUI5 Application when I used Model as XMLModel?

$
0
0

I have created  SAPUI5 application, in that I have loaded  data from external .xml file  into a table, it was fine. Now, I am trying  to delete a specific row from that table.But, I am getting error at the line: `var removed = data.splice(idx, 1);`. However, the same code is good for when model is JSON.  How can I delete a specific row from a table when model XMLModel?

Please suggest me to proceed good.

For this purpose, I use this code:

 

 

    var oModel = new sap.ui.model.xml.XMLModel();

    oModel.loadData("Deployments.xml", "", false);

      sap.ui.getCore().setModel(oModel);

       oTable.bindRows("/service");   // here "service"  is the root element of xml file

   

    var oTable= new sap.ui.commons.Button({text:"Delete Service",

                      press : function() {

                         var idx = oTable.getSelectedIndex();

                         if (idx !== -1) {

                        var m = oTable.getModel();

                         var data = m.getData();

                     var removed = data.splice(idx, 1);  // error showing at this line

                           m.setData(data);

                           sap.m.MessageToast.show(JSON.stringify(removed[0]) +  'is removed');

                       

                         } else {

                           sap.m.MessageToast.show('Please select a row');

                         }

                       }

           

                

                     });

    

Thanks

Usage Considerations

$
0
0

Hi,

 

Can you please tell me the technical and/or business considerations which decide whether to use BPM/BRM/BRFPlus?

 

Technically,we use BPM and/or BRM in  case of java envoronment,say,SAP PO,other than that what are the other java environments/technical/business considertations we use BPM for?DO we always need to use BRM with BPM ?If not then what are the requirement we use them independently and together?

 

Are the phases of the project which are blueprinting,implementating,testing which are applicable for BRFPlus are also applicable for BPM and/or BRM?Or there are different ones for these??

 

Thanks in advance

Viewing all 1717 articles
Browse latest View live


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