Application Development 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: 

displaying coloumns in alv

Former Member
0 Kudos

hi

in my requirement

it is an alv report there r 2 coloumns customer name and sales order number

if customer name is there then it should not display so number

if customer name is not there then it should display so numebr

how to do this

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ravi,

If the 2 columns are separately on its own, then there is nothing special you need to code. Just a simple IF..ELSE will do.

Pls explain in detail should I have not answered you correctly

Rgds,

ET

4 REPLIES 4

Former Member
0 Kudos

Hi Ravi,

If the 2 columns are separately on its own, then there is nothing special you need to code. Just a simple IF..ELSE will do.

Pls explain in detail should I have not answered you correctly

Rgds,

ET

rahulkavuri
Active Contributor
0 Kudos

This is done using regular <b>initial CONDITION</b> check.. NOTHING TO BE ALTERED IN ALV AS FAR AS I KNOW

Former Member
0 Kudos

hi ravi,

before passing ur internal table to FM REUSE_ALV_GRID_DISPLAY modify ur internal table accordingly,

loop at itab.

  if itab-custname is initial.
      clear itab-salesno.
     modify itab index sy-tabix.
  endif.

endloop.

if u dont want to disturb ur first internal table , declare another internal table and do the modifications

Message was edited by: Chandrasekhar Jagarlamudi

former_member188685
Active Contributor
0 Kudos

Hi ravi,

it depends on your data in your itab. you cannot control this. But what if you have both the columns customer name and SO number. when data is there it will be shown else it will be balnk. can you make it clear

Regards

vijay