In what table Operating_unit column present in purchase orders modulle

In what table Operating_unit column is in purchase modulle. Explain to me how to find?

Thanks in advance.

Kind regards
Raja

Hi Uvaraja,

looking for the name of "operational unity"?

In PO_HEADERS_ALL and PO_LINES_ALL he stored with the name column "ORG_ID. You can use the HR_OPERATING_UNIT table to take the name of "OPERATING_UNIT" using link below

"PO_HEADERS_ALL.ORG_ID = HR_OPERATING_UNIT.ORGANIZATION_ID".

Thank you

Tags: Oracle Applications

Similar Questions

  • Cancel a purchase order

    Hi all
    What happens if I cancel the purchase order after receive partial quantity of the items on this subject.
    Obliterated lines can be converted into a new purchase order. Please specify.
    Thank you

    So it has solved your query?

  • Need to insert test data in all the tables that were present in a schema

    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.
    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
      --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
      SELECT u.column_name, u.data_type, u.data_length
      --BULK COLLECT INTO l_col_tab
        FROM user_tab_columns u
       WHERE u.table_name = p_table_name;
    
      -- generated the values using below statement
      
        SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
        -- INTO collection varaible
          FROM user_tab_columns u
         WHERE TABLE_NAME = p_table_name;  
       
    
    END;
    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.



    Thank you
    Suri

    Suri wrote:
    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.

    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
    --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
    SELECT u.column_name, u.data_type, u.data_length
    --BULK COLLECT INTO l_col_tab
    FROM user_tab_columns u
    WHERE u.table_name = p_table_name;
    
    -- generated the values using below statement
    
    SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
    -- INTO collection varaible
    FROM user_tab_columns u
    WHERE TABLE_NAME = p_table_name;  
    
    END;
    

    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.

    Thank you
    Suri

    With some effort, you can write dynamic insert queries. Read the data dictionary views ALL_TABLES and ALL_TAB_COLUMNS to get the data you need. You may need to limit the list to the tables you specify to hardcode the names of the tables. You can read the views for the information of table and column that you need generate the insert column orders. It will be a lot of work and it might be easier to simply hardcode values. Dynamic SQL is difficult to debug and work with: (.) Something like this (untested and totally undebugged)

    declare
      cursor v_tab_col(p_table_name) is select * from all_tab_columns where table_name = p_table_name;
      v_text varchar2(32767);
      v_table_name varchar2(30);
    begin
      v_table_name := 'DUAL';
      --chr(10) is a newline for readability when debugging
      v_text := 'insert into '||v_table_name||chr(10)||'(';
      --loop to build column list
      for v_tab_rec in v_tab_col loop
        --add comma if not first item in list
        if v_tab_col%rowcount > 1 then
          v_text := v_text ||',';
        end if;
        v_text := v_text || v_tab_rec.column_name;
      end loop;
      v_text := v_text ||') values ('||
      --loop to build column values
      for v_tab_rec in v_tab_cur loop
        if (v_tab_rec.datatype = 'VARCHAR2') then
          --add comma if not first item in list
          if v_tab_col%rowcount > 1 then
            v_text := v_text ||',';
          end if;
          if v_tab_rec.datatype = 'NUMBER' then
           v_text := v_text || '9';
           elsif v_tab_rec.datatype = 'VARCHAR2' then
             v_text := v_text ||'X';
          end if;
      end loop;
      v_text := v_text || ')';
      execute immediate v_text;
    end;
    

    This code is not effective, but shows how to do what you described. You'll have to code for all data types you need and find a way to take into account the primary/foreign keys, yourself. I leave it to you to find a way to avoid selecting the data twice ;)
    Good luck!

    Published by: riedelme on July 24, 2012 13:58

  • How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?

    How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?

    What is the formula?

    You can do this with a column of "index" in table 1, as this assistance:

    The formula in C2, filled to the bottom:

    IF (B =<>

    That increments a counter each time that it finds a negative number in column B.

    In the second table, you can retrieve a list of negative values in this way:

    The formula in A2, filled to the bottom:

    = INDEX (array 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0))

    It takes the line number, the formula is activated, subtracts 1 to the header line and look up the result in the column of table 1 C.  If it finds a match, it feeds the line number to the INDEX page with retrieves the value of the column of table 1A.

    To hide the red triangles of signage wrap the IFERROR formula, like this:

    = SIERREUR (INDEX (table 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0)),"")

    Of course, you can also simply filter on column B without the need to set up a column from another table or index.

    SG

  • alter table drop column

    Hi all

    I create a simple table like this:

    create table x (a number, b varchar2 (20));

    ALTER table x modify a primary key constraint a_pk;

    insert into x values (1, 'first row');

    insert into x values (2, 'second row');

    commit;

    Then:

    SQL > select * from x;

    A AND B

    ---------- --------------------

    1 first row

    2 second row

    Then I run these commands:

    SQL > alter table drop column x.

    Modified table.

    SQL > select * from x;

    B

    --------------------

    first row

    second row

    Question: Why am I able to remove this column when a PRIMARY KEY for the table? I do not use the key words of CONSTRAINT CASCADE with the DROP COLUMN clause...

    I have Mr. Steve O'Hearn here saying this in his book 'Certified Expert Guide exam 1Z0-047:

    CREATE TABLE ORDER_RETURNS

    (NUMBER OF ORDER_RETURN_ID,

    NUMBER OF CRUISE_ORDER_ID

    DATE OF CRUISE_ORDER_DATE,

    CONSTRAINT PK_OR PRIMARY KEY (ORDER_RETURN_ID));

    .. We can not remove the column the table ORDER_RETURNS that

    is subject to the constraint PRIMARY KEY (ORDER_RETURN_ID)... The reasons are:

    ORDER_RETURN_ID is the PRIMARY KEY of this table...

    Isn't this correct?

    No - it's NOT correct - the book is bad.

    You could have just tested the FULL example in the book to verify that the statement is wrong.

    http://weirdoootamee.yolasite.com/resources/Oracle%20sql%20expert.PDF

    See page 432

    CREATE TABLE CRUISE_ORDERS
    (NUMBER OF CRUISE_ORDER_ID,
    ORDER_DATE DATE,
    PK_CO (CRUISE_ORDER_ID, ORDER_DATE) PRIMARY KEY CONSTRAINT);

    CREATE TABLE ORDER_RETURNS
    (NUMBER OF ORDER_RETURN_ID,
    NUMBER OF CRUISE_ORDER_ID
    DATE OF CRUISE_ORDER_DATE,
    CONSTRAINT PK_OR PRIMARY KEY (ORDER_RETURN_ID).
    FOREIGN KEY CONSTRAINT FK_OR_CO
    (CRUISE_ORDER_ID, CRUISE_ORDER_DATE)
    REFERENCES CRUISE_ORDERS (CRUISE_ORDER_ID, ORDER_DATE));

    create two tables - add data, if you want.

    Then try to delete the primary key column and see what happends

    ALTER table drop column order_return_id order_returns;

    The best way to learn is to actuall TRY of THINGS.

    Try it with your own table, but the FIRST thing that you should try was the real example of the book.

  • what filter first column by the oracle optimizer

    If anyone can help to understand what filter first column by the optimizer oracle by example below and why?

    Select * from emp where ENAME = 'FORD '.
    AND SAL = 3000;

    Hello

    Look at the MAP of the EXPLAIN command.

    All things being equal, if there is more distinct values of ename, Sal, then it's probably looking for "FORD" first.

    For example, the table has 100,000 rows and there are distinct 10 000 distinct enames and 100 sals, ename and sal are indexed, but there is no combined index.
    If you are looking for by sal firstly, this means that you wait about 1,000 lines of the search index, and then you have to test each of these 1,000 rows for the right ename.
    If you are looking for by ename, first of all, it means that you wait about 10 lines of the search index, and you will only test each of these 10 rows for the sal on the right.
    The order in which the terms were written will count.

    Published by: Frank Kulash, April 2, 2012 07:54

  • Comment of tables and columns are included in the Data Modeler

    Hi all
    I used Oracle SQL Developer Data Modeler (Version 3.0.0.665) and created a data model for my project. I sent an email a PDF version of the data model to our systems analyst. She asked if I could re - create the data model and include table and column comments. Is this possible and if so how this work is it?

    Thank you for your comments,

    Seyed

    Seyed salvation,

    I used the Data Modeler and create a report. The report included 36 .csv files

    What is the purpose of this 'report' task, because 36 files csv does not sound like report to me. Watch "files > reports" feature - you can generate reports for your model. -for any model, single table or tables belonging to specific subview. The report of the complete table contains additional details, so if you need these comments, then only you can create a template and select column comments appear only. So some general information table will be also included.

    Philippe

  • What libraries have been presented in the theme of the beauty of the books?

    Original title: beauty of the theme books

    Does anyone know what libraries have been presented on the pictures of the theme?

    Hi Dan,.

    This collection of images contains illustrated from all libraries in the world. When you select a picture library/theme, you get the same information.

    For more information, see the link:

    The theme of the beauty of the books

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Invalid procedure after alter table add &lt; column &gt;

    Hello Experts,

    I was faced with a situation where I add a column in a table that is used in a procedure, immediately after the addition of the new procedure associated with this table column becomes invalid.

    Can someone explain please know why this happens.

    Database version:-11.2.0.4.

    I was faced with a situation where I add a column in a table that is used in a procedure, immediately after the addition of the new procedure associated with this table column becomes invalid.

    Can someone explain please know why this happens.

    Yes - the Oracle documentation explains this. I found this doc with a simple search of "column, add the oracle 11g invalid procedure.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28318/dependencies.htm#CHDJIIFC

    Table 6-2 , shows how objects are affected by changes to other objects upon which they depend.

    Table 6-2 operations affects this object status

    Operation Where the status of dependent objects

    ALTERTABLEtableADDcolumn

    INVALIDWhen:

    • Uses of the object (except a view)-dependent SELECT * on table .
    • Dependent object uses table %rowtype .
    • Dependent object performs INSERT on table without specifying a list of columns.
    • Dependent object references table in the query that contains a join in SQL.
    • Dependent object references table in the query that refers to a PL/SQL variable.

    Otherwise, no change.

    Read the WHOLE ARTICLE and see if it does not have to explain your problem.

  • What creative programs cloud must be purchased to create a Web site, where purchases can be made on the site, without using a third-party Web site?

    What creative programs cloud must be purchased to create a Web site, where purchases can be made on the site, without using a third-party Web site?

    as mentioned there are several adobe programs that could be used to create your website from the front-end. There is none that would be used to create the back-end.

    all front-end creative programs are able to add the features needed to communicate with your Web site main.

    WordPress is a content management system, but also the design Web site handles so I'm not sure it makes sense to invest in programs oriented primarily as adobe design and use wordpress.

  • What table stores the published/unpublished indicator for items assigned to any section in iStore

    Hi all

    I want to know what table stores the published/unpublished indicator for items assigned to them sections to iStore?

    According to my understanding:

    When any item of inventory is assigned to any section we have given in to this inventory_item_id ibe_dsp_section_items.

    This board just have the start_date/end_date and tell me if the article is published on the site

    There is an another table ibe_dsp_msite_sct_items which shows what minisites element is available.

    This board just have the start_date/end_date and tell me if the article is published on the site

    We can always go to responsibility administrator iStore

    Merchant iStore > > catalog > > Products > > summary

    search for any item and it shows the item was attributed to what all the sections.

    Here, we have a button "change published Flag." This can be used to publish/not to publish articles on all sections.

    I want to know what table is updated when we hit this button.

    Thanks in advance!

    Thank you

    Shashank

    Hi all

    I got the answer.

    This button updates the

    MSI.web_status

    Just thought that answer here in case it helps anyone.

    Thank you

    Shashank

  • When you buy creative Cloud, what version of InDesign are your purchases?

    When you buy creative Cloud, what version of InDesign are your purchases?

    Hi arr1976,

    If you want to learn, you must sign up for InDesign - CC2014, as it is the last of all and allow you to use all the new features.

    We also telephone support for InDesign CC2014 case face no matter you what trouble with him, for CS6 and CS5, we have telephone assistance, support is available through Forums and Chat.

    See the links below for more information on InDesign CC2014.

    Using InDesign | Summary of new features

    Using InDesign | Using InDesign

    I would recommend if you can use Indesign CC2014 as a trial from the link below.

    Download trial version: https://creative.adobe.com/products/download/indesign

    Download help: CC help | Install, update, or uninstall applications

    Buy plans: plans pricing and membership creative cloud | Adobe Creative Cloud

    InDesign with commitment annual $19.99 / mo : https://creative.adobe.com/join/single_app/year/indesign

    InDesign without commitment annual $29.99 / month: https://creative.adobe.com/join/single_app/month/indesign

    InDesign with commitment annual $239,88 / year: https://creative.adobe.com/join/single_app/annual_pmt/indesign

    Please come back in case you have other queries.

    Thank you

    Atul Saini

  • What table stores information provider name?

    Hi guys,.

    Can someone tell me what table in EBS stores information provider?

    Thanks in advance.

    Hi Nathalie,.

    The provider are stored in the PO_VENDORS table in 11i.

    In R12, PO_VENDORS is replaced by a view, but still you can get the same information.
    The name of the table in R12 - AP_SUPPLIERS.

    Thank you

    PS.

  • What table belong to which table

    Wanted to know what table belongs to which tablespace or datafile.
    name of the table example - ABC
    Problem of ORA-01653: unable to extend table ABC but no tablespace is mentioned

    query dba/user_tables & dba_data_files

  • Table 1 column?

    Does make sense to always have a table 1 column? Here's my problem:

    I have a table of reference: code_desc (id, description, language_cd).

    The id column is used in many places in the application and I would like to place a foreign key. But the problem with table of code_desc, is that it has a composite primary key (id, language_cd) for internationalization, id is not unique.

    I was contemplating using a surrogate but key using a surrogate key instead of the cd too many tables. Is there another solution to this?

    Rinne says:
    I think that I tried to simplify too much and ends up being more confused. I only need one type of description. For example, a product table has many products and related description.

    The product code, product description
    AB3S, 'bed '.

    No doubt the entity 'PRODUCT' has other correct attributes (product type, category, etc.)? I think also he 'modified' and 'created' columns of audit as well. I think that the example I provided can work in your situation very well.

Maybe you are looking for

  • do not click on

    Nice day! I have a problem on my fb, when I opened my fb account, I don't click on HOME, MY PROFILE, MY STATUS, & can not add PICTURES/videos and cannot sign out of my account. He started last night so far. from your other thread - https://support.mo

  • Shift the image with connected external monitor

    Hi all. My old external monitor just called it a day, so I bought a new. A U28D590 of Samsung 4 k. pretty lousy video quality compared to my old, but I can live with, I got it for next to nothing. The big problem is the poor 'speed of feeling. " mous

  • Satellite Pro 6100 video card does not work!

    I have a Satellite pro 6100, but the video card will not work! Toshiba sells parts of the satellite pro 6100? Greetz, jeroen

  • opening lost when upgrade OS

    Now that I can't launch the opening since the upgrade to ElCapitan, how can I get it back all of my photo work in Aperture?

  • Internet connection only in Mode safe mode with networking

    I was using the Internet at home, when I had a pop up telling me there was an anti-virus program download. I pulled out the window pop-up, rebooted the computer and turned on safe mode with network. I thought it was just a problem of virus/malware/sp