Printing data available in an SAPUI5 tree table control / Model

Hello Experts,
I have a JSON model, which holds the data coming from an MII BLS transction.
A Tree table is bound to the JSON model. Also, based on the "Expand" icon click on each row in Tree table, I load some data from the back-end dynamically and insert into my JSON model.
My next course of action is to "Print" the data which is currently held by the tree table only. I don't want to print other UI controls which are present on the screen.
Moreover, the table has a scroll bar. Irrespective of the scroll bar, I want to print all the data which is contained in side the tree table (and hence the model).
Is there anyway I can achieve this? I went through few posts like: http://scn.sap.com/thread/3394127
The question is remotely connected, but it gives me an impression that a particular "UI" control cannot be printed directly.
Any suggestion will be greatly appreciated.

Thank you Chandra.
I now understand that it is not really possible to print a UI control directly. the framework doesn't support any kind of functionality/API for this.
As suggested in this post that you have shared, it is not feasible for us to change the CSS and why are going to display the data in the table in another page, without keeping any scroll/pagination constraint. Thereafter, we'll print it using Ctrl+P.

Similar Messages

  • Na Data available in SFLIGHT, SCARR etc tables by Default after installatio

    Hi Everyone,
    I have successfully managed to install the SAP NetWeaver 7.01 SR1 ABAP Trial Version. I can now login using user BCUSER. However when I checked SAP's standard training tables such as SCARR, SFLIGHT etc from package SAPBC_DATAMODEL. There are no database entries.
    Are there any post processing steps that needs to be done in order to import data in these tables?
    Thanks in advance for your help.
    Warm Regards,
    Amit

    Hi,
    I found note 123445 which resolved my query.
    Warm Regards,
    Amit

  • How to transfer data in table control in bdc

    hi
    how to transfer data in table control in bdc . I need the theory regarding this
    bye

    Hi,
    just check in the forum , there is many threads available to ur questions.
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    You can even refer to these related threads
    bdc table control
    Re: table control in bdc
    table control in BDC
    Reward if helpful.
    Thanks
    Naveen khan

  • Tree table scrolling problem

    Hi,
    I have a treetable in panelGroupLayout with scroll layout.When scrolling down to the end,some treetable row doesn't appear...That is,panelGroupLayout scrollbar is not synchronized with treetable.But with mouse wheel,i can scroll down to the end of treetable rows.Why?Thanks in advance...

    Timo:
    I have some related observations.
    I am using jDeveloper 12c and JSE-JDK 7 Update45
    ( and Windows 8.1 Professional, includng latest updates and
      a standard logitech wired mouse, model M110 ).
    I have a database and application module.
    The next step is Creating A Databound Web User Interface.
    And, I have created TWO of them as follows...
    1) Chapter 31.3.1 How to Display Master-Detail Objects in Tables and Forms Using Master-Detail Widgets
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#ADFFD761
    Here, I am choosing "ADF Master Form, Detail Table “.
    TESTING SUCCEEDED.
    The detail tables scroll successfully using the mouse (or scroll bar).
    2) Chapter 31.5.1 How to Display Master-Detail Objects in Tree Tables
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#ADFFD775
    " The steps for creating an ADF Faces databound tree table are
    exactly the same as those for creating an ADF Faces databound tree, except that
    you drop the data collection as an ADF Tree Table instead of an ADF Tree.
    For more information, see Section 31.4.1, "How to Display Master-Detail Objects in Trees."
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#BJEJBGCI
    TESTING FAILED:
    The detail tables fail to scroll using the mouse (or scroll bar).
    I've been looking at this problem for a day or two (or three) and
    I just don't have any warm fuzzy feelings on how to resolve this.
    While I am delighted that the Form-Table interface works well,
    I really really like the Tree-Table interface, a lot !
    If others could share their Tree-Table observations, that would be wonderful.

  • Module Pool - Table Control - Data not getting displayed in Control

    Hi,
    I have a table contol in my module pool program. In my processing I am filling an internal table & then in my PBO I am linking the internal table to table control. The issue is that even though the internal table is getting filled correctly (found through debugging), the data is not getting populated in table control. Nothing is populated on screen. I am writing part of code below
    Declaration:
    Types: begin of ty_control,
            SELECTED TYPE C,
            TEXT TYPE DPR_CAUSE_T-TEXT,
          end of ty_control.
    CONTROLS :  TBL_CONT TYPE TABLEVIEW USING SCREEN '9001'.
    DATA:       lt_table_cont type TABLE OF ty_control with header line.
    Fields in TBL_CONT:
       TBL_CONT-SELECTED
      TBL_CONT-TEXT
    PBO Flow Logic:
      MODULE STATUS_9001.
    MODULE fill_data.
      LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
      ENDLOOP.
    PAI Flow Logic:
    Loop at lt_table_cont.
       MODULE UPDATE_DATA.
    endloop.
    MODULE USER_COMMAND_9001.
    PLZ let me know what might be the problem. I have been trying to figure out but cant.
    Thanks.

    Hi Sonali,
               When ever you need to do anything with the table control, i mean if u want to display data in table control or you want to validate the data entered in table control Should be done within Loop and Endloop.(PBO or PAI's which ever is appropriate)
    Here the data is not bieng displayed in ur table control because you have not used the MODULE fill_data  between
    LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
    ENDLOOP.
    so do it like this
    LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
    MODULE fill_data 
    ENDLOOP.
    this will solve your problem.
    Regards,
    Syed

  • How to Populate Internal table data to Table Control in a Report Program

    Dear All,
           How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
    Thanks in Advance,
    Joseph Reddy

    If you want to use a table control, you will need to create a screen.
    In your report....
    start-of-selection.
    perform get_data.  " Get all your data here
    call screen 100. " Now present to the user.
    Double click on the "100" in your call screen statement.  This will forward navigate you to the screen.  If you have not created it yet, it will ask you if you want to create it, say yes.  Go into screen painter or layout of the screen.  Use the table control wizard to help you along the process.  It will write the code for you.  Since it is an output only table control, it will be really easy with not a lot of code. 
    A better way to present the data to the user would be to give it in a ALV grid.  If you want to go that way, it is a lot easier.  Here is a sample of the ALV function module.  You don't even have to create a screen.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: begin of imara occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of imara.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-001 .
    select-options: s_matnr for imara-matnr .
    selection-screen end of block b1.
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select  mara~matnr makt~maktx
                into corresponding fields of table imara
                  from mara
                   inner join makt
                     on mara~matnr = makt~matnr
                        where mara~matnr in s_matnr
                          and makt~spras = sy-langu.
    endform.
    *  WRITE_REPORT
    form write_report.
      perform build_field_catalog.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_fieldcat = fieldcat
           tables
                t_outtab    = imara.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_t_fieldcat_alv with header line.
      clear: fieldcat. refresh: fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material Number'.
      fc_tmp-fieldname  = 'MATNR'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '18'.
      fc_tmp-col_pos    = 2.
      append fc_tmp to fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material'.
      fc_tmp-fieldname  = 'MAKTX'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '40'.
      fc_tmp-col_pos    = 3.
      append fc_tmp to fieldcat.
    endform.
    Regards,
    Rich Heilman

  • Detecting which line the User is Editing IN table control

    Hi,
    I am doing a Dialog programming where there is a Table control. Now the problem is I have to decide to checks  certain rules based on data entered in the Table control. But the Rules should be applicable only to the Row in which the User is entering data. And even if the the same rules are failing in another Row of the Table control it should not get validated i.e The rule should be applicable only to the ROW the user is entering the data or Changing the Data.
    How do i sense in which row the User is entering data in the PAI of the Table control.

    You will have to use GET CURSOR,  please do F1 help on GET CURSOR,  your answer is there.
    You will be doing something like this.....
    DATA: CURSORFIELD(20) TYPE C,
          CURSORLINE TYPE I,
          CURSORVALUE(20) TYPE C.
    GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.
    * To know exactly which line in the internal table you
    * must account for which page of table control the user
    * is currently one,  so you need to add the TOP_LINE
    * value from the table control to find the exact
    * internal table row
    * Set cursorline and read table.
      CURSORLINE = ( CURSORLINE + <table_control>-TOP_LINE ) - 1.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Tabstrip,table control

    Can we design a table control inside a tabstrip.I have been learning the various options,but am not able to find the exact sequence of events for writing the code.
    Please send me any zcode / pdf which could solve my doubt.

    hi shena,
                 I will send a sample code for creating a table control in tabstrip..check it once. i will send SE38, SE51 CODE.
    SE38 CODE:
    *& Module pool       YMODULEPOOL_TABCTRLTABSTRIP                       *
    *& DEVELOPER    : KIRAN KUMAR.G                                        *
    *& PURPOSE      : PLACING TABLE CONTROL IN TABSTRIPS                   *
    *& CREATION DT  : 18/12/2007                                           *
    *& T.CODE       : YMODTABCTRLTABS                                      *
    *& REQUEST      : ERPK900035                                           *
    PROGRAM  YMODULEPOOL_TABCTRLTABSTRIP.
    Tables
    tables : 
             yvbak,  "Sales Document: Header Data
             yvbap.  "Sales Document: Item Data
    Controls
    controls: my_tab    type tabstrip,  "For Tabstrips
              my_table  type tableview using screen 110.
    Internal Table
    *Item Data.
    data: begin of gt_item occurs 0,
            vbeln like vbap-vbeln,
            posnr like vbap-posnr,
            matnr like vbap-matnr,
            matkl like vbap-matkl,
            arktx like vbap-arktx,
            cflag, "Deletion Flag
          end of gt_item.
    *Header Data
    data: begin of gt_head occurs 0,
            vbeln like vbak-vbeln,
            erdat like vbak-erdat,
            auart like vbak-auart,
            vkorg like vbak-vkorg,
            vtweg like vbak-vtweg,
            cflag,
          end of gt_head.
    Global Variables
    *Table Control(MY_TABLE)
    data: gv_number  like sy-dynnr, "Screen Number
          gv_mode    type c value 'D',  "C:Change D:Display
          gv_temp    type i, "Temporary Variable
          gv_lines   type i. "NO.OF Records in the Table
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
      SET PF-STATUS 'ZTAB'.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  active_tab  OUTPUT
          text
    module active_tab output.
    *Default Active Tab Selection.
    if my_tab-activetab is initial.
    my_tab-activetab = 'INFO'.
    gv_number        = '0110'.
    endif.
    endmodule.                 " active_tab  OUTPUT
    *&      Module  copy_data1  OUTPUT
          text
    module copy_data1 output.
    *Read the data from the Internal Table and place them in Table control
    read table gt_item index my_table-current_line.
    if sy-subrc eq 0.
    gt_item-vbeln = gt_item-vbeln.
    gt_item-posnr = gt_item-posnr.
    gt_item-matnr = gt_item-matnr.
    gt_item-matkl = gt_item-matkl.
    gt_item-arktx = gt_item-arktx.
    endif.
    endmodule.                 " copy_data1  OUTPUT
    *&      Module  copy_dat  OUTPUT
          text
    module copy_dat output.
    refresh : gt_item.
    select vbeln
           posnr
           matnr
           matkl
           arktx
      from yvbap
      into table gt_item
    where vbeln = vbak-vbeln.
    if sy-subrc eq 0.
    describe table gt_item lines gv_lines.
    my_table-lines = gv_lines + 20.
    endif.
    endmodule.                 " copy_dat  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module USER_COMMAND_0100 input.
    case sy-ucomm.
    when 'INFO'.
    my_tab-activetab = 'INFO'.
    gv_number = '0110'.
    when 'EXIT' or 'CANCEL'.
    call transaction 'SESSION_MANAGER'.
    endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Module  USER_COMMAND_0110  INPUT
          text
    module USER_COMMAND_0110 input.
    case sy-ucomm.
    *Insert New Record
    when 'INSE'.
    *NO.OF Recors in the Internal Table
    describe table gt_item lines gv_lines.
    read table gt_item index my_table-current_line.
    gv_temp = gv_temp + 1.
    if gv_temp gt gv_lines.
    *Insert Record into Internal Table
    insert table gt_item.
    *Insert Record into Database Table
    insert into yvbap values gt_item.
    endif.
    *Save the Data
    when 'SAVE'.
    *Modify Data in the Internal Table
    modify gt_item index my_table-current_line.
    if sy-subrc eq 0.
    *Modify Data in the Database Table
    modify yvbap from table gt_item.
    endif.
    *Delete the Record
    when 'DELE'.
    if gt_item-cflag = 'X'.
    *Delete the Record from the Database Table
    delete from yvbap where vbeln = gt_item-vbeln
                        and posnr = gt_item-posnr
                        and matnr = gt_item-matnr
                        and matkl = gt_item-matkl
                        and arktx = gt_item-arktx.
    *Delete the Record from the Internal Table
    delete gt_item index my_table-current_line.
    endif.
    endcase.
    endmodule.                 " USER_COMMAND_0110  INPUT
    *&      Module  clear_data  OUTPUT
          text
    module clear_data output.
    *Clear the data when ever u enter into Table Control
    clear gv_temp.
    endmodule.                 " clear_data  OUTPUT
    *&      Module  clear_data1  OUTPUT
          text
    module clear_data1 output.
    clear gv_temp1.
    endmodule.                 " clear_data1  OUTPUT
    SE51 CODE(SCREEN 100)
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    *Initial TabStrip Selection
    MODULE active_tab.
    *Placing Table Control data in Internal Table
    module copy_dat.
    *Display Mode
    *calling subscreen
    call subscreen subs including sy-cprog gv_number.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    call subscreen subs.
    SE51(SCREEN 110)
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    loop at gt_item with control my_table cursor my_table-current_line.
    module copy_data1.
    endloop.
    *CLEAR the Temporary variable value
    module clear_data.
    PROCESS AFTER INPUT.
    *Populate data into internal Table
    loop at gt_item.
    MODULE USER_COMMAND_0110.
    endloop.
    Award points if helpful.
    kiran kumar.G
                  Have a Nice Day....

  • Hi how can i fetch the data from tree table

    Hi i am designing a UI in which i am creating a java tree table as on sun java site http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html now i have to fetch the perticular column value on the mouse click.I have implemented mouse listener and on mouse clicked event I tried :
    Object obj=tableInputOutputEntities.getValueAt(tableInputOutputEntities.getSelectedRow(),tableInputOutputEntities.getSelectedColumn());
    as we usually do in case on JTable but it is also throwing null exception. Again after going through forum i found some code to get the current row and current column selected values and tried with getValueAt(int,int) method but still it is throwing nulll pointer exception. Please help me out.
                         public void mouseClicked(MouseEvent e)
              Point p = e.getPoint();
              int row = treeTable.rowAtPoint(p);
              int column = treeTable.columnAtPoint(p);
              Object obj=treeTable.getValueAt(row,column);
              System.out.println("Object value: "+obj.toString());               
                                }Regards
    Naxy

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • 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

  • Tree table is not reflecting the updated model data changes at the front end

    I have two tables ,
    1) Provider table(tree table)  2)member table
    I have implemented drag and drop functionality using jQuery UI on both tables.
    In my scenario when I drag a member from the member table and drop it on the Provider table and also when I delete an assigned member from the provider table I will update the data fetched from odata model and again I will call the method which binds the data to the provider table so that the table will reflect the changes.
    here is the code,
    on drop:
    $("#Provider tbody tr").droppable({
      drop: function(event){
           oController.AssignMember(oProviderId, oMemberId)
      }).disableSelection();
    Assign member function:   here am updating the model.
    AssignMember : function(oProviderId, oMemberId){
      var oModel = new sap.ui.model.odata.ODataModel("../../../services/provider.xsodata/", true);
      var oParameters = {};
      oParameters.PROVIDER_ID = oProviderId;
      oParameters.MEMBER_ID = oMemberId;
      oParameters.CREATED_ON = new Date();
      oModel.setHeaders({"content-type" : "application/json;charset=utf-8"});
      oModel.create( "/PROVIDERMEMBERS", oParameters, null, function() {
      var oController = sap.ui.controller("adsm.provider.member_assignment_view");
      oController.GetProviderData();
      },function(jqXHR) {
      var errorMessage = jqXHR.response.body;
      var jsondata = JSON.parse(errorMessage);
      sap.ui.commons.MessageBox.alert(jsondata.error.message.value);
    GetProviderData function: here i bind the data to the table
    GetProviderData: function(){
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/provider.xsodata/", true);
    var Context = "/PROVIDERS?expand=ASSIGNEDMEMBERS&$select=NAME,ID,ASSIGNEDMEMBERS/NAME,ASSIGNEDMEMBERS/ID,ASSIGNEDMEMBERS/PROVIDER_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 = {};
      if (oEventdata) {
      r = oEventdata;
      try {
      if (oEventdata.d){
      r = oEventdata.d;
      } catch(e){
      //alert('oEventdata.d failed');
      try {
      if (oEventdata.d.results){
      r = oEventdata.d.results;
      } catch(e){
      //alert('oEventdata.d.results failed');
      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]["PROVIDER_ID"] = j.ID;
      outputJson[p]["DELETE"] = 0;
      var m = 0;
      if (j.ASSIGNEDMEMBERS.results.length > 0) {
      $.each(j.ASSIGNEDMEMBERS.results, function(a,b) {
      outputJson[p][m] = { NAME: b.NAME,
      ID : b.ID,
      PROVIDER_ID: b.PROVIDER_ID,
      DELETE: 1};
      m++;
      p++;
    var oModel = new sap.ui.model.json.JSONModel();
      oModel.setData(outputJson);
      oTable.setModel(oModel);
      function onError(oEvent){
      console.log("Error on Provider Members");
    oTable.bindRows({
      path:"/"
    Its working fine in chrome but in IE the model data gets updated but the table is not reflecting the changes at front end.Can anyone suggest me a possible solution to fix this?
    Please have a look at the attached screen shots.
    Best regards,
    Amala Suganya.

    Hi Amala,
    I think this will help you:
    Disabling Cache for CRUD/FI OData scenarios for a UI5 Application on Internet Explorer
    Kind regards,
    RW

  • Data not seen in Table Control --Print Preview

    Hi
    I am creating one Standard Transaction Iview for CATS .
    While doing print preview(Portal Side) in IE 6  , I am not able to see data in Table control(Data Entry Area ).
    Can you please provide me the solution for how I can see the data in Table Control
    Regards
    Ruturaj

    Go to SE11 and search for setup and look for the specific data source and see the content, if the content is actually zero, then there is nothing in the setup table.
    thanks.
    Wond

  • Print data of an internal table to a printer.

    Hi,
    Requirement: The data from an excel file is the input for the program. This data is taken into an internal table using GUI_UPLOAD adn manipulated based on certain validations. The data which is validated is finally collected into an internal table.
    This data is being downloaded to the presentation server using GUI_DOWNLOAD.
    The client is asking to print the data in the internal table to the printer {SAP Scripts are generally printed}.
    Solution required for: How to print the data of an the internal table.
    Thanks in advance.
    Best Regards,
    Goutham.
    Edited by: Raghavendra Goutham on Oct 29, 2008 7:34 PM

    Try some like this way
    report zaRs.
    data: v_params type pri_params,
    start-of-selection.
      perform display_report.
    end-of-selection.
    form display_report .
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          line_size              = 220
          release                = 'X'
          mode                   = 'CURRENT'
          no_dialog              = ' '
        importing
          out_parameters         = v_params
          valid                  = v_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      new-page print on parameters v_params no dialog.
      loop at itab.
        write :/ itab.
      endloop.
      new-page print off.
    endform. 

  • I want to update the Custom table using the data available in ITAB.

    Hi,
    I want to updaste the Custom Table which is created by me (Ztable) using the data available in itab.(which i got from defferent standard tables)
    I want to update the custom table using the itab data How is it possible?
    Is any possible by using Modify ?
    DPK.

    example here
    modifying datbase table useing internal table
    advises before updating this datbase table plz lock that table to avoid incosistency
    write the logic for modifying
    Modify the database table as per new dunning procedure
    MODIFY fkkvkp FROM TABLE lt_fkkvkp .
    and finally unlock the table
    example
    *To lock table for further operations
    constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = lc_tabname
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc EQ 0.
    To fetch all the contract accounts for customers of the segment
    Households/SME.
    PERFORM fetch_contract_accounts using lc_tabname .
    ENDIF. " IF sy-subrc EQ 0.
    *wrote the logic
    Modify the database table as per new dunning procedure from internal table
    MODIFY fkkvkp FROM TABLE lt_fkkvkp .
    *unlock the tbale
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    TABNAME = uc_tabname .

  • Dev TR have to delete the Z Table data available in Quality and Prod sytems

    Hi Friends,
    I have added two new fields as primary key fields in a Z TABLE, which is existing in Quality and Production Systems with Data.
    I incorporated these two new fields (Primary Key fields) in development. If the TR is moved to Quality and Production sytems, the TR have to delete the data available for that table in Quality and Production sytems. For this what I have to do in the Development System.
    Please suggest me how to clear this.
    I have checked in SCN and not find relevant threads.
    Regards,
    Suresh

    Hi,
    the best thing would be to write a query and transport it to both the systems and then execute in the respective systems to delete it.....
    write the query in the t-code - SQVI transaction
    Thanks,
    Sid
    Edited by: Siddharth Chordia on Dec 4, 2009 8:23 AM

Maybe you are looking for

  • Repeated loss of landline service for 78 year old ...

    My 78 year old mother lives alone and has some fairly major health issues.  For the third time in three weeks, she has lost the use of her landline and would be unable to call for an ambulance if one was needed.  BT say this is due to the theft of co

  • Want to learn SAP NetWeaver.

    Hi All I have 2.5 years of Experience in developing java/j2ee applications. I am interested in Learning SAP Netweaver. Can u please suggest me the carrer prospects in this field. I am good at Java,J2SE, please also let me know which modules of  Netwe

  • Image analysis with PS CS3 EE

    First off, I need to apologize if I am not very clear on this issue Im fairly math challenged and know enough about Excel to fill out a time sheet and make an invoice. If this kind of thing is up your alley, you are just what were looking for. We are

  • Blackberry Media Sync Crashing on Startup

    Hey guys, first off I know there is another thread for this but it say's its solved so I am just reposting. But I just got the blackberry storm over the weekend, my first blackberry and so far I havent had any problems except for the Media Sync which

  • When making a phone call on my Samsung Galaxy s5, I need to use letters for some requests.  How is that done?

    When I made a recent phone call on my Samsung Galaxy s5, I was ask to enter a password, but my password includes a letter.  How to I change the keyboard to use a letter also?