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

regarding module pool with alv

Former Member
0 Likes
499

hi experts,

i have developed a module pool program in which the data is coming in the table control ,what the user wants that on clicking one push button a alv report will come depending upon the data which i enterd in the selection screen of the module pool,,for this what sud i write under the push button plz help me....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
470

Hi

In the table control keep a Button

First select the Records in the tables control into an Internal table

when you press that REPORT button in the table control screen these Selected records data which is in Internal table has to be displayed in a ALV report.

Hope when the data is internal tables just call the fun module of ALV

In the PAI of table control screen

case ok_code.

when 'REPT'.

loop at itab where v_chk = 'X'.

...append the selected records to another ITAB1.

endloop.

leave to list-processing

perform_display_report.

endcase.

In the perform you process the internal table, build the field catalog and display the ALV report

Reward points for useful Answers

Regards

Anji

hi experts,

i have developed a module pool program in which the data is coming in the table control ,what the user wants that on clicking one push button a alv report will come depending upon the data which i enterd in the selection screen of the module pool,,for this what sud i write under the push button plz help me....

3 REPLIES 3
Read only

Former Member
0 Likes
471

Hi

In the table control keep a Button

First select the Records in the tables control into an Internal table

when you press that REPORT button in the table control screen these Selected records data which is in Internal table has to be displayed in a ALV report.

Hope when the data is internal tables just call the fun module of ALV

In the PAI of table control screen

case ok_code.

when 'REPT'.

loop at itab where v_chk = 'X'.

...append the selected records to another ITAB1.

endloop.

leave to list-processing

perform_display_report.

endcase.

In the perform you process the internal table, build the field catalog and display the ALV report

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
470

Hi,

Hope i understood properly, In PAI write:

if sy-ucomm = 'BUTTON1'. "fcode for button.
select * from dbtab into itab where fld_name in s_seloption. "s_seloption is selection scren element.
endif.

*now u can use itab as it contains

Jogdand M B

Read only

Former Member
0 Likes
470

Hi,

Use a call screen when you click that push button ..

Call Screen 100.

And use the custom control on that screen and display the report output depending on hte input given in the selection screen.

Hope this helps .

- Kothai