Application Development and Automation 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: 
Read only

Declaring internal table in a global class

Former Member
0 Likes
2,546

Hi,

I want to declare a internal table in a class in se24.

The requirement is like this,

I want to create a name/value table (type TIHTTPNVP) in the class constructor, and fill it with some currencies.

A reference to this table is stored in m_currencies_ref.

and i have to pass this reference like this...

p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(

id = p_cell_id

selection = m_row_ref->CURRENCY

table = me->m_currencies_ref

nameOfKeyColumn = 'NAME'

nameOfValueColumn = 'VALUE' ).

Regards,

Azaz Ali.

Hi,

I want to declare a internal table in a class in se24.

The requirement is like this,

I want to create a name/value table (type TIHTTPNVP) in the class constructor, and fill it with some currencies.

A reference to this table is stored in m_currencies_ref.

and i have to pass this reference like this...

p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(

id = p_cell_id

selection = m_row_ref->CURRENCY

table = me->m_currencies_ref

nameOfKeyColumn = 'NAME'

nameOfValueColumn = 'VALUE' ).

Regards,

Azaz Ali.

4 REPLIES 4
Read only

Former Member
0 Likes
956

Hi

try to create a structure in se11 or ur itab type

in se24 <b>internal types</b> u can declare itab of type se11structure

Read only

Former Member
0 Likes
956

Hai

Go through the following Code

report zabap_obj_13424_01_gbl

no standard page heading.

parameters : p_vbeln like vbap-vbeln obligatory,

p_matnr like mara-matnr.

data : obj type ref to zcl_assign_13424_01,

v_flg(1) value 'N'.

start-of-selection.

perform Select_Display_VBAP.

top-of-page.

if v_flg = 'Y'.

perform Heading_for_VBAP.

endif.

&----


*& Form Select_Display_VBAP

&----


  • text

----


form Select_Display_VBAP .

if not p_matnr is initial.

create object obj exporting vbeln = p_vbeln

matnr = p_matnr.

else.

create object obj exporting vbeln = p_vbeln.

endif.

set handler obj->handle_no_data_found for obj.

call method obj->get_vbap.

call method obj->disp_vbap.

if not obj->v_vbeln is initial.

v_flg = 'Y'.

endif.

endform. " Select_Display_VBAP

&----


*& Form Heading_for_VBAP

&----


  • text

----


form Heading_for_VBAP .

write :/01 'S.O.No.',

12 'Material No.',

31 'Material Desc'.

endform. " Heading_for_VBAP

Thanks & reagrds

Sreeni

Read only

Former Member
0 Likes
956

Go to se11 and create your own type group and define your type in that type group.

In se24 Properties tab, you can give your type group name in the Type Groups/Object Type screen(Forward Declarations).

Then you can refer the type you have created in your declaration.

Regards,

Ravi

Read only

Former Member
0 Likes
956

Hi Azaz,

You can declare internal tables in se24...

You can try in the Types section..Just click on the Types Button and give the definition there...

Regards,

SP.