Data Base block field

Hi All,
I need simple query which i found difficult to solve please guide.
I have one database block in which five database field
1. item1
2. item2
3. item3
4. item4
5. item5
in which i just replace data from i field to another is such a way that each field contain two button
1. copy
2. paste
when i select item1 then copy paste button enable and when i press copy button then item1 field data copy when when i select item5 button will enable and when i press button paste then data of item1 field data copy to item5 field and item5 field data copy to item1 field (simply replace of data), now the problem is when i copy of item1 data and paste to item5 its working fine but i unable to replace data item5 to item1 how can i do this.
Thanks

DECLARE
TEMP varchar2 ( 15 ) ;
BEGIN
TEMP := :ITEM7 ;
:ITEM7 :=:ITEM5 ;
:ITEM5 :=TEMP;
END;
this is not as simple as u define
actually i have told u i have no. of item field and we don't no which field i came if i use variable then ok but next how to this variable use can assign as replacement
I AM USING COPY BUTTON TRIGGER
BEGIN
     go_item('item1');
     :v_value :=:system.current_value;
     :v_curr_field :=:system.current_item;
END;
I AM USING PASTE BUTTON TRIGGER
DECLARE
BEGIN
:ITEM1:=:V_VALUE;
END;

Similar Messages

  • Data base block in non DB Enviorment

    dear all ,
    i have 3 blocks in my application , where only one of it is a database table block and in this block the data is entered from other table ( eg on a button press the data is compiled from 2 diff tables and copied into its RECORD ) . now the problem is on saving the from (commit) the form is not saving any thing in this table . the block property is set to database='YES'
    this is very urgent . thanks in advance
    rgds
    dg

    Do you get any error message from Forms? (see also shift+F1 function when running your fmx).
    Marco

  • Data base trigger gone wild

    Hello guys, i need your help, so whats going on is that i have builded a database trigger and it fires "before update".When im testing that trigger and try to update a certain field (in my case,the end_date) , the data base blocks and..it does nothing.
    I put here an excert of the trigger
    CREATE OR REPLACE TRIGGER APPS.JE_UBS_TAX_BANK_ACCOUNT_TRG
    BEFORE UPDATE
    OF START_DATE
    ,END_DATE
    ON AP.AP_BANK_ACCOUNT_USES_ALL
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    tmpvar NUMBER;
    n_org_id ubs.je_ubs_tax_pay_method.org_id%type :=null;
    -- Declaração das variáveis de JE_UBS_TAX_PAY_METHOD
    n_start_date ubs.je_ubs_tax_pay_method.start_date%type :=null;
    n_end_date ubs.je_ubs_tax_pay_method.end_date%type :=null;
    -- Cursor À JE_UBS_TAX_PAY_METHOD
    cursor c_pay_methods is
    SELECT start_date, end_date
    FROM ubs.je_ubs_tax_pay_method
    WHERE bank_account_id = :NEW.external_bank_account_id
    AND org_id = n_org_id;
    -- Declaração de Excepcoes
    -- exception_general exception; -- Excepcao
    BEGIN
    apps.je_ubs_all_debug_api.insert_log ('Inicio do trigger' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    n_org_id := apps.fnd_profile.VALUE ('ORG_ID');
    open c_pay_methods;
    fetch c_pay_methods into n_start_date,
    n_end_date;
    loop
    IF UPDATING (:old.end_date)
    THEN
    IF (n_end_date > :new.end_date)
    THEN
    BEGIN
    UPDATE ubs.je_ubs_tax_pay_method
    SET end_date = :NEW.end_date
    WHERE bank_account_id = :new.external_bank_account_id
    AND org_id = n_org_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    apps.je_ubs_all_debug_api.insert_log ('Error at Update end_date of je_ubs_tax_pay_method' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    RAISE;
    apps.je_ubs_all_debug_api.insert_log ('Updated end_date at je_ubs_tax_pay_method ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    END;
    END IF;
    END IF;
    I think the problem must be insuficient privilegies but im not sure. I saved the trigger at the "apps" schema,the trigger table is at the "ap" schema, and the cursor table is at another schema, the "ubs"
    I didn´t saved the trigger at the same schema as the trigger table ("AP"), because i did not have priviliges.
    Help me if you can.

    eheh ! no guys, i just posted a little of the trigger. but ill post everything:
    CREATE OR REPLACE TRIGGER APPS.JE_UBS_TAX_BANK_ACCOUNT_TRG
    BEFORE UPDATE
    OF START_DATE
    ,END_DATE
    ON AP.AP_BANK_ACCOUNT_USES_ALL
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    NAME: JE_UBS_TAX_BANK_ACCOUNT_TRG
    PURPOSE:
    REVISIONS:
    Ver Date Author Description
    1.0 18-08-2008 José Fernandes 1. Created this trigger.
    tmpvar NUMBER;
    n_org_id ubs.je_ubs_tax_pay_method.org_id%type :=null;
    -- Declaração das variáveis de JE_UBS_TAX_PAY_METHOD
    n_start_date ubs.je_ubs_tax_pay_method.start_date%type :=null;
    n_end_date ubs.je_ubs_tax_pay_method.end_date%type :=null;
    -- Cursor À JE_UBS_TAX_PAY_METHOD
    cursor c_pay_methods is
    SELECT start_date, end_date
    FROM ubs.je_ubs_tax_pay_method
    WHERE bank_account_id = :NEW.external_bank_account_id
    AND org_id = n_org_id;
    -- Declaração de Excepcoes
    -- exception_general exception; -- Excepcao
    BEGIN
    apps.je_ubs_all_debug_api.insert_log ('Inicio do trigger' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    n_org_id := apps.fnd_profile.VALUE ('ORG_ID');
    open c_pay_methods;
    fetch c_pay_methods into n_start_date,
    n_end_date;
    loop
    IF UPDATING (:old.end_date)
    THEN
    IF (n_end_date > :new.end_date)
    THEN
    BEGIN
    UPDATE ubs.je_ubs_tax_pay_method
    SET end_date = :NEW.end_date
    WHERE bank_account_id = :new.external_bank_account_id
    AND org_id = n_org_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    apps.je_ubs_all_debug_api.insert_log ('Error at Update end_date of je_ubs_tax_pay_method' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    RAISE;
    apps.je_ubs_all_debug_api.insert_log ('Updated end_date at je_ubs_tax_pay_method ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    END;
    END IF;
    END IF;
    IF UPDATING (:old.start_date)
    THEN
    IF (n_start_date < :new.start_date)
    THEN
    BEGIN
    UPDATE ubs.je_ubs_tax_pay_method
    SET start_date = :new.start_date
    WHERE bank_account_id = :new.external_bank_account_id
    AND org_id = n_org_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    apps.je_ubs_all_debug_api.insert_log ('Error at Update start_date of je_ubs_tax_pay_method ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    RAISE;
    apps.je_ubs_all_debug_api.insert_log ('Updated start_date of je_ubs_tax_pay_method ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    END;
    END IF;
    END IF;
    end loop;
    apps.je_ubs_all_debug_api.insert_log ('Success - End of trigger ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    EXCEPTION
    WHEN OTHERS
    THEN
    apps.je_ubs_all_debug_api.insert_log ('Exception - When Others ' || SQLERRM, ' JE_UBS_TAX_BANK_ACCOUNT_TRG');
    RAISE;
    END je_ubs_tax_bank_account_trg;
    ***************************************************

  • Assigning a Value to a Base Table BLock Field

    hi,
    I have a form in which a block is a base table block . i need to change the value of a field. currently it shows the value of a field from the Table on which the block is based . I need to change the value of that field to display some other value of another table.
    i have a written select statement like this
    select name into vname from ws_emp where ecode = 101
    then i have assigned to this base table field
    :bt_person.ti_v_name := vname;
    this i have created in the base table blocks Post query
    but it is not assigning value
    pls correct me and suggest me if there is any other better method to do this
    Sarav

    That SHOULD work in the Post-Query trigger of the block, but doing that is never a good idea. By replacing a base-table field with any value, it causes Forms automatic processing to lock the row immediately, so no other person running your form can call up the same data. And it causes Forms to think you need to update the record, so the record's status is changed to 'CHANGED' from 'QUERY'.
    It would be better to create a non-base-table field in the block, and put the name into that field.

  • Creation of field in data base table

    Hi,
      I want to create a field in data base table , which holds the float values but i don't want to use the FLTP data type, why bcoz if i use this data type in selection screen of the table the the field is not appeqring, i dont want to go for the option QUAN bcoz there i need to define the ref table and ref field.
    please explain what is the way to create this field.
    regards
    Krishna

    Use NUMC
    Awrd POints if useful
    Bhupal

  • CRM sales order and data base field in R/3

    Where can I see in R/3 that the replicated CRM sales order is created in CRM?
    Is there a field e. g. in the data base table VBAK or VBAP?

    Hi,
    you can find the information in VBAK table in field LOGSYSB, which is the logical system with which document was created.
    Enter the CRM logical system name in this field, and you will find all the orders created in CRM system.
    Regards,
    Susanta

  • Sales order purchase order field is updated with dots in data base table

    HI
    we have problem in  Production when sale order created
    P O date is update with dots and these dots  we are unable to see at screen and data base table
    we go t change mode of the order and delete the P O field with back space (button)  and saving the order
    when we see the change log of the order
    there it is sowing
    Old value            =        "       .   .     "           
    New Value         =       " 00.00.0000"
    Can any one give the suggetions to come out of this problem
    This is we have noticed with only two customers
    Thanks and regards
    Kishore
    Edited by: DevarapalliKK on Oct 23, 2010 8:43 PM
    Edited by: DevarapalliKK on Oct 23, 2010 8:44 PM

    Hi Kishore,
    Two things could have happened:
    1) Since this is happening with only two customers - I am sure it has got to do with some custom code on your system which is causing this problem. I 'd suggest you to create a new order with all the fields
    2) It could be a bug with SAP- might want to check relevant SAP Notes. ( But this could not be a reason, if yes should have had the same prob with all cusotmers)
    regards
    sadhu kishore

  • Custom field values are not storing in the data base

    Hi Friends,
    We have created one  Custom field called   ZZ_APPROVER in Rfx Header , we have included this field in the below  stuctures
    1.INCL_EEW_PD_HEADER_CSF_BID
    2.INCL_EEW_PD_HEADER_CSF
    The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 .  we have given 2  fixed values in Value Range
    1 -
    X+2 Approver
    2 --- Provisional Approver
    so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
    Can any one give me idea why its not stroring in the data base
    Thanks in Advance
    Kumar Srini

    Hi Ganapathy,
    A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
    Thnx
    Kumar Srini

  • Data base fields in browse mode

    Appleworks v 6.2.9
    Have data base with 54 fields. List mode fine, but in browse mode
    only first 34 are viewable and therefore available for data entry.
    When tab key is punched after data entered in 34th field cursor goes
    back to 1st field rather than 35th field. Command and down arrow keys
    brings up next record. Is there a keyboard shortcut or any other way
    to enter data in fields 34-54 in browse mode? Using list mode for
    that is too confusing because 1st field identifies record name and
    once past 34th field it is no longer viewable.

    Hi Frank,
    I'm assuming the Layout you are referring to is the default "Layout 1" that AppleWorks creates as you define the fields. This layout, or a "Standard" layout created through the New layout menu item in the Layout menu is a simple list of fields (with labels containing the field name) one above the other in a single column.
    AppleWorks Database Layouts are restricted to a single page in the page size defined in Page Setup (File menu). With the default US Letter size page, at around 34 fields, the list runs into the bottom of the page, and no fields created after that are automatically inserted into the layout.
    You can place more than 34 fields on a page, but you must contribute to the process.
    With Layout 1 (or any other layout you wish to modify) showing, go Layout > Layout to put the document into Layout mode. (You can also do this by pressing shift-command-L.)
    In Layout mode, select one or more of the fields (and labels) at the bottom of the page and drag them up and to the right into some empty space on the layout. New fields inserted onto the layout will be inserted in the space between the bottom-most field and the bottom of the layout/page, so the object of this exercise is to open up enough space at the bottom of your layout to insert the remaining 20 fields. It may take more tthan a single step to do this.
    When you have all 54 fields on the page, rearrange them in the order and in the locations you want.
    Note that the default tab order for a latout is from left to right then top to bottom, starting at the top left. If this order is not suitable, you can override it using the Tab Order... menu item in the Layout menu.
    Regards,
    Barry

  • Ordering a block by a non-base table field

    Hello,
    I have heard you can order your block by a
    non-base table field by using a stored function. Does anyone know how to do this?
    Lisa

    In a WHEN-VALIDATE-ITEM user have to press ENTER or TAB key too !!
    anyway he have to press something.
    KEY-NEXT-ITEM and KEY-PREVIOUS-ITEM is a good choice.
    You can create a timer who fire each second, verify that user enter something new in the field (by comparing old and new value), then do execute_query

  • Firm/Trade-off Zone Indicator - Data base field.

    I'm looking for the data base field that holds the Firm/Trade-off Zone Indicator as it displays on the Delivery Scheduling Agreement, Delivery Schedule for Items from ME33L.  The help for the field gives you the same information as for the Firm Zone And Trade-Off zone values in days (stored in EKPO), but this field displays differently for different schedule lines, and is a "1" - indicator for Firm Zone, or a "2" Indicator for Trade-Off Zone.  
    I'm beginning to wonder, is this field dynamic and just determined for display at the time the transaction is done ???
    As in fact the lines within the firm zone are displayed in a different way (with an * following the MRP element data) on MD04.
    But we were trying to determine where (IF) the field indicator is stored, and if so, what is setting it, as "some process" would have to be evaluating all orders as time passes to know they have now come within the firm zone.   If its not just a dynamic field.
    Ruth Jones

    Hi Ruth,
    This one is dynamic (I guess you are wrinting about screen field  RM06E-ETSTA visible e.g. in ME38/ME39 t-code).
    And I guess it is calculated here:
    Include: MM06EFET_ETT_ETSTA
    FORM ETT_ETSTA.
       CLEAR RM06E-ETSTA.
       IF EKPO-ETFZ1 NE 0.
         REFE1 = EKET-EINDT - SY-DATLO - EKPO-ETFZ1.
         IF REFE1 <= 0.
           RM06E-ETSTA = '1'.
           EXIT.
         ENDIF.
       ENDIF.
       IF EKPO-ETFZ2 NE 0.
         REFE1 = EKET-EINDT - SY-DATLO - EKPO-ETFZ2.
         IF REFE1 <= 0.
           RM06E-ETSTA = '2'.
         ENDIF.
       ENDIF.
    ENDFORM.
    I guess you can call this form in your report logic/query and you should get exactly what you need.
    Best Regards,
    Tomek

  • Appleworks freezes when attempting to change a data base field

    In a data base I created, trying to change a number in one field will freeze Appleworks. A number can be entered, but any attempt to delete, add to or change the data in that one field causes a freeze. This does not happen in any other field in this data base, nor in any other document, as far as I know. This is a fairly recent problem, and did not occur when the data base was first created.
    Is there a way to fix this without losing all the data in that field?
    Thanks!

    Hi Yvan,
    I'm sorry, but your link did not help my particular problem.
    Can I make a list of the "freezing" field and an identifying second field, delete the problem field, and then re-enter the data in a newly created field? Being efficient (read lazy) I was trying to get away from having to re-enter all the data. There are only 384 records, but the thought of redoing even one field is mind-numbing.
    Anyone else have a suggestion???
    Thanks!

  • Fields comming from which data base tables

    Hi Experts,
    Every extractor should fetch data from some data base table. For generic data source and LO data source I know to see but could you please tell me, how I can find for business content (ex: 0FI_GL_4) data source which field data coming from which data base table. 
    Regards
    Lokanatha.

    Hi,
      We can get from SAP help about the tables being used in each business content extractor.
    For Eg-0fi_gl_4, data coming from BKPF,BSEG tables.
    Go thru this link which tells the table for the above extractor..
    http://help.sap.com/saphelp_nw70/helpdata/en/8b/02f93abb013b0de10000000a114084/content.htm
    Hope this helps..
    Thanks & Regards,
    Pradeep

  • How to control the name of custom field in data base table, added by AET

    Hi,
    I have added the one custom field by Application Enhancement Tool (AET).
    The name of custom field has been added in the data base table as ZZFLD000004 by AET.
    I need to add the some meaningful name like that ZMYPROB.
    How can I control the name of custom field in the database field through AET?
    Thanks,
    Amit

    Got the answer.
    Need to click on the Enable Expert mode, then custom field name will be editable.

  • Data base table of a field

    Hi Group,
      When I try to search the data base table for a particular table it show me the structer.
    For example--
      In trasaction- ks03
       the field 'cost center'->  F1 -> technical information
              -> structer'CSKSZ'
      How can I know the data base table of this field.
    Regards,
    sp sahu

    hi,
    try st05:
    1) Activate the trace.
    2) Run the Transaction(QE01) in your case.
    3) After the transaction is complete, deacticate the trace in ST05.
    4) Execute "Display Trace".
    It will give you listing of all the database tables that have been hit including the text tables.
    regards Andreas
    pls reward useful answers

Maybe you are looking for

  • Re: Process Spaces - SOA/BPM Integration

    Hi, I am trying to import default-modeling-workspace-gs.ear and default-process-workspace-gs.ear into Webcenter spaces. It is getting failed with the following error :: No handlers could be found for services with IDs: oracle.webcenter.doclib oracle.

  • WAD Connection

    I can log in to SAP BW through SAP Logon but I cannot access WAD it says Error Group RFC_ERROR_COMMUNICATION Message Connect to SAP gateway failed Connect_PM  GWHOST=adi04, GWSERV=sapgw00, ASHOST=adi04, SYSNR=00 LOCATION    CPIC (TCP/IP) on local hos

  • Changing colour of tooltips

    Hi, Can anybody tell me how to change the background colour of my tooltips. Thanks Jim

  • Frame Sizes! Help Needed Urgently!!

    I'm hoping someone out there can assist me with a small problem I'm having. I'm almost finished editing a 30-minute project and I'm having trouble with the aspect of some of my clips. Some are full screen, and others are remaining in a wide screen si

  • Keynote presenter notes cut off

    Help - when I print slides with presenter notes, my notes get cut off at the end of the page. Apart from making the font really tiny (which makes it difficult when I'm presenting), is there any workaround?