Updation of a view BOM_RESOURCES_V

hi guys,
i want to update a field Autocharge_Type in the view BOM_RESOURCES_V.
this view is taken from the tables BOM_RESOURCES and CST_ACTIVITIES,
there are around 1500 records that has to changed.
navigation for the form in APPS.
Bill Of Material => Routings => Resources
in that form i've to update Charge Type.
can any one help me...

Hello,
Autocharge_type field is in table BOM_RESOURCES.
I think that changing it by UPDATE statement on BOM_RESOURCES is the simplest way to update a resource.
But you should previously check (by running a trace, for example), that when you change the Autocharge Type on a resource through the screen, only a change in table BOM_RESOURCES is performed by the screen.

Similar Messages

  • Update a maintenance view.

    Hi ,
    I want to update a maintenance view.
    Data is coming from a text file which i am uplaoding.
    Which function module should I use to update the maintenence view.
    Thanks,
    Ram.

    hi,
    use this FM VIEW_MAINTENANCE_CALL
    hope it will work.
    use this code .
    &----& Report  Z_TEST_PROGRAM&--*& Demo program for blog http://abap-explorer.blogspot.com/&--
    REPORT  z_test_program.DATA:i_sellist TYPE STANDARD TABLE OF vimsellist INITIAL SIZE 0,i_header  TYPE STANDARD TABLE OF vimdesc INITIAL SIZE 0,i_namtab  TYPE STANDARD TABLE OF vimnamtab INITIAL SIZE 0.PARAMETERS: p_view TYPE viewname MATCHCODE OBJECT viewmaint OBLIGATORY.AT SELECTION-SCREEN.CALL FUNCTION 'VIEW_GET_DDIC_INFO' EXPORTING   viewname                    = p_view     VARIANT_FOR_SELECTION       = ' ' TABLES   sellist                     = i_sellist   x_header                    = i_header   x_namtab                    = i_namtabEXCEPTIONS  no_tvdir_entry              = 1  table_not_found             = 2  OTHERS                      = 3         .IF sy-subrc <> 0. data: l_message type NATXT. CONCATENATE 'Table/View' p_view INTO l_message SEPARATED BY space. MESSAGE e001(00) WITH l_message ' not in the Dictonary'.ENDIF.START-OF-SELECTION.CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action                               = 'S' view_name                            = p_viewEXCEPTIONS  client_reference                     = 1  foreign_lock                         = 2  invalid_action                       = 3  no_clientindependent_auth            = 4  no_database_function                 = 5  no_editor_function                   = 6  no_show_auth                         = 7  no_tvdir_entry                       = 8  no_upd_auth                          = 9  only_show_allowed                    = 10  system_failure                       = 11  unknown_field_in_dba_sellist         = 12  view_not_found                       = 13  maintenance_prohibited               = 14  OTHERS                               = 15         .IF sy-subrc <> 0. MESSAGE i001(00) WITH 'Error while calling the view'. LEAVE LIST-PROCESSING.ENDIF.
    Edited by: katigiri linganna on Apr 20, 2009 4:31 PM

  • Select from table and Update to a view

    Hi,
    Can anybody let me if this is possible.
    I have a Master(single record)/detail(multi record) form. I would want to query/select the details from the base table but when I update/delete I would want to update/delete the details to a view.
    Is this doable?
    Thanks
    KAvitha

    Hi Kavitha,
    Solution 1 :-
    Why cann't you trap the ON-TRIGGERS (like ON-INSERT /On-update/ON-DELETE) of that block and put your piece of code to update/delete the view.
    SOlution 2 (I didn't try this ,so please try)
    I am not sure whether it will help you but can try !!Sorry if not working and let me know if you have a solution
    Create a package with Insert /Update/Delete sub procedures which does DML on view (as per ur requirement).
    Call this Procedure on DML Target Name of Advanced Database .
    Regards

  • Query and update a table/view

    What is the best & fastest way to do this?
    1) Put up a query input region for users to enter parameters.
    2) Run a query on a table/view using those parameters.
    3) Allow the output in (2) to be modified by user (multiple rows at a time) and then Submit the updates back to update th table/view
    I can do (1) and (2) easily. How can I do (3)?
    Thanks

    Make a report on the table. Go to the definition of
    the report column and change the "Display As" type to
    text field or select list or whcih ever is
    applicable. Write a process on submit to insert these
    values back to the table. You will have control over
    which columns the user can modify.Thats a good idea and I was able to start on it. But how can my after submit process tell which rows to modify? i.e. what will my after submit process look like?
    for rec in (....)
    loop
    update my_table set
    end loop;
    Help? Thanks

  • How To Update A Table View From Client Side !!!!

    Hi I would like to update a table view from the Client Side. So that the user can keep updating the relevent data on the client and when they have finally finished they can press Save so the entire page is then sent to the Server.
    Does anyone know how to do this, I guess u have to use the EPCM, I have just started on it and would really appreciate some Help.
    Thanks,
    Emmanuel.

    This is what I found :-
    There are a couple of ways to approach this.
    1) load the excel spreadsheet into the database "as is". You can use interMedia
    text to convert the .xls file into a .htm file (HTML) or use iFS (see
    http://technet.oracle.com/
    for
    more info on that) to parse it as well. InterMedia text will convert your XLS
    spreadsheet into a big HTML table (easy to parse out what you need at that
    point)
    2) Using OLE automation, a program you write can interact with Excel, request
    data from a spreadsheet, and insert it. Oracle Forms is capable of doing this
    for example as is other languages environments. In this fashion, you can remove
    the "manual" and "sqlldr" parts -- your program can automatically insert the
    data.
    3) You can write a VB script that uses ODBC or Oracle Objects for OLE (OO4O) in
    Excel. This VB script would be able to put selected data from the spreadsheet
    into the database. We would recommend OO4O. It provides an In-Process COM
    Automation Server that provides a set of COM Automation interfaces/objects for
    connecting to Oracle database servers, executing queries and managing the
    results. OO4O is available from
    http://technet.oracle.com

  • True about updates through a view

    hi frds
    i just need the right answer for the choices mentioned below with explanation
    plz help me
    What is true about updates through a view?
    A. You cannot update a view with group functions.
    B. When you update a view group functions are automatically computed.
    C. When you update a view only the constraints on the underlying table will be in effect.
    D. When you update a view the constraints on the views always override the constraints on the underlying tables.

    And a very tricky only it is.
    Peter, you are correct that view constraints are not enforced in the sense of PKs and FKS, but there are two other view constraints that are enforced.
    SQL> CREATE TABLE t AS
      2  SELECT rownum id, object_name
      3  FROM all_objects
      4  WHERE rownum < 11;
    Table created.
    SQL> CREATE VIEW t_read AS
      2  SELECT * FROM t
      3  WITH READ ONLY;
    View created.
    SQL> CREATE VIEW t_check AS
      2  SELECT * FROM t
      3  WHERE mod(id,2) = 0
      4  WITH CHECK OPTION;
    View created.
    SQL> CREATE VIEW t_nocheck AS
      2  SELECT * FROM t
      3  WHERE MOD(id, 2) = 0;
    View created.
    SQL> INSERT INTO t_read VALUES (100, 'READ ONLY');
    INSERT INTO t_read VALUES (100, 'READ ONLY')
    ERROR at line 1:
    ORA-01733: virtual column not allowed here
    SQL> INSERT INTO t_check VALUES (100, 'EVEN ID');
    1 row created.
    SQL> INSERT INTO t_check VALUES (101, 'ODD ID');
    INSERT INTO t_check VALUES (101, 'ODD ID')
    ERROR at line 1:
    ORA-01402: view WITH CHECK OPTION where-clause violation
    SQL> INSERT INTO t_nocheck VALUES(100, 'EVEN ID');
    1 row created.
    SQL> INSERT INTO t_nocheck VALUES(101, 'ODD ID');
    1 row created.
    SQL> UPDATE t_check SET id = 201
      2  WHERE id = 2;
    UPDATE t_check SET id = 201
    ERROR at line 1:
    ORA-01402: view WITH CHECK OPTION where-clause violation
    SQL> UPDATE t_nocheck SET id = 201
      2  WHERE id = 2;
    1 row updated.The WITH READ ONLY constraint bars all changes to the view. The WITH CHECK OPTION stops any changes that would make the record invisible to the view. It is essentially a CHECK constraint on the view.
    John

  • How to use FM VIEW_MAINTENANCE_NO_DIALOG for updating values in views

    Hi all,
    I got a scenario to update the maintainenace view V_T001S based on the user inputs through a program.
    I'm thinking to use this FM  VIEW_MAINTENANCE_NO_DIALOG , but im getting lot of errors.
    Please let me know if you have any other solutions for this scenario.
    Thanks in Advance.
    Best regards,
    Sekhar.
    Resolved.. thanks
    Edited by: Chandrasekhar Raju on Mar 29, 2011 6:55 AM

    Hi,
    you could use Dynamic SQL /Execute immediate to run DDL from a stored procedure.
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm
    Could you please tell why do you want to create a materialized view in stored procedure ?
    How frequently you will runt this procedure . It would is better to create a MV once and use it.
    thanks

  • Updating XML thru view table

    Given the following view table that i created
    CREATE OR REPLACE VIEW PO_DETAIL_VIEW ( PAYLOADID,
    ORDERNUMBER, LINENUMBER, SHIPPEDITEMQTY, COST,
    ORDEREDITEMQTY, ACTION, UOM, DESCRIPTION,
    SKU, STATUS, CURRENCY, PLANNEDRECEIPTDATETIME
    ) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
              extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
              extractvalue(value(i),'/OrderLine/@lineNumber'),
    extractvalue(value(i),'/OrderLine/@shippedItemQty'),
    extractvalue(value(i),'/OrderLine/@cost'),
    extractvalue(value(i),'/OrderLine/@orderedItemQty'),
    extractvalue(value(i),'/OrderLine/@action'),
    extractvalue(value(i),'/OrderLine/@uom'),
    extractvalue(value(i),'/OrderLine/@description'),
              extractvalue(value(i),'/OrderLine/@sku'),
              extractvalue(value(i),'/OrderLine/@status'),
              extractvalue(value(i),'/OrderLine/@currency'),
              extractvalue(value(i),'/OrderLine/@plannedReceiptDateTime')
    from PURCHASEORDER p, table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
    when i executed the following command:
    UPDATE po_detail_view
    SET ORDERNUMBER = '500001' where PAYLOADID='1'
    I get end of file error which disconnect me from my oracle database.
    but when i update my another view table it is fine.
    CREATE OR REPLACE VIEW PO_MASTER_VIEW ( VERSION,
    PAYLOADID, TIMESTAMP, SENDERNAME, SENDERCOMPONENT,
    DOCUMENTREFERENCEID, SINGLETRANSACTION, INDEX0, INDEX1,
    INDEX2, INDEX3, CLOSED, ORDERNUMBER,
    ORDERTYPE, UNIQUEBUSINESSKEY, HANDLINGCODE, BUYERID,
    BUYERPARTYNAME, BUYERROLE ) AS select extractValue(value(p),'/OrderMessage/MessageHeader/@version'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@payloadId'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@timeStamp'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@senderName'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@senderComponent'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@documentReferenceId'),
    extractValue(value(p),'/OrderMessage/MessageHeader/@singleTransaction'),
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[1]/@content'),     
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[2]/@content'),               
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[3]/@content'),
    extractValue(value(p),'/OrderMessage/MessageHeader/HeaderIndexedAttribute[4]/@content'),
    extractValue(value(p),'/OrderMessage/Order/@closed'),
    extractValue(value(p),'/OrderMessage/Order/@orderNumber'),
    extractValue(value(p),'/OrderMessage/Order/@orderType'),
    extractValue(value(p),'/OrderMessage/Order/@uniqueBusinessKey'),
    extractValue(value(p),'/OrderMessage/Order/@handlingCode'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@Id'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@PartyName'),
    extractValue(value(p),'/OrderMessage/Order/Buyer/@Role')
    from PURCHASEORDER p
    UPDATE po_master_view
    SET VERSION = '2.0' where PAYLOADID='1'
    i can see that the problem lies with
    table(xmlsequence(extract(value(p),'/OrderMessage/Order/OrderLine'))) i
    is there any better way or solutions to work ard with it?
    Thanks.

    Thanks Mark,
    That's what i suspected the case, will log the itar later when i am free.
    Actually my main issue is that I am using forms 9i to view and edit the view tables that are based on the xml schema. Forms is giving me problem in accessing complicating views.
    I think my only solution is to:
    1)create a custom table updated by the view table.
    2)Create my form block based on custom table.
    3)update the xml data using updateXML() from the custom table.

  • Required function module to Update MM-classification view

    Hi Floks,
         i got one object on MM, some material having the classificaton view and some material dont have, but my requirement is i need to update the classification view, Do you know any idea about , what is the function module is required ?
    Thanks
    Siva Prasad
    Sap-Practice

    the trick, when looking for these bapis, is NOT to look with material master bapis, but under cross application->classification->objectclassification... (in tcode BAPI)
    you will se the bapis you need.
    one thing, when you look in transaction bapi, all bapis for classification are shown with a _KEY suffix. the ones you want are WITHOUT the _KEY suffix...
    we use these all of the time.

  • HT5422 How to get an better screen-update? The view on the remote Mac is nearly static.

    How to get an better screen-update? The view on the remote Mac is nearly static.

    You can try reducing the bit depth of the screen image  via the slider in the upper-right of the Control window. If that doesn't help, you may just not have a sufficiently fast network connection to correctly handle the data transfer necessary. This is often the case if you're connecting across the Internet. What is your network speed between the administration system and the client?
    Regards.

  • Updating a database view

    Hi,
    can you please tell me how can i update database 'z' view.
    can we update as the same ways as we fill the data in database table by insert update command..
    if there is any way to fill data in data base view please describe the process if any code you have it would be appreciated.
    Thanks.

    Database view does not have any data itself. It just sort of a build-up on the actual database table (or tables). For more on database views please see here:
    http://en.wikipedia.org/wiki/View_(database)
    If you are looking at a view in SE16, for example, and don't see the data that you'd expect, it means that data is not present in the database. Check the view definition in SE11 to see to which tables it is pointing. In ABAP programs you may use a view to select from the database, but I don't think you can use it to update database. I'm not 100% sure though - it just has never occurred to me to use a view for updates.

  • Updating Ordered List View

    Hi,
    In our report , we are using updating ordered List View. In this view we specified sort conditions on some fields which does the default sorting when report gets generated.
    Now, the user would like to sort the results by clicking on the column name at run time. How do we achieve this functionality in this view ? If not , is there any alternative view available ?
    Thanks,
    Satish

    I think in the current version - sorting as a enduser-function is not available.

  • Unable to upload "filescopied_48862.txt" to update the current view of the

    Hi Team,
    While applying applications patch I am getting the below error in the patch log file.
    Start Processing Snapshot Info
    AutoPatch error:
    Unable to upload "filescopied_48862.txt" to update the current view of the snapshot.
    But when I checked in the ad_bugs table it is showing the bug_number.Actually this patch has to change the version of file fadp6.lpc,but it is not changing it.
    We already have updated current view snapshot.
    Please suggest me on this.
    Thanks,
    Suresh

    Hi Hussein,
    Thanks for quick reply and the details are:
    Q)Please post the application release, database version and OS.
    ApplicationRelease:R12.1.1
    Database Version:11.1.0.7
    OS:Windows Server 2008(32 bit)
    Q).What is the patch number?
    12338963
    Q).Is this the complete error message?
    In the whole patch log file this is the only error it is showing.
    Q).Did the patch continue to run after this error and completed successfully?
    Yes It has continued to run after this error and completed successfully.
    Q).Please apply the patch again from the beginning and see if you encounter the same issue.
    I have applied the patch again from the beginning and we are getting the same error.
    The only error in patch log file it is showing is:
    Start Processing Snapshot Info
    AutoPatch error:
    Unable to upload "filescopied_48862.txt" to update the current view of the snapshot.
    Q).What is the version of fadp6.lpc you already have? What is the version of fadp6.lpc delivered by this patch? Have you verified the timestamp of the file?
    fadp6.lpc 120.36.12010000.7 and the timestamp is:2009/07/28 07:55:40
    Version of fadp6.lpc delivered by this patch is:120.36.12010000.13
    Thanks,
    Suresh

  • Ipad ll - Can't update apps or view videos

    Can't update apps or view videos after downloading several podcasts. When I look at podcasts downloaded in ITunes it shows all the items that I selected and says that it is  "processing" the first item and seems to be hung up or locked up - the same thing happens when I attempt to update an App - it shows waiting but never completes. I have expanded my screen timeout, but to no avail. Any help would be greatly appreciated.

    Call Apple at 800.My.Apple, they will assist you with this

  • Update on Management View in VIRSA Compliance Calibrator 5.2

    Hello,
    is there a way to delete the Data for the Management View in VIRSA Compliance Calibrator 5.2 and then make a full new data load.
    When I select Full Synchronisation and Management Reports in the Schedule Analysis, the system does not update the Management View correctly, the Management Report shows still roles which are already deleted in the SAP-System.
    Thanks

    Hi,
         You can do a Full sync of Users and Roles first which will be ovewrite and then run the Batch Risk Analysis Management Reports.
          You can try this exercise first if it does not work then go ahead with Alpesh's advice.
    Thanks
    Darshan

Maybe you are looking for