Current position:  Home > Default > Report in OOPS

Report in OOPS

Time:October 11
Advertisement
Hi,
   I am new to oops I have created a small program to display data. I have declared a small struture in the Public section. but when I see the internal table in the debugging mode it contains 2 fields as KEYPART    FUNCPART  instead of fields which are return in the internal table decleration. and the program in going to dump.
the report is as follows
CLASS TEST DEFINITION.
PUBLIC SECTION.
DATA : BEGIN OF ITAB,
            KUNNR TYPE KNA1-KUNNR,
            LAND1 TYPE KNA1-LAND1,
            NAME1 TYPE KNA1-NAME1,
            ORT01 TYPE KNA1-ORT01,
       END OF ITAB.
DATA IT_ITAB TYPE STANDARD TABLE OF ITAB.
DATA WA_ITAB TYPE ITAB.
METHODS: DISPLAY,
         RETRIEVE_DATA,
         PASS_TO_ALV.
ENDCLASS.
CLASS TEST IMPLEMENTATION.
METHOD RETRIEVE_DATA.
  SELECT KUNNR LAND1 NAME1 ORT01 FROM KNA1 INTO TABLE IT_ITAB.
ENDMETHOD.
METHOD PASS_TO_ALV.
  RETRIEVE_DATA( ).
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
      I_STRUCTURE_NAME                  = 'ITAB'
    TABLES
      t_outtab                          =  IT_ITAB.
ENDMETHOD.
METHOD DISPLAY.
     PASS_TO_ALV( ).
ENDMETHOD.
ENDCLASS.
DATA  OBJ_TEST TYPE REF TO TEST.
START-OF-SELECTION.
   CREATE OBJECT OBJ_TEST.
please trace out the problem.
Thanks in Advance.
Advertisement
Thanks for your reply,
As with in the display I called Pass_to_alv and with in the Pass_to_alv I have called retrieve_data method as there is no problem there. Please run the report in the debug mode as you cannot see the fields ( kunnr name1 land1 ort01 ) in the table as it shows 2 fields KEYPART  FUNCPART. The problem lines there.

How to send mail with out attachment in a report using oops concept

2015-10-11

Hi Abap Experts,                  My requirement is i have to send a mail with out attaching any documents this is a report using oops conceopt how can i acheive it .Hi Saeed, Please search SDN before posting. There are so may threads for the same. C

INTERACTIVE REPORT IN OOPS ALV

-0001-11-30

HI I AHAVE DISPLAYED ALV REPORT WITH OOPS (USING CONTAINER) NOW WHEN I CLICK ON ORDER I WANT TO CALL ONE TRANSACTION CAN ANY ONE TELL ME WHICH METHOD TO RETRIVE VALUE OF FIELD AND NAME OF FIELDhi, this code is helpful for u.check it. REPORT  ZZ_22038

Alv report using oops ABAP

-0001-11-30

hi friendz, can any one of u give an example, how to build alv report using oops abap ? thanks in advance. points for sure regards, VijayaHi Vijaya, I hope the following code upto your requirement. *& Report  ZMAT_ALV_GRID                            

ALV report using OOPS concept.

-0001-11-30

Hi, Please help me in writing ALV report using OOPS concept as i have never used this concept before.Please post a clear picture for this. Thanks in advance.Hi Refer this code: REPORT zcls_alv_oops MESSAGE-ID z1. TABLES : mara. Types Declaration..\ T

ALV Interactive Report  using oops

-0001-11-30

Hi All ,                Pls anybody send me the code for ALV interactive report using OOPS  , that reports covers the following things like Header , Logo , Total& subtotals  .....etc  ,                with this i can complete my object . thanks in Ad

Creating ALV reports using OOP concept

2015-10-11

After creating many reports i found out that 90% of the coding in a report is copy paste i.e. only 10% of coding effort is required which includes     creating the custom data types and internal table variables  ...     populating the data     creati

Interactive ALV list Report Using OOPS

-0001-11-30

Hi Experts!! I would like create secondary list using ABAP OPPS (Events). Anybody can give me idea how to do that . On clicking of perticurar row + column. Secondary list should be displayed. Please do not suggest ALV Grid. I know how to do it with A

Can we create complete report in OOPs

-0001-11-30

Hi, Could you please advice if we can code the complete report in SE24 and call it in SE38 report.. For ex. I have a report followed by ALV output..now can i write everything in a Z Object (from decalration to output ) .. Kindly suggest if it is a go

ALV reports using OOPS

-0001-11-30

Hi frnds,         I want to write an alv report program using oops concepts.CAn anybody send me a simple code to generate an alv reports? Thanks a lot in advance.Hi http://www.sapdev.co.uk/reporting/alv/alvobjgrid/alvobject_sort.htm *& Report  ZLCL_A

ALV Grid Report using OOPS

-0001-11-30

Hi Friends, I have to develop the ALV Grid report using the Classes ie OOPS, as i am new to OOPS and know little bit of ALV,  so it will be little bit tough to develop the object so plz try to solve my query. I'm sending the Functional specs: The pro

Disbable button on alv report using oops

2015-10-11

Hi all, I have a button to toll bar of alv grid using oops based on that when the user clicks on that some action is performed and list is displayed again now when the list is diaplyed i need the button that i added to be disabled so that the user ca

END_OF_PAGE in alv report using oops

2015-10-11

Experts, Could you please give me the solution for the below issue? Requirement is like this: I have to display two grids in my report, and in that one grid will have top-of-page and other one will have end-of-page. Here, I am able to display the dat

ALV Report using OOPS - Back button(F3) flow not correct

-0001-11-30

Hi, When i try to execute my report (F8) and it goes to output screen perfectly. Then if i hit back button(F3) it comes to selection screen that's also fine. after then if i hit back button(F3) then it goes to output screen again. actually it has to

Display title in spool generated in background processing of report

2015-10-11

Hi All, I am working on a report which uses splitter container to display report details as title in one part of the container and ALV report (using OOPS ALV) in the other part when executed in foreground. I have referred the following links and adde

Icons in alv report....

2015-10-11

Hi all, I am creating an ALV report using oops concept all the things are working fine but i can not able to see all the icons enabled (icon for sum and and the next to that both are disabled) plz give the solution ASAP.... Thanks and Regards AshuIn

Problem in displaying data using ALV interactive using OOPS

2015-10-11

Hi friends, I have created one interactive report using oops..   on my selection screen i have a select-option  TABNAME for DD02L table with no intervals option. ie : i enter table names in that field.. for example i enter VBAP                       

DIfference Between OOPS ALV and WEBDYNPRO FOR ABAP ALV?

2015-10-11

Hi to All, i want some information that What is main difference when we develop ALV Report in OOPS and WEBDYNPRO For ABAP.which is good n in what way it is good? In the Same way I m also want know that WHICH IS BETTER AMONG WEBDYNPRO FOR JAVA/ABAP.In

Interactive ALV Report

2015-10-11

Hi Experts, I am new to ALV Reports, can any one provide some inputs on how to create an Interactive ALV Reports using OOPS Concept. I am getting the data from SFLIGHT on first ALV and i want that when i single click any cell or row or any check box

ALV {oop} column Hide at runtime

2015-10-11

Hi, I have a ALV report using OOp. In the report application toolbar i have 2 buttons (PF-Status) If user click on button1 one of the column to be hide from display. But if click button2 then that column to be unhide and display. I have tried this us