This website is not affiliated with, sponsored by, or approved by SAP AG.

deleting column from the internal table

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: thx4allthefish, Snowy, Gothmog, YuriT

deleting column from the internal table

Postby rrkk » Wed Jun 23, 2004 3:59 am

Hi all,

i have an internal table having with 9 columns.
At the end of the program i have to download it to the excell sheet.

so my requirement is i have to delete the column of the internal table(because i dont want to display that column in the excel sheet) where all the rows are empty. for example
i have internal table like:



Code: Select all

Col1   col2   col3..........col9

XX      XX                     XX
XX      XX                     XX
XX      XX                     XX.





Now here col3 column has no data at all, so i wnat to delete that column from the table.



Please help me out to solve this.

thanks in advance.

- Rrkk

rrkk
 

Postby Guest » Wed Jun 23, 2004 4:32 am

you cant physically remove the column from an ITAB as it is declared as such - its defined as is with structure structure. you will have to solve this issue some other way, or build something more dynamic.
Guest
 

Postby akimol » Wed Jun 23, 2004 8:26 am

I am not sure how are you downloading it actually.

But with the help of function GUI_DOWNLOAD module you can achieve this.

use parameters
COL_SELECT = 'X'
COL_SELECT_MASK = 'XX X' "to remove third column place blank at that position.

Good Luck

~A.
akimol
 
Posts: 89
Joined: Mon Aug 11, 2003 8:40 am
Location: New England

Postby rrkk » Wed Jun 23, 2004 9:01 pm

but GUI_DOWNLOAD does not exist in my version(4.5B) :( .

Any other suggetions pls..
rrkk
 

use WS_Download

Postby onlineskc » Thu Jun 24, 2004 5:18 am

Hello ,

You can use WS_DOWNLOAD , in that case,
onlineskc
 
Posts: 4
Joined: Tue Jun 22, 2004 3:24 am

Re: deleting column from the internal table

Postby dmatos » Tue Apr 03, 2012 1:55 pm

how can i apply that while using the WS_DOWNLOAD function??
dmatos
 
Posts: 2
Joined: Tue Apr 03, 2012 10:51 am

Re: deleting column from the internal table

Postby Gothmog » Wed Apr 04, 2012 3:26 am

Locked for necroposting/duplicate posting, new thread is here.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1480
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to ABAP

Who is online

Users browsing this forum: No registered users and 6 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.