Update a table view field calling a service

Hi all,
is there a way in a table view to calculate the value of a field calling a data service, using as calling arguments other fields from the same row?
For example I have line items of a sales order in a table view. In one field the user enters the quantity in the desired unit of measure. I would like to have the quantity transformed in KGs in the same row.
Is this possible?
Points will be awarded for usefull suggestions.
Regards,
Panos

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

Similar Messages

  • 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

  • Update MARA WM View Fields Without Wharehouse No.

    Hello,
    I need to update the following MARA fields for WM View without Warehouse Number.
    MARA-HNDLCODE
    MARA-WHMATGR
    MARA-WHSTC
    I have tried some BAPI'S(BAPI_MATERIAL_SAVEREPLICA) FM but no luck. Can anybody suggest me how do i update above MARA Fields ?
    Regards,
    Deepa

    Hello Deepa Rajput.
    Try using BAPI_MATERIAL_SAVEDATA.
    Regards.

  • 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

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Viewing itemised call details - service downgraded

    Many customers wish to be able to view call details. Sometimes it is to check which kids are spending a fortune phoning friends on mobiles, or getting suckered into dialling premium rate numbers, sometimes it is to provide proof that a call was made on a certain date and time, perhaps if there is a dispute with a company (as was suggested in another thread recently)
    Before online and paperless billing this was easy because all calls were printed and itemised. After the numerous modifications to online billing however it has become harder to view call details. If you forget to download a bill from more than 10 months back, then it's unavailable unless you pay to have it retrieved. The downloadable .pdf files do not have itemised calls; this is not in customers' interests and should be remedied. If you wish to see details you must find the csv file (and the hotlink is not easy to locate) and, as far as I can tell, even then you have only a short time to do this; once the next bill is available, you lose the link to the csv file on the previous 9 bills.
    You can look at all pages of call details when viewing the current bill online, but not if you are using Firefox with certain security add-ons (NoScript, Request Policy, Taco); BT appear to have decided that it is in customers' interests to allow scripts referencing a third party, Omniture, to snoop on one's private details and apparently have access to the phone numbers of people whom customers have called. (I'm assuming that is the case because BT have not denied it). And these scripts are blocked by the security add-ons, so the information is unavailable, unless one uses a less-secure browser
    I feel strongly that BT should publish some clear guidance on this whole area of itemised calls, so that customers are forewarned what measures they must take to ensure that they can view and keep itemised records of all call details.
    What do others think?

    I have to agree with you on this one Flo
    Viewing one's bill(s) didn't used to be such a pain, but now it is
    Omniture (oops) I'm sure they don't need to have these types of things on my private billing pages
    Take care on this, as the ice can get thin at times....
    -+-No longer a forum member-+-

  • Table control View in Maintenance order Services tab

    Hi Experts,
    I am trying to change the table control fields of the services tab of the maintenance order , when we use PM03 control key to generate services PR.
    I try to remove some check box which are earlier defined as invisible to make it visible. However after saving the system variant system doesnt take the changes. It is coming back to the original .
    Here are couple of fields I would like to change the setting. As of now I am trying to change the below mentioned field to visible . Presently it is in invisible mode.
    Fields
    Formula::ESLL-FORMELNR,
    Form values: ESLL-FRMVAL1 to ESLL-FRMVAL5 and
    User field3:  ESLL-USERF1_TXT
    program name SAPLMLSP
    Control TC_VIEW
    I am following the below. Kindly let me know whether I am following the right step.
    1) Click on tbale setting
    2) CLick on administrator
    3) Select the field and do the necessary change to make visible or invisible.
    4)Activate
    5)Close
    6) save.
    RG
    Vinod
    Edited by: vnodpm on Feb 6, 2012 7:07 PM

    Hi,
    The IMG customizing will have greater priority than the screen table controls (also specific program logic can supersede the table controls). Check the customizing for service screen at following path:
    SPRO - Materials Management - External Services Management - Define Screen Layout
    -Paul

  • FM to update table view V_BBP_DET_ACCT

    Hi all,
    We are running on SRM 5.0(Sp11),Standalone scenario.We have a  requirement to update the table view V_BBP_DET_ACCT through a custom program for the local product categories we have created in the SRM system.
    We dont want to maintain the SPRO setting  'Define G/L Account for Product Category and Account Assignment Category' but instead through our custom program.
    Is there any std FM which can be used for this?Has anybody tried this before?All suggestions will be highly rewarded.
    regards,
    SRM tech.

    There wont be any FM to insert/delete/update in to these customising table.
    You can write you own ABAP code to directly maintain these tables.
    I see no harm in it, as there wont be any business logic in the SPRO also.
    Regards,
    Ramesh-

  • Addition and deletion in a table View in Visual composer 7.0

    Hi All
    I have a requirement of updating a table view from the entries that a user enters in an input form.
    When the user makes entries in the input form and clicks on save he should see those entries in the table and these entries should also get updated in the backend.
    Can anyone give me any ideas around it?
    Please also let me know if VC 7.0 supports multiple actions on a click of a button?
    Suppose if i create a button save on the form and implement two actions "Insert Row" and a custom action"Submit"(which eventually will hit the BAPI) in the backend to update so will it work ??
    I read on SDN that in order to add or delete i would need 3 buttons atleast :ADD,(to add row),SAve(to call bapi) and Refresh(to make entry visibile) in the table.
    Can anyone suggests better solution around it.
    Thanks for all the pointers in advance.
    Regards
    Shweta

    Hi Shweta,
    Since tables only represent data retrieved from a backend service, I guess the correct functionality would be that the data in the form would be submitted to the proper service (that can recieve input and add it to the database), and then the table that will be connected to the output port of the service will be updated with the new data.
    And sequence actions was added as a feature, so it depends on your SP level. If you can'e see it when you assign actions to a button, your SP doesn;t have it
    Best regards,
    Udi

  • Sender JDBC.....pick data from table view?

    Hi Experts,
    working on JDBC for first time, so have few questions.
    data base guys want to create a table view and we need to pick the data from table view.
    my question is can we import the structure form data view?
    if i am not able to import, so i need to create the structure same as in data base table view and is it case sensitive?
    they dont want to update the data base table view, very time the SQL query will pick all the records form data base.
    the records will be less then 10,000.
    my question is as we are not updating the table view, what we need to write in update query as it is mandatory?
    Regards,
    Chinna

    Hello,
    i hope below option help in update query
    In place of the SQL statement, you can also enter <TEST>. Once the data determined from Query SQL Statement has been successfully sent, the data in the database remains unaltered.
    This is recommended if the data has not only been read, but also changed by a stored procedure entered under Query SQL Statement.

  • Reuse of table view in mine own view.

    Hi experts,
    I have reused a view from standard component BP_DATA ( marketing attribute : table view ) into my component.
    I have created a component usage for BP_DATA and then i have assigned the usage are to a view set and then that view set is assigned to window directly.
    When i am launching Web UI , I am getting the view area only.
    Couple of requirements further is :
    1. To assign the title to that area.
    2. To have the table view fields available on view area.
    view area in in black border in Screenshot attached.
    Kindly advice.
    Thank you.
    Regards,
    Vishal

    Hi Vishal,
    I would try to answer your questions:
    1. To assign the title to that area.
                  Try to find a method *descrition* in IMPL class
    2. To have the table view fields available on view area
                   Generally if you add a view (a) inside view set (b) - in runtime to make field visible there should be similar kind configuration in view with configuration key object type etc. used in viewset; it means viewset configuration crietria gets precedence unless there is a BADI implemented for the view to alter the criteria.
    So please check configuration and BADI CRM*VIEW*CONFIG
    Hope it helps.
    Thanks
    Krish

  • Issue while updating field SCHZU (shift Premium) in table view  V_T508A

    Hi All,
    I am facing an issue while updating the field SCHZU(Shift premium) in Table view V_T508A.For some WSR entries when i am trying to update the shift premium say with a value 19400,the value is accepted.However for some other WSR entries,the value for shift premium gets modified to 19.400.Can someone please let me know why this error is occuring and how to rectify the same.
    Regards,
    Punam Jha

    usually its a percentage value. please check what value you enter

  • Progammatic update a table with a database view  in the page

    Hi All,
    I am using JDev 11g. With FOD database schema, I have one database view Products which comes from two tables Products_Base and Product_Transactions. I created three EOs (ProductEO, ProductsBaseEO, ProductTransactionsEO) and three VOs (ProductVO, ProductsBaseVO, ProductTransactionsVO) based on their EOs respectively.
    Here is my scenario. I have an ADF form which is based on the database view Products and is dragged and dropped from Data Controls->ProductVO. When an existing record is submitted, a backing bean method will be called to update the data against the table Products_Base (and the table Product_Transactions at the same time) programmatically. An update method updateProductPrice() is added into the Application Module and published it to UI Client. The submit button in the page is created by directly dragging and dropping Data Controls->updateProductPrice into the page. When I run it, I got the following error message,
    Failed to post data to database during "Update": SQL Statement "UPDATE PRODUCTS ProductEO SET COST_PRICE=:1 WHERE PRODUCT_ID=:2".
    What I don't understand here is that, in my update method updateProductPrice(), it supposes to update the table Products_Base. But from the error, it appears that it is trying to update the view Products. Can anyone give me a help on what I did wrong here? When I try to debug it, it throws an exception to this line in the method updateProductPrice(),
    getDBTransaction().commit();
    Here are my codes,
    The method which got called in the backing bean
    public String cb6_action() {
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    FacesCtrlAttrsBinding ProductId = (FacesCtrlAttrsBinding)bc.get("ProductId");
    FacesCtrlAttrsBinding CostPrice = (FacesCtrlAttrsBinding)bc.get("CostPrice");
    JUCtrlActionBinding action =
    (JUCtrlActionBinding)bc.findCtrlBinding("updateProductPrice");
    DCDataControl dc = action.getDataControl();
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    AppModule service = (AppModule)am;
    service.updateProductPrice(new Long(ProductId.toString()), CostPrice.toString());
    return null;
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    The update method defined in the Application module (AppModuleImpl.java)
    public void updateProductPrice(long productId, String costPrice) {
    ProductsBaseEOImpl product = retrieveProductById(productId);
    if (product != null) {
    try {
    product.setCostPrice(new Number(costPrice));
    getDBTransaction().commit();
    catch (JboException ex) {
    getDBTransaction().rollback();
    throw ex;
    catch (SQLException ex1) {
    getDBTransaction().rollback();
    private ProductsBaseEOImpl retrieveProductById(long productId) {
    EntityDefImpl productDef = ProductsBaseEOImpl.getDefinitionObject();
    Key productKey = ProductsBaseEOImpl.createPrimaryKey(new DBSequence(productId));
    return (ProductsBaseEOImpl)productDef.findByPrimaryKey(getDBTransaction(),productKey);
    Edited by: john wang on Oct 27, 2009 7:14 AM

    or
    merge into test
    using (select rowid rid
                , id
                , sub_id
                , startdate
                , lead (startdate) over (order by id, sub_id) - 1 ed
           from test) x
    on (x.rid = test.rowid)
    when matched then
       update set end_date = x.ed
    ;

  • Add data to table view from input fields in a page

    Hi
            I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
       (1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
          I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I can’t use the controller and view because I can not set the attribute to Controller automatically.
       (2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
       (3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
    Thanks
    Sreenivas

    I'm trying to test the merge with the following data in a test.txt file:
    ZZZZZ114923000004
    1234Z400660000001
    ZZZZZ114923000010
    Getting an error:
    SQL> @C:\dataformats\sql\pc12seriesMerge.sql
    Directory created.
    SP2-0552: Bind variable "17" not declared.
    SQL>
    here it the pc12seriesMerge.sql file
    set serveroutput on
    create or replace directory user_dir as 'c:\dataformats\incoming\';
    DECLARE
    v_filename VARCHAR2(100); -- Data filename
    v_file_exists boolean;
    v_file_length number;
    v_block_size number;
    f utl_file.file_type;
    s varchar2(200);
    lineString varchar(200);
    v_account varchar(5);
    v_IDN varchar(6);
    v_quantity varchar(6);
    BEGIN
    v_filename := 'TEST.TXT';
    DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
    utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
    IF v_file_exists THEN
    dbms_output.put_line('File Exists');
    create table ext_table (
    account varchar2(5),
    idn number(6),
    quantity varchar2(6)
    organization external (
    type oracle_loader
    default directory user_dir
    access parameters (
    records delimited by newline
    fields (
    account position(1:5) char(5),
    idn position(6:11) char(6),
    quantity position(12:17) char(6)
    location ('test.txt')
    reject limit unlimited;
    MERGE INTO id_req_stg t
    USING (
    SELECT account,
    idn,
    decode(quantity, '-', 0, to_number(quantity)) as quantity
    FROM ext_table
    ) v
    ON ( t.account = v.account AND t.idn = v.idn )
    WHEN MATCHED THEN
    UPDATE SET t.quantity = v.quantity
    DELETE WHERE t.quantity = 0
    WHEN NOT MATCHED THEN
    INSERT (account, idn, quantity)
    VALUES (v.account, v.idn, v.quantity);
    ELSE
    dbms_output.put_line('File Does Not Exist');
    END IF; -- file exists
    EXCEPTION
    WHEN UTL_FILE.ACCESS_DENIED THEN
    DBMS_OUTPUT.PUT_LINE('No Access!!!');
    WHEN UTL_FILE.INVALID_PATH THEN
    DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
    END;
    /

Maybe you are looking for

  • HELP!!! The iTunes in my iPod touch 4g doesn't show the music . Only show the podcast.

    My ITunes store in my iPod touch 4g doesn't show music,only show podcast and iTunes U.

  • Download failure for pages, keynote and numbers

    Can anyone help me? I was having a very tough time updating pages, numbers and keynote under Mavericks - so, I upgraded to Yosemite. Then I had a very tough time upgrading to Yosemite - now finally done.   And again, I receive the messages "Numbers/P

  • Newbie to JSP, advice needed...

    I've been a Java applet and application designer for a while, and I've come to the conclusion that I should get into JSP, I'm wondering, where I can find good tutorials or books to help me out, I already started making simple ones, but what are the c

  • What is the connection type FILEF?

    I have created a lot of connectors with the connection type "JCO". Recently I notice a different connection type FILEF. What is it? And in what circumstance is it used? Thanks!

  • IMac G5 17 inch 2 GHz Ambient Light won't sleep or "wake".

    I've read through and implemented procedures indicated in this forum including: repair permissions reset SMU reset PRAM run and passsed h/w tests on Install CD to no avail. The machine has only an Apple USB keyboard hanging off it, no other hardwired