Skip to Content
author's profile photo Former Member
Former Member

ALV repore logic needed pls help

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.