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

Blocked List

Former Member
0 Likes
2,156

Dear All,

Could anyone help me in below topic -

I want to to display multiple lists at a time. For that, I am using Blocked List.

I want to display different Header for each List. Header will be decided dynamically. And for List display I am using Internal table with same name with different data each time.

How many Number of list will be displayed decided at run time.

Now, the problem is, when I am trying to do this, multiple list are getting displayed with the data that I filled in the Internal Table at last.

So, is this not the proper way.

If not, then what is the proper way?

Please help ASAP.

Thanks in advance.

Best Regards,

Prasad

Dear All,

Could anyone help me in below topic -

I want to to display multiple lists at a time. For that, I am using Blocked List.

I want to display different Header for each List. Header will be decided dynamically. And for List display I am using Internal table with same name with different data each time.

How many Number of list will be displayed decided at run time.

Now, the problem is, when I am trying to do this, multiple list are getting displayed with the data that I filled in the Internal Table at last.

So, is this not the proper way.

If not, then what is the proper way?

Please help ASAP.

Thanks in advance.

Best Regards,

Prasad

12 REPLIES 12
Read only

Former Member
0 Likes
2,078

One more query :

How may List can be displayed at a time?

Best Regards,

Prasad

Read only

Former Member
0 Likes
2,078

hi,

you are using reuse_alv_block_list_display right.

Based on calling function module order it wil display to you in output.

In case of blocked list 3 function modules we have to call in program

1 is for initiation,

2nd one appending

3rd one is for display

based on appending your internal tables list wil format in order.

after 3rd step it will display for you.

check once.

Read only

Former Member
0 Likes
2,078

Thanks for the quick reply.

Yes, right.

I am using INIT, APPEND and DISPLAY FMs.

But, if the Internal table Name passed to APPEND FM is same each Time even with different Data, still it is displaying the list with data which is filled at last in the Internal table.

So, what is the solution to display all data?

Best Regards,

Prasad

Read only

Former Member
0 Likes
2,078

Hi,

There are not many limitations.

The limitations are surprisingly few. While the current version of ALV only lets you display simple lists (no block or hierarchical lists), users can define multiple-line formats in the Print Preview window and print multiple-line lists from there. The only other significant constraint is that you must be online. ALV doesn’t run in background processing.

After caling append ,call display function module.

it will display in output in order.

Read only

Former Member
0 Likes
2,078

Hi, But, we have to call

INITI

Then, as many APPEND as we want.

DISPLAY

So, DISPLAY is at last only and not each time.

Thanks in advance.

Best Regards,

Prasad

Read only

0 Likes
2,078

Hi,

yes you are right but

based on calling append function module list will format which one is first which one is after has to display.

I think your problem is last internal is only having data before that no data is available in that tables.

check this .

*reward points.

Read only

Former Member
0 Likes
2,078

Hi,

I am passing the Internal Table with same Name to the APPEND FM each time with different data; & DISPLAY at last.

And it displays Data which is lastly filled in the table for every list.

This is the actual proplem.

Please give the solution for this.

Best Regards,

Prasad

Read only

0 Likes
2,078

Hi prasad,

remaining tables doen't contain any dat that's why it is displaying only last table in list.

Read only

0 Likes
2,078

Hi

Before passing to the FM REUSE_ALV_BLOCK_LIST_APPEND, just assign the internal table value in to some other internal table. pass the new internal table. Have a look at the standard program BALVBT01.

itab_new = itab.

  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
       EXPORTING
            IT_FIELDCAT     = ZFIELD
            IS_LAYOUT       = Z_LAYOUT
            I_TABNAME       = 'ITAB_NEW'
            IT_EVENTS       = GT_ZEVENTS
       TABLES
            T_OUTTAB        = itab_new.

Read only

Former Member
0 Likes
2,078

Each table has data, when it gets appended.

Kind Regards

Prasad

Read only

0 Likes
2,078

Hi,

how you are calling display function module.

it has to display data.

display function module is optional no need to pass any values to that evev though it lists output.

BALVBT01 check this program for reference purpose.

*reward points.

Read only

Former Member
0 Likes
2,078

Each table has data, when it gets appended.

Kind Regards

Prasad