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

BRFplus :: How to read decision table data in internal table?

$
0
0

Hi Experts ,

 

I have a requirement , where I want to read complete decision table in internal table whenever user tries to maintain that particular decision table.

 

So before maintaining values in the decision table, take backup of decision table into internal table and send mail with attachment.

 

I have already gone through the available links where it is mentioned to implement interface IF_FDT_DECISION_TABLE~GET_TABLE_DATA.

 

But I need help on how to write code to read data in internal table using GET_TABLE_DATA method.

 

Please help with the sample code to read decision table into an internal table.Thanks.


SCDO for FDT_EXPR_0244 & FDT_EXPR_0242

$
0
0

Hi experts,

 

How can i create a change document for tables FDT_EXPR_0242 & FDT_EXPR_0244.

If it is not possible, please let me know if I can log data changes for these table through some other mechanism.

Error FDT_EXCEL_API021 when import decision table

$
0
0

Hi, There.

 

After create an application in BRFplus and after simulate this application with no error, the next step is export its decision table in order to populate with real data.


However, after export table (with no error), when try to import from excel, the error message below is shown:

 

Text: Import failed; cells (row, colum) contain more than 254 characters: (1,1 )

Code: FDT_EXCEL_API021


I've performed two types of attemps for export/import decision table: 1. with no addition of new rows and 2. inserting new rows in excel spreadsheet. In both cases, I get the same message above.


Has anybody passed for this before? Any help?


Thanks in advance.


Carlos Eduardo G. Araujo

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?

Calling a BRF+ Function from Workflow: Amount import parameter

$
0
0

Hi

I have a BRF+ function with a type AMOUNT in the signature as input parameter

 

I have tried to create a task by including the BRF+ function but I got a problem saying that the AMOUNT was not linked to DDIC

So I changed the link to NETWR.

 

I generated the task but now I am facing a problem, eventhough in my BRF+ function the type is correct and contain the Amount and currency, in the linkage I only have NETWR so I can not transfer the currency in the binding of the task.

 

I have checked the task generated container and the type is NETWR.

The generated class is only providing

call method _set_value(

      name      = 'NETWR'

      fdt_name  = 'NETWR'

      value     = NETWR ).

 

So I don't know how to transfer the amount and currency to the BRF+ directly from a generated task

 

I could set up a function module calling the BRF+ but I thought the integration should cover this challenge ....

Is there a way to do it that I have missed in the direct generation ?

 

Cheers

Stephane

Strange difference between Function and Class Method

$
0
0

Funny  I execute the function

 

FUNCTION Z_MM_0530_AMOUNT.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     REFERENCE(IV_PRICE) TYPE  NETWR

*"     REFERENCE(IV_CURRENCY) TYPE  WAERS

*"  EXPORTING

*"     REFERENCE(ES_AMOUNT) TYPE  FDT_S_AMOUNT

*"----------------------------------------------------------------------

ES_AMOUNT-NUMBER = IV_PRICE.

ES_AMOUNT-CURRENCY = IV_CURRENCY.

 

Entering as parameter 20,00 EUR I get 20,00 EUR

 

If I do the same in class method I get 2.000EUR

 

Can someone explain the difference ?

 

Cheers

Stephane

Decision Table Dependent Values

$
0
0

Is there an "easy" way to get a dependent value list from another field that exists in a decision table?

 

In the following example I need to return only the relevant REGION (State) values for each Country that is selected.  In this case, US should not return GB / Highland for the HI value, instead it should return Hawaii.  Is there a way to evaluate the field values for the REGIO (BLAND) data element (from T005S) against the LAND1 value so that only the list for that country is returned in the decision table when the values are being entered?

 

As a sidenote, there is some inconsistency in the REGIO data element texts that stops loading values after 54.  It would be okay to return all of the HI values if that were an option too but it doesn't seem to work either.

 

BRF1.gif

 

BRF2.gif

BRFplus: Error in generated class, can not regenerate

$
0
0

Hi!

I have a problem with my function. I can not regenerate the code. I get the  message 503 FDT_CORE "Generation for *myfunctionname* failed: You may not delete or overwrite table "/FDT/4W3E5B

 

I can see in the log if iI check run the option for functions with errors that there are four entries in the ALV for my function.

Two of them have objectnames starting with /FDT/ (one of them is starting with /FDT/4W3E5B so I guess this is the one that the erromessage tries to highlight. The other two lines have blank object names.

If I go to SE24 I am not allowed to change or delete the classes due to namespace.

 

When checking syntax in the class I get an error message stating that "You may not overwrite /FDT/*longcassnamehere*=>Materialegenskaper within a loop itselt. In the code it says clear Materialegenskaper. Since the code is automatically generated from BRFplus I have no clue why this is happening...

 

Any suggestions what could I do?

Best regards

/Björn


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

Data object xxxxxxxxfrom rule (pos xxxxxxxxxxx) is missing in the ruleset context

$
0
0

Hi All,

 

Urgent Help needed.

 

The logic I have implemented is like this

If A= 1, then execute decision table DT1 and if any of the conditions in the decision table fails then sned the error message

Else if B =1 then  execute decision table DT1 and if any of the conditions in the decision table fails then sned the error message

Else if C = 1, then  execute decision table DT1 and if any of the conditions in the decision table fails then sned the error message

 

Now I have created the nested rules as there is no direct provision for ELSE IF , so done it using Rules and nested rules. But now it is giving the following error as

Data object xxxxxxxxfrom rule (pos xxxxxxxxxxx) is missing in the ruleset context

 

Can you please advise urgently how to fix this?

 

Thanks in advance

Seach help in BRFplus

$
0
0

Hi All,

 

I have a requirement to create a custom search help. A field with the name Z_Name should display the search help values .

 

For example,

 

Now after the selection , of BLAND , Bland and BRZEI should come .

 

like ,  AK (ALASKA).

 

Please suggest how to achieve same.

 

Regards,

Khushbu

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

SCDO for FDT_EXPR_0244 & FDT_EXPR_0242

$
0
0

Hi experts,

 

How can i create a change document for tables FDT_EXPR_0242 & FDT_EXPR_0244.

If it is not possible, please let me know if I can log data changes for these table through some other mechanism.

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)

Decision Table lookup with wild characters

$
0
0

Hello Experts,

 

I have a decision table with 3 columns, the first 2 are condition columns and the 3rd one is a result column.

I have values maintained in the following manner

A1111Pack
A1211Freeze
A1311Reject
B1911Send

 

Now I want search my table as A1 and * and I expect all 3 values of 'Pack' , 'Freeze' & 'Reject' as my result.

How do i do that?


Custom value list populating wrong text, Also search functionality is not working

$
0
0

Hi Experts,

 

I referred the following document created by Carsten for Custom value list creation using Application exit GET_ELEMENT_VALUES method.

 

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d031905b-fb12-3110-0490-90a9a453dc97?QuickLink=index&overridelayout=true&58725087880395

 

Refer to the code snippet attached for the code I added in the GET_ELEMENT_VALUES method.

 

I am able to see the list when I click on F4 in the BRF+.

 

Issues:

 

1. Show search criteria is not working for Custom value list.

 

When I search for region code "AK", no action is done in BRF+. It is difficult to select one record among 4423 records by scrolling. Please refer to the screen shot attached.

 

2. There are three records in the list with code "AK"

 

1. AK  ATAKORA

2. AK  ALASKA

3. AK  AKWA IBOM

 

When clicked on second record and click on OK button, the value populated in the Decision table cell is "AK(ATAKOARA)". The expected result is "AK(ALASKA). Please refer to the screen shot attached.

 

Can anyone suggest any solution for any of these issues or please correct me if I went wrong anywhere.

Can we apply format check rule in BRF+ ?

$
0
0

Hello All,

 

 

Is it possible to apply a format check rule in BRF+. If yes then please explain how.

 

I have to apply a validation on Postal Code, that is "For country MT Postal Code length must be 8 characters including space, format: AAA NNNN".

 

Here how can apply check for format "AAA NNNN"

 

where, A is alphabet

N is Numeric

 

Thanks,

Swati Verma

BRF+: Nested table as result data object possible?

$
0
0

Hi experts,

 

I have the following requirement:

 

based on an input table I have to fill three different tables. To determine the values of the output tables, all the entries of the input tables need to be analyzed. As it is not possible to add three result data objects, I defined a structure with three nested table as result object.

Within a loop I want to insert the data to the nested tables of the result data object. But BRF+ doesn't offer me the nested table as target for the insert.

 

Are there any other ways of achieving this?

 

As all this is regarded as one rule from a functional point of view, I don't want to create three functions. If I create three functions, one could call them separately which would lead to a wrong result.

 

Thanks in advance for any help & cheers!

Martin

FDT_CHECK_DB_CONSISTENCY shows errors - what to do?

$
0
0

Hi BRF+ experts,

 

I just run the report FDT_CHECK_DB_CONSISTENCY (via transaction FDT_HELPERS) and get some erros like this one:

  1  ENTRIES in A ( FDT_ADMN_0100S             ) DO NOT EXIST in B ( FDT_ADMN_0030S             )

 

The report FDT_CHECK_DB_WHERE_USED also reports that there are some missing "where used" entries.

 

Is there are a way to get rid of this inconsistency?

 

Thanks and cheers,

Martin

How to fetch brf object admin data(creater, create date)

$
0
0

hi experts:

            Do you know how can i fetch a brf object's admin data by program, such as :creater, create date.

Viewing all 1717 articles
Browse latest View live


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