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

using factory method to display data

Former Member
0 Likes
1,074

hello friends,

i am using the factory method to display my internal table in ALV,

now my problem is that if the whole columns is blank in the internal table then in the output it is not displayed at all.

is there anyway that i can avoid this,is there any other way i can display all the fields of my internal table (using OOPS).

also since im writing my program in SE38 i cant create an container.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
799

I didn't realize that this behavior was the default. If this is true, you can try to switch the column back on, using the classes CL_SALV_COLUMNS_TABLE and CL_SALV_COLUMN_TABLE. Have a look at one of the SALV* example programs to see how to use these classes.

REgards,

RIch Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
800

I didn't realize that this behavior was the default. If this is true, you can try to switch the column back on, using the classes CL_SALV_COLUMNS_TABLE and CL_SALV_COLUMN_TABLE. Have a look at one of the SALV* example programs to see how to use these classes.

REgards,

RIch Heilman

Read only

0 Likes
799

sorry for my mistake

columns which are completely empty r coming,but there is so much inconsistences,i mean first few columns which r blank r not displayed but other columns which r blank r displayed.

factory method does not relie on field catalog,right, im not able to understand this behaviour

Read only

0 Likes
799

No it does not rely on a field catalog, rather it builds its field catalog based on the structure of the internal table which is pasted in the FACTORY method, so if your fields are not in this internal table, they will not be in your output.

Regards,

RIch Heilman