API or Trick to Access Decision Table Content

Hi,
I am modeling a BPM process which calls web services based on a BRM rule with a decision table. In the beginning I need to read the decision table content into the BPM process context (in order to get the selection condition for reading objects from an SCM system). Is there a way I can access the content of this BRM decision table (via web service, java or any other way)?
Thanks,
Eduard

Hi Eduard,
From what I understand(from the post and my brief discussion with Michael Hill few days back), there are a set of work orders in the SCM system that you want to read and see if they meet the scrap tolerance level. But the Decision Table doesnt have scrap tolerance level defined for all combinations of product type/date etc.
So you want to
(1)initially get the parameters for which scrap tolerance is defined (read the contents of decision table)
(2)get only those work orders from the SCM (filter outside rules)
(3)check if these work orders satisfy the scrap tolerance level (rule execution)
Please correct me if I am wrong.
Can we remove the steps (1) and (2) and instead get all the work orders from the SCM system and see if they satisfy the scrap tolerance level(only rule execution, filtering is also done in rule). For work orders whose scrap tolerance is not defined, the decision table will not return the default value. So if the default value is returned(filtering), no check is made if scrap is within tolerance.
Please let me know your opinion.
Regards,
Sowmya

Similar Messages

  • Attach a selection screen to a Tcode before accessing the table Contents

    Hi All,
         I have a requirement where when we access table from se16 we get a default selection screen...So the same selection screen should b displayed when that table is accessed directly with a transaction code attached to it..i mean the path is Tcode -->selection screen --> table/view contents.

    Hi srinivas,
    first let us discuss about your requirement.when you go to transaction se16 and enter a table name and then when you press enter you will get a selection screen to cretae or view contents of that table.you want to get that selection screen by entering any tcode in command bar.
    if this is your requirement please follow these steps.
    1)go to se16
    2)enter the table name and then press enter.you will get a selection screen for that table as we discussed
    3)in the selection screen go to menu item
      System->Status...
    you will get another screen
    4)in that screen you will see
    in SAP data->in Repository data->Program(Screen)
    note that program name
    5)go to se93(to create a transaction)
    6)enter a tcode which you like and press create
    7)  you will get another screen and in that screen select the radio button
       Program and selectio screen(Report Transaction)
    8)you will get create report transaction screen
    9)in that screen in program text box enter the program name that you noted earlier
    10)check all the checkboxes in GUI support
    11)save,check and execute the transaction.you will get the selection screen that you get when you use se16 for that table.
    please check the screen by entering the tcode that you created in teh command bar.
    please reward points if useful.

  • Accessing Lock table contents

    Hi,
    In one of my custom program I have locked the batches of MCHB, for this I have created a lock and object.
    I would need  afavor wrt to Locks.
    Now after locking I wanted to see the contents or the batches that are locked so that would like to filter the locked batches and pick the unlocked ones.
    Please do ehlp me out in finding a solution.
    Bwaj.

    i think you want in your program, be able to see locked batches... try using function
    call function 'ENQUEUE_READ'
        EXPORTING
          gclient = gclient
          guname  = guname
          gname   = gname
          garg    = garg
        IMPORTING
          subrc   = subrc
        TABLES
          enq     = enq
        EXCEPTIONS
        exceptions
          communication_failure = 2
          others  = 1.
      if sy-subrc = 0.
        exit.
      elseif sy-subrc = 2.
        message w116.
      endif.
    i only use parameter gClient and gUname. You should use whatever you need...
    After call this function table enq is filled by all locks

  • Decision table rules manager content disappearing

    Hi Experts,
    We have BRM decision table deployed . I can access that from Portal and Rules manager . I can modify the content of that table . No Problem till now .
    The problem is :
    Every time transport happens to P  for any thing (not related to table ), that content of table is removed automatically .And i have to do the entries again Manually .
    this is very difficult and unreliable . Please suggest how we can make that content persistent even we deploy something .or how can i upload content fast after deployment . say from some excel or file .

    Hi Govind,
    Well it could be a real problem but I suspect you are missing a couple of steps... to check...
    Before making any changes in your NWDS, you should be downloading the current active version of the Rules Project and importing that into your NWDS.  Suggest you read the SAP Library help on this one and you'll need to get security to give you BRM Download access - there's a security action for this that they need to add to your security role in the production environment.
    This is the link you need:
    http://help.sap.com/saphelp_nw73/helpdata/en/4d/9d62f71ede478e9496a29fe1533976/frameset.htm
    As for how to upload the decision tables content en masse... that's that the export/import (to/from MS Excel) buttons are for in the decision table section of Rules Manager and where you, or better still your business user (these are business rules after all ), should be doing this.
    Hope that helps,
    Jocelyn

  • Update a table content in database MS access

    Hi
    In my application i am using Database toolkit to write a table in to MS access.
    i am able to write a table in to database but i am facing problem in editing a perticular cell in a table which is there in data base, how this can be achieved?
    When i use insert data vi, a row of data is being inserted. but in my application i need to keep updating the data in the same field.
    Ex: If i have writen a data in the 1st row i should keep updating the values of the 1st row basically i need to edit table contents.
    regards
    anil 

    Anil
    You can DB Tools Execute Query to run an UPDATE query. Take this example where I use the example labview.mdb database in ...\examples\database directory. This VI allows the user to UPDATE the PhoneNumber field for record with CustomerID=23311 which is the first record.
    Hope this helps
    David
    Message Edited by David Crawford on 10-07-2006 09:37 AM
    Attachments:
    Example to Update PhoneNumber Labview MDB (8.0).vi ‏16 KB
    Update Phone Number.jpg ‏17 KB

  • How to control access to the contents of a SAP table?

    How to cotrol the access to the contents of a SAP table based on Company Code?
    The user should be able to view the data belonging to only the Company Code for which he is attached.

    Hi Venkatabby ,
    i did'nt get your Question.User will not be given any Authorization to table.so where is the question of seeing
    that particular company code details.Correct me if i am
    wrong.
    thanks and regards,
    Rajeshwar.

  • Call Decision Table in WDJ using SAP BRM API

    Hello All,
    Have created Decision Table(DT) with a condition and a action based on my condition value it should return action value.
    eg: DT contains condition header as ID and action header as Name
    Base on input ID it  should return corresponding Name;
    tried to do this with below code :
    try{
       DefaultRulesEditAPIFactory apiInstance = DefaultRulesEditAPIFactory.getInstance();
       RulesEditAPI  api = apiInstance.getAPI();
       String projectName = "dc_example_brm";
       IProject project = api.getProject(projectName);
       String rulesetName = "RS_example";
       IRuleset ruleset = project.getRuleset(rulesetName);
       String decisiontableName = "DT_Id_Name";
       IDecisionTable dt = ruleset.getDecisionTable(decisiontableName);
       IDecisionTableQuery dte = dt.createQuery();
       dte.setConditionValue("ID", "xyz");
       String val = dte.getActionValue("Name");
       wdControllerAPI.getMessageManager().reportSuccess("dt value:"+val);
    but getting val always null.
    Please help me how to get proper action value.
    Regards
    Sri.

    Hi Siddhant,
    yes, i know that process but here i wanted to call DT by using SAP BRM API.
    Regards
    Sri.

  • How to access IFS document contents in PL/SQL procedure ?

    I am interested in using IFS as a way to load documents
    (PDF, HTML, RFT, text...) in an Oracle database table, and
    then access the table via a regular application Server.
    I understand that the right way to do this is via a Java API
    mapped on top of IFS.
    But we already have a fairly sophisticated web application using
    Java and PL/SQL procedures so that I would ideally need
    to write a PL/SQL procedure such as :
    function get_document (ifs_file_name in varchar, ifs_file_path in varchar) return clob
    For this I need to outline how to query the IFS schema using SQL.
    Any idea which table to query ?
    Have a nice day

    Many thanks to Chris Schneider : it works. Withing a few hours
    I was able to make a servlet with a file name as a parameter which sends back
    the file contents (in our case its a PDF file).
    Here is a sample servlet which uses this access scheme :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class TestIFS extends HttpServlet
    * Handle the GET and HEAD methods by building a simple web page.
    * HEAD is just like GET, except that the server returns only the
    * headers (including content length) not the body we write.
    public void doGet (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    //PrintWriter out;
    String title = "Test d'acchs IFS";
    // set content type and other response header fields first
    response.setContentType("application/pdf");
    // then write the data of the response
              ServletOutputStream outbin = response.getOutputStream();
              String theQuery=
         "SELECT "+
         " odm_publicobject.name object_name"+
         ", odmm_contentstore.id content_id"+
         ", odm_format.mimetype"+
         ", odmm_contentstore.globalindexedblob "+
         "FROM odm_publicobject"+
         ", odm_document"+
         ", odm_contentobject"+
         ", odmm_contentstore"+
         ", odm_format "+
         "WHERE odm_publicobject.id = odm_document.id "+
         "AND odm_document.contentobject = odm_contentobject.id "+
         "AND odm_contentobject.content = odmm_contentstore.id "+
         "AND odm_contentobject.format = odm_format.id "+
         "AND odm_publicobject.name = ";
              theQuery += "'" + request.getParameter("fic") + "'";
              try {
                   System.out.println("TestIFS debut");
                   DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
                   Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@LXP9","ifssys","ifssys");
                   Statement stmt = conn.createStatement ();
                   ResultSet rset = stmt.executeQuery (theQuery);
                   while (rset.next ()) {
                        byte b[] = new byte[10000000];               
                        b = rset.getBlob(4).getBytes (1,10000000);
                        outbin.write (b);
                   rset.close();
                   System.out.println("TestIFS fin");
              catch (Exception e) {
    (beware mime type is forced to PDF, and file size max 10Mb)

  • Modifying Condition Decision Table in TM 8.0

    I have created a condition with 5 Data Access Definitions.  When I go to the Decision Table, it is only on half the page and none of the columns are readable.  I am fairly new to personalizing the page and need some insight into how to get the table to fit across both halves of the page with the goal that it will be readable.  I am willing to modify the underlying UIBB, but am a bit paranoid about breaking something.
    Is there a way to personalize the page in NWBC for just myself so that the column contents are readable?
    Thanks,
    Mike
    Edited by: Michael Appleby on Sep 8, 2011 8:34 PM

    Did you define the Incompatibility (under Application Administration)?  I think you would enter the Incompatibility in the Ev. Result.  The condition would define which incompatiblity would apply in your given circumstances.  Perhaps you would be better off with a Condition for a different FUBR to apply with a product ID of Milk?  Or set it up as the Incompatibilty Settings in your Transportation Cockpit (which would apply a given Incompatibility when planning). 
    Regards,
    Mike

  • Import MS Access 2013 tables into SQL Server 2012

    Hi there,
    Is there a step by step example somewhere showing how to import an MS Access 2013 table into SQL Server 2012?
    I have read the existing posts and don't see a definitive answer.
    I have installed MS Access 2010 engine, first 32 bit then 64 bit.
    I have installed the MS Access 2013 runtime on my server.
    I use the Office 2015 Access Database Engine OLE DB Provider.
    I get the error:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database.
    The post regarding the above errors doesn't resolve the issue.
    I have full administrative permissions on the server.
    What is the trick to making this work?
    Thanks,
    Ric
    Ric Miller

    Hi there,
    I tried the exact same operation on a third machine.
    This machine has Windows 8.1 64 bit, SQL Server 2012 64 bit, MS Office 2013 Plus 32 bit.
    I am the administrator on this machine.
    I installed this:
    Microsoft Access Database Engine 2010 Redistributable 32 bit (because I have MS Office 2013 plus 32 bit installed.)
    From here:
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    It won't let me install the 64 bit version without uninstalling MS Office 32 bit.
    I created an MS Access database on this machine using MS Access 2013 and created a table with 3 records.
    I used the "Import and Export Data (32 bit)" from the start menu.
    After I installed the "Database Engine 2010 32 bit" driver above, I now have the option of "Office 2015 Access Database Engine OLE DB Provider" as Data Source which I did not have prior to doing this installation.
    I selected the driver and added the Properties of the Data Source Name file location of the MS Access file. I am using a blank password.
    I go thru the same sequence of selecting a table to import and after running the result is the same:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    "Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database."
    This seems to be consistent across three machines with three operating systems with the same files and the same result.
    I understand that some people have gotten this to work.
    I would appreciate it if anyone can report an error in the above procedure to me.
    Thanks,
    Ric
    Ric Miller

  • Problem in creating 800 client to see table content .

    HI,
        I am new to sap .  I have ideas 4.7 in windows 2003.  i can see table content under user sap* and password 060719* . I  have created a user sapuser . through client 000 , i can create create abap program , but could not find ant table content like mara . at first time  after creating sapuser , it asked me the access key. i gave 36687663221261278694 and it has taken . but to see table content , i created a new user as partha in client 800. but at first time at the time of logging it is asking the access key. though i am giving same key it is not taking .
       1) is there any other key for that educational version ?
       2) how to crreate a user in client 800 . pls give step by step procedure .
       3) for creating a user under client 800 . should i delete my sapuser created under 000 client.

    Hi Jack,
    First of all, the client 000 is one of the standard clients that comes with any SAP R/3 installation (with client 001 and 066 (for EarlyWatch for SAP auditory purposes)). To work with the system you should always make a copy of the client 000 or 001 to a new client i.e. client 200, 400, or whatever name.
    In the case of IDES, the system always comes with the client 800, where you can find all the IDES configuration and data (for test, training, sandbox). If you want to work in the system you should work on this client (800). To check the tables you can always use transaction se12 (table structure: fields, keys) and se16 to see the table content. If you want to create users you should always do it in the client 800 or any other client you've created (not in the standard ones 000, 001, 066, try to maintain these clients clean of any custom data).
    To view the tables data you dont need any key.  The keys are requested when you want to register a developer user (to create a new abap program (all the new programs must start with Z (or X,Y) to differentiate from the standard SAP programs. The keys are also requested when you want to edit a standard program or table or any other standard SAP object.
    1) To get the keys for any SAP system (there are 2 types of keys: developer user and for editing any standard object) you must log on the OSS service (with the user and password provided by SAP when you got your SAP software) : service.sap.com/sscr. Here you use the installation number of your IDES system (the system must be registered in OSS) and then you can create your developer users or standard object keys.
    2)To create a user in any system you need to go to transaction SU01. Here you can make a copy of SAP* user for example (choosing in the trx the button copy) to create your new user. you assign a password to the user and save it. You need to login again on the system and put your new password. This is the easiest way, otherwise you can create a user from zero but you will need to add more information to the user. To start you can create a copy of SAP* or DDIC users.
    3) Yes, I suggest you delete the user you've created in client 000, try to keep it clean of any customer modifications (you could leave it there but is not a good practice).If you want to work with your IDES system and the IDES data, use the client 800.
    Good luck,

  • How to print table contents?

    hi @,
    I am having a view which is dsiplaying data fetched from the R/3 through Adaptive RFC in a table. This table need to have a print functionality to print on the client.
    How to do this I am not having any function / UI to do this.
    Any help.
    Regards

    Hi,
    Try This:
    When the user click on Print button, launch a new window as below:
    public void onActionPrint(com.sap.xyz.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionPrint(ServerEvent)
              StringBuffer strB = new StringBuffer("/webdynpro/dispatcher/xyz.com/(component name space) ab~xyz~testprint/(application name)PrintTestApp");
              IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strB.toString(), "Print");
              window.show();
        //@@end
    The above code helps to launch a new window with your Web Dynpro application. The application is sepecific to print functionality.
    ThePrintTest App should have the content with format what exactly you would like to print. (Users use the browser standard print functionality to print the table content).
    This is a kind of work around and as of NW 7.0 there is no standard print functionality available in Web Dynpro.
    Thanks
    Krishna

  • Accessing dictionary tables from dynpro?

    Hi all
    As far as i know, there are 4 approches to access dictionary tables from webdynpro.
    -entity bean
    -sqlj
    -jdbc
    what are the advantages and disadvantages for all above?
    and which one to go for?

    Hi swathi
    See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
    Relational Persistence
    =================
    SQL-based coding: expressive!
    SQLJ: for static SQL, checked at design time,
    recommended
    JDBC: for dynamic SQL, can be combined with SQLJ
    =======================
    Object-relational Persistence
    ======================
    SQL-free! Portable!
    JDO: light-weight object persistence, Java-like dynamic
    query language
    EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
    Regards,
    Venkata Kalyan Karanam

  • Accessing internal table declared outside of BAdI  implementation

    I am working on a BAdI implementation and within the BAdI, I need to manipulate the data of an internal table that is declared in the calling routine.  This internal table is not a parameter to the BAdI call.  I am wondering is there a way to access the internal table that is not recognized by the BAdI implementation?  If so, what's the syntax to do this?
    I know in debug mode, I am able to access the content of the internal table by using (Program)Itab.  But I get a syntax error when accessing the internal table using (Program)Itab syntax. 
    Any help is appreciated!

    Thanks, Max.
    I tried your method, but I am getting a short dump due to type conflict.  I think it's because the internal table I'd like to access is declared using the following syntax:
    data: begin of itab occurs 0,
          end of itab.
    Therefore, when processing the assign statement, the field-symbol is being treated as a structure...
    I tried to change the field-symbol type to any, but after that, I can't modify the table content using loop at type of syntax..
    Do you have any other suggestions? 
    Thanks very much!

  • Edit decision table from the web module

    Hello every one <br>I am using decision table to create rules and my question is can I edit decision table from the web module <br> i.e. can I change decision table values from jsp files(invoke.jsp) and if yes can any one please tell me the steps I should fallow to do it.<br>
    thank you.

    Hi Pratap,
    No, this is not possible. The Decision Table API is not public and the condition and action values can be changed only through the NWDS in BRM 7.1.1
    Regards,
    Arti

Maybe you are looking for

  • Two Days of Restore Error Code 6... HELP!!!

    I have an iPod Touch that's about two years old. I no longer have access to the laptop that it is normally synced to, so I downloaded iTunes on the family computer. After hours upon hours of problems (not syncing, or showing that it successfully sync

  • RMBP 2013 not going to sleep..

    I have a 15" rMBP from 2013 with Mavericks 10.9.4 installed. I got two monitors plugged in via Thunderbolt cable, and the MBP lid closed. After the selected time period, the displays will go to sleep, but the computer will not. I remember there used

  • How do I copy image from web and paste into Open Office Document

    Whenever I choose Copy Image from Safari and then paste into open office, I only get the image url and not the image. I am sure that I am not selecting Copy Image Address. When I copy images from my iTunes album artwork and paste into open office it

  • IWeb '08 transfer to another computer

    I have been using iWeb '08 for a while now and love it. I run a website for a university organization. I am graduating soon and need to pass the website to the next person. The next person has iWeb '08. How can I transfer the files to their computer?

  • OC4J hanging

    The OnlineOrders sample in Oracle HTTP Server can run perfectly with BC4J libraries in Oracle8.1.7 or Oracle9iAS 1.0.2. However, OC4J will hang when I try to run it with new BC4J libraries in JDeveloper3.2.2/3.2.3. Does this mean that OC4J only works