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

First column value of Decision Table is 01.01.0001

$
0
0

Hi Experts,

 

I am using the Formula DT_SUBTRACT_DAYS(Timppoint, Random Number) in the output of the Decision Table while the result data object of this formula isa Timepoint. During the execution, in the first row of the output table the value is 01.01.0001 while from second row onwards its working fine.

 

Is this any bug or something? Please advise as I need it very urgently.

 

Thanks in advance


Errors from Program FDT_XML_IMPORT

$
0
0

Hello ,

 

We have created objects , formulas , rules on Development system with storage type Master data and assigned them $tmp.

 

We would like to have copy of all these objects on our test system and then on production system.

 

  Executed report FDT_XML_EXPORT and prepared XML from Development  system.

 

Now I try to import this on Test system.

 

  But system says object can not be created in $tmp.

 

  Now I have manipulated XML by replacing $TMP withour custom Package.

 

Now the error is : Local objects can only be created with local package only.

 

Can anybody help with this error ?

 

Thanking you,

 

Regards,

Satya

Unable to upload new changes in BRM table

$
0
0

Hi All ,

 

I have a BRM table and whenever i try to make changes and Upload and then activate the changes i am getting the below errors .Please let me know how to resolve this issue .Its very urgent .

com.sap.brms.rom.edit.io.RuleEngineConnectionException: Exception during internalDeploy(AbstractProject, AbstractAliasSet, AbstractRuleset, AbstractAliasSet, Map, Map, Properties, boolean)

Upload failed: com.sap.brms.rom.edit.io.RuleEngineConnectionException: Exception during internalDeploy(AbstractProject, AbstractAliasSet, AbstractRuleset, AbstractAliasSet, Map, Map, Properties, boolean)

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

BRF+ => How to process a function in GENERATION MODE through code?

$
0
0

Hi,

 

I am trying to run the BRF+ function processing in GENERATION MODE through code.

 

I believe the class name is CL_FDT_FUNCTION_PROCESS. I have to set the mode as generation mode before the processing is done.

 

Am I going the right path? How can I set the generation mode through code?

 

Thanks and regards.

Gopa

Top expression and result data object disables in BRF+

$
0
0

Hi,

 

I'm working with BRF+ and this two fields are disabled when I want to create a function.

 

Can anyone help me?

 

Thanks

Mariano

image.jpg

Hi, I am getting a 500 SAP Internal Server Error ERROR:The ASSERT condition was violated.(termination: RABAX_STATE) while creating rules in Custom Application in BRF+. Please advice!

$
0
0

ERROR: The ASSERT condition was violated.(termination: RABAX_STATE) while creating rules in Custom Application in BRF+.

Please advice!

Short Dump when trying to add a condition in a Rule

$
0
0

Hi

 

I have an issue within a rule set where I am doing a loop on a table, within the loop I am having a problem adding a condition;

As soon as I press the button to add the condition there is a short dump.

 

I have managed to do exactly the same on a more recent version (740) while I got the dump on a (731 05)

 

The version where I have the dump isFirst.pngThe dump is

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_FDT_INPUT', was not caught in

procedure "GET_RULE" "(METHOD)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

An BRFplus exception for invalid input occurred

 

What I can not do is on the next screen adding the AND condition (ET here sorry french...)

Second.png

So If someone has any clue on what is going on and if there is an OSS note to apply please tell me ...

 

Cheers

Stephane


BRF+ issues with result in function call

$
0
0

Hello Community,

 

I'm having some problems with my brf+ function.

 

My function takes two Data Objects as input and processes some rules. The rules check if the input data have the right values and then calls a formula. The function should then provide the result of this calculation in the result data object.

Here the Context:

context.PNG

By simulating my function the rules and calculation work proper, but I get the following result in the end:

calc.PNG

Why is my function not returning the value of ZRESULT and instead returning the value of my input data MAXVALUE?

 

 

I'm calling the function from abap with the following LoC and want to retrieve the calculated result:

 

TRY .

* Get BRFplus function

lo_fuction ?= cl_fdt_factory=>if_fdt_factory~get_instance( )->get_function( 'XXXXXXXXXXX' ).

 

 

 

lo_context = lo_fuction->get_process_context( ).

lo_context->set_value( iv_name = 'MAXVALUE' ia_value = norm_rel_val ).

lo_context->set_value( iv_name = 'WEIGHTEDRELEVANCE' ia_value = norm_rel_ovd ).

 

 

lo_fuction->process( EXPORTING io_context = lo_context

IMPORTING eo_result = lo_result ).

 

 

lo_result->get_value( IMPORTING ea_value = calc_result ).

 

 

WRITE calc_result.

 

 

CATCH cx_fdt INTO lo_message.

 

ENDTRY.

 

 

Do you have any hints, why my function does not return the result of the calculation? And am I retrieving the result from the function right with this code?

 

Thanks & Regards,

Dominik

Errors from Program FDT_XML_IMPORT

$
0
0

Hello ,

 

We have created objects , formulas , rules on Development system with storage type Master data and assigned them $tmp.

 

We would like to have copy of all these objects on our test system and then on production system.

 

  Executed report FDT_XML_EXPORT and prepared XML from Development  system.

 

Now I try to import this on Test system.

 

  But system says object can not be created in $tmp.

 

  Now I have manipulated XML by replacing $TMP withour custom Package.

 

Now the error is : Local objects can only be created with local package only.

 

Can anybody help with this error ?

 

Thanking you,

 

Regards,

Satya

Getting element id of a component passing the name

$
0
0

Hi,

 

Is there a way I can fetch the element ID(GUID) of an element passing the name.

e.g - I have a table ZDT_CALC_TAX_CODE, can i get the ID of this table with its name.

Function code generation failed if formula is using MIN/MAX due to TYPE ANY

$
0
0

Hi all,

 

I am on a SAP 702 SP 17 and note 2203712 was implemented which was necessary because formula with MIN/MAX/IF could not be activated.

Now, I have an activated formula but can not generate my function. A syntax error is raised in method process_pure of the generated code:

 

ANY has a generic type...

 

..and I can find a variable declaration like:

 

DATA _v_fef_result2 TYPE ANY.


How can I solve this issue?


best regards

Andreas 

Short Dump when trying to add a condition in a Rule

$
0
0

Hi

 

I have an issue within a rule set where I am doing a loop on a table, within the loop I am having a problem adding a condition;

As soon as I press the button to add the condition there is a short dump.

 

I have managed to do exactly the same on a more recent version (740) while I got the dump on a (731 05)

 

The version where I have the dump isFirst.pngThe dump is

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_FDT_INPUT', was not caught in

procedure "GET_RULE" "(METHOD)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

An BRFplus exception for invalid input occurred

 

What I can not do is on the next screen adding the AND condition (ET here sorry french...)

Second.png

So If someone has any clue on what is going on and if there is an OSS note to apply please tell me ...

 

Cheers

Stephane

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

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


Quantity Field with UOM

$
0
0

Hi,

I created a BRF decision table and a function programmatically using a DDIC structure which contains a quantity field and a Unit Of Measure assigned to the quantity field:

structure.jpg

Created Decision Table:

decision.jpg

As you see the quantitiy field height (Höhe) in the decision table contains the value and the UOM.

Now I'd like to execute the corresponding BRF function but I don't know how to pass the UOM to the BRF framework.

 

I am currently  using this method IF_FDT_CONTEXT->set_value(

         EXPORTING iv_name  lv_context_name

                   ia_value = <lv_value> ).


But how to set the UOM with the heigt value?


Could anyone help?


Thanks and BR,

Eddy

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

BRF+ technical training course?

$
0
0

Hi,

 

I'm very interested in attending a hands-on, technical BRF Plus training course. Does such a course exist?

 

I considered the TZBRF (BRF Framework) course but it seems more high-level / business-level / introductory.

 

If we could get enough interested people together (how many?) would one of the BRF+ team make the long flight to Australia? :-)

 

thanks

Paul Bakker

(Brisbane)

BRFPlus Transports - Ability to maintain Decision table entries in PRD

$
0
0

Hi BRFPlus gurus,

 

We are using BRFplus rules in place of customizing tables to maintain some of our business rules.

 

The way I want to see this working is.

 

1) Define Application, Function, Expression (decision table), Data objects in Dev - maintain some test entries in decision table in dev to test.

2) Transport all the objects created in step 1 except decision table entries to QA and evntually to PRD.

 

The problem that I am facing is.

 

1) When I create an application I get to choose Storage Type: System, Customizing or Master Data.

I choose Customizing and that way the application and all the underneath objects get included in the customizing transport and is transportable. What I am not sure is how to exclude decision table entries from the customizing transport.

 

2) In Target systems (QA/PRD) we are not able to maintain any object, including decision table entries. We want users to be able to maintain decision table entris in target systems.

 

How can this be achieved? Is this even possible?

 

Also I will appreciate if someone can help me understand storage types (System, Customizing or Master Data) with examples. I see that if 'Master Data' type is used objects cann't be transported. If 'System' type is used, BRFPlus GUI screen exits while trying to enter transport number and Save. Customizing type is the only type I was able to use for my scneario, but I was not able to exclude decision table entries from the customizing request.

 

I will appreciate any ideas.

 

Thanks,

Saurabh

Amount field condition in Aggregation selection mode of a DBlookup expression

$
0
0

Hi everyone,

 

I have a requirement to count the number of open invoices for an account. I am using the Aggregation selection mode of a DBlookup expression to count the unique number of values in a date field. The Select statements looks like:

 

Select Count of <date Field> from <Database>

With Condition:

Conditions

 

Into <Number>

 

The issue I am facing is that I am unable to include a condition for a Amount/Currency field. I want to select only debit items, and exclude credits. The fields of type 'currency' are not shown in the list of elements while adding an include condition.

 

Is this by design and why are we not able to use such field types in the conditions.?

 

Alternatively, I was thinking of using a temporary table to list the items and using a Table operation to remove the credit items and count the items, but unable to do a unique count.

 

Thanks ,

Nihit

Viewing all 1717 articles
Browse latest View live