cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting a particular cell in Webdynpro ALV

Former Member
0 Kudos

Hi,

I had developed a Webdynpro ALV Report. The report is sort of dynamic report and the headers are built inside the internal table itself along with the line items. I needs to use link to action for 1 column :

In above screenshot, I need to make the Substance Column as Link to Action. However the header part "Substance" should have format like the other column headers. As the Substance part is inside the internal table... it also changes to Link to Action. is there anyways I can change the format for that specific cell ?

Thanks and Regards

        Vivek

Accepted Solutions (1)

Accepted Solutions (1)

Szczerbowski
Active Participant
0 Kudos

Hi,

Then you would need conditional cell variants, be aware though they don't always work well when printing or in export to excel.

M.

Former Member
0 Kudos

Thanks. I could manage to achieve it using cell variants but as you said the default export to excel is eliminating the whole column in the excel. Any way I can prevent this ?

Szczerbowski
Active Participant
0 Kudos

Not sure.

You'd have to probably overwrite the export function, or pre-exit it, and then remove cell variants, and replace existing with text editor.

Answers (1)

Answers (1)

chengalarayulu
Active Contributor
0 Kudos

Hi Vivek,

you will never have column headings like hyper link. I hope you already aware and used cell editor concepts(dynamically) on ALV report.

And, this will be applicable only if you are re-using SALV_WD_TABLE component into your custom.

Former Member
0 Kudos

I am not using the column heading of ALV. Building my header inside the internal table. Would you be having any code snippet for cell editor concept?

Former Member
0 Kudos

Hi,

How you are populating column header's as header's are part inside the internal table?

Thanks

KH

Former Member
0 Kudos

Sorry, I did not get your question.

Basically I am preparing my whole output inside the internal table and displaying in ALV where first 3 rows of the internal table act as header.

I want 2nd column as Link to Action which I have achieved. But I want to change the particular cell i.e the 3rd row, 2nd column - "Substance". I dont want "Substance" cell to have Link to Action.

Thanks

Vivek

chengalarayulu
Active Contributor
0 Kudos

you can check below wiki pages..

Web Dynpro ABAP - Using UI elements in ALV component cells - Code Gallery - SCN Wiki 

How to edit conditionally row of a ALV table in Web Dynpro for ABAP - Web Dynpro ABAP - SCN Wiki 

this may not be same as your requirement, but you must relate to this, and this will be very helpful for you to accomplish your requirement.