01-22-2008 5:43 AM
Hi,
I am new to OOPS abap..what is a containerr in oops alv display...send me some documents for oops abap
01-22-2008 5:45 AM
Hi ,
See the PDF document.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
Regards
Arun
01-22-2008 8:14 AM
hi,
Follow this link for Abap objects PDF's
http://www.esnips.com/doc/6d16a298-9227-4d32-acf1-e91164c89daf/3-ABAP-Objects(P283)
Hope this is helpful, Do reward.
01-22-2008 8:37 AM
OO ABAP
http://www.sapgenie.com/abap/OO/eg.htm
http://www.sapgenie.com/abap/OO/syntax.htm
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/OO/defn.htm
Detailed
OOPS OO ABAP
http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
REward points if useful.
01-23-2008 6:10 AM
Hi Varsha,
OOPS ALV makes use of custom container which is used to reserve space on the screen where your output ALV is displayed.
To create a custom container, go to transaction SE80.
Under Utilities > Settings > uncheck 'Graphical Layout'.
then under Edit> create element> custom container.
Following code can give you some idea.
****************************************************
*& ALV Display
****************************************************
call screen 100.
----
MODULE status_0100 OUTPUT
----
*
----
module status_0100 output.
set pf-status 'STATUS'.
set titlebar 'TITLE'.
create object g_custom_container
exporting
container_name = 'CUSTOM_CONTROL'
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
create object grid
exporting
i_parent = g_custom_container
exceptions
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call method grid->set_table_for_first_display
changing
it_outtab = itab_vbak[]
it_fieldcatalog = gt_fieldcat[]
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endmodule. " STATUS_0100 OUTPUT
&----
*& Module USER_COMMAND_0100 INPUT
&----
text
----
module user_command_0100 input.
"User Actions
case ok_code.
when 'EXIT' or 'CANCEL'.
leave program.
when 'BACK'.
leave to screen 0.
when 'PRINT'.
perform f_print_smartform.
when 'PDF'.
perform f_dnld_pdf.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
This code does not include data slection/preparing field catalog.
Reward points if helpful..
Regards,
Vishal.