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

Object oriented programming

Former Member
0 Likes
472

Hi,

I am creating object oriented program with two internal table. So my requirement is i want header for that table.

     i hope you understood my question and I'm waiting for your reply.

Thanks and regards.

Raj.

2 REPLIES 2
Read only

Former Member
0 Likes
436

No couldn't understand your point. kindly elaborate it in a nice manner.

Any OOP's program can use any no of Internal tables.

What do you actually desired & where are you facing trouble.

kindly correct your grammar.

Read only

0 Likes
436

Dear Raj,

If you mean , you want title  text for the alv using oops . ..

Then declare a work are as below

data ls_layo type lvc_s_layo.

In the subroutine of fill_layout … fill the grid title as below

clear ls_layo.

  ls_layo-grid_title = ' HEADER DATA'. “ text u want here.

Pass ls_layo in the set table for first display method.. as shown.

  call method vbak_grid->set_table_for_first_display

     exporting

       is_layout           = ls_layo  “layout filled.

     changing

       it_outtab           = lt_vbak[]   “output internal table

it_fieldcatalog     = lt_fcat[].  “ field catalog..

I hope this may help.

Thanks

Shravan