Could i display data in VO before commit and re-query?

I have inserted some rows into ViewObject.i will display these rows before commit them.
The vo will be a temporary table.
how can i do it ? thanks ,best regards.

thanks . i have an idea.
first ,create a row ,and then insert this row.

Similar Messages

  • How to display data with the same text and key in the drop down list?

    Hi All,
    Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    REPORT ZTESTING.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          c(20) type c.
    *      c = 'select any'.
    data:begin of itab occurs 0,
          kunnr like kna1-kunnr,
          name1 like kna1-name1,
         end of itab.
    data:begin of jtab occurs 0,
          kunnr like kna1-kunnr,
          land1 like kna1-land1,
         end of jtab.
    PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
                              default 'SELECT'.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'p_list'.
    VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    APPEND VALUE TO LIST.
    VALUE-KEY = '2'.
    VALUE-TEXT = 'Country'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    start-of-selection.
    select kunnr name1 up to 20 rows from kna1 into table itab.
    select kunnr land1 up to 20 rows from kna1 into table jtab.
    case p_list.
    when '1'.
    loop at itab.
    write:/ itab-kunnr,itab-name1.
    endloop.
    when '2'.
    loop at jtab.
    write:/ jtab-kunnr,jtab-land1.
    endloop.
    endcase.
    <Added code tags>
    Moderator Message: Please use the "code" tags to format your code snippet.
    Edited by: Suhas Saha on Nov 17, 2011 11:19 AM

    shawnTan wrote:
    Hi All,
    >
    > Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    >
    >
    REPORT ZTESTING.
    >
    > TYPE-POOLS: VRM.
    >
    > DATA: NAME  TYPE VRM_ID,
    >       LIST  TYPE VRM_VALUES,
    >       VALUE LIKE LINE OF LIST,
    >       c(20) type c.
    >
    > *      c = 'select any'.
    >
    > data:begin of itab occurs 0,
    >       kunnr like kna1-kunnr,
    >       name1 like kna1-name1,
    >      end of itab.
    >
    > data:begin of jtab occurs 0,
    >       kunnr like kna1-kunnr,
    >       land1 like kna1-land1,
    >      end of jtab.
    >
    > PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
    >                           default 'SELECT'.
    >
    > AT SELECTION-SCREEN OUTPUT.
    >
    > NAME = 'p_list'.
    >
    > VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    > VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    > APPEND VALUE TO LIST.
    >
    > VALUE-KEY = '2'.
    > VALUE-TEXT = 'Country'.
    > APPEND VALUE TO LIST.
    >
    > CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    >
    > start-of-selection.
    > select kunnr name1 up to 20 rows from kna1 into table itab.
    > select kunnr land1 up to 20 rows from kna1 into table jtab.
    >
    > case p_list.
    > when '1'.
    > loop at itab.
    > write:/ itab-kunnr,itab-name1.
    > endloop.
    >
    > when '2'.
    > loop at jtab.
    > write:/ jtab-kunnr,jtab-land1.
    > endloop.
    > endcase.
    >
    > <Added code tags>
    >
    > Moderator Message: Please use the "code" tags to format your code snippet.
    >
    > Edited by: Suhas Saha on Nov 17, 2011 11:19 AM
    This surely seems to be a bug to me(if not by design),  did you check for any SAP notes? Perhaps a front end trace can help(Note 407743) !
    -Rajesh.

  • Trying to set the entity attributes in before commit and get the following

    i get the following error when i try to set the entity attributes before commit.
    JBO-28202: Entities invalidated in beforeCommit(). Need to re-validate and post.
    can somebody let me know, how to re-validate and post.

    I Suggest you set its Attribute on EOImpl, override doDML, and before call super.doDML set your Attribute. There is a special reason to set Attribute on beforeCommit?
    Best Regards

  • Display date 9 month before

    Hi All,
    What is the code to write when  i want to display a date like 9 months before a certian date?
    Like for example, i have a data which is StartDate and the value is 30 June 2014. In my report i want to display 30 Sept 2013.
    How can i do that?
    Thanks.

    Hi,
    Try below formula content:
    DateAdd('m', -9, <your date field>)
    Thanks,
    Raghavendra

  • Modification in data before commit and after function call

    Hi,
    I am creating a Transfer order (TO) from Transfer requirement using function module L_TO_CREATE_TR.
    For one of my requirement I am
    Passing I_UPDATE_TASK = ‘X’ and I_COMMIT_WORK = <blank> so that the actual creation happens on the next screen. Next screen will show some details which can only be fetched if L_TO_CREATE_TR is issued.
    Now, on second screen user may change one field called quanity. How can i acheive this.
    I can think of two options here :
    1) Call rollback and then call the FM again this time with commin flag ON
    2)  Do we have second option here.
    Let there be a light

    thanks . i have an idea.
    first ,create a row ,and then insert this row.

  • Display data on top of page and sort issue. Pls help

    Hi guys,
    I need some help. I can't seem to get the code to work. Below is my code to display the ALV. It works fine but I want it to print some top of page details according to the SORT (grouping) but the sort isn't even working?
    http://i987.photobucket.com/albums/ae354/runningandrew/2010/Other_Random/Screenshot1.jpg
    HEre is screenshot of the output
    Sales Order Number : 1100001541      
    Purchase Order Number : 4500352015   
    Distributor Number : 20061            <====
    Ship To Name : ALPHA EZZ EL ARAB CO.,
    Order Date : 29.04.2010              
    Delivery Date : 29.04.2010           
    There should be another one printing  but its not.
    Sales Order Number : 1100001542       <=====
    Purchase Order Number : 4500352015   
    Distributor Number : 20063            <=====
    Ship To Name : ALPHA EZZ EL ARAB CO.,
    Order Date : 29.04.2010              
    Delivery Date : 29.04.2010           
    My it_report structure is
    BEGIN OF t_report,
             ebeln      TYPE bapivbeln-vbeln,
             purch_no   TYPE bstnk,
             kunnr      TYPE kunnr,
             wename1    TYPE name1_gp,
             order_date TYPE edatu_vbak,
             vdate      TYPE vbak-vdatu,
             matnr      TYPE matnr,
             matnr_txt  TYPE arktx,
             qty        TYPE kwmeng,
           END OF t_report.
    Here are the sort fields
    PERFORM add_sort_key USING: 'EBELN'      'X'    'X',
                                  'PURCH_NO'   'X'    'X',
                                  'KUNNR'      'X'    'X'.
    FORM add_sort_key  USING  pv_field    TYPE any
                              pv_ascen    TYPE any
                              pv_group    TYPE any.
      it_alv_sort-fieldname = pv_field.
      it_alv_sort-up        = pv_ascen.
      it_alv_sort-group     = pv_group.
      APPEND it_alv_sort.
      CLEAR it_alv_sort.
      it_sort_new-fieldname = pv_field.
      APPEND it_sort_new.
      CLEAR it_sort_new.
    ENDFORM.                    " ADD_SORT_KEY
    Here is my display ALV part
    v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = v_repid.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
          EXPORTING
            is_layout                  = l_alv_layout
            it_fieldcat                = it_alv_fieldcat[]
            i_tabname                  = c_it_report
            it_events                  = it_alv_events[]
            it_sort                    = it_sort_new[]
          TABLES
            t_outtab                   = it_report
    Edited by: Slow ABAPer on Apr 29, 2010 5:43 AM

    Hi,
    You should always put the code in the tags as :
    for it to be displayed as proper code.
    With Regards,
    Samreen.

  • Data discrepancy between Webi Report and same Query fired on SQL Server 2k5

    Hi ,
    We are facing an issue in BO XI R2.
    We need to run a Webi report in which negative values for forecasting data for year 2011 and 2012 should be displayed.
    When we are running this report for negative values, we are getting message u2018There is no data corresponding to this queryu2019.
    Then we tried executing the same query on Database. Here at db level we got the correct required result.
    So now we are not able to find the reason for data discrepancy .
    Why the same query generated by Webi is providing correct data when fired on reporting database and not when running the Webi Report.
    Checklist we have gone through for this troubleshooting is-
    -Connections of Universe (Is universe pointing to same database or not)
    -Any filter condition present at universe level and at report level.
    Could anyone please help on this.
    Regards,
    Vaibhav

    Vaibhav,
    Have you tried the following when you are in WebI: go under the Edit Query panel, click on the "SQL" icon, and review the query that is getting generated?  At this point you can also click on the "copy" option, then paste this query into your SQL application analyzer and run to see what results are generated.  To me, it sounds like the portion trying to generate the "minus" sign might be getting tripped up causing the disconnect....
    Thanks,
    John

  • Commit and re-query

    I'm relatively new to JDeveloper and ADF and have a question regarding queries. I have a recursive master-detail that I'm trying to insert a detail record and programatically commit, re-query and insert a new record. I'm using a java bean on the commit button to set certain fields in addition to those set by the user. Here is the code I'm using:
    public String commitDetail() {
    BindingContainer bindings = getBindings();
    FacesContext fctx = FacesContext.getCurrentInstance();
    DCBindingContainer bc = (DCBindingContainer )fctx.getApplication().createValueBinding("#{bindings}").getValue(fctx);
    Row masterRw = bc.findIteratorBinding("PartyFinanceMasterAcctViewIterator").getCurrentRow();
    Row currentRw = bc.findIteratorBinding("PartyFinanceAccountViewIterator").getCurrentRow();
    currentRw.setAttribute("SrcAcctId",masterRw.getAttribute("AcctId"));
    currentRw.setAttribute("AcctId",masterRw.getAttribute("AcctId"));
    currentRw.setAttribute("TrnsctnDte",masterRw.getAttribute("LockboxDte"));
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    OperationBinding operationBindingRfsh =
    bindings.getOperationBinding("ExecuteWithParams");
    operationBindingRfsh.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    OperationBinding operationBinding2 =
    bindings.getOperationBinding("CreateInsert");
    operationBinding2.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    Any help would be greatly appreciated!
    Lisa

    Another comment, the master row information I'm copying is input by the user.

  • Display data in list and combo box

    hi all....
    how to display data from database in list and combo box? i use MYSQL...
    help me please..... tq...

    1 - Write a query to retrieve the data you want from database
    2 - In a servlet, connect to database, Run the query, scroll through the result set and put the data into a list of Java Objects.
    3 - Set a request/session attribute of that list of objects
    4 - Forward to JSP
    5 - In JSP, create a <select> box, and then use a <c:forEach> loop to generate <option> tags from the list.

  • Encrypt value before commit

    Hello,
    I'm using Oracle JDeveloper 11g Release 2 (11.1.2.3.0).
    I have a form that the user must enter some values, one of these values is a password. I need to pick up that value before commit and encrypt it. Actually the password is stored in the database without encyptation, just as the user entered it.
    My application does not use adf security, and now it's too late to change everything.
    Any idea that how  can I fix this?
    Thanks in advance!

    Hello Shay!
    Thanks a lot for your answer, I'm newby in ADF and I don't know how to do that. I think that the easiest option is to overwrite the doDML method.
    I overwrite this method in the EOImpl and, now I have this:
         * Custom DML update/insert/delete logic here.
         * @param operation the operation type
         * @param e the transaction event
        protected void doDML(int operation, TransactionEvent e) {
            super.doDML(operation, e);
    I have a method called encrypt(password), that return the password encrypted.
    How can I set the new string to the password attribute when I update on database? I guess I have to insert this code before super.doDML(operation e);, is it?
      if (operation == this.DML_UPDATE){
                // CODE HERE
    Please can you help me with this? Thanks in advance!

  • Cyrillic data in Adobe Form could not display in WD Application .

    Hi All,
    I use Adobe Interactive Form Object in WD Application so as to display data in Cyrillic Language for printing.
    I have the problem that in the PDF i cannot display the Cyrillic data ( Bulgarian, Romanian...) but only EN .
    I dont have any problem running my adobe print form from R3 report program.
    Please , i will appreaciate any help.
    Regards,
    Ari

    Hi Thomas & Amit ,
    Thank you very much for your help.
    Tomorrow i will check your advices.
    Thomas how could i check the Adobe Plugin?
    I have problem only when i run adobe in WebDynpro abap view. I use the standart Interactive Form Object. When i run it inside sap (no in the web application) i have no any problem.
    You think there is any font problem with the Cyrillic Languages ?
    Amit i will check you solution and will replay.
    I appreciate your help.

  • Two days before my iphone 5 battery was expand and display screen came out and now there has some gap between frame and display.so how it will happen and i already got before months.now i need to backup all the data to icloud before through out.

    two days before my iphone 5 battery was expand and display screen came out and now there has some gap between frame and display.so how it will happen and i already got before months.now i need to backup all the data to icloud before through out.
    https://www.dropbox.com/home/iphone
    https://www.dropbox.com/home/iphonehttps://www.dropbox.com/home/iphone

    Make an appointment at the genius bar of your local Apple Store. The phone has a 1 year warranty. If it's no longer under warranty, a replacement is $269.

  • Display Data Flow - Short Dump

    Hi all,
    When i select display data flow of any cube...it is going for a short dump.
    I have searched for the answer in previous Forum questions. I could find only for previous BW versions but not for for BI7.
    Could you please let me know the solution for this issue.
    Thanks & Regards,
    Eswari

    Hi All,
    Thank you very much for all of your responces.....
    I am working on Support Package 10.
    Here is the detailed description of the short dump.
    Short text
        The current application triggered a termination with a short dump.
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        Short text of error message:
        GP: Control Framework returned an error; contact system administrator
        Long text of error message:
         Diagnosis
             The Graphical Framework is based on the basis technology known as
             the Control Framework. A method in the Control Framework returned
             an error.
         Procedure
             It probably involves a programming error. You should contact your
             system administrator.
         Procedure for System Administration
             Check the programming of the graphics proxy especially for the
             parameters that were sent and, if necessary, correct your program.
        Technical information about the message:
        Message class....... "APPLG"
        Number.............. 229
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "CL_AWB_OBJECT_NET_SAPGUI======CP" or "CL_AWB_OBJECT_NET_SAPGUI======CM005"
        "PBO"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
       4. Details about the conditions under which the error occurred or which
       actions and input led to the error.
    Thanks,
    Eswari.

  • Saving chart data into a spreadshee​t and also displaying it onto a table

    I am having a few different problems with this VI.
    My intentions are to display incoming data from the serial port, and view it on a chart as well as the table, then I want to save the data and the time values into a text or excel file.
    Receiving data and charting it is fine but when it comes to displaying it in real time on the table it looks like the Express table seems to be duplicating some of the entries as noted in the block diagram and the regular table keeps updating the values (date/time and value) on the first entry.
    Saving the data using write to spreadsheet file. vi poses some other problems when importing the History files from the Chart. It brings in the values except the date is the default NI date which I correct before going into the loop in order to accurately plot it on the display.
    If I use the Export waveform to spreadsheet file.vi it saves the data in the text file just fine, but if I save it into an excel file the Y values and the time values are all in one column.
    PLEASE Help
    Attachments:
    Export Waveform To Spreadsheet File.vi ‏44 KB
    Testing Blocks2aexp.vi ‏138 KB
    Waveform Time to Date Time String.vi ‏10 KB

    Mrjazzitup wrote:
    I think if you go to VI properties then go under Windows Size and uncheck the "Maintain proportions of window for different monitor resolutions" you can get it to work.
    If I open your VI in LabVIEW 8.5 or 8.2, the window title bar and menu bar, widow border, and scrollbar are all outside the visible region of my monitor, so I don't have access to anything. The FP even fully covers the task bar (set to autohide) so I cannot even get to the start menu. Even if I move the mouse to the lower screen border, it remains at the LabVIEW cursor. (This might actually be something that needs to be fixed in LabVIEW so it cannot happen!)
    All I can do is ctrl+e to go to the diagram (which looked like a huge mess without a clear indication where I am supposed to look), and thus I quit the program. At least it's nice that you gave my a shiny star, even though I could not help you. Thanks!
    As Dennis said, you need to familiarize yourself with the basics of dataflow. Building a 1D array with two elements and making this into a 1x2 2D array does not magically insert history data. You need to built the 2D array in a shift register or feedback node.
    LabVIEW Champion . Do more with less code and in less time .

  • Can't display data that exist in cupe

    Hi All,
    I get a problem which is thar even i entered data in the cube i cant display with charecteristics. When i go to bw and display data if i say select charecteristics i can see any data but if i dont select charecteristics i can display data. Also when i enter data and sen data it say succesful but i loose data on view. Have anyone get any problem like that thanks for your interest.
    Kasim

    Hi,
    The code you sent appears to be the Audio Talkthrough example with several modifications. Here's the first thing I noticed that appears to be incorrect: You're using the BF AD1871 Wait on Data Ready Flag VI to fill the sub-buffer, then you go into a loop and get the contents of that buffer 256 times. You should be filling the buffer each time before you get the buffer instead of only filling it once. You also aren't resetting the data ready flag by using the BF AD1871 Clear Data Ready Flag VI.
    Message Edited by Michael P on 07-28-2006 09:55 AM
    Michael P
    National Instruments

Maybe you are looking for

  • LaserJet Enterprise 500 color Printer M551 walk up usb printing

    We have a few  LaserJet Enterprise 500 color Printer M551 that we use with walk up usb printing. the problem is that somtimes when a document is saved directly on the usb drive you get two files called "documentname.pdf" and "._documentname.pdf", now

  • How to upgrade APEX 4.1.1 to 4.2.2 ?

    Actually I wanted to apply the latest CPU patches but by reading the articles what I understood is that I need to upgrade it to 4.2.2. Please correct me if I am wrong ? And provide me the link or procedure to upgrade APEX to 4.2.2 ? Thanks Sami

  • DATA_OFFSET_TOO_ LARGE for only a specific user

    Hi, The user is trying to export data from MCAF into a local file. This action results in program termination, its only for his user id. It works for all the user ids the basis guys had a look at it and they said everthing is ok on the authorization

  • OIM 11g - Time zone Issue

    Hi, We have a OIM 11g instance running at a central location. (PST). Our implementation is for a Global Company having offices at multiple locations ( Say Germany, US , India and Japan ). So, the users should be provisioned / terminated only on the l

  • I can not send an email, here is the message I get.

    This message could not be delivered and will remain in your Outbox until it can be delivered. The server "stmp.gmail.com" cannot be contacted on port 587 Thank you for your help