Bc4j field validation that involves more tables and is defered at commit

For us is very common that business logic involves
more (aggregate) tables.
For example consider a invoice and
the lines of the invoice. These are two tables but
a business rule say that the sum of the line should
be the total column of the invoice. Moreover the
total of the invoice can't be zero. The need the
existence of the total column in invoice is required
because speed up queries and for the constraints and
we can't make it only a display value of a
query.
How can I make this with bc4j? Note that should
be a defered constraint because during elaboration
this constraint can't be temporary violated
(ie durign line adding).
Thanks.
Davide.

See this link for a pointer to a whitepaper on implementing business rules in BC4J for tips on this.
http://radio.weblogs.com/0118231/2003/09/04.html#a145

Similar Messages

  • Is it possible to have a cFP application that involves more than 8 modules?

    I have an application that is using a cFP-2200 with an 8 slot backplane, but i need to read 9 modules and potentially more, is there a solution to this?  I know with the old field point there were expansion backplanes that you can use.
    Any response is greatly appreciated.
    Chris

    I don't understand. The 1804/8 will have a unique IP address which can be assigned to it statically/dynamically from MAX, the same as you would do for any other NI PAC controller. You can, then, access the modules of the expansion chassis using the Fieldpoint API or shared variables, both using LabVIEW. Have a look at the link in my previous post and that should explain the process to you.
    Message Edited by Adnan Z on 02-17-2009 04:37 PM
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Show a Field type Flag in a Table and edit it

    Hi,
    i'm a beginner in Web Dynpro and i tried to solve on my own reading previous mails but i didn't find the solution.
    In my view i have a table binded from a table returned from a function called in the COMPONENTCONTROLLER.
    The custom structure of this table exist in the dictionary and one of these fields has the domain FLAG.
    1. Problem:
    when i run my Web Dynpro i don't see the classic FLAG but the character 'X' or nothing.
    2. Problem:
    I want to edit this field, switch on and switch off it, but not the other fields.
    P.S.
    Does exist some good manuals in the web where i can find this kind of information?
    Thanks a lot.
    KR
    Massimo.
    Edited by: sforza massimo on Dec 17, 2008 5:01 PM

    ok, i have solved it...

  • How to prevent downloading? because my sister always downloading any files that has more MB and it will store to the memory, so i wanted to stop download.

    Thank you, please answer my question

    You can look at this extension:
    *Public Fox: https://addons.mozilla.org/firefox/addon/public-fox/
    Note that an extension can easily be bypassed by starting in Safe Mode (hold down the Shift key when starting).

  • A way to find out tables and fields referred by a transaction

    I want to know whether there is a way to find all the database tables and fields referred by a transaction. I know that we can do F1 on each field to get the reference table and the fielname but its taking a lot of time for me..I need to know if there is any program or a way(some tool) to find out the tables and fieldnames for a transaction. Any help would be greatly appreciated..
    Thanks,
    Mohsin.

    Hi Mohsin,
    As suggested <b>SQL Trace</b> is the best Option.
    Say inorder to Find the field inf. you can use SQL trace (ST05) .
    <b>Steps for the same:</b>
    1) Go to ST05 --> Activate Trace.
    2) Run the trasaction , make some changes to the field for which you want to have the table name then SAVE.
    3) Go again to ST05 ---> Deactive Trace
    4) List trace
    5) Then search for the chaged value which u had done on that transaction.
    6) With this you will be able to see the table name in the Obj. name column.
    **How can we find out what tables are being referred for what field???.
    For this , one way which i follow other then F1 is :
    <b>i follow Steps 2 and step 5</b> which help me to locate those values only for which i am looking for the table only as with the changed value in transaction which u had done in step 2 and after saving it it will go to the DB table and on searching the same changed value in the trace give u the quick link of the table .
      It helped me many times and saves time by doing linke this otherwise u have got all the options to as suggested by the FORUM .
    Cheers
    Sunny
    Rewrd points, if found helpful

  • BAPI_GOODSMVT_CREATE not updating VBUK table and field WBSTA

    Hi all,
    We post good receipt for the inbound delivery using BAPI_GOODSMVT_CREATE. Upon the successful completion of GR, however, field WBSTK & GBSTK in VBUK table and field WBSTA & GBSTA in VBUP table are not getting updated from A to C for the inbound delivery.
    Wondering anybody here has experienced the similar issue before? And so, how to get it fixed without having to switch to a BDC program?
    Thanks,
    Franc

    It seems this BAPI dose not update the VBUK  fields.
    Edited by: Franc on Aug 11, 2008 3:12 PM

  • How do I restore field description in "View Responses" table

    I inadvertendtly deleted the row of text at the top of the View Responses table that is linked to the form field. So now in the View Responses table, I can see the answers but not the questions. Is there a way to restore the link back to the form field without going into the table and typing in all the questions?
    Figured it out. Discovered that by editing one character in the field on thje form, the text reappears in the table.

    So do you not have a question any longer then?  Sounds like you figured out a way to get them back.  Actually a good trick, I'll add it to the related FAQ - thanks.
    Thanks,
    Josh

  • How to nest  two or more tables in layout of an  adobe form?

    hi gurus,
    i have the requirement to loop one line item table inside that item conditions table and
    item shedule table...
    ie say the item no ,description,quantity,uom,price will be printed for each line item and then   
    all the item conditions will be printed for that item and then the delivery schedule table then again all the three tables for the next line item and so on...
    So i have to loop the item condition table and the schedule line table inside the  main item table...
    in the context part i have done this thing..how to implement this thing in the layout part..
    Plis help...

    HI Poojith M V ,
    can you help me?
    i have 2 tables for a packing list.
    they are nested in the context and the inner table with the positions has an where clause.
    in the layout, i have defined a table with two headerlines one dataline and one datasection.
    in the dataline i want to display some fields out of the outer table.
    in the datasection, i defined a table with two datalines, in which i want to display fields of the inner table.
    i did the bindings in every table, line and field as learned in BC480.
    now i have the following problem.
    if i set the trace level to 4 and watch the .XDP file, everything is right.
    it looks like this:
    PAL 1
          --POS 20
               ---TEXT
    PACK 2
          --POS 10
               --TEXT
          --POS 50
               ---TEXT
    PACK 3
          --POS 30
               ---TEXT
          --POS 40
               ---TEXT
    but the form output looks like this:
    PAL 1
          --POS 20
               ---TEXT
          --POS 10
               ---TEXT
          --POS 30
               ---TEXT
    PACK 2
    PACK 3
    1. I don´t understand why all entries of the inner table where displayed under the first item of the outer table  -  i set to the first tabel and to the second, loop at all entries.
    2. i don´t understand where the items 50 and 40 are.
    has anybody a suggestion?
    thanks in advance
    mcdelta0six
    Message was edited by:
            McDelta0six

  • How to keep overflowing tables and static feilds in a page. ?

    Hi experts,
    My requirement as follows..
    Some text elements should be printed at top below that i have to place one table.
    which should overflow to next if data exceeds.
    below that one more table  that also should over flow.
    One more problem is when table overflows it over writes on the footer.
    let me show the layout format..
    text elements1
    text elements2
    Table1 (should be flowing)
    text elemnt.
    table2 (should be flowing)
    footer.
    how do i do this.please tel me  what about body page pagination and subform setting.
    i have placed top text elemnts with in a subform with positioned(other wise the alignment alters)
    i have placed two tables also in two seperate subforms.
    please tell should i use two seperate subform, and what should be the pagination and subform setting in the object palette.
    please help me <removed by moderator>
    -sagar
    Edited by: Thomas Zloch on Oct 15, 2011 7:40 PM

    I want to understand how to make the sum cell only show the total of visible rows...
    I don't think you can do that directly.  SUM will include hidden rows. But you can use SUMIF and SUMIFS.
    An example using SUMIF:
    An example using SUMIFS:
    Instead of putting SUMIF and SUMIFS in a separate summary table, you could also put them in Footer Rows of your data table.
    SG

  • What  are the usual date field validations

    Hi all,
    can you please tell me what  are the usual date field validations in selection Screen
    Thanks and regards ,
    Madhavi pilla

    Once you declare it as TYPE SY-DATUM, usually that is enough.  Sometimes we will also check that it is not less than '18000101' or greater than '99991231'.  Or if you have a specific date range that applies to your program you could check the field contents against that. I hope this helps.
    - April King

  • Fields of the data base tables

    Hi ABAP Gurus,
                     i am developing an sd module report and in that my input fields are   fkdat,
                    vbeln,
                    kunag,
                    fkart.
    and output fields are :
                       1)   vbeln
                       2)  kunag
                       3)  name1
                       4)  fkart
                       5) description of fkart
                       6)  netwr
                       7)  excise
                       8)  ecs
                       9)  schess
                       10) excise + ecs + schess = total ex received
                       11) fi doc
                       12) fi year
                       13) exnum
                       14) exdat
                       15) excbed
                       16) ecs_py
                       17) schess_py
                       18) 151617 = total ex_py
                       19) fi doc ex
                       20) fi year ex
    these fields i want in my output but can any one tell me which fields will appear in which table and the links among these tables
    i know some tables : vbrk,vbrp,konv,j_1ipart2,j_1iexchdr.
    pls help me .it's urgent .

    Hi,
    Retrive data from VBRK and VBRP Tables.
    From Billing u can find all the Values.
    Check invoice in VF03.
    KONV is for condition types .
    Based on KSCHL for condition types and kawrt for values.
    Thjese 2 fields important for getting tax values.
    Regards,
    Narasimha
    Edited by: narasimha marella on Jun 11, 2008 9:12 AM

  • Performance difference between tables and materialized views

    hi ,
    I created a materialized view on a query that involves partition table in it.
    When i used the same query and created a table out of it <create table xyz as select * from (the query)> ,the table got created quickly.
    So does that mean performance wise creating table is faster than creating/refreshing the materialized view ?or is that due to the refresh method i use ?Currently i use a complete refresh

    I created a materialized view on a query that involves partition table in it.
    When i used the same query and created a table out of it <create table xyz as select * from (the query)> ,the table got created quickly.
    So does that mean performance wise creating table is faster than creating/refreshing the materialized view ?or is that due to the refresh method i use ?Currently i use a complete refresh Well, for starters, if you created the materialized view first and then the standard table, the data for the second one has already been fetched recently and so will reduce your I/O due to caching, and will therefore be quicker. There are also other factors such as the materialized view creating other internal bits that are required to allow for refreshes to be done quickly, such as the primary key etc which you haven't created on your second creation.
    What you have shown is that two completely different statements running at different times, appear to operate with different speed. It is not a comparison of whether the materialized view is slower or quicker than the create table statement.

  • Protect a document while allowing insertion of data in a table and points on a chart.

    I have created a Word document that includes a table and a chart.  Can I protect the document but allow entry of data into the table and allow points to be placed on the chart using Adobe?

    Hi brianh89327665,
    While you can apply a permissions password to a PDF to prevent things such as printing and changing the document, you can't apply it selectively to parts of the PDF.
    Best,
    Sara

  • Need to know base table and base column name for Oracle view columns

    I am trying to load metadata for some views and that requires me to know what the final table and column name would be corresponding to the view column.
    For example, if I have a view x_v that is select a,b from x_v2; and x_v2 is a view that is select a,b,c from x;
    I need to get the following information.
    View View Col Base Table Base Col
    X_V A X A
    X_V B X B
    and so on.
    Is it possible to get this programmatically using any SYS schema tables or Dependency tables?
    I tried an indirect approach wherein I lock tables using LOCK TABLE or FOR UPDATE OF. But I'm not too sure if I can go down to the level of individual view columns.
    Can you help me with this?

    Thanks. I was looking at some indirect approaches.
    I came up with this script that does it faster than dependencies but thats just for tables and not column mapping.
    declare
    cursor bt(cp_sid number) is
    select u.name uname, o.name oname
    from sys.obj$ o, sys.user$ u
    where o.obj# in (select id1
    from v$lock
    where sid=cp_sid)
    and u.user# =o.owner#;
    cursor c_sid is
    select sid
    from v$session
    where audsid =userenv('sessionid');
    l_sid number;
    l_view varchar2(100):= 'PER_PEOPLE_V';
    l_schema varchar2(10):= 'APPS';
    begin
    open c_sid;
    fetch c_sid into l_sid;
    close c_sid;
    dbms_output.put_line('SID: '||l_sid);
    execute immediate 'lock table '||l_schema||'.'||l_view||' in row share mode nowait';
    for i in bt(l_sid) loop
    dbms_output.put_line(i.uname||'.'||i.oname);
    execute immediate 'alter table '||i.uname||'.'||i.oname||' disable table lock';
    execute immediate 'alter table '||i.uname||'.'||i.oname||' enable table lock';
    end loop;
    end;
    It basically uses locks on views to verify locks on the base tables.
    Just wondering, can we use FOR UPDATE OF statements to get to the columns?

  • Scheduled job that drops temp tables.

    Hi, I have a 3rd party app that creats temp tables and never drops them. I need to come up with a scrip that I can run every thirty days and clean them up. Here is the select I run to find them. I just don't know how to format the drop statement.
    select owner, object_name, created from dba_objects where object_name like 'DWTEMP%' and created > '01-MAY-11' and object_type='TABLE';
    Thanks
    Bryan

    It sounds like you want something like
    BEGIN
      FOR tbl IN (select owner, object_name, created
                    from dba_objects
                   where object_name like 'DWTEMP%'
                     and created BETWEEN trunc(sysdate) - 30 AND trunc(sysdate)
                     and object_type='TABLE')
      LOOP
        EXECUTE IMMEDIATE 'DROP TABLE ' || tbl.owner || '.' || tbl.object_name || ' PURGE';
      END LOOP;
    END;or
    BEGIN
      FOR tbl IN (select owner, object_name, created
                    from dba_objects
                   where object_name like 'DWTEMP%'
                     and created BETWEEN add_months(trunc(sysdate), -1) AND trunc(sysdate)
                     and object_type='TABLE')
      LOOP
        EXECUTE IMMEDIATE 'DROP TABLE ' || tbl.owner || '.' || tbl.object_name || ' PURGE';
      END LOOP;
    END;depending on whether you want to go back 30 days or 1 month.
    Justin

Maybe you are looking for

  • R835-P56X:i can use SATA III (6.0 Gb/s) Now

    R835-P56X:i can use SATA III (6.0 Gb/s) Now 1.BIOS Update to 3.0 2.My OCZ Vertex3 SSD firmware update to 2.11 3.install Intel RST Driver Attachments: 02.jpg ‏115 KB 03.jpg ‏118 KB 01.jpg ‏110 KB atto.jpg ‏128 KB

  • Page break for a group and sub group based on page length

    Hi I have a requirement where in I need to develop a report which has the following requirement. I am attaching the sample xml and rtf files for reference: 1) There are 3 groups in the Data Model. G1, G2 and G3. G1 contains G2 and G2 contains G3. I n

  • How to archive "sent" mail to external hard drive

    Accumulated and overload of "sent" mail and would like to archive them all  (including attachments) on my external hard drive. Would someone give me the steps to do this, as a regular archiving procedure, as done with a mailbox, did not work.  Thank

  • How do I save then play a slideshow to windows media player?

    I have a slideshow created in iphoto that I would like to play on a PC in Windows Media Player. I tried to save it in Quicktime, but it wouldn't play on my PC at work. Any suggestions?

  • Javax.mail emails not sent

    Hi, We are sending emails through the javax.mail class in our application, basically it works fine, however I was wondering how I could do one of the two: 1. validate an email address to be correct (existing, not using the java classes for rfc valida