Table or block name

Hi All,
In pre-insert trigger, i am inserting data in my audit table. i need to know the name of the block/table to whom the record getting saved belongs to. I need this information for my audit table.
just for information, when i use :system.cursor_block, it gives me my toolbar block name as i had pressed save button that is based on toolbar block.
The form i am working has many tab sheets based on tables.
I need to make this generic for pre-insert,pre-update and pre-delete throughout my application.
Thanks

Hi,
Use the following to get the table name (query data source name)
V_TABLE_NAME := GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, QUERY_DATA_SOURCE_NAME);Do not use SYSTEM.CURSOR_BLOCK, Use :SYSTEM.TRIGGER_BLOCK as If the current navigation unit is the form (as in the Pre- and Post-Form triggers), the value of SYSTEM.CURSOR_BLOCK is NULL.
Hope this helps.
Best Regards
Arif Khadas

Similar Messages

  • Get detail block names

    Hi,
    If I am given a block name, how can I get all the detail block names of this parent block ?
    Thanks.
    Ivan

    Hi All,
    Is there a way to extract or list the object names by grouping them with their
    object_types in an oracle form.Something like as we for do for columns of a table.
    Or should we go for any work arounds if yes how to go about that.Please suggest.
    Thanks in advance.
    Regards,
    Marlon

  • It is possible to have two tables of same name in Oracle !

    Oracle Version:10gR2
    In MS-Access 2007, I had to use the 'Export' feature by which i copy a table (and its data) to an Oracle Schema via ODBC connection. Later i realised that , when copying tables with a mix of lower and upper case names , the table does not get copied(exported).But MS-Access will give you the message that Table got successfully exported.
    MS-Access messes around with Oracle Data Dictionary.
    When you issue
    SQL>select * from tab;
    TNAME                          TABTYPE  CLUSTERID
    AMStates                       TABLE
    Version                        TABLEYou'll see the table names . But when you try to DESCRIBE or SELECT this table, you'll get
    SQL>desc Version
    ERROR:
    ORA-04043: object Version does not existYou can even create another table with same name in this schema
    SQL>create table VERSION (X NUMBER);
    Table created.Why is this happening and how can i drop these "non-existent" objects?

    sometimes when you use third party clients (ODBC particularly) to create tables, you have to double-quote them to access them. tables names are case sensitive in this case. it is the same situation as if you want to use special caracters.
    so, you have to issue select * from "Version" .
    you can also have the same problem with the connection string.

  • How to display records into a non table base block..

    Hi,
    Can anybody help me how to display records into a non table base block....
    Find below is my coding but it only display the last record in the first line
    in the block.
    PROCEDURE CREATE_CARTON_QUESTION IS
    CURSOR car_c IS
    select /*+ rule */ question_id, question_description
    from WHOP.QADB_QUESTIONS
    where question_category = 'Carton'
    and question_active_flag = 'Y';
    v_found VARCHAR2(10);
    v_status boolean;
    v_error      varchar2(150);
    v_count number;
    car_r car_c%rowtype;
    begin
    begin
    select count(*) into v_count
    from WHOP.QADB_QUESTIONS
    where question_category = 'Carton'
    and question_active_flag = 'Y';
         exception
         when no_data_found then
         v_count := 0;
    end;
    if v_count > 0 then
    for car_r in car_c loop
    ---populating carton questions
    :la_carton.carton_question_id     := car_r.question_id;
    :la_carton.carton_question_answer     := 'N';
    :la_carton.carton_error_details     := null;
    :la_carton.attribute2          := car_r.question_description;
    end loop;
    end if;
    end;
    Thanks in advance.
    Regards,
    Jun

    Hi SNatapov,
    Thanks for you reply but still I get this error...
    FRM-40737 Illegal restricted procedure GO_BLOCK in WHEN-VALIDATE-ITEM trigger.
    Please note that I call that program unit in the last field of my control block inside when-validate-item trigger the questions should be display in la_carton block which is my non-base table block.
    Find below is the code....
    begin
    go_block('la_carton');
    first_record;
    for car_r in car_c loop
    ---populating carton questions
    :la_carton.carton_question_id := car_r.question_id;
    :la_carton.carton_question_answer := 'N';
    :la_carton.carton_error_details := null;
    :la_carton.attribute2 := car_r.question_description;
    next_record;
    end loop;
    end;
    Hoping you can help me this problem...
    Thanks in advance.
    Regards,
    Jun

  • Table and Fields names for following

    Hi All,
    1. What is the Table&Field Name for finding out Program Type[Report/Module pool etc..] of a Program!
    2. Is there any Table&Field Name for Transport Request Name. We need to find out TR Name Based on Program name.
    Can anybody solve above issues!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    In TRDIR table specify the NAME as report name and <b>SUBC</b> is teh field whic gives u the <b>report type</b>.
    1    Executable program  
    I    INCLUDE program     
    M    Module pool         
    F    Function group      
    S    Subroutine pool     
    J    Interface pool      
    K    Class pool          
    For the second one
    Table name > <b>RSEUMOD</b>
    Hope this solves ur query.
    Message was edited by:
            Judith Jessie Selvi

  • Which table stores field names and their description?

    When I go to se11; I can get information about a table; its field names and field description.
    How can I access same information using an ABP Program? I have a third party tool which connects to SAP; it can pull data from any SAP Table or view. I do not know which table or view stores information displayed in SE11.
    Thanks a lot.

    Hi zigzagdna,
    The field names and their description are strored in table DD03L and DD03T.
    SAP DDIC dictionary informations are generally store in DD* tables. You can search this kinds of DD* tables in SE11 using F4 search help.
    With Best Regards
    Julia

  • PDF Table action block is repeating first row in each page.

    Hi All,
    There is a strange problem in PDF Table action block. I am paasing one xml variable in the pdf table action block. But when it creates the final pdf  - I can see the very first row of the xml is getting repeated as first row of each page along with the header.
    Is there any solution - not to reapeat the first row of the xml in each page ?
    Thanks in advance for your response.
    Soumen

    Hi Michael,
    Installation of PDF Action is done based on this link-
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1109054
    MII Version - 12.0.7 Build(20)
    version 1.4.5. of
    the third-party iText.jar and iTextAsian.jar, from
    http://www.lowagie.com/iText/download.html
    Thanks,
    Soumen

  • Developer Error: invalid  window block name passed to set_window_position

    Hi
    I had Registered a Form in Oracle apps
    After that i'm trying to open the form,then this message will be displayed
    Developer Error: invalid  window block name passed to set_window_position
    in the PreForm Trigger I had written the code as apps.set_window_position('MY block name(MAIN_BLOCK)','MY window(MAIN_WINDOW)')
    i had wriiten like that
    but
    After click on that Ok Button of the error message my form is Open
    and My form is Also not having any Minimize,Maximize and Close Buttons
    Please Tel me How should i resolve that Error and also how can i Get that buttons for the Form

    I agree with Francios, you should ask your question in the General EBS Discussion forum.
    in the PreForm Trigger I had written the code as apps.set_window_position('MY block name(MAIN_BLOCK)','MY window(MAIN_WINDOW)')You are using a Oracle E-Business Suite (EBS) framework procedure to set the window position, not the Forms standard Set_Window_Property built-in.
    and My form is Also not having any Minimize,Maximize and Close ButtonsThese could be controlled by the APPS.Set_Window_Position procedure, but I'm not sure. It could simply be that you set (or neglected to set) the default properties of your Form's window the enable these buttons. More than likely, the APPS procedure is setting them. It's been too long since I worked with the EBS to say for certain. You really should ask your question in the General EBS Discussion forum.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • EA1 - bug: worksheet not updated when switching between tables of same name

    Consider this scenario: two schemas, A, B. Each schema has a table X.
    Look at A.X data by selecting A/Tables/X in the connection list and clicking the Data tab.
    Now immediately look at B.X data by selecing B/Tables/X in the connection list.
    Bug: the worksheet viewer does not switch to B.X, but still shows A.X.
    Workaround: Click to another table before going from A.X to B.X.

    I had the same issue (bug: showing data in tables with same name, 2 different databases but I can't reproduce either...
    K.

  • Alias for table and colum names?

    Hi there,
    is there a new to create a alias for table and colum names? If so, how can I do this?
    Thanks,
    Andre

    I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
    That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
    Best Regards,
    Chris

  • Table contain user name and tcode

    Dear Experts,
    Can you tell me which Table contained user name and tcode field?
    Thanks and Best regards,
    wilson

    You need to be even more carefull with parameter transactions.
    If SU24 is not maintained for them, PFCG will pull the proposals from the core transaction (via which the parameters are used in the skip screen feature...). If the core transaction has authority proposals for S_TCODE, then you will get those tcodes and their proposals as well.
    A carefull choice of menu objects (not only limited to Tcodes), taking heed of SU24 defaults and tuning it to meet your needs is the key. But it requires organizational discipline and good training, otherwise rather dont use it for anything other than important objects which you want to control manually only, even if your business roles are a mess.
    You can also restrict the authorizations of the security admins for example (as unpopular as that may sound... to segregate authorization concept development (SU24 etc), role building development (PFCG etc) and user administration (SU01 etc). Object S_USER_TCD also has a field called TCD...
    There are also other objects (as Dipanjan has pointed out) which have TCD as a field of an object which is not S_TCODE. In addition to I_TCODE, Q_TCODE, P_TCODE, see also S_IDOCMONI for example.
    To be honest I have given up on trying to find them all
    The easiest solution is to use the menu and maintain SU24 when the transaction is configured or the application is developed and tested. That is what SAP does as well in SU22. It is more work upfront, but more sustainable in the long run.
    If your users (and auditors) only see the menu (and use the SUIM --> Executable transactions) options, then you can get away with it in the short or even medium term. Latest when someone else need to maintain the roles they will hate it...
    My 2 cents,
    Julius

  • Table which contains name of the report generated from table

    Hello everyone,
    Is there any table which stores the report names that are created from table.
    For example if my table name is 'ABC' a new report will be created for table at run time '/1BCDWB/DB/ABC'.
    I also need to have table names, which stored the values when a layout is changed
    For example if I have ten fields in my table, first time ill choose 5 fields, second time ill change the layout and choose 10 fields and ill save the layout.
    If any Function modules are there please let me know
    Please let me know, if anyone has details.
    Thanks,
    Gayatri.
    Moderator message : Duplicate post locked. Continue with the thread - [Name of the table which stores report contents and layout changes|Name of the table which stores report contents and layout changes;.
    Edited by: Vinod Kumar on Jun 14, 2011 3:42 PM

    Hi,
    Thanks for reply.
    I know about ttxfp and tnapr. but none of the two table contain form name with its description. actully I m looking for a table which contain form name with there desription. please if you have info regarding this, Do share with me . this is really urgent
    regrads,
    Ruchika saini

  • Passing Block Name As Parameter

    Dear Friends
    I have procedure to search for specific data, and the results will be shows on different data blocks, based on the button called the procedure, i passed the block name as parameter to the procedure, but when i want to set the values of the items in the data block, i got error, i used the following code
    copy(name_in(items_rec),block1||'.item_name')
    each time i got the following error: ORA-01722.
    can you please help me in this problem
    and thanks in advance for all friends
    Mohammad

    Hi,
    Try
    copy(name_in(items_rec),name_in(block1||'.item_name'))I assume, block1 is the variable which you are passing as a parameter to the procedure.
    Regards,
    Arun

  • Table RF180 blocked (user id )

    Hello All
    What is the reason for the error"Table RF180 blocked (userid)and how can we tectify this?

    Hi!
    An other user is using table (or an entry in table) RF180. Go to transaction SM12, display all users, search for RF180.
    So you should be able to find the existing lock entry. With a double click you can see some more details, e.g. transaction which holds this lock (might be SE11 or some customizing, just look).
    This should be enough information to find the user and ask to release the source (table RF180).
    Regards,
    Christian

  • Mac address table to vm name mapping

    Is there a command that will show the mac address table to vm name mapping from the fabric interconnect or the nexus 1k?

    Register to Ciscolive365 and download BRKCOM-3003 , which has answers to all your questions.

Maybe you are looking for

  • Undelete a line item from Sales Order

    Hi, Is it possible to un-delete an item from the sales order? If yes, how can we do this? please advice. Thanks

  • General userexit before save of adrc-data

    Hi there! I need a common userexit to save additional data each time adrc-data is saved. This can be changed or new adress data if there's a new customer as well as there's a new built in equipment for example. Is there such an always valid userexit

  • Sync keeps telling me my password is wrong, i have reset it several times.

    I have set up sync for my android and my desktop however when I try to sync my mobile is telling me my password is wrong and when I try to relog into sync via the browser on my desktop it tells me the password is wrong. I have deleted and reset the p

  • Tab strip data binding

    Hi, i have a tabstrip with a fix numebr of tabs. in each tab i have a tableview. in context i have nodea >nodeb >elementc How can i bind the firest instance of nodea to a tableview in the first tab, the second instance to another table view from the

  • Control command Address in sapscript

    Hi experts , Can any one explain me how Address and Endaddress work . I have the below script  in window presently ADDRESS PARAGRAPH Z1        TITLE    &VBDKR-ANRED&        NAME     &VBDKR-NAME1&, &VBDKR-NAME2&, &VBDKR-NAME3&, &VBDKR-NAME4&        ST