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: 

What is the use of COL_SELECT_MASK IN fm gui_download?

former_member184119
Active Contributor
0 Kudos

Hi i Just want to know what is the use of col_select_mask in GUI_DOWNLOAD.

currently i need to work on one report where they are passing this parameter to gui_download.

result is it is taking only 255 char column length in the downloaded excel...

i need to add extra fields to the downloaded excel..but it is taking only 255 how to over come this issue?

i tried commented the COL_SELECT_MASK but it is taking unnecessary fields in the internal table i dont know how come they are excluding some fields without downloading ?Any one any idea?

Regards

sas .

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

its clearly explained in the FM documentation..Pl read it

5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos

its clearly explained in the FM documentation..Pl read it

0 Kudos

Well thanks for the information.

Now i understood that

in itab there are 10 fields where user wants to see in the excel only 8 fields.

so they use col_mask parameter what ever columns we pass only those o/p we can see in the output.

so now that col_mask need to increase to few more fields in result which the size of excel is more than 255 char which in result need to display 8 + my 6 fileds = 14 fields.

due to over size it is displaying only 10 fields. Rest 4 are missing.

so using COL_MASK is there any way to define more than 255 char column length?

Regards

sas....

DiD you check the FM where it is written as if col_sel = 'X'.

COL_SLE_MASK = 'xxx'.

then it will download 1 , 3 5 columns???/

what is this i dont understand???

Regards

sas

0 Kudos

>

> DiD you check the FM where it is written as if col_sel = 'X'.

> COL_SLE_MASK = 'xxx'.

>

> then it will download 1 , 3 5 columns???/

> what is this i dont understand???

>

>

> Regards

> sas

Its actually defined like this.


Character field up to 128 characters, consisting of SPACE and 'x'. 
Each character stands for a column in the table. A SPACE stands 
for a column to be omitted; every other character stands for a column
 to be inserted.

Example: COL_SELECT = 'X'

COL_SELECTMASK = 'X X X'


Columns 1,3,5 are downloaded. 

There is space after each X. " A SPACE stands for a column to be omitted".

so 2,4 columns are ommited and 1,3,5 are downloaded.

0 Kudos

[;

Thanks alot goutham your answer and above thread cleard my querry !!Thanks for the help yar.

Regards

sas

kesavadas_thekkillath
Active Contributor
0 Kudos

Gautam has clearly explained it...Now close thsi thread