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: 

Internal Table

0 Kudos
60

Hi,

I want to display internal table columns having contents and hide remaining columns which are empty. Is it possible through FM or using CONCATENATE statement or I have to go for dynamic internal table.

Thanks in Advance,

Vipin.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
42

hi,

u can do it in ALV.

in the field caatlog, chk whthere the particular field has data.

if inly data is there, display it in ALV.

Regards

Reshma

4 REPLIES 4

Former Member
0 Kudos
43

hi,

u can do it in ALV.

in the field caatlog, chk whthere the particular field has data.

if inly data is there, display it in ALV.

Regards

Reshma

Former Member
0 Kudos
42

Hi Vipin,

try like below...

before genarating the field catalog check whether the contents of that particular columns and if the contents is not empty populate the field catalog else not.

Regards,

Satya.

Former Member
0 Kudos
42

Vipin pls reframe ur question.. . but whtevr we can get from it , Check in the loop of internal table whther field IS initial or not. IF initial , then dont display it.

Reward if helpful or let me know ur exact query.

Kartavya

former_member588853
Active Contributor
0 Kudos
42

Hi,

if you are using ALV..

Then check the internal table where the column is empty..

In the fieldcatalogue for that cloumn give

"let suppose your matnr column is empty then

If columnname = 'matnr' .

ls_fieldcat-no_out = 'X'.

append ls_fieldcat to it_fieldcat.

endif.

Hope this solves your problme..

reward if useful

regards,\

nazeer.