Skip to Content
author's profile photo Former Member
Former Member

oops report

i would like to have one interective report with oops concepts only and without alv.

the report should show one basic list and 3 secondary list using oops concept( no alv please).

pl send the sample code fast.

thanx

rocky

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 05:45 AM

    hi...

    find this report

    From,

    Anil

    &----


    *& Report ZBCONE_EMPLOYEE

    *&

    &----


    *&

    *&

    &----


    REPORT ZBCONE_EMPLOYEE no standard page heading line-size 250

    line-count 50.

    tables: ZBCONE_EMP.

    data: wa like zbcone_emp,

    itab type table of zbcone_emp.

    parameters: empid type zbcone_emp-id,

    empname type zbcone_emp-name.

    CLASS bcone_employee definition.

    public section.

    methods:

    enter_data,

    show_data.

    ENDCLASS.

    class bcone_employee implementation.

    method: enter_data.

    wa-id = empid.

    wa-name = empname.

    insert into zbcone_emp values wa.

    endmethod.

    method: show_data.

    select * from zbcone_emp into wa

    where id = empid.

    append wa to itab.

    endselect.

    write:/5 'Emp no', 15 'Employee Name'.

    loop at itab into wa.

    write: /5 wa-id, 15 wa-name.

    endloop.

    endmethod.

    endclass.

    data: obj type ref to bcone_employee.

    start-of-selection.

    create object obj.

    call method obj->enter_data.

    call method obj->show_data.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.