2008 Apr 09 2:24 AM
Hi
My int. table it_detail has 3 entries
BUDAT PERIOD SAKNR AUFNR SGTXT BLART
19960329|199603|0000461100|12-6911-0203| |VC
DMBTR WAERS
| 1000.00 |SGD
19960424|199604|0000461100|12-6925-0203|Cost Test|VC |
16534.00|SGD
19960627|199606|0000461100|12-5757-0403|Testing |IG |
65.79|USD
My requirement is,
We had 2 display(ALV) options one is DETAIL other is SUMMARY.
Detail means we should out put the it_detal table.
summary means i need to add some Conditions. Reference doc. is OrderNo, in it_detail table
Blart = VC means i need to move DMBTR to material cost. If order no is same i should add the value
and display in to one line.
how to do this? pls help
2008 Apr 09 2:32 AM
Hi Kumar,
You requirement is not clear, can please explain it a bit more.
Like do you want to display 2 blocks of ALV in a screen, or based on some selection screen condition you want to display either one ALV. Can you please explain?.
if you requirement is to display 2 ALV in a single screen try using FM REUSE_ALV_BLOCK_LIST_APPEND,
and REUSE_ALV_BLOCK_LIST_DISPLAY.
Hope this helps you.
Thanks,
Arun
Hi
My int. table it_detail has 3 entries
BUDAT PERIOD SAKNR AUFNR SGTXT BLART
19960329|199603|0000461100|12-6911-0203| |VC
DMBTR WAERS
| 1000.00 |SGD
19960424|199604|0000461100|12-6925-0203|Cost Test|VC |
16534.00|SGD
19960627|199606|0000461100|12-5757-0403|Testing |IG |
65.79|USD
My requirement is,
We had 2 display(ALV) options one is DETAIL other is SUMMARY.
Detail means we should out put the it_detal table.
summary means i need to add some Conditions. Reference doc. is OrderNo, in it_detail table
Blart = VC means i need to move DMBTR to material cost. If order no is same i should add the value
and display in to one line.
how to do this? pls help
2008 Apr 09 2:32 AM
Hi Kumar,
You requirement is not clear, can please explain it a bit more.
Like do you want to display 2 blocks of ALV in a screen, or based on some selection screen condition you want to display either one ALV. Can you please explain?.
if you requirement is to display 2 ALV in a single screen try using FM REUSE_ALV_BLOCK_LIST_APPEND,
and REUSE_ALV_BLOCK_LIST_DISPLAY.
Hope this helps you.
Thanks,
Arun
2008 Apr 09 2:43 AM
Hi i dont want to display 2 alv in single screen.
I got 2 radio buttons
1. Detail 2.summary.
If i select detail it should display it_detail internal table.
If i click summary i need to add the following logic
Ref Doc no is order no.
for example in It_detail table i got 2 entries for same order no and Blart = VC means i should add the cost and move this cost in to Raw material cost
If Blart = IG i need to add the cost and move in to external cost.
2008 Apr 09 2:53 AM
Hi Kumar,
I hope your radio button is on selection screen.
In that case.
Please use following code.
if r_detail = 'X'
<your logic of processing data>
append lt_detail.
elseif r_summary = 'X.
<your logic for summary data>
append lt_detail
endif.
call function reuse_alv_grid_display
---
-
tables
tab_output = lt_detail.
Hope this helps you.
Thanks,
Arun