Application Development and Automation 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: 
Read only

Report Layout creation 'Save disabled'

Former Member
0 Likes
3,512

Hi experts,

I am trying to create a layout but when

1. click on setting->layout-> saving(disabled/greyed out), alternatively

2. when I click on change layout(icon) then no save button is active mode.

so how I can save the layout can you suggest please, See the screen shots.

Thank you!

Saquib

Hi experts,

I am trying to create a layout but when

1. click on setting->layout-> saving(disabled/greyed out), alternatively

2. when I click on change layout(icon) then no save button is active mode.

so how I can save the layout can you suggest please, See the screen shots.

Thank you!

Saquib

11 REPLIES 11
Read only

former_member187748
Active Contributor
0 Likes
2,521

Hi Saquib,

have you checked, these fields are commented out, if yes, then it will be desabled, in your

REUSE_ALV_GRID_DISPLAY, make sure that this is not commented.

  IS_LAYOUT                         wa_layout

Read only

0 Likes
2,521

Hi Sanjeev it's not commented. I've checked.

Read only

0 Likes
2,521

Hi Saquib,

why you have mentioned this as assumed answer, people will not take those questions marked

as assumed answers.

Please add this code to your program, and execute

DATA : S_LAYOUT TYPE SLIS_LAYOUT_ALV.

DATA : G_SAVE(1)            TYPE  C                      ,

        G_EXIT(1)            TYPE  C                      ,

        G_VARIANT            LIKE  DISVARIANT             ,

        GX_VARIANT           LIKE  DISVARIANT    .

DATA : T_EVENTS TYPE SLIS_T_EVENT.

DATA : T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.

and match with your code, what you have missed, then please let me know

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

      I_CALLBACK_PROGRAM                = V_REPID

    I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'

      IS_LAYOUT                         = S_LAYOUT

      IT_FIELDCAT                       = T_FIELDCAT[]

      IT_SORT                           = T_SORT[]

    I_DEFAULT                         = 'X'

    I_SAVE                            = G_SAVE

    IS_VARIANT                        = G_VARIANT

      IT_EVENTS                         = T_EVENTS[]

TABLES

       T_OUTTAB                          = ITAB

* EXCEPTIONS

*   PROGRAM_ERROR                     = 1

*   OTHERS                            = 2

             .

   IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

   ENDIF.

.

Read only

Former Member
0 Likes
2,521


hi Saquib,

when you call the alv function using this two parameter, then will have 'SAVE' button.

    I_SAVE                            = 'A'
    IS_VARIANT                        = wa_variant

also you need define: wa_variant type disvariant.

regards,

Archer

Read only

0 Likes
2,521

Thank you Zhang,

No effect I've tried the same.Still field is greyed out.

Read only

0 Likes
2,521

Hi Saquib,

can you post your code, we will see whats the issue with it.

Read only

0 Likes
2,521

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

   exporting

     i_program_name     = repid

     i_internal_tabname = 'W_ZFI_VRMS'

     i_inclname         = repid

     i_bypassing_buffer = 'X'

   changing

     ct_fieldcat        = i_fieldcat.

call function 'REUSE_ALV_GRID_DISPLAY'

   exporting

     it_fieldcat = i_fieldcat

     is_layout          = layout

     i_save                            = 'A'

   tables

     t_outtab    = git_zfi_vrms.

Read only

0 Likes
2,521

Hi Saquib,

i am saying please post your whole program, then only we can execute and see the problem.

Read only

0 Likes
2,521

Hi Saquib,

once try as i am sujjesting you, please comment your REUSE_ALV_FIELDCATALOG_MERGE

portion, and see what i have written in my previous message for use of   REUSE_ALV_GRID_DISPLAY.

You will get desired uotput, otherwise please send your full code.

Read only

0 Likes
2,521

Hi,


if I'll comment

REUSE_ALV_FIELDCATALOG_MERGE.


I have to change all my code so tell me another way.


Thanks,

Saquib


Read only

0 Likes
2,521

Hi Saquib,

without seeing what is the issue with your code, how could i tell you what is the problem.

So i am saying, that please post your entire code so that we will correct it, and let you

finish your job.