Write back values to db table

Hi folks,
I want to read the description-texts from maintenance-positions, modify them a little and then write the new values back. I arranged a User-selection using select options and I can process those objects and read their descriptions, but I don't know how to write back the new values to database-table MPOS.
Here is what I have:
DATA tmpos LIKE mpos OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN  BEGIN OF BLOCK txt WITH FRAME TITLE text-001.
SELECT-OPTIONS:
t_warpl FOR tmpos-warpl.
SELECTION-SCREEN END OF BLOCK txt.
  SELECT * FROM mpos into table tmpos
  WHERE warpl IN t_warpl.
  LOOP AT tmpos.
      WRITE / tmpos-pstxt.
      tmpos-pstxt = 'TEST'.
      modify table tmpos.
  ENDLOOP.
It seems I just modify the temporal table, but not the one in db.
Can you help me out?
Thanx and have a nice day!

HI,
Can u elaborate what is your requirement because ur passing the description HARDCODED in the loop
LOOP AT tmpos.
      WRITE / tmpos-pstxt.
      tmpos-pstxt = 'TEST'. "I did n't get ur changing this description with a hardcoded value
      modify table tmpos.
  ENDLOOP.
The solution for this is update the PSTXT  in the loop of tmpos
Regards,
Madhukar Shetty

Similar Messages

  • Validating Write Back values

    Hello all,
    I have successful write back on OBI 11g. But the problem is the user needs validation on the input...some javascript?
    1. Can we have validation on the field length .. say if the field width is more than 20 CHAR... some warning..
    2. ALL Caps..?
    3. checking invalid characters...
    Please let me know your inputs on this..
    Thanks a lot in advance..
    Regards,
    Kiran

    Thanks.. but.. if we write DB trigger..
    if any error/warning comes.. will the OBI will be able to show that.. or just it says.."A error occured while writing to the server.......bla bla bla".?
    Generally, this will be the default error message for any...
    May be i can try that also but... DB triggers also imapct performance...
    Can there be some Javascript or something where we can do client validation rather DB???
    Thanks
    Kiran

  • 11g write-back drop down box

    Hi, I have enabled write back in OBIEE 11g dashboard. I would like to know if it is possible to create a drop down box within the write-back enabled column?

    I realize this is a very old thread, but I was hoping there was a way to do this.
    I would like to enable write-back to an a table we use to track running processes. I would like to be able to update the status to either 'COMPLETE' or 'INCOMPLETE'. The programs can change theses statuses to anything meaningful, but I only want those two values as options for write-back.
    Is this even possible?

  • S&OP Data write back to APO DP/SNP

    Hi,
    We have a requirement to write back the S&OP data to APO DP/SNP. How do we achieve this write back from calc secenario table?  are there any BAPI's we need to use? What are the best practices to follow? Any information is appreciated.
    Kind Regards,
    Sanjeev

    Check this document
    http://help.sap.com/download/sop/sop302_api_en.pdf

  • Oracle BI Write Back on NULL values  - Write Back Error

    Hi together,
    Write Back Error
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator
    I receive this message when I try to make a update of an null value in the database.
    update value on value or value to null works fine. So the XML Message is working on production.
    Is this a BUG?
    Regards,
    Stefan
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="SetWriteBackGKV">
    <XML>
    <writeBack connectionPool="QS_DWH_DB">
    <insert> </insert>
    <update>UPDATE QS_DWH.CKVB_HR_EXTERNAL SET CKVB_HR_EXTERNAL.GKV_SICKNESS_PERC = '@{c7}' WHERE CKVB_HR_EXTERNAL.D_TIME ='@{c5}'</update>
         </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>

    Hi,
    http://gerardnico.com/wiki/dat/obiee/write_back -- recheck your configuration following this link step by step with screen shots.
    Note : The Problem Occurred two ways,
    1. Problem your XMl Script
    2. If null value not present in your columns in your table in the database.The problem is occured.
    please check below steps.
    1. Are you using OCI or ODBC in your connection pool? Try it with OCI Call Interface 11g.
    2.Remove the commit tag from the XML file.
    <postUpdate>COMMIT</postUpdate>
    =============================================================================================================
    This xml file working for me.
    Insert--
    A couple of small adjustments got your XML to work here:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBack">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> INSERT INTO FACT (PRICE,PRODUCT_KEY,REGION_KEY,SALE_UNIT,TIMEKEY,SALES_QUOTA)
    values (@{c7},@{c8},@{c9},@{c10},@{c11},@{c5} ) </insert>
    <update> </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The <writeBack> tag is written with a lower case "w".
    The "connetionPool" needs an upper case "P".
    Update--
    I think that you have to specify also an SQL statement for the update tag, for example:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="pmet_update">
    <XML>
    <writeBack connectionPool="PMTCOG">
    <insert> select null from dual</insert>
    <update> UPDATE XREF_PMET_URL SET URL= '@{c1}' WHERE API='@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The witeback wants for both the tags (<insert></insert> and <update></update>) an SQL Statement.
    Hope this help's
    Thanks
    Satya

  • Write up value - table to show each write up posted

    Is there any table in asset accounting which shows write up values with individual write up postings made and its amount.
    For ex: In ANLC we can see write ups.But if i have posted write up twice one with 10$ and another with 20$ .
    ANLC shows in field ZUSNA(write up on ord dep) as $70.
    Can i know a table which can show the split up.Please advice.

    Hi,
    Please use the table ANEA & ANEP.
    In ANEP you will have Transaction types for write up posted as 711.
    And in ANEA you will have respective line item wise Write up posted values.
    Hope this solve your issue.
    Regards,
    Pankaj.

  • Write Back from OBIEE 11g to multiple tables in DB

    Hi All,
    We have requirement to write-back from OBIEE 11g to multiple tables in DB.
    1) Inserting a new row in report. Inserting record into multiple tables through OBIEE?
    2) In report we have fields like Region Id, Product Id, Date, Quantity. Region Id, Product Id, Date are dimension fields and Quantity is Fact measure while inserting row in report does OBIEE checks Refrential Integrity Constraint during Write Back on DB.
    Let me know if you need more details on this. Thanks in Advance.
    Regards,
    Rajkumar.

    Hi,
    1) With regard to inserts into multiple tables, try using multiple insert tags (I haven't tried it) but I think it should work.
    2) I don't think OBIEE would check referential integrity , but DB would and give you appropriate response.
    Let us know how you got on...
    Thanks & Regards

  • 10g Write back works for some users, not others

    Dear Gurus,
    I have a strange problem with the Write Back in my system. We use Write-back pretty extensively and have maybe 10-20 separate reports, updating a number of tables.
    We have been using this system for almost a year with no problems - Myself (logging in as Administrator) and a member of the Business team, logging in as herself (a member of the Presentation Server Administrator Group).
    We now require two more Business power-users to use our Write-back reports. I have added them to the Presentation Server Administrator group. However, when they try to enter values into ANY of the write-back reports, they get the following error;
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists...
    *State: HY000. Code 10058 [NQODBC]... A general error has occurred. [nQSERROR 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute (HY000)*
    SQL issued: EXECUTE PHYSICAL CONNECTION POOL "GL Oracle Data Warehouse Connection Pool"
    I do not understand why the write back is working without error for my own user, the Admin user and a member of the business team who is in the Presentation Server Administrator group, but not for two new additions to that group.
    I have checked that the Presentation Server Admin group is granted on the "Enable/Manage Write Back" privilege and on the Execute SQL privilege.
    Any ideas what else I could check?
    Thanks,
    A.

    Hey Amith,
    Thanks for your quick reply! Unfortunately, this doesn't seem to be the case. The system is pretty much wide open, apart from the Write pack privilege, which only the Presentation Server Administrator group has access to.
    I'm having another of my Presentation Server Administrators who has been in the group forever try to use the write back.
    There's no specific connection pool or database level permissions for write back, is there? And there's no specific permissions which need to be set on the xml template files?
    Thanks,
    A.

  • Write Back Error in  OBIEE 11.1.1.7.150120

    Hello everybody,
    i have a problem with the writeback capabilities of OBIEE 11.1.1.7.150120.
    After the Migration from 10g to 11g i would like to customize the write back in 11g. I go like Oracle BI Practice: OBIEE 11g Configure Writeback this, but getting an OBIEE error:
    "Write Back Error
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator."
    The table does not have any constraint. I would like to insert for example the value "2".
    In my table properties i fill in "filling".
    My ...\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\analyticsRes\customMessages\writeback.xml looks like that:
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="filling">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update>update analyticmodel.last_runtimes set laru_exec = @1, laru_runtime_start = sysdate </update>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="machine_filling">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update>update analyticmodel.machine_filling set mf_mach_id = @{c0}</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Thank you very much
    Best regards
    Christian

    Hi Cristian,
    You must use '' at script when call some column value. (use '@1' instead of @1)
    Tip.. note you can use your "WebMessage Name" (from your script, like "filling", "machine_filing") into your analisys.
    Hope this help
    Felipe Idalgo

  • Getting error during write back operation in OBIEE

    Hi Experts
    I have implemented the Write back operation in OBIEE . My xml code is
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="NEW">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update>UPDATE ACCT_DIM SET HIPC_FLAG='@{c5}' WHERE ACCT_SR_KEY=@{c0} </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    But i am getting error when i will click on Write Back Button.
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL "Connection Pool"
    Please suggest me how to remove this error.
    Thanks In advance
    Rehards
    Sunil

    Hi experts
    This is my xml code but i am not able to update records in my database. is there any changes required in this xml.
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="new">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update>UPDATE ACCT_DIM SET HIPC_FLAG='@{c4}' WHERE ACCT_SR_KEY=@{c0} </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    My table name in database is ACCT_DIM and i am updating HIPC_FLAG in my table.
    I am getting error:
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. NQODBC SQL_STATE: HY000 nQSError: 10058 A general error has occurred. nQSError: 27024 The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL "Connection Pool"
    Thanks in advance
    Regards
    Sunil

  • Update only the row in DB where the cursor are positioned using Write Back

    Hello,
    I need to have the possibility to create/change values (insert or update data back into the database), dynamically or by typing, in some columns of the physical DB that are mapped in a report request, and that new or changed values could be used as a filter columns in another report request.
    So, I have created a new report request in a Subject Area where a certain column of the request result could be editable to make possible change the present value and then write it back in the physical DB.
    I have implemented for the column name ‘MOV_VALUE’ the value interaction type format Write Back, and every time I changed any value on this column it updates all rows with this same value from the table ‘MOVEMENTS’.
    See below the Template file used in the Write Back table properties:
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name= "UpdateMovementData">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> </insert>
    <update> UPDATE MOVEMENTS SET MOV_VALUE=@{c4} </update>
    <!-- <postUpdate>COMMIT</postUpdate> -->
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Is there any possibility to only update the record from where it is the cursor positioned by using the Write Back in the Answers report?
    Is necessary to create any condition to the where clause for the update statement? Which conditions?
    Thanks in advance.
    Regards,
    Pedro Resende

    You might try posting to a BPM forum. BPM is a layered product that happens to use WL JMS, but I think most of the folks on this forum aren't familiar with BPM.
    Tom

  • Problem in write back function.

    I am trying to implement the write back function. The update button is enabled and it displays an error when clicked.
    Error:
    "The system is unable to read the Write Back Template 'dev10'. Please contact your system administrator."
    following is the xml template i wrote -
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table = "Messages">
    <WebMessage name ="dev10">
    <XML>
    <WriteBack ConnectionPool="WRB">
    <insert></insert>
    <update>UPDATE Users SET Default Password=@{C1} WHERE (UserName ='@{C0}' AND Group Name='@{C2}')</update>
    </WriteBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    This is placed under C:\OracleBI\web\msgdb\customMessages.
    and also can anyone tell me what is <WebMessage name ="dev10">?
    Thanks in advance.

    somehow i fixed the update part of the xml. now i can update the column but still i could not insert a value in the column.
    Any Suggestions plz?

  • Write back - how OBIEE decides  insert or update action ?

    Hello
    I have a question regarding write-back.
    I have both an insert and update statement in my template file.
    I want to give the users ability to insert new rows and update existing ones.
    I am able to do both, but sometimes the insert/update behavior is not consistent. That is, instead of updating the record, it creates a new row itself in the database (and sometimes the reverse also is true).
    Anyone has ideas on how OBIEE decides whether it is an insert or update action?
    thanks in advance

    Hi,
    I have implemented writeback in Obiee 10g version
    It's working fine
    Please refer my correct code
    3)      Add XML File to this path  C:\OracleBI\web\msgdb\customMessages\WriteBack.xml  and
    C:\OracleBIData\web\msgdb\WriteBack .xml   path.
    File Name: WriteBack.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBack">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <update>UPDATE db_summary SET comments='@{c1}' WHERE location='@{c2}'</update>
    <insert>INSERT INTO db_summary {comments} VALUES '@{c1}' </insert>
    </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="WriteBackNew">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <update>UPDATE report_comments SET comments='@{c1}' WHERE username='@{c0}'</update>
    <insert>INSERT INTO report_comments {comments} VALUES ('@{c1}') </insert>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Note: It’s all are case sensitive and red lined letters are give as above. After that restart all the OBIEE Server (Java Host, OC4J, BI Server etc.)
    Note1: As Button Text in Presentation Layer :system="WriteBack"  and
    As Template Name in Presentation Layer : <WebMessage name="WriteBackNew">
    For more refer my blog link
    http://obieeelegant.blogspot.com/2010/12/write-back-steps-1-go-to-repository.html
    Thanks
    Deva

  • Problem enabling Write Back

    I am having a problem getting the INSERT statement to execute in my writeback setup.
    I am trying to set this up on the standard EMP table. I created an additional table to store writeback comments related to the EMP table. The Write Back table has columns EMP_ID, USER (from BI), DATE, and COMMENTS.
    My problem is that if I try to enter comments for an employee where the comments is already blank, it doesn't process the insert statement I specified, it tries to run the UPDATE statement. I verified this in NQQuery.log.
    Out of curiosity, I manually entered a record into the write back table and tried to change the value in my write back field in BI, and it worked - because it's only looking at the update statement for some reason, so that part is fine. It just seems to be completely ignoring the insert statement.
    I tried to remove the UPDATE statement to see if it would recognize my insert statement, but it gave an error when I tried that:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
    Here is my XML template for writeback:
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
         <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
              <WebMessage name="SetEmpComments">
                   <XML>
                        <writeBack connectionPool="Writeback Connection Pool">
                             <insert>INSERT INTO EMP_WB_TEST
                             VALUES('@{c3}',SYSDATE,'@{c4}','@{c1}')</insert>
                             <update>UPDATE EMP_WB_TEST SET dt_crte=SYSDATE, user_name='@{c4}', comments='@{c1}' WHERE empno='@{c3}'</update>
                        </writeBack>
                   </XML>
              </WebMessage>
         </WebMessageTable>
    </WebMessageTables>

    Just a wild quess - are your values listed in the order corresponding to the columns order in the write back table ?
    What if you rewrite your insert as
    <insert>INSERT INTO EMP_WB_TEST(empno,dt_crte,user_name,comments)
    VALUES('@{c3}',SYSDATE,'@{c4}','@{c1}')</insert>?
    Best regards
    Maxim

  • How to make validation in Bean and select value from another table

    I want to know how to select data from table in backing bean according to primary key i have
    the problem is that
    i have a table Employee_Salary contains Employee ids and their salary
    Empoloyee_Salary table
         Employee_ID      Number
         Employee_salary Number
    And Another table Called Employees
    Employees table
         Employee_ID     Number
         IsManager Varchar2 its value is [*Yes or NO*]
    and other columns that i don't care about this table
    i have on a jsff page an <af:table> this table is editable this is the Empoloyee_Salary table
    *i want to check before save or after insert if this employee is Manager [from Employees tabke(yes or no)] the salary*
    cannot be less that 100
    i want to know how to make this how to select the value from employees table according to the id i have in the employee_salary table how to make this and make this validation
    i have to select IsManager from Employees Table to see if this manager or no
    i want to know how to make this in a bean
    i use jdeveloper 11g
    and my project is ADF Fusion project
    and the page that have the Emplpyee_Salary table is JSFF
    thanks in advance

    You might want to write this code in a validator on the entity object if it should apply from every screen.
    If you want to access view objects from a backing bean the basics are here: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcservices.htm#sthref918

Maybe you are looking for