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

Internal Table

Former Member
0 Likes
548

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
Read only

Former Member
0 Likes
530

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
Read only

Former Member
0 Likes
531

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

Read only

Former Member
0 Likes
530

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.

Read only

Former Member
0 Likes
530

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

Read only

Former Member
0 Likes
530

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.