OS41: data modeler,  how to use it?

Hi,
I'd like to know how to use T-code OS41: data modeler, when do I need to use it? and How to use? Please kindly help.
Thanks and Regards.

Hi Steve
<b>SD11-Data Modeler</b> is used, as its name implies, to model your processes.
You can create entity types, connect tables or views to those entities, implement connections between entities and if needed, you can also insert business objects all in a hierarchical way. You can connect data models to each other as well.
By this way, you document your own processes containing also some technical perspective.
Hope this small piece will give some basic understanding.
*--Serdar

Similar Messages

  • Data Modeler - how to access it

    Howdy All,
    I've heard of somethin' called the data modeller that I should have access to as a developer...
    Does anyone know the transaction and how to use it?
    Thanking you all kindly.

    Hi Steve
    <b>SD11-Data Modeler</b> is used, as its name implies, to model your processes.
    You can create entity types, connect tables or views to those entities, implement connections between entities and if needed, you can also insert business objects all in a hierarchical way. You can connect data models to each other as well.
    By this way, you document your own processes containing also some technical perspective.
    Hope this small piece will give some basic understanding.
    *--Serdar

  • Data Modeler: How to prevent auto surrogate key in supertype/subtypes?

    When forward engineering supertype/subtypes, how can I prevent the automatic creation of a surrogate key (propagated to all super/subs)? Data Modeler creates this SK only at the relational level. I have already defined a surrogate identifier in the logical; the intent is to engineer this to the relational model and propagate to each subtype.
    Thanks,
    Patrick

    Thank you Philip for the explanation. I'd like to dig into this a little deeper, as I may be misinterpreting your explanation, and especially the last bit ( "...but foreign keys from subtype table to super-type table are not created" ).
    My preferred super/subtype implementation consists of a supertype parent table (ideally with a [manually created] discriminator code value) and any number of subtype child tables, all referencing the parent (via FK column/RI). Note that RI is from the supertype/parent to each subtype/child table, not the other way round as Designer docs suggest (one of three different approaches: all-inclusive single-table, detail tables only, master/detail w/ RI from child to parent [arced]). The implementation I suggest ("the fourth way") allows the painless addition of a new subtype simply by creating a new child table and a new discriminator value for the parent. I've had consistent success using this approach with Designer for many years.
    I've verified this successfully with a bare bones logical (3 levels), with appropriate UID on supertype/parent. All seems to transform well to relational model (i.e., all tables have inherited the parent PK, and individual attributes transformed to columns in the appropriate tables). The transform did not include a SurrogateID column.
    However, the transform doesn't work quite so well in my full-blown Party model, even though I ensured that a UID was defined on the logical supertype/parent. also confirmed that Hierarchy relationships are defined between supertypes and subtypes. What else could I be doing wrong that causes the transform to create a SurrogateID column on each super/subtype table?
    And on a similar note: are you suggesting that SQLDev Modeler transforms a supertype/subtype hierarchy with RI from detail tables to the parent table (i.e., backwards) when selecting "Table for each entity"? This approach would require a new FK column added to the parent table whenever a new subtype table was required.

  • Data Modeler - How to move relationship lines?

    I can't figure out how to move the relationship lines on the data modeler.
    Tried a bunch of things that have worked in all the other modelers I've used, but no luck. Couldn't find anything in the help text about it, either.
    Edited by: David Wendelken on Nov 14, 2008 4:07 PM

    Hi Jim, David,
    AutoRoute (on/off) can be managed at diagram level - use right mouse click on empty space.
    In current published release (AutoRoute off) - straight lines (only two connection points) cannot be moved. You need intermediate points (at least one) for better arranging. Points (Elbows ) are created using Ctrl+mouse click.
    Connection points also can be moved in next EA release.
    Philip

  • SQL data modeller -- how to create 1 to 1 relationship foreign key ?

    hi guys...
    i got 2 tables..
    table 1 - CFR
    CFR_ID = primary key
    table 2 - USER_PLAN
    USER_ID = primary key
    PLAN_ID,
    CFR_ID = foreign key reference (table 1)
    The business flows go like this..
    insdie CFR table, it contain all records / transactions of a particular user/plan. everytime a new transaction occurs for a plan/user, a new CFR_ID / row will be generated.
    after which, the newly generated CFR_ID for the new row , will be updated to the CFR_ID in USER_PLAN
    Thus, there is always a 1 to 1 relationship between the 2 table regardless how many CFR_ID is generated for a particular USER_PLAN. as the CFR_ID in the USEr_plan table will always be the latest one generated inside the CFR table.
    However, in the data modeller, i am unable to create such foreign key relationship... ANY idea how do i create a 1 on 1 foreign key relationship ? or there is no such way..
    Thanks and Best Regards,
    Noob

    Hi philips,
    Thanks for the wonderful reply..
    Just to double comfirm with you,
    even if i had set a unique constraint on CFR_ID(foreign key column), inside the relationship model, the relationship between the foreign key is still showing as a 1:m relationship right ?
    just that a character 'U' will appear beside the CFR_ID column.
    However the diagraphm is still showing a 1:M relationship.
    is this correct ?
    Regards,
    Noob

  • Data Modeling for controls using XML views(SAPUI5)

    Hello ,
    I am trying to create Table control using XML view and binding data to it through controller onInit method.
    XML View Code is as follows :
    <core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
        <l:VerticalLayout width="100%">
            <l:content>
                <Text id="description" class="marginAll" />
                <Table id="idProductsTable" items="{       
                    path:'/businessData'
                }">
                    <headerToolbar>
                        <Toolbar>
                            <Label text="Products"></Label>
                        </Toolbar>
                    </headerToolbar>
                    <columns>
                        <Column>
                            <Label text="Product" />
                        </Column>
                        <Column>
                            <Label text="Supplier" />
                        </Column>
                        <Column>
                            <Label text="Dimensions" />
                        </Column>
                    </columns>
                    <items>
                        <ColumnListItem>
                            <cells>
                                <ObjectIdentifier title="{COUNTRY}" text="{COUNTRY}" />
                            </cells>
                            <Text text="{REGION}"></Text>
                            <Text text="{CITY}"></Text>
                        </ColumnListItem>
                    </items>
                </Table>
            </l:content>
        </l:VerticalLayout>
    </core:View>
    Controller onInit method Code is as follows :
    var oData = {
                businessData : [ {
                    'COUNTRY' : "Canada",
                    'CITY' : "Toronto",
                    'REGION' : "US",
                    'LANGUAGE' : "English"
                    'COUNTRY' : "China",
                    'CITY' : "Bejeing",
                    'REGION' : "Ashia",
                    'LANGUAGE' : "Chinese"
            var demoJSONModel = new sap.ui.model.json.JSONModel();
            demoJSONModel.setData(oData);
            sap.ui.getCore().getElementById("idProductsTable").setModel(
                    demoJSONModel);
    Same thing when i tried with JS views , it worked however through XML view , I am getting empty table.
    Is the data modeling correct for XML views?
    Thanks,
    Mahesh.

    I've got it ! The reason for that is you bind items as below,
         <Table id="idProductsTable" items="{    
                    path:'/businessData'
                }">
    This pattern is followed if you wanna add a formatter/sorter/grouping.
    As you don't do any of those you can bind items as below &  it doesn't require  data-sap-ui-xx-bindingSyntax="complex".
    <Table id="idProductsTable" items="{/businessData}">

  • Data Modeler - how can I define a foreign key but disabled

    I am using SQL Developer Data Modeler Version 2.0.0 Build 570 on Mac OS X (Snow Leopard).
    When defining a foreign key constraint, is there a way to define it as disabled?
    When the DDL script is generated, the constraint is defined but it is always enabled, I want it to be disabled.
    This is possible in the Jdeveloper data modeler, but I am missing the method to do this in SQL Developer Data Modeler.
    Any help appreciated.

    OraTone wrote:
    I am using SQL Developer Data Modeler Version 2.0.0 Build 570 on Mac OS X (Snow Leopard).
    When defining a foreign key constraint, is there a way to define it as disabled?
    When the DDL script is generated, the constraint is defined but it is always enabled, I want it to be disabled.
    This is possible in the Jdeveloper data modeler, but I am missing the method to do this in SQL Developer Data Modeler.
    Any help appreciated.Create it and then disable it afterwards if you're using the Connections window to create them.
    If you are generating the DDL edit the ENABLED keyword to DISABLED

  • Oracle Data Mining - How to use PREDICTION function with a regression model

    I've been searching this site for Data Mining Q&A specifically related to prediction function and I wasn't able to find something useful on this topic. So I hope that posting it as a new thread will get useful answers for a beginner in oracle data mining.
    So here is my issue with prediction function:
    Given a table with 17 weeks of sales for a given product, I would like to do a forecast to predict the sales for the week 18th.
    For that let's start preparing the necessary objects and data:
    CREATE TABLE T_SALES
    PURCHASE_WEEK DATE,
    WEEK NUMBER,
    SALES NUMBER
    SET DEFINE OFF;
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('11/27/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 1, 55488);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/04/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 2, 78336);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/11/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 3, 77248);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/18/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 4, 106624);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/25/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 5, 104448);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/01/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 6, 90304);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/08/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 7, 44608);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/15/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 8, 95744);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/22/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 9, 129472);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/29/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 10, 110976);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 11, 139264);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 12, 87040);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 13, 47872);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/26/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 14, 120768);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 15, 98463.65);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 16, 67455.84);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('3/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 17, 100095.66);
    COMMIT;
    There are a lot of linear regression models and approaches for sales forecast out on the market, however I will focus on what oracle 11g offers i.e. package SYS.DBMS_DATA_MINING to create a model using regression as mining function and then, once the model is created, to apply prediction function on the model.
    Therefore I'll have to go through few steps:
    i) normalization of data
    CREATE OR REPLACE VIEW t_sales_norm AS
    SELECT week,
    sales,
    (sales - 91423.95)/27238.3693126778 sales_norm
    FROM t_sales;
    whereas the numerical values are the mean and the standard deviation:
    select avg(sales) from t_sales;
    91423.95
    select stddev(sales) from t_sales;
    27238.3693126778
    ii) auto-correlation. For the sake of simplicity, I will safely assume that there is no auto-correlation (no repetitive pattern in sales among the weeks). Therefore to define the lag data I will consider the whole set:
    CREATE OR REPLACE VIEW t_sales_lag AS
    SELECT a.*
    FROM (SELECT week,
    sales,
    LAG(sales_norm, 1) OVER (ORDER BY week) L1,
    LAG(sales_norm, 2) OVER (ORDER BY week) L2,
    LAG(sales_norm, 3) OVER (ORDER BY week) L3,
    LAG(sales_norm, 4) OVER (ORDER BY week) L4,
    LAG(sales_norm, 5) OVER (ORDER BY week) L5,
    LAG(sales_norm, 6) OVER (ORDER BY week) L6,
    LAG(sales_norm, 7) OVER (ORDER BY week) L7,
    LAG(sales_norm, 8) OVER (ORDER BY week) L8,
    LAG(sales_norm, 9) OVER (ORDER BY week) L9,
    LAG(sales_norm, 10) OVER (ORDER BY week) L10,
    LAG(sales_norm, 11) OVER (ORDER BY week) L11,
    LAG(sales_norm, 12) OVER (ORDER BY week) L12,
    LAG(sales_norm, 13) OVER (ORDER BY week) L13,
    LAG(sales_norm, 14) OVER (ORDER BY week) L14,
    LAG(sales_norm, 15) OVER (ORDER BY week) L15,
    LAG(sales_norm, 16) OVER (ORDER BY week) L16,
    LAG(sales_norm, 17) OVER (ORDER BY week) L17
    FROM t_sales_norm) a;
    iii) choosing the training data. Again, I will choose the whole set of 17 weeks, as for this discussion in not relevant how big should be the set of training data.
    CREATE OR REPLACE VIEW t_sales_train AS
    SELECT week, sales,
    L1, L2, L3, L4, L5, L6, L7, L8, L9, L10,
    L11, L12, L13, L14, L15, L16, L17
    FROM t_sales_lag a
    WHERE week >= 1 AND week <= 17;
    iv) build the model
    -- exec SYS.DBMS_DATA_MINING.DROP_MODEL('t_SVM');
    BEGIN
    sys.DBMS_DATA_MINING.CREATE_MODEL( model_name => 't_SVM',
    mining_function => dbms_data_mining.regression,
    data_table_name => 't_sales_train',
    case_id_column_name => 'week',
    target_column_name => 'sales');
    END;
    v) finally, where I am confused is applying the prediction function against this model and making sense of the results.
    On a search on Google I found 2 ways of applying this function to my case.
    One way is the following:
    SELECT week, sales,
    PREDICTION(t_SVM USING
    LAG(sales,1) OVER (ORDER BY week) as l1,
    LAG(sales,2) OVER (ORDER BY week) as l2,
    LAG(sales,3) OVER (ORDER BY week) as l3,
    LAG(sales,4) OVER (ORDER BY week) as l4,
    LAG(sales,5) OVER (ORDER BY week) as l5,
    LAG(sales,6) OVER (ORDER BY week) as l6,
    LAG(sales,7) OVER (ORDER BY week) as l7,
    LAG(sales,8) OVER (ORDER BY week) as l8,
    LAG(sales,9) OVER (ORDER BY week) as l9,
    LAG(sales,10) OVER (ORDER BY week) as l10,
    LAG(sales,11) OVER (ORDER BY week) as l11,
    LAG(sales,12) OVER (ORDER BY week) as l12,
    LAG(sales,13) OVER (ORDER BY week) as l13,
    LAG(sales,14) OVER (ORDER BY week) as l14,
    LAG(sales,15) OVER (ORDER BY week) as l15,
    LAG(sales,16) OVER (ORDER BY week) as l16,
    LAG(sales,17) OVER (ORDER BY week) as l17
    ) pred
    FROM t_sales a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 104816.995823913
    3, 77248, 104816.995823913
    4, 106624, 104816.995823913
    As you can see for the first row there is a value of 68861.084 and for the rest of 16 values is always one and the same 104816.995.
    Question: where is my week 18 prediction ? or maybe I should say which one is it ?
    Another way of using prediction even more confusing is against the lag table:
    SELECT week, sales,
    PREDICTION(t_svm USING a.*) pred
    FROM t_sales_lag a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 75512.3642096908
    3, 77248, 85711.5003385927
    4, 106624, 98160.5009687461
    Each row out of 17, its own 'prediction' result.
    Same question: which one is my week 18th prediction ?
    Thank you very much for all help that you can provide on this matter.
    It is as always highly appreciated.
    Serge F.

    Kindly let me know how to give input to predict the values for example script to create model is as follows
    drop table data_4svm
    drop table svm_settings
    begin
    dbms_data_mining.drop_model('MODEL_SVMR1');
    CREATE TABLE data_4svm (
    id NUMBER,
    a NUMBER,
    b NUMBER
    INSERT INTO data_4svm VALUES (1,0,0);
    INSERT INTO data_4svm VALUES (2,1,1);
    INSERT INTO data_4svm VALUES (3,2,4);
    INSERT INTO data_4svm VALUES (4,3,9);
    commit;
    --setting table
    CREATE TABLE svm_settings
    setting_name VARCHAR2(30),
    setting_value VARCHAR2(30)
    --settings
    BEGIN
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.algo_name, dbms_data_mining.algo_support_vector_machines);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_kernel_function, dbms_data_mining.svms_linear);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_active_learning, dbms_data_mining.svms_al_enable);
    COMMIT;
    END;
    --create model
    BEGIN
    DBMS_DATA_MINING.CREATE_MODEL(
    model_name => 'Model_SVMR1',
    mining_function => dbms_data_mining.regression,
    data_table_name => 'data_4svm',
    case_id_column_name => 'ID',
    target_column_name => 'B',
    settings_table_name => 'svm_settings');
    END;
    --to show the out put
    select class, attribute_name, attribute_value, coefficient
    from table(dbms_data_mining.get_model_details_svm('MODEL_SVMR1')) a, table(a.attribute_set) b
    order by abs(coefficient) desc
    -- to get predicted values (Q1)
    SELECT PREDICTION(MODEL_SVMR1 USING *
    ) pred
    FROM data_4svm a;
    Here i am not sure how to predict B values . Please suggest the proper usage . Moreover In GUI (.NET windows form ) how user can give input and system can respond using the Q1

  • Data Modeller: how to create and use collection type

    Hello,
    basically subj. I'm not clear how to ( for example ) create and use the data type based off the varray data type.
    Please advise.
    thank you
    andrew

    Hi Andrew,
    you can create collection types (varray/table) in two ways:
    1) in browser - find "Data Types">"Collection types" node use pop-up menu - it's just "create new collection type" there
    2) in Data types model diagram - you can create collection of "certain structured type" or collection of references to it - use "new Collection ..." tool and first click on referred structured type and after that on structured type that will hold the collection - new attribute is added in latter type and if there is no such collection type already defined new collection type is created and you can edit it later.
    Philip

  • Time and date function, how to use?

    Hello everyone,
    I want to know that how can we make use of these two system functions SY-TIMLO, SY-DATUM ?
    What should i write in data? pbo? pai?
    Should i write something like this in data?
    DATA: Ok_date TYPE SY-DATUM.
    DATA: Ok_time TYPE SY-TIMLO.
    What should i write in pbo and pai and should i need to make changes in screen elements? do i need to create one?
    Please guide and explain with an example. Thanks a lot for writing back.
    Regards,
    Lucky
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Aug 4, 2009 12:14 PM

    Hi,
    create two variables in the top include..
    data :P_date type Sy-datum default sy-datum,
    p_time type sy-uzeit default sy-uzeit.
    Next go to screen and enter table syst...
    and select datum and uzeit and drag to screen..
    and rename the field to p_date for syst-date and p_time for syst-uzeit.
    Prabhudas

  • TDMS "data model" - how to evaluate?

    We are using TDMS for quite some time now and I see certain data transfers which I do not understand:
    Table SRRELROLES
    That table is always transferred completely in our system (13 years of data, > 70.000.000 entries) even if I select to only transfer two months.
    After having opened an OSS call (155066/2009) I was told, that selection criteria is as following:
    ( ( OBJTYPE = 'IDC0'
    OR OBJTYPE = 'IDC1'
    OR OBJTYPE = 'IDCB'
    OR OBJTYPE = 'IDC4'
    OR OBJTYPE = 'IDC9'
    OR OBJTYPE = 'IDC8'
    OR OBJTYPE = 'IDCA'
    AND UTCTIME >= '20081001000000'
    OR
    ( ( NOT OBJTYPE = 'IDC0'
    AND NOT OBJTYPE = 'IDC1'
    AND NOT OBJTYPE = 'IDCB'
    AND NOT OBJTYPE = 'IDC4'
    AND NOT OBJTYPE = 'IDC9'
    AND NOT OBJTYPE = 'IDC8'
    AND NOT OBJTYPE = 'IDCA'
    If I do the select on our database:
    SQL> select count(*) from SRRELROLES where
      2  OBJTYPE = 'IDC0'
      3  OR OBJTYPE = 'IDC1'
      4  OR OBJTYPE = 'IDCB'
      5  OR OBJTYPE = 'IDC4'
      6  OR OBJTYPE = 'IDC9'
      7  OR OBJTYPE = 'IDC8'
      8  OR OBJTYPE = 'IDCA';
      COUNT(*)
             0
    So the first term of the SQL will not read anything, the second after the OR will read all.
    I don't understand that.
    I have a few other BIG tables, that are also completely transferred (PPOIX, PPOPX, IDOCREL) and if any of the data of those tables is the base for other data, then it's understandable, that our target systems are MUCH too big.
    Is there any method of finding out how the tables are "related" against each other and how the data is read?
    Regards,
    Markus

    Hi Markus,
    I don't know if you noticed, but SAP created note 1326118 to change the way that SRRELROLES is filtered. It might improve the results you get on your system, it did improve on mine.
    By the way, that note changes the standard config by updating CNVMBTSELGRPVAL, so it will give you an insight on what are the standard filters (and how to manipulate them if needed). It's also true, though, that some filters are hard-coded in the selection programs.
    Hope this help,
    Rui Dantas

  • Data Modeler - How to add foreign keys to physical model?

    I imported few tables from data dictionary and tried to generate a DDL file. The DDL didn't include foreign keys for some reason. Then I noticed that the foreign keys are in the relational model but not in the physical model. How do I get those foreign keys to the physical model?

    That's the place where I'm looking for the foreign keys in physical model. I noticed that in relational model the Generate check box of a foreign key was unchecked. When I checked it, the key appeared in the physical model. But why is it unchekced sometimes? This has happened only few times, usually the foreign keys do appear in the physical model. If I do something special during import, I don't know what it is...

  • Data Merge:  How to use script on the preview next a record and pre a record?

    Preview data records too much, want to use the script implementation preview next a record and pre a record, and set shortcut keys for the script.
    the following script can be opened and closed to preview:
    app.menuActions.itemByID(108035).checked
    But I don't know preview next a record and pre a record script in how to implement.

    Bump. I'm looking for this shortcut as well. Any help would be very appreciated.

  • [FB4] PHP Data Service - how to use with DB2?

    Hi,
    I've tried to follow the tutorial that wires a datagrid to a PHP service. However I need to get data from DB2 rather than MySQL. I have created the service and populated an array using db2_fetch_object - the service works as I can call it with a simple test PHP script. However if I try to use this in the Data Service dialogs, when I get to the point of creating a return type for my getAllItems() call, it returns an error telling me to look in my server logs. My PHP logs say nothing.... Does this work with DB2? As far as I know the data returned by a db2_fetch_object is pretty close to the mysql version.
    Thanks
    NB my PHP code is as follows:
    public function getAllItems() {
            $rows=Array();
            $query_cust = ".....SQL in here.............";
            $conn = connectLocal();
            if ($conn) {
                //error_log("Got connection");
                $stmt = db2_prepare($conn, $query_cust);
                $thisrow=0;
                db2_execute($stmt,array(0));
                while($row = db2_fetch_object($stmt)){
                    $rows[$thisrow]=$row;
                    //error_log($row->CUSTNUM);
                    //error_log($rows[$thisrow]->CUSTNUM);
                    $thisrow++;
                db2_close($conn);
            return $rows;

    OK, if I remove the customer name field all works OK. So I tried reinstating the customer name field but modifying it in the returned array with a custom PHP function that replaces all the non-printing characters with acceptable ones. This function works ok when I create XML to use with Flex 3 datagrids, or with some javascript apps that use JSON arrays. But I still get the error. This is the function I use:
    function stripcharsnotblanks($input){
    $output = str_replace("&","+",$input);
    $output = str_replace('"',"",$output);
    $output = str_replace("²","+",$output);
    $output = str_replace("ü","ue",$output);
    $output = str_replace("ä","ae",$output);
    $output = str_replace("ö","oe",$output);
    $output = str_replace("Ö","Oe",$output);
    $output = str_replace("\'","'",$output);
    $output = str_replace("€","Eur",$output);
    $output = str_replace("/","",$output);
    $output = str_replace("%","pc",$output);
    $output = str_replace(">","]",$output);
    $output = str_replace("<","[",$output);
    $output = str_replace("@"," at ",$output);
    $output = str_replace(";",":",$output);
    return $output;
    Do you know of any other characters that could cause problems with AMF?
    Thanks

  • What is data modeling how it is linked to BAPI?

    Hi,
    What is Datamodeling and how it is linked to BAPI?
    Immediate reply is highly appriciable?
    Regards,
    Chow.

    Datamodelling is much like all other modelling.
    First you create a drawing of the original object. Then you buy some plywood or other suitable material for your model and cut this according to your drawings and scale. If you are rich and have the time you can create a 3D-model of your object and get laser-cut plastic or metal parts for your model.
    When you have all your parts it is time to paint them. If you are lucky there is a shop specialising in everything for modellers, so they will have different kinds of paint in a good variety of colours.
    Finally you assemble everything, and - hey - there's your model. Now, that wasn't too difficult, was it?
    The answer to your second question is that datamodelling fits BAPI like a glove fits a fish. At least that is usually the case, but it depends...

Maybe you are looking for

  • Bluetooth Not Available on Intel Mac mini

    I keep losing the Bluetooth wireless connection between my Apple wireless mouse and keyboard and my Intel Mac mini (which is running Mac OSX 10.5.5) Tried re-booting but it doesn't always come back. Looked in System Preferences, but if the connection

  • WRT54GX2 slow connection all the time, even when right next to it.

    My connections are always dropping since I bought the router. Even when I am close to the router the connection is still slow. I keep my PC optimized always so I have ruled out the laptop. Are there any setting changes that I might try? I use my wire

  • Building a Oracle 10g db from the scratch for arabic data

    I want to create a new db in Oracle 10g for storing the arabic data. My client machine is Arabic Windows XP. What are the steps that i will need to follow to make the db arabic supported. What streps will be required if i choose to make it unicode su

  • PC Folders to MacBook

    Hello.. I am new to this Mac system... I have been a Windows guy for as long as I can remember.. The last Apple product I has was a Macintosh... So I am have a bit of issues with this and really debating about returning it back to the store and just

  • Do I need an online number to get a call from some...

    Hello, Do I need an online number to get a call from someone in Europe who is calling from their computer?