Read the table row data and dispaly it in the ME21n transaction

Hi All,
i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data  should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
thanks,
Rajeev.

Hi rajeev bikkani ,
you can use the events 'Double_click' in alv. below given the code, try out.
class lcl_list_event_handler definition.
PUBLIC SECTION.
methods on_double_click
      for event double_click of cl_gui_alv_grid
        importing e_row .
endclass.
class lcl_list_event_handler implementation.
method on_double_click.
call transaction 'ME21N'.
ENDMETHOD.
ENDCLASS.
before executing the method SALV.
write code    
  set handler obj2(reference for lcl_list_event_handler) ->on_double_click
                for obj1(referenece for cl_gui_alv_grid).

Similar Messages

  • How to retrieve table rows data and add into DB

    Hi All,
    I'm a beginner in JAVAFX, I have developed a table and adding the data into the table in multiple rows. on button click I would like these rows to be added into DB.
    Please could anyone help on this. I'm copy the code for reference.
    CODE:
    import javafx.ext.swing.SwingComponent;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    package class TableColumn{
    public var text: String;
    package class TableCell{
    public var text: String;
    public var id;
    public var str:String;
    public var str1:String[];
    public var num:Number;
    package class TableRow{
    public var cells: TableCell[];
    package class SwingTable extends SwingComponent{
    var table: JTable;
    var model:DefaultTableModel;
    public var selection: Integer;
    public var columns: TableColumn[] on replace{
    model = new DefaultTableModel(for(column in columns) column.text, 0);
    table.setModel(model);
    public var rows: TableRow[] on replace oldvalue[lo..hi] = newVals{
    for(index in [hi..lo step -1]){
    model.removeRow(index);
    for(row in newVals){
    model.addRow(for(cell in row.cells) cell.text);
    public override function createJComponent(){
    table = new JTable();
    model = table.getModel() as DefaultTableModel;
    var selectionModel = table.getSelectionModel();
    selectionModel.addListSelectionListener(
    ListSelectionListener{
    public override function valueChanged(e: ListSelectionEvent ) {
    selection = table.getSelectedRow();
    return new JScrollPane(table);
    }

    Instead of using a combo box, using a text ring makes it much easier to disable items in the list. Here is a vi that will do what you want. Also you can delete the last element in the table and make it enabled in the text ring for selecting again.
    - tbob
    Inventor of the WORM Global
    Attachments:
    test_table[1].vi ‏75 KB

  • Findout the table name,date and time

    Hi friends,
    In a database i create a table, but i forgot the table name. I know the date. How can i find out the table in database?

    select object_name, created, status
    from all_objects
    where object_type = 'TABLE'
    and owner = <user_name_who_created_the_table>
    order by created desc;
    Hope this helps.
    Raman

  • Is the call history (dates and times) accurate on the iPhone?

    Trying to determine if the call history on an iPhone is accurate.

    Tried that but like blackberry Os 6 provides that within the phone itself.
    My carrier has not given any option for the same.
    What BB has is that you just chose any contact in the contact list and below the contact information, all calls+messages+mails whether sent or recieved are listed for last 15-30 days.
    What is does is help you remember what kind of conversation you have had with anybody and the frequency as well.

  • I need to reinstall the LinuxO.S. on the main Sync Computer, how to keep safe the data and transfer them on the new installation?

    Simply I need to reinstall the Linux O.S. on the main FIrefox Sync computer, changing distro.
    I would like if it is possible to recreate the same Main configuration on the new Firefox installation without loosing all the stored Sync data and keep synchronized all the others PCs.
    How can I do that?
    Thanks
    Marinerdrums

    Yes, Firefox SYNC keeps your data in Firefox Server, and copy in your system
    For more
    *https://support.mozilla.org/en-US/kb/how-do-i-manage-my-firefox-sync-account
    *https://support.mozilla.org/en-US/kb/firefox-sync-take-your-bookmarks-and-tabs-with-you
    *https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync

  • In SAPUI5, Passing Table Row Data  Selected in one xml view to another xml view and display in the second View

    Dear Friends,
    Please provide the solution for the following scenario:
    In the first view(xml)  I have a table with the fields QuotationNo,plant name, material no...etc, where I am displaying the data fetched using Odata model. The table is enable with Single line selection mode. My requirement is to Carry the selected row data to another view(xml) and display there.
    Please give your valuable inputs.

    Hi Rinku,
    depending on how you do the navigation, you might find the information here: OpenUI5 SDK - Demo Kit helpful.
    Regards Frank

  • Can please tell me how to implement expand and collapse table row data?

    i am trying implement expand and collapse table row data but i do not get any ideas..can please any one help me its an urgent requirement

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • How to verify that the user has changed table row data before db update

    Hi all,
    Iam using Oracle ADF with EJBs.
    I have a single selection table that displays rows of data returned from a function of my data control.
    The columns of my table are editable so that the user can change the data. The user selects a row, changes the data in one or more columns of the row and saves the data by means of a submit button. The code in the submit button, identifies the row of the corresponding iterator that the user clicked on and updates the data in the database (using the 'mergeEntity' function of the EntityManager)
    Before saving the data, I want to put some logic to check whether the user has actually changed some data to avoid unnecessary updates in the database . But for this I need a technique to detect that the user has indeed changed some data in the table row.
    One technique I have been using so far was to isolate the iterator row of the table and then query the corresponding row in the database table and compare their values.
    Except from dummy, this technique is not efficient if the table contains many rows.
    Moreover, in my case I have observed that on successive updates on the same row , the query on the database returns the new values (user changed values) and not the actual values contained in the database table. This means that when the user updates an iterator row the cached data affect also the results of the SELECT statement from the actual database table!!! Isn't this strange ?
    Can somebody propose me a neat method to detect when the user has changed the the data of an iterator row ?

    Hey Alan,
    The below solution seems overly complicated to me and can not be implemented without a custom screen and/or the use of JavaScript. Also, if your main concern is that a user may accidentally loose all their data because they closed the browser window or the session times out before they hit the save button then this solution does not help you.
    There are a couple of simpler approaches you can take here:
    # If the use of JavaScript is permissible you can hook into the windows 'onUnload' event, and pop-up a message box which gives the user the opportunity to cancel closing the window and save their case if they haven't already.
    # Implement an autosave feature by hooking into one of events provided by web determinations. A simple (but rather naive) way of doing this would be to hook into the OnRenderScreenEvent and call save on the interview session every time the event fires. This guarantees that all the data the user has submitted will aways automatically be saved, thereby removing the need to make sure the user manually saves their data before closing the browser.
    Automatically making Web Determinations close a browser window has to be done using JavaScript. However, doing so means that a) it won't work for people who turn off JavaScript, which is commonly done for accessibility reasons b) you'll likely run afoul of the browser's security mechanism (they generally won't let you close a window that you didn't open and some really don't like you doing that at all).
    Thanks,
    Kristy

  • Getting an error while fetching the data and bind it in the Tree table

    Hi All,
    I am getting an error "A navigation paths parameter object has to be defined - " while fetching the data and bind it in the Tree table.
    Please find the code and screenshot below
    var oModel = new sap.ui.model.odata.ODataModel("../../../XXXX.xsodata/", true);
    var oTable = sap.ui.getCore().byId("table");
    oTable.setModel(oModel);
    oTable.bindRows({
        path: "/Parent",
        parameters: {expand: "Children"}
    Can anyone please give me a suggestion to rectify this?
    Thanks in Advance,
    Aravindh

    Hi All,
    Please see the below code. It works fine for me.
    var oController = sap.ui.controller("member_assignment");
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/XXXX.xsodata/", true);
    var Context = "/PARENT?$expand=ASSIGNEDCHILD&$select=NAME,ID,ASSIGNEDCHILD/NAME,ASSIGNEDCHILD/ID,ASSIGNEDCHILD/PARENT_ID";
    var oTable = sap.ui.getCore().byId("tblProviders");
    oModel.read(Context, null, null, true, onSuccess, onError);
    function onSuccess(oEventdata){
        var outputJson = {};
        var p = 0;
        var r = {};
        try {
            if (oEventdata.results){
                r = oEventdata.results;
        } catch(e){
            //alert('oEventdata.results failed');
        $.each(r, function(i, j) {
            outputJson[p] = {};
            outputJson[p]["NAME"] = j.NAME;
            outputJson[p]["ID"] = j.ID;
            outputJson[p]["PARENT_ID"] = j.ID;
            outputJson[p]["DELETE"] = 0;
            var m = 0;
            if (j.ASSIGNEDCHILD.results.length > 0) {
                $.each(j.ASSIGNEDCHILD.results, function(a,b) {
                outputJson[p][m] = { NAME: b.NAME,
                                     ID : b.ID,
                                     PARENT_ID: b.PARENT_ID,
                                     DELETE: 1};
                m++;
            p++;
        var oPM = new sap.ui.model.json.JSONModel();
        oPM.setData(outputJson);
        oTable.setModel(oPM);
    function onError(oEvent){
        console.log("Error on Provider Members");
    oTable.bindRows({
        path:"/"
    Regards
    Aravindh

  • How to pass the selected table row data from popup to source view

    Hi ,
    I have requirement of passing the data from popup view to source. , searching some data in  popup view and displaying in table,
    Like i am passing some input and click search button will display the data in table, when select any of the row in the table and click on the another button , i should be able to pass the select row to the source view and also should close the popup.
    When i implement , In the popup windiw, when i enter the customer no, and click on search button, it is closing the popup itslef. not able to see the data in popup.
    Can u tell me what is that soultion.
    Regards
    Vijay

    Hi Harsimran
    Thanks for the reply,
    1) Source view
    In  "Source View" i have input field called Customer_no. But,  the end user will not have any idea , what customer no to enter. so i am searching the customer no in the popup view.
    1) Customer_no( This is an inputfiled , to get the customer no from the popup view)
    2) Get Customer NO( This is a button to call the popup view)
    "Get Customer NO" This button action will open the popup view.
    In this popup, i have
    1) Input field (To enter the search term)
    2) Search (To seach the customer no based on the search term)
    3) Table ( To display the search data)
    4) Button in Table tool bar called "Select" .( To close the popup view after selected the required data in the table to pass it back to the source view).
    so in the popup view what happening is, when i click on the search button itself , it is closing the popupview  by transfering the first row of the tbale ,with out select the required row in the table.
    i need to close the window after click on the "Select" button in the toolbar , after selected the required row data to trasfer in the table.
    Can u pelase tell me what are the modifcations i need to do it.
    Regards
    Vijay

  • Display the background of table row alternatively and hiding cell border

    Hi all,
    I am trying to display the background of the table using different color alternative and at same time I need to hide the border of all cells.
    What I found in <af:table> is using bandingInterval="1" banding="row", but how can I set the background color? And how to hide the cell border?
    Or if there is a thing like row index so that I can mod it like rowIndex%2==0 in every column to determine the inlineStyle?
    Thanks.
    Shawn

    <af:table value="..." var="row" varStatus="status">
      <af:column inlineStyle="#{status.index % 2 > 0.5 ? 'border:none;' : ''}">
      </af:column>
    </af:table>For some reason, EL operation always seems to return a double, so the condition has to be defined with that in mind.
    Regards,
    ~ Simon

  • I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    click and hold on one cell, then drag to select the range, then release, then type the delete key.  Only inlude cells in the range you do not want to keey the contents of the cell.  You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
    You can download the Numbers users guide here:
    http://support.apple.com/manuals/#productivitysoftware

  • Rowcount is zero , but the table displays data on the screen

    Hi,
    I have created an arraylist, which holds objects of a custom class. The custom class contains variables, that holds the data of each row.
    I did binding between this arraylist and a table. On the UI, the table is displayed with the data present in the class variables.
    But, when I use getrowCount(), it returns zero.
    Probably because of this reason, the selected row data is null. (tableselectone component).
    Any help is appreciated.

    /**** PatientsHelper Class
    private String firstName;
    private String lastName;
    private String patientId;
    private String firstNameCol;
    private String lastNameCol;
    private String patientIdCol;
    private String empType;
    private String empTypeCol;
    public void setFirstName(String firstName) {
    this.firstName = firstName;
    public String getFirstName() {
    return firstName;
    public void setLastName(String lastName) {
    this.lastName = lastName;
    public String getLastName() {
    return lastName;
    public void setPatientId(String patientId) {
    this.patientId = patientId;
    public String getPatientId() {
    return patientId;
    public void setFirstNameCol(String firstNameCol) {
    this.firstNameCol = firstNameCol;
    public String getFirstNameCol() {
    return firstNameCol;
    public void setLastNameCol(String lastNameCol) {
    this.lastNameCol = lastNameCol;
    public String getLastNameCol() {
    return lastNameCol;
    public void setPatientIdCol(String patientIdCol) {
    this.patientIdCol = patientIdCol;
    public String getPatientIdCol() {
    return patientIdCol;
    public void setEmpType(String empType) {
    this.empType = empType;
    public String getEmpType() {
    return empType;
    public void setEmpTypeCol(String empTypeCol) {
    this.empTypeCol = empTypeCol;
    public String getEmpTypeCol() {
    return empTypeCol;
    /***ColumnNames are also dynamically generated and are stored in columnNames (PatientHelper type) object**********/
    PatientsHelper columnNames = new PatientsHelper();
    columnNames.setFirstNameCol("First Name");
    columnNames.setLastNameCol("Last Name");
    /**********Code where the patientsHelper objects are kept in the arraylist **************/
    ArrayList PatientRecords = new ArrayList();
    private PatientsHelper patientAttributes;
    for(int i=0;i<10;i++){
    patientAttributes = new PatientsHelper();
    patientAttributes.setFirstName("abcd");
    patientAttributes.setLastName("efgh");
    patientRecords.add(patientAttributes);
    /*******ADF binding code ******************/
    <af:table emptyText="No items were found"
    value="#{backing_RegisterPatient.patientRecords}"
    var="row" rows="25"
    banding="row"
    bandingInterval="1"
    binding="#{backing_RegisterPatient.table2}"
    id="table2"
    rendered="true">
    <af:column sortable="false"
    headerText="#{backing_RegisterPatient.columnNames.patientIdCol}"
    formatType="text"
    binding="#{backing_RegisterPatient.column2}"
    id="column2">
    <af:outputText value="#{row.patientId}"
    binding="#{backing_RegisterPatient.outputText2}"
    id="outputText2"/>
    </af:column>
    <af:column sortable="false"
    headerText="#{backing_RegisterPatient.columnNames.empTypeCol}"
    formatType="text"
    binding="#{backing_RegisterPatient.column3}"
    id="column3">
    <af:outputText value="#{row.empType}"
    binding="#{backing_RegisterPatient.outputText3}"
    id="outputText3"/>
    </af:column>
    <af:column sortable="false"
    headerText="#{backing_RegisterPatient.columnNames.firstNameCol}"
    formatType="text"
    binding="#{backing_RegisterPatient.column4}"
    id="column4">
    <af:outputText value="#{row.firstName}"
    binding="#{backing_RegisterPatient.outputText4}"
    id="outputText4"/>
    </af:column>
    <af:column sortable="false"
    headerText="#{backing_RegisterPatient.columnNames.lastNameCol}"
    formatType="text"
    binding="#{backing_RegisterPatient.column5}"
    id="column5">
    <af:outputText value="#{row.lastName}"
    binding="#{backing_RegisterPatient.outputText5}"
    id="outputText5"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectOne
    binding="#{backing_RegisterPatient.tableSelectOne1}"
    id="tableSelectOne1"
    autoSubmit="false">
    <af:commandButton text="View Documents"
    binding="#{backing_RegisterPatient.viewDocsButton}"
    id="viewDocsButton"
    action="#{backing_RegisterPatient.viewDocuments}"/>
    </af:tableSelectOne>
    </f:facet>
    </af:table>

  • Need To Create a table in Sql Server and do some culculation into the table from Oracle and Sql

    Hello All,
    I'm moving a data from Oracle to Sql Server with ETL (80 tables with data) and i want to track the number of records that i moving on the daily basis , so i need to create a table in SQL Server, wilth 4 columns , Table name, OracleRowsCount, SqlRowCount,
    and Diff(OracleRowsCount - SqlRowCount) that will tell me the each table how many rows i have in Oracle, how many rows i have in SQL after ETL load, and different between them, something like that:
    Table Name  OracleRowsCount   SqlRowCount  Diff
    Customer                150                 150            
    0
    Sales                      2000                1998          
    2
    Devisions                 5                       5             
    0
    (I can add alot of SQL Tasks and variables per each table but it not seems logicly to do that, i tryid to find a way to deal with that in vb but i didn't find)
    What the simplest way to do it ?
    Thank you
    Best Regards
    Daniel

    Hi Daniel,
    According to your description, what you want is an indicator to show whether all the rows are inserted to the destination table. To achieve your goal, you can add a Row Count Transformation following the OLE DB Destination, and redirect bad rows to the Row
    Count Transformation. This way, we can get the count of the bad rows without redirecting these rows. Since the row count value is stored in a variable, we can create another string type variable to retrieve the row count value from the variable used by the
    Row Count Transformation, and then use a Send Mail Task to send the row count value in an email message body. You can also insert the row count value to the SQL Server table through Execute SQL Task. Then, you can check whether bad rows were generated in the
    package by querying this table.  
    Regards,
    Mike Yin
    TechNet Community Support

  • Help on export sybase iq tables with data and import in another database ?

    Help on export Sybase iq 16 tables with data and import into another database ?

    Hi Nilesh,
    If you have table/index create commands (DDLs), you can create them in Developper and import data using one of methods below
    Extract/ Load table
    Insert location method : require IQ servers to be entered in interfaces file
    Backup/Restore : copy entire database content
    If you have not the DDLs, you can generate them using IQ cockpit or SCC.
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01773.1604/doc/html/san1288042631955.html
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01840.1604/doc/html/san1281564927196.html
    Regards,
    Tayeb.

Maybe you are looking for

  • How can I easily set up Mac lab to access windows 2008 server directory user files?

    I am wanting to start shifting our school to Apple computers. The problem is that we have already invested significant time and money into windows and we need to run them side-by-side. My initial plan would be to set up an open lab of computers with

  • Bash-completion upgrade conflicts with pacman

    pacman warned me that /usr/share/bash-completion/completions/makepkg would be overwritten. pacman -Oo said then that it's part of bash-completion 1.99-1, but there's already bash-completion 1.99-2 that hasn't any more included that file cause now as

  • I don't know how to access my varification email?

    Ive been looking for a answer for almost a year because i kept putting it off because i was unable to work it out my problem is ive tried to download apps and it says i need to verify my email so i tried to figure out where to look and to no avail so

  • P9981 issues in BBM and email

    Hello, I have recently bought the P9981 through eBay. However, I am facing issues with BBM and emails.  After I have received the phone and I updated the BBM and the software I recognized that the BBM wasn't working although I have a BlackBerry plan

  • Train stop label wrapping issue?

    Hi, I have a vertical train in my page and it renders like the following: * Step 15 Update Service Request * Step 16 Create Test Manual Request * Step 18 Create New ITAS Softward Change Record What I want is that the text in each train node DOES NOT