Skip to Content
avatar image
Former Member

Different layout in Webdynpro ALV.

Hi

I have a requirement like below.

I need to display different types of output based on selection-screen.

I have overall 40 Fields in output table.But in some cases i need to display 10 fields, 20 fields and 25 fields. So each output is different.

Also i have a back button. When i click Back button and selection another layout, then output layout is different.

Ex. from Output screen 1, when i click back button and select different layout and the result should be different output. This is working 1 and 2nd occurance, I when i tried the same in 3rd or more occurence then its not working. Anyone have any idea how to clear ALV container each occurance.

also i have to shrink the header text. FYI.. i am getting description from Data elements .

Ravi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 09, 2012 at 06:32 AM

    Hi,

    check this article for ALV layout changes: [Multiple Layouts in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90b5f165-f4b8-2d10-39bf-e2b59da7fdcb?QuickLink=index&overridelayout=true]

    For column re-sizing use CL_SALV_WD_COLUMN->SET_RESIZABLE method, check this thread for reference: resize column width in ALV

    Hope this helps u.,

    Thanks & Regards,

    Kiran.

    Add comment
    10|10000 characters needed characters exceeded