Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a object in sap abap ?

Former Member
0 Kudos
109

Hello Experts

I am new to sap oops trying to write alv using oops concept but i am unable to create a object .i.e what are the key to create a object of a class.



 CREATE OBJECT t_cust
    EXPORTING
*    parent                      =
      container_name              = 'ZALV01'
*    style                       =
*    lifetime                    = lifetime_default
*    repid                       =
*    dynnr                       =
*    no_autodef_progid_dynnr     =
    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.

i.e what are are key to create a object.

please plaese help me because i have no other avenue to learn. => Unfortunately, SCN is not a training forum. You might want to join a Classroom training as an alternative avenue.

Thanks in advance.

Chitta Ranjan Mahato.

Edited by: kishan P on Oct 27, 2010 3:35 PM

1 REPLY 1

MarcinPciak
Active Contributor
0 Kudos
63

This is very basic question, you will be able to find the answer without any problems by searching term like cl_gui_custom_container and/or cl_gui_alv_grid .

Regards

Marcin